/* --- FOND GALAXY GÉNÉRAL --- */
body {
    margin: 0; padding: 0;
    background: #00050a; /* Noir spatial profond */
    overflow-x: hidden;
    color: #f1f5f9;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.p_centre{
    margin: auto;
    text-align: center;
}
.souligne{
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* --- LE CHAMP DE FORCE (Mise à jour densité) --- */
.starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #00050a;
    z-index: -5;
    overflow: hidden;
    perspective: 800px; /* Profondeur un peu plus marquée */
}
/* Les étoiles qui foncent vers nous (Densité augmentée) */
.warp-stars {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%; /* Plus large pour couvrir les bords */
    background-image:      
        radial-gradient(1px 1px at 30% 50%, #fff, transparent),      
        radial-gradient(1px 1px at 70% 80%, #fff, transparent),      
        radial-gradient(1px 1px at 40% 90%, #fff, transparent),
        radial-gradient(1px 1px at 85% 75%, #fff, transparent);
    background-size: 300px 300px; /* Motif plus petit = plus d'étoiles */
    opacity: 0;
    animation: warp-speed 20s linear infinite; /* Un peu plus lent pour le confort */
}
/* --- DÉCALAGE ALÉATOIRE DES GROUPES --- */
/* Groupe 1 : Orientation normale */
.group-1 { 
    animation-delay: 0s; 
}
/* Groupe 2 : Incliné à 90° avec un motif plus large */
.group-2 { 
    animation-delay: 3s; 
    transform: rotate(90deg);
    background-size: 350px 350px; 
}
/* Groupe 3 : Incliné à 180° (tête en bas) avec un motif serré */
.group-3 { 
    animation-delay: 6s; 
    transform: rotate(180deg);
    background-size: 250px 250px;
}
/* Groupe 4 : Incliné à 270° et légèrement décalé vers la droite */
.group-4 { 
    animation-delay: 9s; 
    transform: rotate(270deg) translateX(50px);
    background-size: 310px 310px;
}
@keyframes warp-speed {
    0% {
        transform: translateZ(-800px) rotate(0deg);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateZ(600px) rotate(5deg); /* Légère rotation pour l'effet vortex */
        opacity: 0;
    }
}


/* --- MENU DE NAVIGATION --- */
@media (max-width: 600px) {
    .navbar {
        padding: 10px 5px;
    }

    .nav-links {
        display: flex;         /* On utilise Flexbox */
        flex-wrap: wrap;       /* L'astuce est ici : permet le passage à la ligne */
        justify-content: center; /* Centre les boutons sur l'écran */
        gap: 8px;              /* Espace entre les boutons */
    }

    .nav-links a {
        /* On force une taille minimale pour que les boutons soient cliquables */
        flex: 1 1 calc(33% - 16px); 
        min-width: 80px;       /* Empêche les boutons d'être trop petits */
        
        text-align: center;
        padding: 10px 5px;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.08); /* Effet bouton spatial */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        white-space: nowrap;   /* Évite que "Terminale" se coupe en deux */
    }
}
.navbar {
    position: relative;
    margin: 5px 0 25px 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    /* Le dégradé part de ton bleu et devient transparent */
    background: linear-gradient(to bottom, rgba(1, 40, 90, 0) 0%, rgba(1, 40, 90, 0.5) 100%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    backdrop-filter: blur(12px); /* Effet flou spatial */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}
.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}
.nav-links a:nth-child(1) { text-shadow: 0 0 7px #3b82f6; color: #3b82f6; }
.nav-links a:nth-child(2) { text-shadow: 0 0 7px #2dd4bf; color: #2dd4bf; }
.nav-links a:nth-child(3) { text-shadow: 0 0 7px #a78bfa; color: #a78bfa; }
.nav-links a:nth-child(4) { text-shadow: 0 0 7px #fb923c; color: #fb923c; }
.nav-links a:nth-child(5) { text-shadow: 0 0 7px #f472b6; color: #f472b6; }
.nav-links a:nth-child(1):hover { text-shadow: 0 0 10px #FF0000; color: #3b82f6; }
.nav-links a:nth-child(2):hover { text-shadow: 0 0 10px #FF0000; color: #2dd4bf; }
.nav-links a:nth-child(3):hover { text-shadow: 0 0 10px #FF0000; color: #a78bfa; }
.nav-links a:nth-child(4):hover { text-shadow: 0 0 10px #FF0000; color: #fb923c; }
.nav-links a:nth-child(5):hover { text-shadow: 0 0 10px #FF0000; color: #f472b6; }


/* Effet de survol sur le menu */
.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.8);
}
/* Petite barre lumineuse sous le lien survolé */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #f472b6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px #2dd4bf;
}
.navbar .nav-links a:hover::after {
    width: 80%;
}

/* Scroll fluide pour ne pas "sauter" brutalement d'une classe à l'autre */
html {
    scroll-behavior: smooth;
}

.derniere_video {
    display: block;
    text-align: center;
    color: black;
    top: 10px;
    left: 10px;
    width: 80%;
    max-width: 35em;
    padding: 0px 0px 0px 0px;
    text-decoration: none;
    margin:auto;
}
.derniere_video .titre_video{
    padding-top: 5px;
    font-size: 0.9em;
    text-transform: uppercase;
    position: relative;
    top: 1px;
    color: white;
    background-color: rgba(1, 20, 45, 1);
    border: solid 1px #3b82f6;
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 40%;
    margin: auto;
}
.derniere_video .cadre{
    background-color: rgba(1, 20, 45, 1);
    padding-bottom: 0px;
    padding-right: 20px;
    border-radius: 20px;
    border: solid 1px #3b82f6;
}

.derniere_video img{
    border-radius: 20px;
    border: 10px solid rgba(1, 20, 45, 1);
    width: 100%;
}

/* --- STRUCTURE --- */
.sommaire {
    max-width: 950px;
    margin: 0 auto;
    padding: 10px 10px 10px 10px;
}


h1{
    margin: auto;
    text-align: center;
}
h1 img{
    max-width: 200px;
    width: 100%;
}

/* --- TITRES H2 : STYLE PORTAIL GALACTIQUE --- */
.sommaire h2 { 
    font-size: 1.5rem; 
    margin: 40px auto 0px auto; 
    font-weight: 900; 
    text-transform: uppercase;
    letter-spacing: 6px;
    text-align: center;
    padding: 10px 30px;
    position: relative;
    display: block;
    width: fit-content; /* S'adapte à la longueur du titre */
    min-width: 300px;    
    /* Le texte reste blanc pur pour percer le fond coloré */
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    /* LE FOND COLORÉ : Effet nébuleuse étirée */
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--title-glow-bg) 50%, 
        transparent 100%);   
    /* Bordures laser fines en haut et en bas */
    border-top: 1px solid var(--title-color);
    border-bottom: 1px solid var(--title-color);  
    /* Animation de pulsation lumineuse */
    animation: portal-pulse 4s ease-in-out infinite;
}
/* Lueur diffuse derrière le titre pour l'effet de profondeur */
.sommaire h2::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 100%;
    background: var(--title-color);
    filter: blur(40px);
    opacity: 0.15;
    z-index: -1;
}
@keyframes portal-pulse {
    0%, 100% { filter: brightness(1); opacity: 0.9; }
    50% { filter: brightness(1.3); opacity: 1; }
}

/* --- VARIABLES DE COULEURS MISES À JOUR --- */
/* --- 1. 4ÈME : Nébuleuse d'Hélium (Bleu Électrique) --- */
.sommaire .college-4eme { 
    --title-color: #3b82f6; 
    --title-glow-bg: rgba(59, 130, 246, 0.2); 
    --aura-1: rgba(59, 130, 246, 0.7); 
    --aura-2: rgba(37, 99, 235, 0.4);
} 

/* --- 2. 3ÈME : Nébuleuse de Glace (Cyan / Émeraude) --- */
.sommaire .college-3eme { 
    --title-color: #2dd4bf; 
    --title-glow-bg: rgba(45, 212, 191, 0.2); 
    --aura-1: rgba(45, 212, 191, 0.7); 
    --aura-2: rgba(20, 184, 166, 0.4);
} 

/* --- 3. 2NDE : Vide Interstellaire (Violet / Ultraviolet) --- */
.sommaire .lycee-2nde { 
    --title-color: #a78bfa; 
    --title-glow-bg: rgba(167, 139, 250, 0.2); 
    --aura-1: rgba(167, 139, 250, 0.7); 
    --aura-2: rgba(139, 92, 246, 0.4);
} 

/* --- 4. 1ÈRE : Poussière Stellaire (Orange / Ambre) --- */
.sommaire .lycee-1ere { 
    --title-color: #fb923c; 
    --title-glow-bg: rgba(251, 146, 60, 0.15); 
    --aura-1: rgba(251, 146, 60, 0.7); 
    --aura-2: rgba(234, 88, 12, 0.4);
}

/* --- 5. TERMINALE : Cœur de Supernova (Rose / Magenta) --- */
.sommaire .lycee-term { 
    --title-color: #f472b6; 
    --title-glow-bg: rgba(244, 114, 182, 0.2); 
    --aura-1: rgba(244, 114, 182, 0.7); 
    --aura-2: rgba(219, 39, 119, 0.4);
}

.sommaire h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px; /* Espacement galactique */
    margin-top: 30px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    
    /* Lueur subtile pour le texte h3 */
    text-shadow: 0 0 10px var(--title-glow);
    opacity: 0.9;
}

/* Petit trait décoratif sous le h3 */
.sommaire h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%; /* Petit trait élégant */
    height: 1px;
    background: var(--title-color);
    box-shadow: 0 0 8px var(--title-glow);
    transition: width 0.4s ease;
}

.sommaire .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* --- L'EFFET AURORE AVEC ZOOM --- */
.sommaire ul {
    list-style: none;
    padding: 0;
}
.sommaire li{
    border-radius: 10px;
}

.sommaire .college-4eme li{
    background: rgba(59, 130, 246, 0.2);
}
.sommaire .college-3eme li{
    background: rgba(45, 212, 191, 0.2);
}
.sommaire .lycee-2nde li{
    background: rgba(167, 139, 250, 0.2);
}
.sommaire .lycee-1ere li{
    background: rgba(251, 146, 60, 0.15);
}
.sommaire .lycee-term li{
    background: rgba(244, 114, 182, 0.2);
}
.sommaire li a{
    display: block;
    padding: 16px 20px;
    margin: 12px 0;
    font-size: 1.05rem;
    color: #cbd5e1;
    border-radius: 12px;
    /* Transition douce pour le zoom et les couleurs */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                background 0.5s ease, 
                border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    
    z-index: 1; /* Pour que le zoom passe par-dessus les autres lignes */
}
.sommaire li a:hover {
    color: #fff;
    /* SUPPRESSION DU DÉCALAGE - AJOUT DU ZOOM */
    transform: scale(1.04); 
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 10;  
    /* CONFIGURATION AURORE VERT/ROSE */
    --aura-green: rgba(45, 212, 191, 0.7); 
    --aura-pink: rgba(244, 114, 182, 0.6);  
    --aura-deep: rgba(15, 23, 42, 0.9);

    background: 
        linear-gradient(110deg, var(--aura-green) 5%, transparent 45%),
        linear-gradient(230deg, var(--aura-pink) 10%, transparent 50%),
        linear-gradient(315deg, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
        var(--aura-deep);
        
    background-blend-mode: color-dodge; 
    background-size: 200% 200%;
    animation: aurora-move 5s ease infinite;
    
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7),
                0 0 20px -5px var(--aura-green);
}
@keyframes aurora-move {
    0% { background-position: 0% 50%; filter: brightness(1); }
    50% { background-position: 100% 50%; filter: brightness(1.2); }
    100% { background-position: 0% 50%; filter: brightness(1); }
}


.sommaire li a strong {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* L'indicateur latéral devient une lueur de bordure */
.sommaire li a::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
    background: linear-gradient(to bottom, #2dd4bf, #f472b6);
    opacity: 0;
    transition: 0.3s;
}
.sommaire li a:hover::before {
    opacity: 1;
}
.sommaire .category a{
    /* 1. On enlève le soulignement */
    text-decoration: none;
    /* 2. On impose la couleur blanche (ou une variable) */
    color: rgba(255, 255, 255, 0.7);
    /* 3. On lisse la transition pour le survol */
    transition: all 0.3s ease;  
    /* 4. On évite le contour moche au clic sur certains navigateurs */
    outline: none;
}


/* les pages */
/* --- CONTENEUR DE LA NAVIGATION --- */

.nav-container {
    margin: 30px auto;
    width: fit-content;
}

.nav-links {
    display: flex;
    gap: 20px; /* Espace entre les boutons */
    list-style: none;
    padding: 0;
}

/* --- STYLE DES LIENS (BOUTONS) --- */
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    
    /* On enlève le style par défaut des liens */
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.95rem;
    
    /* Effets visuels */
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Éviter le violet moche après le clic */
.nav-item:visited {
    color: #e2e8f0;
}

/* --- EFFET AU SURVOL (HOVER) --- */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--title-color); /* Utilise ta couleur bleue de 4ème */
    transform: translateY(-3px); /* Petit saut vers le haut */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(45, 212, 191, 0.2); /* Glow discret */
    color: #fff;
}

/* Style pour l'icône */
.icon {
    font-size: 1.1rem;
}
/* --- ORGANISATION DES BLOCS --- */
.content-block {
    margin-bottom: 5px; /* Grand espace entre Vidéos, Cours et Exercices */
    padding: 10px;
    animation: fadeIn 1s ease-out;
}

/* Titres de sections avec une petite aurore en dessous */
.content-block h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Grille pour les vidéos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    justify-content: center;
    gap: 20px;
}

.video-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.video-card p{
    margin: 0;
}

.div_video img{
    width: 100%;
    border-radius: 20px;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
}




/*-------------------------------------design chapitre-------------------------------------------------------------------*/

.chapitre h2{
    display: block;
    padding: 16px 20px;
    width: 90%;
    margin: auto;

    text-align: center;
    font-size: 2rem;
    color: #fff;
    /* SUPPRESSION DU DÉCALAGE - AJOUT DU ZOOM */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    z-index: 10;  
    /* CONFIGURATION AURORE VERT/ROSE */
    --aura-green: rgba(45, 212, 191, 0.7); 
    --aura-pink: rgba(244, 114, 182, 0.6);  
    --aura-deep: rgba(15, 23, 42, 0.9);
    background: 
        linear-gradient(110deg, var(--aura-green) 5%, transparent 45%),
        linear-gradient(230deg, var(--aura-pink) 10%, transparent 50%),
        linear-gradient(315deg, rgba(20, 184, 166, 0.3) 0%, transparent 60%),
        var(--aura-deep);       
    background-blend-mode: color-dodge; 
    background-size: 200% 200%;
    animation: aurora-move 5s ease infinite;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7),
                0 0 20px -5px var(--aura-green);
}

.chapitre h3 {
  position: relative;
  margin: 0 0 25px 0;
  padding: 15px 0;
  color: #ffffff;
  font-family: 'Orbitron', 'Segoe UI', sans-serif; /* Police typée futuriste */
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;

  /* Double lueur : une couleur de base et une lueur blanche au centre */
  text-shadow: 
    0 0 10px #7800ff, 
    0 0 20px #7800ff, 
    0 0 40px #00f2ff,
    0 0 5px rgba(255, 255, 255, 0.8);

  /* Soulignement en dégradé qui s'évapore sur les côtés */
  background: linear-gradient(to right, transparent, #00f2ff, #7800ff, #00f2ff, transparent);
  background-size: 200% 2px;
  background-repeat: no-repeat;
  background-position: bottom center;
  
  /* Animation subtile de la lueur */
  animation: titlePulse 3s ease-in-out infinite alternate;
}
/* Animation qui fait "battre" la lumière du titre */
@keyframes titlePulse {
  from {
    filter: brightness(1) drop-shadow(0 0 5px rgba(120, 0, 255, 0.5));
  }
  to {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(0, 242, 255, 0.8));
  }
}

.mpoint_math {
  position: relative;
  margin: 20px auto;
  padding: 15px 15px 15px 15px;
  max-width: 600px;
  border-radius: 20px;
  color: #ffffff;
  border: 1px solid #00f2ff;
  background-color: #050510;

  /* On définit des gradients radiaux circulaires */
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(70, 0, 255, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 50% 10%, rgba(150, 0, 255, 0.25) 0%, transparent 60%);
  /* Taille augmentée pour permettre le mouvement */
  background-size: 200% 200%;
  
  /* Animation linéaire continue (sans alternate) */
  animation: nebulaRotate 15s linear infinite;

  box-shadow: 0 0 5px #00f2ff;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
/* L'animation en boucle circulaire */
@keyframes nebulaRotate {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%; /* Retour exact au départ pour la fluidité */
  }
}

.mpoint_math h4 {
  position: relative;
  margin: 0 0 20px 0;
  padding: 10px 20px;
  color: #ffffff;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px; 
  /* On crée la barre latérale avec un dégradé lumineux */
  border-left: 5px solid #00f2ff;
  border-top-left-radius: 20px;
  background: linear-gradient(90deg, rgba(0, 242, 255, 0.15) 0%, transparent 100%); 
  /* Lueur néon intense sur le texte */
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.8),
               0 0 20px rgba(0, 242, 255, 0.4);
               
  /* Animation de balayage lumineux */
  overflow: hidden;
}
/* Le petit éclat qui passe sur le titre */
.mpoint_math h4::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transform: skewX(-25deg);
  animation: shineTitle 30s infinite;
}
@keyframes shineTitle {
  0% { left: -100%; }
  5% { left: 100%; }
  100% { left: 100%; }
}
.mpoint_math h5 {
    font-size: 0.95rem;         /* Volontairement un peu plus petit */
    color: #7f8c8d;             /* Une couleur grise élégante */
    font-weight: 700;           /* Plus gras pour compenser la taille */
    text-transform: uppercase;  /* Transforme le texte en majuscules */
    letter-spacing: 1.2px;      /* Ajoute de l'espace entre les lettres */
    margin-top: 25px;
    margin-bottom: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mpoint_math p {
  position: relative;
  z-index: 2;
  margin: 15px 0;
  font-size: 1.15rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.mpoint_math strong {
  color: #00f2ff;
  text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
.mpoint_math .formuleEncadre {
   /* Crée un dégradé qui ne prend que la moitié inférieure ou toute la hauteur */
    padding: 2px 10px 2px 10px;
    border-radius: 10px;
    font-weight: 500;
    width:fit-content;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    border: solid 5px rgba(255,0,0,0.4);
    background-color: rgba(50,0,0,0.2);
}
.mpoint_math .formuleEncadre ul{
    padding: 0 10px 0 25px;
}

.mpoint_math ul li {
    padding: 4px;
    font-size: 1.15rem;
}

.exemple{
    margin: 5px 0;
    padding: 5px 5px 5px 5px;
    color: rgba(220, 220, 255, 0.8);
    /* Bordure gauche lumineuse pour attirer l'oeil */
    border-left: 4px solid rgba(99, 102, 241, 1); /* Un bleu-violet spatial */
    
    /* Fond dégradé très subtil */
    background: linear-gradient(
        to right, 
        rgba(99, 102, 241, 0.05), 
        rgba(255, 255, 255, 0.01)
    );
    
    border-radius: 20px 12px 12px 20px;
    transition: all 0.3s ease;
}
.exemple .mot_exemple{
    cursor: pointer;
    padding: 10px;
    outline: none;
    list-style: none;
    font-weight: bold;
    color: rgba(99, 102, 241, 1);
    margin-bottom: 7px;
}
.exemple .mot_exemple::before{
    content: "▶";
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s;
}
/* Rotation de la flèche quand c'est ouvert */
.exemple[open] .mot_exemple::before {
    transform: rotate(90deg);
}
.exemple[open]{
    background: linear-gradient(
        to right, 
        rgba(99, 102, 241, 0.2), 
        rgba(255, 255, 255, 0.04)
    );
    animation: slideDown 1s ease-out;
}
.exemple svg text{
    fill: rgba(220, 220, 255, 0.8);
    font-size: 0.8em;
}
.exemple svg polygon{
    stroke: rgba(220, 220, 255, 0.8);
    fill: rgba(0,0,0,0.2);
    stroke-width: 2.5;
    stroke-linejoin: round;
}
.exemple svg line{
    stroke: rgba(220, 220, 255, 0.8);
    stroke-width: 2.5;
    stroke-linejoin: round;
}
.exemple svg path{
    stroke: rgba(220, 220, 255, 0.8);
    stroke-width: 2.5;
    stroke-linejoin: round;
    fill: none;
}
svg .pointille{

    stroke-dasharray: 5 4;
}
.exemple h5{
    color: rgba(99, 102, 241, 1);
}
.exemple .enonce{
    width: 50%;
}
.tableauValeurs{
    border-collapse: collapse;
    width: auto;
    margin: auto;
}
.tableauValeurs th, .tableauValeurs td {
    border: 1px solid #ddd;
    background-color: rgba(0,0,0,0.2);
    padding: 12px;
    text-align: center;
}


        
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}
.remarque {
    position: relative;
    padding: 15px 20px;
    margin: 20px 0;
    
    /* Design Bulle de Verre */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    
    color: #f1f5f9;
    line-height: 1.6;
    text-align: justify; /* Optionnel : pour un look plus propre */
}

/* Le Badge : on utilise vertical-align pour l'aligner avec le texte */
.remarque-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    width: 25px;
    height: 25px;
    background: #ffcc00;
    color: #000;
    border-radius: 50%;
    
    font-weight: 900;
    font-size: 14px;
    margin-right: 8px; /* Espace avec le mot Remarque */
    
    /* L'astuce pour l'alignement sur la ligne */
    vertical-align: middle; 
    position: relative;
    top: -5px; /* Ajustement micrométrique selon ta police */
    
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

/* Le mot Remarque: */
.remarque .mot_remarque{
    color: #ffcc00;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.coteACote-block{
            display: flex;
            flex-wrap: wrap;
            align-items: center; /* Centre verticalement la figure et le texte */
            background: var(--bg-color);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            padding: 5px 5px 5px 5px;
            gap: 2px; /* Espace entre la figure et le texte */
}

/*dessin géométrique côte à côte:*/
.dessin-container{
    position: relative;
    width: 250px;
    height: 200px;
    margin: auto;
    flex-shrink: 0; /* Empêche la figure de rétrécir */
}
    /*côté gauche*/
    .figure-svg{
        width: 100%;
        height: 100%;
    }
    .figure-svg polygon{
        stroke: white;
        fill: rgba(0,0,0,0.2);
        stroke-width: 2.5;
        stroke-linejoin: round;
    }
    .figure-svg line{
        stroke-width: 2.5;
        stroke: white;
        stroke-linecap:round;
    }
    .label-svg{
      position: absolute;
      font-size: 1.1rem;
    }
    /*côté droit*/
    .formule-block {
        flex-grow: 1;
    }
    .formule-block p{
        padding: 5px 5px 5px 5px;
        text-align: center;
        margin: auto;
    }
    .formule-block ul{
        list-style-type: none ;
    }
    .formule-block li{
        padding: 5px 5px 5px 5px;
        text-align: center;
        margin: 10px;
    }
    .encadre{
        border: solid 1px red;
    }
 

/*-----Conteneur exercices----------------------*/
.exercices-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Animation d'apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.exercices-container table{
    width: 100%;
    border-collapse: collapse;
    border: none;
    width: auto;
    margin: auto;
    text-align: center;
    margin-top: 20px;
}
.exercices-container table td{
    padding: 5px 20px 0px 0px;
}
.score-galaxy {
  margin-top: 20px;
  padding: 12px 18px;

  font-size: 18px;
  font-weight: bold;
  color: white;
  text-align: center;

  border-radius: 12px;

  /* même esprit que le bouton */
  background: linear-gradient(135deg, #6a11cb, #2575fc, #00c6ff);

  box-shadow: 0 0 10px rgba(106, 17, 203, 0.6),
              0 0 20px rgba(37, 117, 252, 0.4);

  position: relative;
  overflow: hidden;
}

/* effet shine */
.score-galaxy::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.3);
  transform: rotate(25deg);
  transition: all 0.6s;
}

.score-galaxy:hover::before {
  left: 120%;
}

.calcul {
  font-size: 18px;
  font-weight: 500;
  width: 100px;        /* aligne toutes les opérations */
  display: inline-block;
  margin: 0;
  padding: 0;
}
.inputFraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: middle;
    width: 30px; /* Ajustez la largeur selon vos besoins */
}

.inputFraction input {
    width: 90%;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1.2rem;
    margin: 2px 0 2px 0;
    background: white;
    border-radius: 4px;
}

/* On ajoute une bordure au focus pour que l'élève sache où il écrit */
.inputFraction input:focus {
    border-radius: 4px;
}

.inputFraction .barre {
    width: 60%;
    height: 2px; /* Épaisseur du trait, comme votre genfrac ! */
    background-color: white;
    margin: 2px 0;
}

/* Optionnel : cacher les flèches si vous utilisez type="number" */
.inputFraction input::-webkit-inner-spin-button,
.inputFraction input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.reponse {
  transition: all 0.9s ease;
  width: 30px;
  height: 30px;
  font-size: 20px;
  border-radius: 6px;
  -moz-appearance: textfield;
}

/* effet au focus */
.reponse:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* enlever les flèches */
.reponse::-webkit-inner-spin-button,
.reponse::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.correction {
  margin: 5px  5px 5px 5px;
  min-width: 100px;
  font-weight: bold;
  color: red;
}

.reponse.correct {
  border-color: #4CAF50;
  background-color: #e8f5e9;
}

.reponse.faux {
  border-color: #f44336;
  background-color: #ffebee;
}
.separator {
  height: 2px;
  width:50%;
  margin: auto;

  /* dégradé galaxie */
  background: linear-gradient(90deg, transparent, #6a11cb, #2575fc, #00c6ff, transparent);

  border-radius: 2px;

  /* petit glow */
  box-shadow: 0 0 8px rgba(37, 117, 252, 0.4);
}
#score {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
}
.btn-galaxy {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;

  /* Dégradé galaxie */
  background: linear-gradient(135deg, #6a11cb, #2575fc, #00c6ff);

  /* effet lumineux */
  box-shadow: 0 0 10px rgba(106, 17, 203, 0.6),
              0 0 20px rgba(37, 117, 252, 0.4);

  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* effet hover */
.btn-galaxy:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(106, 17, 203, 0.8),
              0 0 30px rgba(0, 198, 255, 0.6);
}

/* effet clic */
.btn-galaxy:active {
  transform: scale(0.98);
}

/* petit effet “shine” animé */
.btn-galaxy::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.3);
  transform: rotate(25deg);
  transition: all 0.6s;
}

.btn-galaxy:hover::before {
  left: 120%;
}

footer{
    font-size: 1em;
    width: 90%;
    margin:auto;
}
#mention{
    text-align:right;
    font-style: italic;
    font-size: 0.8em;
}

.abonnement{
    text-decoration: none;
    border: red solid 1px;
    color: red;
    background-color: white;
    border-radius: 5px;
    box-shadow: 1px 1px 1px rgba(255,255,255,0.5) ;
}
.abonnement:hover{
    font-size: 1.1em;
    box-shadow: 3px 3px 3px rgba(255,255,255,0.5) ;
}