/* Importer Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Pacifico&display=swap');

/* Style général */
body {
    background: linear-gradient(to bottom right, #e0f7fa, #ffffff);
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Titres */
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00acc1; /* Bleu-vert principal */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #BA68C8; /* Mauve pastel pour titres secondaires */
}

/* Paragraphes */
p {
    font-size: 1.1em;
    margin: 10px 0;
}

/* Liens */
a {
    text-decoration: none;
    color: #00acc1;
}

a:hover {
    text-decoration: underline;
}

/* Audio players */
audio {
    margin: 10px 0 20px 0;
}

/* Formulaires */
form {
    margin-top: 20px;
}

/* Champs de saisie */
input[type="text"],
input[type="number"] {
    padding: 12px;
    width: 220px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 5px;
    background-color: #f7f9fc;
    transition: all 0.3s ease;
}

/* Animation sur focus des champs */
input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #BA68C8;
    background-color: #ffffff;
    box-shadow: 0 0 8px #BA68C8;
    outline: none;
}

/* Boutons */
button {
    padding: 15px 35px;
    font-size: 1.2em;
    color: white;
    background-color: #00acc1; /* Bleu-vert normal */
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Animation bouton hover */
button:hover {
    background-color: #BA68C8; /* Mauve pastel au survol */
    transform: scale(1.05);
}

/* Sections */
section {
    background-color: #ffffff;
    padding: 25px;
    margin: 20px auto;
    border-radius: 15px;
    max-width: 750px;
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}

/* Résultats de correction */
#result, #presentationResult, #presentationResult3, #presentationResult4 {
    margin-top: 20px;
    font-weight: bold;
    color: #00796b;
}

/* Style du titre principal */
.main-title {
  background-color: #ffffff;
  background-image: linear-gradient(to bottom, #ffffff 0%, #dff3f9 100%);
    border: 3px solid #00acc1;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 8px 12px rgba(0,0,0,0.1);
}

.main-title h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.8em;
    color: #00acc1;
    margin-bottom: 10px;
}

.main-title p {
    font-size: 1.2em;
    color: #666;
    margin-top: 0;
}

/* Style de la consigne */
.start-consigne {
    font-size: 1.5em;
    color: #BA68C8; /* Mauve pastel */
    font-weight: bold;
    margin: 30px auto;
}

/* Animation d'apparition du titre principal */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.main-title {
    animation: fadeInZoom 1s ease-out;
}

@import url('https://fonts.googleapis.com/css2?family=Bangers&display=swap');



.transcript-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 1.1em;
  line-height: 1.5;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  max-width: 700px;
  margin: 0 auto;
}

.conjugation-box {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1em;
  line-height: 1.6;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.conjugation-box h3 {
  text-align: center;
  margin-bottom: 10px;
}

.conjugation-box ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.conjugation-box li {
  margin: 6px 0;
}

.conjugation-box.positive {
  background-color: #e0f7fa;
  border: 1px solid #81d4fa;
}

.conjugation-box.negative {
  background-color: #ffebee;
  border: 1px solid #ef9a9a;
}

/* Masquage initial des phases 2 et 3 */



/* Grille à deux colonnes */
.grid-2 {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.grid-2 .column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bouton final unité 22 centré et agrandi */
.final-unit {
  margin-top: 40px;
  text-align: center;
}




/* Classe utilitaire pour masquer un élément */
.hidden {
  display: none !important;
}


/* Nouveaux styles pour les titres de phases */
.phase1, .phase2, .phase3 {
  font-family: 'Rubik', sans-serif;
  padding: 14px 30px;
  border-radius: 15px;
  font-size: 2em;
  margin: 40px auto 20px;
  width: min(900px, 92%);
  box-sizing: border-box;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.phase1 {
  background: linear-gradient(to right, #BBDEFB, #E3F2FD);
  color: #0D47A1;
  border: 2px solid #64B5F6;
}

.phase2 {
  background: linear-gradient(to right, #C8E6C9, #E8F5E9);
  color: #2E7D32;
  border: 2px solid #81C784;
}

.phase3 {
  background: linear-gradient(to right, #E1BEE7, #F3E5F5);
  color: #6A1B9A;
  border: 2px solid #BA68C8;
}


/* Boutons spécifiques à chaque phase */
#menu1 button {
  background-color: #00acc1; /* Bleu phase 1 (inchangé) */
}

#menu1 button:hover {
  background-color: #BA68C8;
}

/* Phase 2 - Vert */
#menu2 button {
  background-color: #4CAF50; /* Vert moyen */
}

#menu2 button:hover {
  background-color: #66BB6A;
}

/* Phase 3 - Violet */
#menu3 button {
  background-color: #AB47BC; /* Violet soutenu */
}

#menu3 button:hover {
  background-color: #CE93D8;
}


/* Boutons "Afficher / Masquer les unités" alignés sur la couleur de chaque phase */


.final-button {
  background-color: #FFA726;
  border: 2px solid #FFD54F;
  color: white;
  font-size: 1.5em;
  padding: 20px 50px;
  border-radius: 15px;
  letter-spacing: 1px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.final-button:hover {
  background-color: #FB8C00;
  box-shadow: 0 0 15px #FFB74D;
  transform: scale(1.08);
}

/* Grille à trois colonnes */
.grid-3 {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.grid-3 .column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bloc visuel pour les mini-leçons */
.lesson-box {
  background-color: #fffde7;
  border: 1px solid #81d4fa;
  padding: 25px;
  margin: 30px auto;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.6;
}

.transcript-grid.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 30px;
  font-size: 1.1em;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.audio-box {
  background-color: #f3e5f5;
  border: 1px solid #ce93d8;
  padding: 25px;
  margin: 30px auto;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  max-width: 800px;
}

.exercise-box {
  background-color: #e8f5e9;
  border: 1px solid #a5d6a7;
  padding: 25px;
  margin: 30px auto;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  max-width: 900px;
}

/* Boutons Afficher / Masquer alignés sur la couleur de chaque phase */

/* Phase 1 – Bleu */
h2.phase1 + button {
  background-color: #64B5F6;
  color: #0D47A1;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

h2.phase1 + button:hover {
  background-color: #42A5F5;
}

/* Phase 2 – Vert */
h2.phase2 + button {
  background-color: #81C784;
  color: #1B5E20;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

h2.phase2 + button:hover {
  background-color: #66BB6A;
}

/* Phase 3 – Violet */
h2.phase3 + button {
  background-color: #BA68C8;
  color: #4A148C;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

h2.phase3 + button:hover {
  background-color: #AB47BC;
}


.reset-button {
  padding: 10px 20px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  margin-top: 10px;
}

.reset-button:hover {
  background-color: #1565c0;
}

.unit-button {
  width: 280px;
  height: 86px;              /* hauteur fixe : tous les boutons ont la même taille */
  padding: 12px 18px;
  font-size: 1.1em;
  line-height: 1.25;
  color: white;
  background-color: #00acc1;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  overflow: hidden;

  /* centrage vertical/horizontal du texte */
  display: flex;
  align-items: center;
  justify-content: center;
}


.unit-button:hover {
  background-color: #BA68C8;
}

/* Harmonisation largeur boutons de validation intermédiaire */
.special-validation-button {
  width: min(900px, 92%);
  box-sizing: border-box;
  white-space: normal;          /* autorise le retour à la ligne */
  text-align: center;
  font-size: 1.1em;             /* ↓ légèrement réduit */
  line-height: 1.3;
  padding: 18px 24px;           /* un peu plus de respiration */
}

/* Mobile */
@media (max-width: 600px) {
  .special-validation-button {
    font-size: 1em;
    padding: 16px 18px;
  }
}


/* === Alignement des 2 boutons de validation intermédiaire sur la largeur des phases === */
.special-units .final-button{
  display: inline-block;   /* au lieu de block */
  width: auto;             /* largeur naturelle du texte */
  max-width: none;         /* on enlève la limite */
  box-sizing: border-box;
  margin: 0 auto;

  white-space: nowrap;     /* une seule ligne */
  text-align: center;

  font-size: 1.15em;
  line-height: 1.25;
  padding: 16px 28px;
}

@media (max-width: 600px){
  .special-units .final-button{
    white-space: normal;    /* mobile : on autorise le retour à la ligne */
  }
}


/* === Boutons "Réinitialisation de la phase" : couleurs cohérentes avec chaque phase === */
.reset-button.phase1-reset { background-color: #64B5F6; color: #0D47A1; }
.reset-button.phase1-reset:hover { background-color: #42A5F5; }

.reset-button.phase2-reset { background-color: #81C784; color: #1B5E20; }
.reset-button.phase2-reset:hover { background-color: #66BB6A; }

.reset-button.phase3-reset { background-color: #BA68C8; color: #4A148C; }
.reset-button.phase3-reset:hover { background-color: #AB47BC; }



/* === Phase boxes (A1 → A2) : encadrer TOUTE la phase (titre + toggle + unités + reset) === */
.phase-box{
  width: min(900px, 92%);
  margin: 35px auto;
  /* Padding réduit pour préserver l'agencement en 3 colonnes */
  padding: 20px 12px 24px;
  border-radius: 22px;
  box-sizing: border-box;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Fonds légers par phase */
.phase1-box{
  background: linear-gradient(to bottom, rgba(227,242,253,0.95), rgba(255,255,255,0.98));
  border: 2px solid rgba(100,181,246,0.65);
}
.phase2-box{
  background: linear-gradient(to bottom, rgba(232,245,233,0.95), rgba(255,255,255,0.98));
  border: 2px solid rgba(129,199,132,0.65);
}
.phase3-box{
  background: linear-gradient(to bottom, rgba(243,229,245,0.95), rgba(255,255,255,0.98));
  border: 2px solid rgba(186,104,200,0.65);
}

/* Ajustements internes (sans casser la grille 3 colonnes) */
.phase-box > h2{
  margin-top: 0;
}
.phase-box > button{
  margin-top: 12px;
  margin-bottom: 18px;
}

/* IMPORTANT : le wrapper .phase-box réduit légèrement la largeur utile.
   On ajuste localement la grille et la largeur des boutons d'unités pour conserver 3 colonnes sur desktop. */
.phase-box .grid-3{
  gap: 22px;
}

.phase-box .unit-button{
  width: 260px;
}


/* === Bloc "Ton avis compte" (fin de page) === */
.block-purple{
  width: min(900px, 92%);
  margin: 35px auto 50px;
  padding: 26px 22px;
  border-radius: 18px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #f3e5f5 0%, #ede7f6 100%);
  border: 2px solid #BA68C8;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.block-purple h2{
  color: #6A1B9A;
}
.block-purple p{
  margin: 10px 0 0;
}


/* === Cadre du coaching : bouton Masquer/Afficher (accueil) === */
.coaching-toggle-btn{
  background-color: #0077b6;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  padding: 10px 18px;
  font-size: 1.05em;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.18);
}

.coaching-toggle-btn:hover{
  background-color: #005f8f;
  transform: scale(1.03);
}

/* Quand le cadre est replié : on réduit le padding même si le padding est en inline */
.coaching-rules.collapsed{
  padding: 12px !important;
}

/* Bouton inline pour ré-afficher le cadre du coaching (quand il est masqué)
   Placé dans le flux de la page (entre le titre principal et le bloc "Ton plan de progression"). */
.coaching-show-floating{
  position: static;
  display: block;
  width: fit-content;
  max-width: 95%;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 2px solid #0077b6;
  border-radius: 999px;
  background-color: #e3f2fd;
  color: #01579b;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.coaching-show-floating:hover{
  transform: translateY(-1px);
}


/* =========================================================
   FINAL EXAM (A2) — polishing: stronger "exam" feel + link to banner
   Added: 2026-01-21
   ========================================================= */

/* Banner "Niveau A2 validé" : on garde l'inline display:none, mais on renforce le look via classe */
.a2-banner{
  width: min(900px, 92%);
  margin: 15px auto 5px auto;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
  border: 3px solid #2e7d32;
  color: #1b5e20;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 22px rgba(46,125,50,0.18);
}

/* Bloc "Final exam" pour les 2 validations finales : même identité visuelle que le bandeau */
.final-exam{
  width: min(900px, 92%);
  margin: 18px auto 0;
  padding: 22px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232,245,233,0.95) 0%, rgba(255,255,255,0.98) 70%);
  border: 2px solid rgba(46,125,50,0.55);
  box-shadow: 0 10px 22px rgba(46,125,50,0.12);
  position: relative;
  box-sizing: border-box;
}

/* Petit badge "FINAL EXAM" */
.final-exam::before{
  content: "FINAL EXAM";
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #2e7d32;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9em;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 14px rgba(46,125,50,0.25);
}

/* Titre bloc */
.final-exam h2{
  margin: 6px 0 10px;
  color: #1b5e20;
  font-size: 1.7em;
}

/* Sous-texte */
.final-exam p{
  margin: 0 0 14px;
  opacity: 0.92;
}

/* Harmonisation largeur des 2 boutons de validation finale A2 */
.final-exam .final-button{
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  display: block;
  margin: 10px auto;
  white-space: normal;
  text-align: center;

  /* Look "examen" (plus solennel) */
  background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 10px 18px rgba(46,125,50,0.22);
  transform: translateZ(0);
}

/* Hover */
.final-exam .final-button:hover{
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
  box-shadow: 0 0 18px rgba(46,125,50,0.35);
  transform: scale(1.04);
}

/* Check à côté des boutons finaux : mieux visible */
.final-exam .check{
  font-size: 1.35em;
  margin-left: 8px;
}

/* Mobile */
@media (max-width: 600px){
  .final-exam{
    padding: 20px 14px 16px;
  }
  .final-exam::before{
    left: 12px;
  }
  .final-exam h2{
    font-size: 1.45em;
  }
  .final-exam .final-button{
    font-size: 1.15em;
    padding: 16px 18px;
  }
}


/* === POLISH (Index) : harmonisation largeur cadres "Franglais" + "Final exam" === */
/* Le CSS global impose max-width: 750px à tous les <section>. On surcharge ici. */
.block-franglais-home{
  width: min(900px, 92%);
  max-width: 900px;
  box-sizing: border-box;
}

.final-exam{
  max-width: 900px; /* aligne visuellement avec les autres cadres principaux */
  box-sizing: border-box;
}

/* =========================================================
   FRANGLAIS — Unité spéciale (OPTION 2 : outil fondamental)
   Scoped to .franglais-page to avoid side effects
   ========================================================= */

/* Alignement du bloc Franglais avec le titre principal */
.franglais-page .block-franglais{
  position: relative;
  max-width: 800px;   /* EXACTEMENT comme .main-title */
  width: 100%;
  margin: 30px auto;
  padding: 30px 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FDE4EC 0%, #FFFFFF 70%);
  border: 3px solid #F48FB1;
  box-shadow: 0 12px 26px rgba(244,143,177,0.28);
  box-sizing: border-box;
}


/* Badge "OUTIL FONDAMENTAL" */
.franglais-page .block-franglais::before{
  content: "OUTIL FONDAMENTAL";
  position: absolute;
  top: -14px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #AD1457;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85em;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 14px rgba(173,20,87,0.35);
}

/* Titres dans le bloc Franglais */
.franglais-page .block-franglais h2{
  color: #AD1457;
}

.franglais-page .block-franglais h3{
  color: #C2185B;
}

/* === ALIGNEMENT VISUEL TITRE / FRANGLAIS === */
.main-title{
  box-sizing: border-box;
}

/* === FRANGLAIS : améliorer la lisibilité (alignement à gauche parties 2, 3, 4) === */

.franglais-page .block-franglais ul,
.franglais-page .block-franglais p {
  text-align: left;
}

/* On garde les titres centrés */
.franglais-page .block-franglais h2,
.franglais-page .block-franglais h3 {
  text-align: center;
}


/* === FRANGLAIS : sous-encadrés (parties 2, 3, 4) pour alléger la lecture === */
.franglais-page .franglais-subbox{
  margin: 22px auto;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fffafc; /* blanc rosé très léger */
  border: 2px solid rgba(244, 143, 177, 0.65);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  box-sizing: border-box;
  text-align: left;
}

/* Titre dans les sous-encadrés */
.franglais-page .franglais-subbox h3{
  margin: 0 0 10px 0;
  text-align: center;
  color: #AD1457;
}

/* Listes : respiration */
.franglais-page .franglais-subbox ul{
  margin: 0;
  padding-left: 20px;
}

.franglais-page .franglais-subbox li{
  margin: 0 0 10px 0;
  line-height: 1.55;
}

/* =========================================================
   FRANGLAIS — badges numérotés discrets (1 → 5)
   ========================================================= */

/* Initialisation du compteur */
.franglais-page .block-franglais{
  counter-reset: franglais-step;
}

/* Chaque sous-encadré incrémente le compteur */
.franglais-page .franglais-subbox{
  position: relative;
  counter-increment: franglais-step;
}

/* Badge numéroté */
.franglais-page .franglais-subbox::before{
  content: counter(franglais-step);
  position: absolute;
  top: -12px;
  left: -12px;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: #AD1457;
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 1em;
  box-shadow: 0 4px 10px rgba(173,20,87,0.35);
}

/* === CHECKS DANS LE COIN DES BOUTONS (A1 → A2) === */

.menu-buttons a,
.special-units p,
.final-exam p {
  position: relative;
  display: inline-block;
}

/* Positionnement du check */
.menu-buttons .check,
.special-units .check,
.final-exam .check {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 1.2em;
  pointer-events: none; /* évite conflit clic */
}

/* === MINI BADGE CHECK (Restart English) === */
.badge-check{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
  font-size: 0.85em;
  font-weight: 800;
  box-shadow: 0 3px 6px rgba(0,0,0,0.22);
}

/* petite animation sympa */
.badge-check{
  animation: badgePop 0.22s ease;
}
@keyframes badgePop{
  from{ transform: scale(0.6); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

/* === BOUTON RETOUR ACCUEIL (aligné boutons unités) === */

.home-logo-btn{
  display: inline-flex;
  align-items: center;
  gap: 14px;

  padding: 15px 30px;
  border-radius: 12px;

  background-color: #00acc1;   /* EXACT même couleur que button */
  color: white;
  font-size: 1.2em;
  font-weight: bold;

  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.home-logo-btn:hover{
  background-color: #BA68C8;  /* EXACT même hover */
  transform: scale(1.05);
}

.home-logo-img{
  width: 50px;   /* plus visible */
  height: 50px;
  object-fit: contain;
}


/* =========================================================
   Sticky topbar navigation (A1 → A2) — added 2026-02-25
   Scoped with .re- prefix to avoid side effects
   ========================================================= */

html{ scroll-behavior:smooth; }

/* Body has padding:20px globally -> we compensate so the bar is full width */
.re-topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  margin: 0 0 18px;
  padding: 0 20px;

  backdrop-filter: blur(10px);
  background: rgba(224,247,250,0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.re-topbar-inner{
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.re-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight: 800;
  color: #0b1220;
}

.re-brand-logo{
  height: 38px;
  width: auto;
  display: block;
}

.re-brand-text small{
  display:block;
  font-weight:600;
  opacity: 0.75;
  font-size: 12px;
  margin-top: 2px;
}

.re-navlinks{
  display:flex;
  flex-wrap:wrap;
  gap: 16px;
  align-items:center;
  font-weight: 700;
}

.re-navlinks a{
  text-decoration:none;
  color:#0b1220;
  opacity: 0.9;
}

.re-navlinks a:hover{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Active link (current section) */
.re-navlinks a.is-active{
  opacity: 1;
  background: rgba(0, 172, 193, 0.16);
  border: 1px solid rgba(0, 172, 193, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.re-navlinks a.is-active:hover{ text-decoration:none; }

.re-topbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration:none;
  background: #00acc1;
  color: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 22px rgba(0,172,193,0.20);
}

.re-topbtn:hover{
  background: #008ea0;
}

/* Anchor landing offset (so titles don't hide behind the sticky bar) */
#franglais, #phase1, #phase2, #phase3, #validation, #avis{
  scroll-margin-top: 90px;
}

/* Responsive: hide links on smaller screens (keeps brand + "Commencer") */
@media (max-width: 980px){
  .re-navlinks{ display:none; }
  .re-brand-logo{ height: 30px; }
}

#validation1{
  scroll-margin-top: 100px;
}

.final-exam .final-button.certificate-a2{
  background: linear-gradient(135deg, #7b1fa2, #ba68c8);
  border: 2px solid #e1bee7;
  font-size: 1.4em;
  padding: 20px 45px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.3);
  animation: pulseA2 1.6s infinite;
}

.final-exam .final-button.certificate-a2:hover{
  background: linear-gradient(135deg, #6a1b9a, #ab47bc);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(186,104,200,0.8);
}

@keyframes pulseA2 {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}