/* ================================================================
   STYLE.CSS — Mon Lycée V2
   Feuille de style principale — mobile-first (base 375px)
   ================================================================

   TABLE DES MATIÈRES
   1.  Police (Onest auto-hébergée)
   2.  Variables
   3.  Reset
   4.  Typographie
   5.  Layout (container, section, grilles)
   6.  Boutons
   7.  Header
   8.  Drawer mobile
   9.  Barre desktop fixe
   10. Composant : Kicker / Chip
   11. Composant : Video-lite
   12. Composant : Cards
   13. Composant : FAQ accordion
   14. Composant : Quiz
   15. Composant : Marquee
   16. Composant : Carrousel photos
   17. Footer
   18. Animations
   19. Utilitaires

   ----------------------------------------------------------------
   POLICE — action requise
   Télécharger Onest Variable Font sur :
   https://fonts.google.com/specimen/Onest
   → Télécharger "Variable font" → renommer en onest.woff2
   → Déposer dans /V2/fonts/onest.woff2
   ================================================================ */


/* ================================================================
   1. POLICE
   ================================================================ */

@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* ================================================================
   2. VARIABLES
   ================================================================ */

:root {

  /* Couleurs principales */
  --rouge:       #DD2628;
  --rouge-dk:    #b71e1f;
  --jaune:       #FFEC00;
  --jaune-dk:    #DFC400;
  --rose:        #FFE2E4;
  --gris:        #E5E5E5;
  --gris-dk:     #C8C8C8;
  --noir:        #0A0A0A;
  --blanc:       #FFFFFF;

  /* Alias sémantiques */
  --texte:       #0A0A0A;
  --fond:        #FFFFFF;
  --fond-creme:  #FFF9EF;

  /* Police */
  --font: 'Onest', system-ui, -apple-system, sans-serif;

  /* Espacement — base mobile */
  --gutter:      20px;
  --section-py:  56px;

  /* Rayons */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;

  /* Header */
  --header-h:    82px;
}

@media (min-width: 768px) {
  :root {
    --gutter:     40px;
    --section-py: 80px;
    --header-h:   82px;
  }
}


/* ================================================================
   3. RESET
   ================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

p:last-child {
  margin-bottom: 0;
}

svg {
  flex-shrink: 0;
}


/* ================================================================
   4. TYPOGRAPHIE
   ================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  line-height: 1.15;
  color: var(--texte);
}

h1 { font-size: clamp(1.875rem, 6.5vw, 3rem);   font-weight: 900; }
h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem);  font-weight: 700; }
h4 { font-size: 1rem;                         font-weight: 700; }

p {
  color: var(--texte);
  margin-bottom: .75rem;
  line-height: 1.7;
}

strong { font-weight: 700; }

em.accent {
  color: var(--rouge);
  font-style: normal;
}

/* Texte mis en valeur dans les H1 */
h1 em {
  color: var(--rouge);
  font-style: normal;
}

small {
  font-size: .8125rem;
}


/* ================================================================
   5. LAYOUT
   ================================================================ */

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: 1280px;
}

.container--narrow {
  max-width: 680px;
}

/* --- Section --- */
.section {
  padding-block: var(--section-py);
}

.section--rose   { background: var(--rose); }
.section--gris   { background: var(--gris); }
.section--creme  { background: var(--fond-creme); }
.section--noir   { background: var(--noir); color: var(--blanc); }
.section--noir h2,
.section--noir h3,
.section--noir p  { color: var(--blanc); }

/* --- Grilles utilitaires --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Split desktop (texte + visuel) */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .split                  { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--55-45           { grid-template-columns: 55fr 45fr; }
  .split--45-55           { grid-template-columns: 45fr 55fr; }
  .split__visual--right   { order: 1; }
  .split__text--left      { order: 0; }
}

/* --- Kicker --- */
.kicker {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--texte);
  background: var(--gris);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
}

.kicker--rouge  { background: var(--rose);  color: var(--rouge); }
.kicker--jaune  { background: #FFF8D0;       color: #7A6000; }
.kicker--noir   { background: var(--texte);  color: var(--blanc); }

/* --- Texte centré --- */
.text-center { text-align: center; }

/* ================================================================
   6. BOUTONS
   ================================================================ */

/* Base commune */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Icône dans bouton */
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pleine largeur */
.btn--full { width: 100%; }

/* Taille large */
.btn--lg { padding: 17px 36px; font-size: 1.0625rem; }

/* --- Rouge : fond rouge, texte blanc --- */
.btn--rouge {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
  border-radius: 12px;
}
.btn--rouge:hover { background: #b01e20; border-color: #b01e20; }

/* --- Primaire : fond jaune, texte noir --- */
.btn--primary {
  background: var(--jaune);
  color: var(--noir);
  border-color: var(--jaune);
}
.btn--primary:hover { background: var(--jaune); border-color: var(--jaune); transform: scale(1.04); }

/* --- Secondaire : fond blanc, bordure jaune, texte noir --- */
.btn--secondary {
  background: var(--blanc);
  color: var(--noir);
  border-color: var(--jaune);
}
.btn--secondary:hover { background: #FFFDE0; }

/* --- Tertiaire : fond gris, texte noir --- */
.btn--tertiary {
  background: var(--gris);
  color: var(--noir);
  border-color: var(--gris);
}
.btn--tertiary:hover { background: var(--gris-dk); border-color: var(--gris-dk); }

/* --- Rouge : fond rouge, texte blanc (petites touches) --- */
.btn--rouge {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}
.btn--rouge:hover { background: var(--rouge-dk); border-color: var(--rouge-dk); }

/* --- Noir : fond noir, texte blanc --- */
.btn--noir {
  background: var(--noir);
  color: var(--blanc);
  border-color: var(--noir);
}
.btn--noir:hover { background: #222; border-color: #222; }

/* --- Outline blanc (sur fond sombre) --- */
.btn--outline-blanc {
  background: transparent;
  color: var(--blanc);
  border-color: rgba(255, 255, 255, .5);
}
.btn--outline-blanc:hover { background: rgba(255, 255, 255, .1); }


/* ================================================================
   7. HEADER
   ================================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  padding: 8px 0;
  background: var(--blanc);
  transition: box-shadow .2s;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) {
  .header-inner { padding-top: 0; padding-bottom: 0; }
}

.header-logo img {
  height: 44px;
  width: auto;
}
@media (min-width: 768px) {
  .header-logo img { height: 52px; }
}

.header-nav {
  display: none;
}

@media (min-width: 900px) {
  .header-nav {
    display: none;
    align-items: center;
    gap: 28px;
    list-style: none;
  }
  .header-nav a {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--texte);
    transition: color .15s;
  }
  .header-nav a:hover { color: var(--rouge); }
  .header-nav a.is-active { color: var(--rouge); font-weight: 700; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton quiz dans le header */
.header-btn-quiz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--jaune);
  color: var(--noir);
  border: 2px solid var(--jaune);
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.header-btn-quiz:hover { background: #ffe000; transform: translateY(-1px); }
.header-btn-quiz svg { width: 14px; height: 14px; stroke: var(--noir); fill: none; }

/* Bouton menu hamburger */
.btn-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: var(--gris);
  color: var(--noir);
  border: none;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-menu:hover { background: var(--gris-dk); }
.btn-menu svg { width: 15px; height: 15px; stroke: var(--noir); fill: none; }
@media (max-width: 639px) { .btn-menu { padding: 8px 14px; } .btn-menu svg { display: none; } }

.btn-entretien { background: var(--blanc) !important; color: var(--noir) !important; }
.btn-entretien:hover { background: var(--noir) !important; color: var(--blanc) !important; }
.btn-entretien:hover svg { stroke: var(--blanc) !important; }

/* Compenser le header fixe et les barres basses */
body { padding-top: var(--header-h); }
@media (max-width: 639px) { body { padding-bottom: 64px; } }


/* ================================================================
   8. DRAWER MOBILE
   ================================================================ */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--header-h);
  border-bottom: 1px solid var(--gris);
  flex-shrink: 0;
}

.drawer-header img { height: 36px; width: auto; }

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gris);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--texte);
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.drawer-close:hover { background: var(--gris-dk); }

/* Actions rapides (téléphone, WhatsApp, brochure...) */
.drawer-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--gris);
}

.drawer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--gris);
  border-radius: var(--radius-md);
  font-size: .6875rem;
  font-weight: 700;
  color: var(--texte);
  text-align: center;
  transition: background .15s;
}
.drawer-action:hover { background: var(--gris-dk); }
.drawer-action svg { width: 20px; height: 20px; }

/* Liens de navigation */
.drawer-body {
  flex: 1;
  padding: 8px var(--gutter);
}

.drawer-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--texte);
  border-bottom: 1px solid var(--gris);
  transition: color .15s;
}
.drawer-body a:hover { color: var(--rouge); }
.drawer-body a:last-child { border-bottom: none; }

/* CTA en bas du drawer */
.drawer-cta {
  padding: 16px var(--gutter) 32px;
  flex-shrink: 0;
}


/* ================================================================
   9. BARRE DESKTOP FIXE (bottom bar)
   ================================================================ */

.desktop-bar {
  display: none;
}

@media (min-width: 640px) {
  .desktop-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    background: var(--noir);
    border-top: 2px solid rgba(255, 255, 255, .08);
  }

  .desktop-bar__inner {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 40px 14px;
  }

  .desktop-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 700;
    color: var(--jaune);
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--jaune);
    transition: transform .15s, background .15s;
    white-space: nowrap;
    cursor: pointer;
  }
  .desktop-bar__item:hover { transform: translateY(-2px); background: var(--jaune); color: var(--noir); border-color: var(--jaune); }
  .desktop-bar__item:hover svg { stroke: var(--noir); }
  .desktop-bar__item svg {
    width: 18px; height: 18px;
    stroke: var(--jaune); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }

  /* Cacher la sticky bar mobile sur desktop */
  .sticky-bar { display: none !important; }
  body { padding-bottom: 68px; }
}


/* ================================================================
   10. COMPOSANT : KICKER / CHIP
   ================================================================ */

/* Hero chip — petite étiquette illustrée */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blanc);
  border: 1.5px solid var(--gris);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--texte);
}

.chip--rose  { background: var(--rose);      border-color: #F5C0C2; }
.chip--jaune { background: #FFFDE0;           border-color: #F0E080; }
.chip--gris  { background: var(--gris);      border-color: var(--gris-dk); }

.chip svg {
  width: 16px; height: 16px;
  stroke: var(--rouge); fill: none;
  stroke-width: 2; stroke-linecap: round;
}


/* ================================================================
   11. COMPOSANT : VIDEO-LITE (player YouTube lazy)
   ================================================================ */

.video-lite {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--noir);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.video-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

.video-lite:hover img { opacity: .85; }

.video-lite__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
}

.video-lite__play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rouge);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s;
}

.video-lite:hover .video-lite__play-btn { transform: scale(1.08); }

.video-lite__play-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--blanc);
  margin-left: 4px;
}

.video-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Légende en bas */
.video-lite__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65));
  padding: 36px 16px 14px;
  pointer-events: none;
}

.video-lite__label strong {
  display: block;
  color: var(--blanc);
  font-size: .9375rem;
  font-weight: 700;
}

.video-lite__label span {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .9);
}

/* Variante portrait (ratio 9/16 pour carrousel équipe) */
.video-lite--portrait {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  width: 200px;
}

.video-lite--portrait .video-lite__play-btn {
  width: 52px;
  height: 52px;
}

.video-lite--portrait .video-lite__play-btn svg {
  width: 20px;
  height: 20px;
}


/* ================================================================
   12. COMPOSANT : CARDS
   ================================================================ */

/* Card générique */
.card {
  background: var(--blanc);
  border: 1.5px solid var(--gris);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* Card avec fond rose */
.card--rose {
  background: var(--rose);
  border-color: #F5C0C2;
}

/* Card avec fond crème */
.card--creme {
  background: var(--fond-creme);
  border-color: #EFE3CC;
}

/* Card tarif */
.card--tarif {
  background: var(--blanc);
  border: 2px solid var(--jaune);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}

/* Card profil (photo + texte) */
.card--profil {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.card--profil .profil-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.card--profil .profil-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.card--profil .profil-role {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--rouge);
}

.card--profil .profil-bio {
  font-size: .875rem;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Badge "Inclus" sur les cards */
.badge-inclus {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #2E7D32;
  color: var(--blanc);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Icône dans une card */
.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--rouge);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}


/* ================================================================
   13. COMPOSANT : FAQ ACCORDION
   ================================================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  border: 1.5px solid var(--gris);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .15s;
}

.faq__item[open] {
  border-color: var(--rouge);
}

.faq__item summary {
  padding: 16px 18px;
  font-weight: 700;
  font-size: .9375rem;
  color: var(--texte);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--blanc);
  user-select: none;
}

.faq__item[open] summary {
  background: var(--fond-creme);
}

.faq__item summary::-webkit-details-marker { display: none; }

/* Chevron rouge */
.faq__item summary::after {
  content: '';
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: var(--rouge);
  border-radius: var(--radius-sm);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-size: 15px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .2s;
}

.faq__item[open] summary::after {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 18px 18px;
  background: var(--fond-creme);
}

.faq__answer p {
  font-size: .9rem;
  line-height: 1.7;
  margin: 0;
}


/* ================================================================
   14. COMPOSANT : QUIZ
   ================================================================ */

/* Overlay plein écran */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--fond-creme);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.quiz-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Header du quiz */
.quiz-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: var(--header-h);
  border-bottom: 1.5px solid var(--gris);
  background: var(--fond-creme);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.quiz-overlay__logo { height: 36px; width: auto; }

.quiz-overlay__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gris);
  background: var(--blanc);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.quiz-overlay__close:hover { background: var(--rose); border-color: #F5C0C2; }
.quiz-overlay__close svg {
  width: 14px; height: 14px;
  stroke: var(--texte); fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}

/* Barre de progression */
.quiz-progress {
  height: 3px;
  background: var(--gris);
  flex-shrink: 0;
}

.quiz-progress__bar {
  height: 100%;
  background: var(--rouge);
  transition: width .3s ease;
}

/* Écran d'une question */
.quiz-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px var(--gutter) 80px;
}

.quiz-screen--hidden  { display: none; }
.quiz-screen--visible { animation: fadeUp .3s ease both; }

.quiz-screen__question {
  font-size: clamp(1.375rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--texte);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Cards de réponse */
.quiz-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.quiz-card {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--blanc);
  border: 2px solid var(--gris);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--texte);
  line-height: 1.3;
  transition: border-color .15s, background .15s, color .15s;
  text-align: left;
  width: 100%;
  user-select: none;
}

.quiz-card:hover,
.quiz-card.is-selected {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}

.quiz-card__main { flex: 1; }
.quiz-card__main h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0;
  color: inherit;
}


/* ================================================================
   15. COMPOSANT : MARQUEE (défilement logos)
   ================================================================ */

.marquee {
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 10s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track img {
  height: 44px;
  width: auto;
  opacity: .5;
  filter: grayscale(1);
  transition: opacity .2s, filter .2s;
  flex-shrink: 0;
}

.marquee__track img:hover {
  opacity: 1;
  filter: grayscale(0);
}


/* ================================================================
   16. COMPOSANT : CARROUSEL PHOTOS (équipe, profs)
   ================================================================ */

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.carousel::-webkit-scrollbar { display: none; }

/* Card portrait dans le carrousel */
.carousel-card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--noir);
  cursor: pointer;
  aspect-ratio: 9 / 16;
  transition: transform .2s;
}

.carousel-card:hover { transform: translateY(-4px); }

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity .2s;
}

.carousel-card:hover img { opacity: .85; }

.carousel-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  padding: 28px 12px 12px;
  pointer-events: none;
}

.carousel-card__label strong {
  display: block;
  color: var(--blanc);
  font-size: .8125rem;
  font-weight: 800;
  line-height: 1.2;
}

.carousel-card__label span {
  display: block;
  font-size: .6875rem;
  color: rgba(255, 255, 255, .8);
  margin-top: 2px;
}


/* ================================================================
   17. FOOTER (fond blanc)
   ================================================================ */

.site-footer {
  background: var(--blanc);
  color: var(--texte);
  border-top: 1px solid var(--gris);
  padding: 56px 0 24px;
}

/* Grille : 2 colonnes mobile, 4 colonnes desktop */
.footer-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr) 200px;
    gap: 32px;
    align-items: start;
  }
}

/* Navigation */
.footer-nav {
  display: contents;
}

.footer-nav > div { display: flex; flex-direction: column; gap: 12px; }

.footer-nav h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--noir);
  margin: 0;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 8px; list-style: none; }

.footer-nav li a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--noir);
  transition: opacity .15s;
}
.footer-nav li a:hover { opacity: .6; }

/* Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--noir);
  text-decoration: none;
  transition: opacity .15s;
}
.footer-contact-item:hover { opacity: .6; }
.footer-contact-item svg { flex-shrink: 0; stroke: var(--noir); }

/* Bas du footer */
.footer-bottom {
  border-top: 1px solid var(--gris);
  padding-top: 24px;
  text-align: left;
}

.footer-rectorat {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: .7;
  margin-top: 16px;
  display: block;
}

.footer-copy {
  font-size: .8125rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .4);
}


/* ================================================================
   18. ANIMATIONS
   ================================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

/* Fade-in au scroll (géré par IntersectionObserver dans main.js) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ================================================================
   19. UTILITAIRES
   ================================================================ */

.hidden          { display: none !important; }
.sr-only         { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-center     { text-align: center; }
.text-rouge      { color: var(--rouge); }
.text-blanc      { color: var(--blanc); }
.fw-900          { font-weight: 900; }
.fw-700          { font-weight: 700; }

.mt-8            { margin-top: 8px; }
.mt-16           { margin-top: 16px; }
.mt-24           { margin-top: 24px; }
.mt-32           { margin-top: 32px; }
.mt-48           { margin-top: 48px; }
.mb-8            { margin-bottom: 8px; }
.mb-16           { margin-bottom: 16px; }
.mb-24           { margin-bottom: 24px; }
.mb-32           { margin-bottom: 32px; }
.mb-48           { margin-bottom: 48px; }

.quiz-cta-label  { margin: 8px 0 4px; font-size: 1.125rem; }
.quiz-arrow-down { display: block; margin: 8px auto 0; width: 32px; height: 32px; animation: quizBounce 1.2s ease-in-out infinite; }
@keyframes quizBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Point de séparation décoratif */
.dot-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gris-dk);
  vertical-align: middle;
  margin: 0 8px;
}

/* Sticky bar mobile (cachée sur desktop via la règle desktop-bar) */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--noir);
  border-top: 2px solid rgba(255,255,255,.06);
  padding: 8px 0 12px;
  display: flex;
  justify-content: space-around;
}

.sticky-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 4px 6px;
  font-size: .6rem;
  font-weight: 700;
  color: var(--jaune);
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  transition: background .15s, color .15s;
}

.sticky-bar__item:hover { background: var(--jaune); color: var(--noir); }

.sticky-bar__item svg {
  width: 22px;
  height: 22px;
  stroke: var(--jaune);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sticky-bar__item:hover svg { stroke: var(--noir); }

.sticky-bar__item span {
  display: block;
  font-size: .6rem;
  font-weight: 700;
}
