/* ==========================================================================
   CINEKAP GROUP — modèle C
   Direction artistique : « LE PLATEAU »
   Abcisse Group Sn — octobre 2026
   --------------------------------------------------------------------------
   Polices reprises du site actuel, aux mêmes rôles :
     Oswald 700   — titres du héros (le slider actuel l'utilise déjà)
     Spartan      — titres de sections et libellés
     Inter        — texte courant

   Couleurs : celles du logo, indigo #0C186C et or #C0B460.

   Pensé mobile d'abord : toutes les tailles partent du téléphone et montent
   par clamp(), les cibles tactiles font au moins 44 px, et le fond vidéo ne
   se charge jamais avant que l'image d'attente soit à l'écran.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. JETONS
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  --indigo:        #0C186C;
  --indigo-nuit:   #070F42;
  --indigo-profond:#040827;
  --indigo-vif:    #1C2D9E;
  --indigo-voile:  #EDEFF7;
  --indigo-trait:  #C9CEE6;

  --or:            #C0B460;
  --or-clair:      #D8CE8C;
  --or-sombre:     #8A8036;

  --blanc:         #FFFFFF;
  --gris-fond:     #F5F6FA;
  --encre:         #11152B;
  --gris:          #555C78;
  --gris-pale:     #8A90A8;

  --trait:         rgba(17, 21, 43, .12);
  --trait-fort:    rgba(17, 21, 43, .26);
  --trait-nuit:    rgba(255, 255, 255, .2);

  --f-titre: 'Oswald', 'League Spartan', sans-serif;
  --f-sec:   'League Spartan', 'Oswald', sans-serif;
  --f-texte: 'Inter', system-ui, -apple-system, sans-serif;

  --large:    1340px;
  --etroit:   740px;
  --gouttiere: clamp(1.15rem, 4vw, 3.5rem);
  --entete:    64px;
  --rayon:     12px;

  --sortie: cubic-bezier(.2, .9, .3, 1);
  --doux:   cubic-bezier(.4, 0, .2, 1);
}

@media (min-width: 900px) { :root { --entete: 78px; } }

/* --------------------------------------------------------------------------
   2. RÉINITIALISATION
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 1rem);
}

body {
  background: var(--blanc);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: var(--indigo); color: #fff; }

:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; border-radius: 3px; }

.saut {
  position: absolute; left: -9999px;
  background: var(--indigo); color: #fff;
  padding: .85rem 1.3rem; z-index: 999; border-radius: 6px;
}
.saut:focus { left: 1rem; top: 1rem; }

/* Toute cible tactile fait au moins 44 px. */
a, button, [role="button"], input, select, textarea { touch-action: manipulation; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
.t-xxl, .t-xl, .t-l {
  font-family: var(--f-titre);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: .005em;
  text-wrap: balance;
}
.t-xxl { font-size: clamp(2.3rem, 9vw, 5.6rem); line-height: .98; }
.t-xl  { font-size: clamp(1.75rem, 5.2vw, 3.2rem); }
.t-l   { font-size: clamp(1.4rem, 3.4vw, 2.1rem); }

.t-m, .t-s {
  font-family: var(--f-sec);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.t-m { font-size: clamp(1.1rem, 2.4vw, 1.32rem); }
.t-s { font-size: 1rem; }

.oeil {
  font-family: var(--f-sec);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or-sombre);
  display: flex; align-items: center; gap: .65rem;
}
.oeil::before { content: ''; width: 1.5rem; height: 2px; background: currentColor; flex: none; }
.oeil--nuit { color: var(--or); }
.oeil--nu::before { display: none; }

.chapo { font-size: clamp(1.02rem, 2.2vw, 1.2rem); font-weight: 300; line-height: 1.62; color: var(--gris); max-width: 60ch; }
.lire { color: var(--gris); font-weight: 300; }
.lire p + p { margin-top: 1.05em; }
.lire strong { color: var(--encre); font-weight: 600; }
.sur-nuit { color: #fff; }
.sur-nuit .lire, .sur-nuit .chapo { color: rgba(255, 255, 255, .8); }
.sur-nuit .lire strong { color: #fff; }

/* --------------------------------------------------------------------------
   4. BOUTONS — au moins 44 px de haut, partout
   -------------------------------------------------------------------------- */
.bt {
  --f-bt: var(--indigo); --c-bt: #fff; --b-bt: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.5rem;
  background: var(--f-bt); color: var(--c-bt);
  border: 2px solid var(--b-bt); border-radius: 999px;
  font-family: var(--f-sec);
  font-size: .88rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1;
  transition: background-color .28s var(--doux), color .28s, border-color .28s, transform .18s var(--sortie);
}
.bt svg { flex: none; transition: transform .32s var(--sortie); }
.bt:hover { --f-bt: var(--indigo-vif); --b-bt: var(--indigo-vif); }
.bt:hover svg { transform: translateX(4px); }
.bt:active { transform: scale(.975); }

.bt--or   { --f-bt: var(--or); --c-bt: var(--indigo-profond); --b-bt: var(--or); }
.bt--or:hover { --f-bt: var(--or-clair); --b-bt: var(--or-clair); }
.bt--vide { --f-bt: transparent; --c-bt: var(--indigo); --b-bt: var(--trait-fort); }
.bt--vide:hover { --f-bt: var(--indigo); --c-bt: #fff; --b-bt: var(--indigo); }
.bt--fant { --f-bt: rgba(255,255,255,.07); --c-bt: #fff; --b-bt: rgba(255,255,255,.45); }
.bt--fant:hover { --f-bt: #fff; --c-bt: var(--indigo-profond); --b-bt: #fff; }
.bt--pt { min-height: 42px; padding: .6rem 1.15rem; font-size: .8rem; }

.fl {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  font-family: var(--f-sec);
  font-size: .86rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--indigo);
  border-bottom: 2px solid var(--trait-fort);
  transition: color .26s, border-color .26s;
}
.fl svg { transition: transform .3s var(--sortie); }
.fl:hover { color: var(--indigo-vif); border-color: var(--or); }
.fl:hover svg { transform: translateX(4px); }
.sur-nuit .fl { color: #fff; border-color: var(--trait-nuit); }
.sur-nuit .fl:hover { color: var(--or-clair); border-color: var(--or); }

/* --------------------------------------------------------------------------
   5. STRUCTURE
   -------------------------------------------------------------------------- */
.env { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }
.env--etroit { max-width: var(--etroit); }

.sec { padding-block: clamp(3rem, 8vw, 6.5rem); position: relative; }
.sec--court { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.sec--nuit { background: var(--indigo); color: #fff; }
.sec--profond { background: var(--indigo-profond); color: #fff; }
.sec--gris { background: var(--gris-fond); }
.sec--voile { background: var(--indigo-voile); }

.tete { margin-bottom: clamp(1.9rem, 4vw, 3.25rem); }
.tete--rang { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.tete .oeil { margin-bottom: .95rem; }

.gr { display: grid; gap: clamp(1rem, 2.4vw, 1.9rem); }
.gr-2, .gr-3, .gr-4 { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .gr-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .gr-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gr-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   6. EN-TÊTE
   -------------------------------------------------------------------------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 150;
  height: var(--entete);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--doux), border-color .35s, box-shadow .35s;
}
.entete::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(4, 8, 39, .55), transparent);
  transition: opacity .35s;
}
.entete.pose {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--trait);
  box-shadow: 0 4px 22px rgba(12, 24, 108, .07);
}
.entete.pose::before { opacity: 0; }
.entete .env { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1480px; }

.marque { display: block; }
.marque img { height: 34px; width: auto; }
@media (min-width: 900px) { .marque img { height: 42px; } }
.marque .clair { display: block; }
.marque .fonce { display: none; }
.entete.pose .marque .clair { display: none; }
.entete.pose .marque .fonce { display: block; }

.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: .1rem; }
  .nav > li { position: relative; }
  .nav > li > a {
    display: flex; align-items: center; gap: .3rem;
    min-height: 44px; padding: .55rem .85rem;
    font-family: var(--f-sec);
    font-size: .84rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: #fff; border-radius: 999px;
    transition: background-color .25s, color .25s;
  }
  .entete.pose .nav > li > a { color: var(--encre); }
  .nav > li > a:hover { background: rgba(255,255,255,.14); }
  .entete.pose .nav > li > a:hover { background: var(--indigo-voile); color: var(--indigo); }
  .nav > li.ici > a { color: var(--or-clair); }
  .entete.pose .nav > li.ici > a { color: var(--indigo); background: var(--indigo-voile); }
  .nav .chev { width: 9px; height: 9px; opacity: .6; }
  .smenu {
    position: absolute; top: 100%; left: 0; min-width: 258px;
    background: #fff; border: 1px solid var(--trait); border-radius: 10px;
    box-shadow: 0 18px 44px rgba(12, 24, 108, .16); padding: .4rem;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .25s, transform .25s var(--sortie), visibility .25s;
  }
  .nav > li:hover .smenu, .nav > li:focus-within .smenu { opacity: 1; visibility: visible; transform: translateY(0); }
  .smenu a {
    display: block; min-height: 42px; padding: .6rem .8rem;
    font-size: .88rem; color: var(--gris); border-radius: 6px;
    transition: background-color .2s, color .2s;
  }
  .smenu a:hover { background: var(--indigo-voile); color: var(--indigo); }
}

.actions { display: flex; align-items: center; gap: .5rem; }
.actions .bt { display: none; }
@media (min-width: 1100px) { .actions .bt { display: inline-flex; } }

.burger { width: 46px; height: 46px; position: relative; }
@media (min-width: 1100px) { .burger { display: none; } }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .35s var(--sortie), opacity .22s, background-color .35s;
}
.entete.pose .burger span { background: var(--encre); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.burger.ouvert span { background: var(--encre); }
.burger.ouvert span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.ouvert span:nth-child(2) { opacity: 0; }
.burger.ouvert span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.volet {
  position: fixed; inset: 0; z-index: 149;
  background: #fff;
  padding: calc(var(--entete) + 1.25rem) var(--gouttiere) 2.5rem;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-.75rem);
  transition: opacity .32s var(--doux), transform .38s var(--sortie), visibility .32s;
}
.volet.ouvert { opacity: 1; visibility: visible; transform: none; }
.volet > ul { border-top: 1px solid var(--trait); }
.volet > ul > li { border-bottom: 1px solid var(--trait); }
.volet > ul > li > a, .volet .plier {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 56px; padding: 1rem 0; text-align: left;
  font-family: var(--f-titre); font-size: 1.3rem; font-weight: 600; text-transform: uppercase;
}
.volet .plier .chev { transition: transform .3s; width: 14px; }
.volet .plier[aria-expanded="true"] .chev { transform: rotate(180deg); }
.volet .tiroir { max-height: 0; overflow: hidden; transition: max-height .4s var(--doux); }
.volet .tiroir a {
  display: flex; align-items: center; min-height: 46px; padding: .4rem 0 .4rem 1rem;
  font-size: .97rem; color: var(--gris); border-left: 2px solid var(--trait);
}
.volet .tiroir a:hover { color: var(--indigo); border-left-color: var(--or); }
.volet-pied { margin-top: 1.75rem; display: grid; gap: 1rem; }
.volet-pied .bt { width: 100%; }

/* --------------------------------------------------------------------------
   7. HÉROS À FOND VIDÉO
   -------------------------------------------------------------------------- */
.heros {
  position: relative; overflow: hidden;
  background: var(--indigo-profond); color: #fff;
  min-height: 100svh;
  display: flex; align-items: flex-end;
}
@media (min-width: 900px) { .heros { min-height: min(94svh, 900px); } }

.heros-plans { position: absolute; inset: 0; }
.heros-plan {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--doux), visibility 1.1s;
}
.heros-plan.vu { opacity: 1; visibility: visible; }
.heros-plan img, .heros-plan video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* L'image d'attente s'efface dès que la vidéo tourne. */
.heros-plan video { opacity: 0; transition: opacity .9s var(--doux); }
.heros-plan video.joue { opacity: 1; }
/* Sans vidéo, l'image respire quand même : léger travelling. */
.heros-plan.vu img { animation: respire 14s ease-out forwards; }
@keyframes respire { from { transform: scale(1); } to { transform: scale(1.09); } }

.heros-plans::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--indigo-profond) 2%, rgba(4, 8, 39, .74) 38%, rgba(4, 8, 39, .3) 72%),
    linear-gradient(100deg, rgba(4, 8, 39, .82) 2%, rgba(4, 8, 39, .34) 48%, transparent 78%);
}

.heros-corps { position: relative; z-index: 2; width: 100%; padding-block: clamp(2rem, 6vw, 4rem) clamp(5.5rem, 9vw, 7rem); }
.heros-txt { max-width: 44rem; }
.heros-rang { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.etiq-film {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(192, 180, 96, .17);
  border: 1px solid rgba(192, 180, 96, .5);
  color: var(--or-clair);
  padding: .32rem .8rem; border-radius: 999px;
  font-family: var(--f-sec); font-size: .68rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
}
.heros-titre { margin-bottom: .75rem; }
.heros-real { font-size: clamp(.98rem, 2.4vw, 1.18rem); font-weight: 300; color: rgba(255,255,255,.82); }
.heros-bt { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.heros-bt .bt { flex: 1 1 auto; min-width: 11rem; }
@media (min-width: 620px) { .heros-bt .bt { flex: 0 0 auto; } }

.heros-meta { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid var(--trait-nuit); }
.meta-c { font-family: var(--f-sec); font-size: .64rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: rgba(255,255,255,.52); display: block; margin-bottom: .22rem; }
.meta-v { font-size: .95rem; font-weight: 500; }

/* Pilotage du héros */
.heros-pilote { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; border-top: 1px solid var(--trait-nuit); background: linear-gradient(to top, rgba(4,8,39,.55), transparent); }
.heros-pilote .env { display: flex; align-items: center; gap: .85rem; padding-block: .7rem; }
.heros-onglets { display: flex; gap: .4rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.heros-onglets::-webkit-scrollbar { display: none; }
.heros-onglet {
  position: relative; flex: none;
  min-height: 44px; padding: .5rem .2rem;
  font-family: var(--f-sec); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.55); white-space: nowrap;
  transition: color .25s;
}
.heros-onglet + .heros-onglet { margin-left: 1.1rem; }
.heros-onglet::after {
  content: ''; position: absolute; left: 0; bottom: .35rem; height: 2px; width: 100%;
  background: rgba(255,255,255,.2);
}
.heros-onglet span {
  position: absolute; left: 0; bottom: .35rem; height: 2px; width: 0;
  background: var(--or); z-index: 1;
}
.heros-onglet.actif { color: #fff; }
.heros-nav { display: flex; gap: .35rem; flex: none; }
.heros-nav button {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--trait-nuit); border-radius: 999px; color: #fff;
  transition: background-color .25s, border-color .25s, color .25s;
}
.heros-nav button:hover { background: var(--or); border-color: var(--or); color: var(--indigo-profond); }

/* --------------------------------------------------------------------------
   8. BANDEAU DÉFILANT DU PALMARÈS
   -------------------------------------------------------------------------- */
.bande {
  background: var(--indigo-profond); color: #fff;
  border-block: 1px solid rgba(255,255,255,.1);
  overflow: hidden; padding-block: .95rem;
  --masque: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: var(--masque); mask-image: var(--masque);
}
.bande-rail { display: flex; width: max-content; animation: defile 48s linear infinite; }
.bande:hover .bande-rail { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }
.bande-lot { display: flex; align-items: center; }
.bande-item { display: flex; align-items: center; gap: .6rem; padding-inline: 1.9rem; white-space: nowrap; border-right: 1px solid rgba(255,255,255,.12); }
.bande-item svg { color: var(--or); flex: none; }
.bande-p { font-family: var(--f-sec); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--or); }
.bande-f { font-size: .88rem; color: rgba(255,255,255,.75); }

/* --------------------------------------------------------------------------
   9. FILMS
   -------------------------------------------------------------------------- */
.film { display: flex; flex-direction: column; height: 100%; }
.film-aff { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: var(--rayon); background: var(--indigo-voile); }
.film-aff img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--doux), filter .45s; }
.film:hover .film-aff img { transform: scale(1.05); filter: brightness(.6); }

.film-jouer {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transition: opacity .35s var(--doux);
}
.film-jouer span {
  width: 58px; height: 58px; border-radius: 999px;
  border: 2px solid var(--or); background: rgba(4,8,39,.4);
  display: grid; place-items: center; color: var(--or);
  transform: scale(.84); transition: transform .4s var(--sortie);
}
.film:hover .film-jouer { opacity: 1; }
.film:hover .film-jouer span { transform: scale(1); }
/* Au doigt, pas de survol : l'anneau reste visible en permanence. */
@media (hover: none) {
  .film-jouer { opacity: 1; }
  .film-jouer span { transform: scale(1); width: 46px; height: 46px; background: rgba(4,8,39,.55); }
  .film:hover .film-aff img { filter: none; transform: none; }
}

.film-type {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: rgba(255,255,255,.95); color: var(--indigo);
  padding: .25rem .6rem; border-radius: 999px;
  font-family: var(--f-sec); font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.film-corps { padding-top: .85rem; display: flex; flex-direction: column; flex: 1; }
.film-t { font-family: var(--f-titre); font-size: clamp(1.02rem, 2.6vw, 1.18rem); font-weight: 600; text-transform: uppercase; line-height: 1.15; transition: color .25s; }
.film:hover .film-t { color: var(--indigo-vif); }
.film-r { font-size: .9rem; color: var(--gris); margin-top: .22rem; font-weight: 300; }
.film-a { font-family: var(--f-sec); font-size: .74rem; font-weight: 600; color: var(--gris-pale); margin-top: .3rem; letter-spacing: .04em; }

.filtres { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.filtre {
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--trait);
  font-family: var(--f-sec); font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gris);
  transition: background-color .25s, border-color .25s, color .25s;
}
.filtre:hover { border-color: var(--trait-fort); color: var(--encre); }
.filtre.actif { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.filtre-n { font-size: .72rem; opacity: .65; margin-left: .3rem; }

.masque { display: none; }
.entrant { animation: entre .45s var(--sortie) both; }
@keyframes entre { from { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------------------
   10. FICHE FILM
   -------------------------------------------------------------------------- */
.fiche { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .fiche { grid-template-columns: 300px 1fr; } }
.fiche-col img { width: 100%; max-width: 300px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--rayon); }
@media (min-width: 900px) { .fiche-col { position: sticky; top: calc(var(--entete) + 1.25rem); } }

.releve { display: grid; grid-template-columns: 1fr; gap: 0 2rem; }
@media (min-width: 720px) { .releve { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.releve-l { display: grid; grid-template-columns: 1fr; gap: .1rem; padding-block: .8rem; border-bottom: 1px solid var(--trait); }
@media (min-width: 480px) { .releve-l { grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; } }
.releve-c { font-family: var(--f-sec); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris-pale); }
.releve-v { font-size: .97rem; }
.releve-l--long { grid-column: 1 / -1; }

.encart { background: var(--indigo-voile); border-radius: var(--rayon); padding: 1.25rem; margin-top: 1.25rem; }
.encart-t { font-family: var(--f-sec); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-sombre); margin-bottom: .85rem; }
.encart li { display: flex; gap: .55rem; font-size: .91rem; color: var(--gris); line-height: 1.5; }
.encart li + li { margin-top: .6rem; }
.encart li svg { flex: none; color: var(--or-sombre); margin-top: .3rem; }

.planches { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 720px) { .planches { grid-template-columns: repeat(3, 1fr); } }
.planches button { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--indigo-voile); width: 100%; position: relative; }
.planches img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--doux), filter .35s; }
.planches button:hover img { transform: scale(1.06); filter: brightness(.72); }

.visio { position: fixed; inset: 0; z-index: 300; background: rgba(4,8,39,.97); display: grid; place-items: center; padding: clamp(.75rem, 4vw, 3rem); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.visio.ouverte { opacity: 1; visibility: visible; }
.visio img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.visio button { position: absolute; display: grid; place-items: center; border: 1px solid var(--trait-nuit); color: #fff; border-radius: 999px; transition: background-color .25s, border-color .25s, color .25s; }
.visio button:hover { background: var(--or); border-color: var(--or); color: var(--indigo-profond); }
.v-x { top: 1rem; right: 1rem; width: 48px; height: 48px; }
.v-p { left: .75rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.v-s { right: .75rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.v-n { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-family: var(--f-sec); font-size: .78rem; color: rgba(255,255,255,.6); }
@media (max-width: 620px) {
  .v-p, .v-s { top: auto; bottom: 1rem; transform: none; }
  .v-p { left: calc(50% - 3.6rem); }
  .v-s { right: calc(50% - 3.6rem); }
  .v-n { bottom: 4.6rem; }
}

/* --------------------------------------------------------------------------
   11. MÉTIERS, CARTES, ÉTAPES
   -------------------------------------------------------------------------- */
.metier {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem 1rem;
  align-items: center;
  padding-block: clamp(1.1rem, 2.4vw, 1.7rem);
  border-bottom: 1px solid var(--trait);
  transition: background-color .3s, padding-inline .3s var(--sortie);
}
.metier:first-of-type { border-top: 1px solid var(--trait); }
@media (min-width: 980px) {
  .metier { grid-template-columns: 3.2rem 1fr 9.5rem; gap: 1.8rem; }
  .metier:hover { background: var(--gris-fond); padding-inline: .9rem; }
}
.metier-n { font-family: var(--f-titre); font-size: .95rem; font-weight: 600; color: var(--or-sombre); }
.metier-t { margin-bottom: .2rem; }
.metier-d { font-size: .93rem; color: var(--gris); max-width: 60ch; font-weight: 300; }
.metier-v { display: none; }
@media (min-width: 980px) {
  .metier-v { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 10; background: var(--indigo-voile); }
  .metier-v img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--doux); }
  .metier:hover .metier-v img { transform: scale(1.07); }
}

.carte { padding: clamp(1.25rem, 2.4vw, 1.8rem); background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); height: 100%; transition: box-shadow .32s var(--doux), transform .32s var(--sortie), border-color .32s; }
.carte:hover { box-shadow: 0 16px 36px rgba(12,24,108,.1); transform: translateY(-3px); border-color: var(--indigo-trait); }
.carte-n { font-family: var(--f-sec); font-size: .67rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-sombre); display: block; margin-bottom: .65rem; }
.carte-t { margin-bottom: .4rem; }
.carte-d { font-size: .92rem; color: var(--gris); font-weight: 300; }

.etape { display: grid; grid-template-columns: 2.8rem 1fr; gap: 1rem; align-items: start; padding-block: clamp(1.1rem, 2.2vw, 1.6rem); border-bottom: 1px solid var(--trait); }
.etape:first-of-type { border-top: 1px solid var(--trait); }
.etape-n { font-family: var(--f-titre); font-size: 1.5rem; font-weight: 700; line-height: 1; color: var(--indigo); }
.etape-t { margin-bottom: .25rem; }
.etape-d { font-size: .93rem; color: var(--gris); max-width: 60ch; font-weight: 300; }

.ref { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: 1.05rem; border-bottom: 1px solid var(--trait); transition: padding-left .3s var(--sortie), background-color .3s; }
.ref:first-of-type { border-top: 1px solid var(--trait); }
.ref:hover { padding-left: .8rem; background: var(--gris-fond); }
.ref-t { font-family: var(--f-titre); font-size: clamp(1.05rem, 2.6vw, 1.4rem); font-weight: 600; text-transform: uppercase; }
.ref-m { display: flex; gap: 1rem; flex-wrap: wrap; }
.ref-m span { font-family: var(--f-sec); font-size: .76rem; color: var(--gris-pale); font-weight: 600; }

.chiffres { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--trait); }
@media (min-width: 620px) { .chiffres { grid-template-columns: repeat(3, 1fr); } }
.chiffre { background: #fff; padding: clamp(1.4rem, 3.2vw, 2.4rem); }
.sec--gris .chiffre { background: var(--gris-fond); }
.sec--voile .chiffre { background: var(--indigo-voile); }
.chiffre-n { font-family: var(--f-titre); font-size: clamp(2.2rem, 7vw, 3.9rem); font-weight: 700; line-height: .98; display: flex; align-items: flex-start; color: var(--indigo); }
.chiffre-n sup { font-size: .32em; color: var(--or-sombre); margin-top: .4em; }
.chiffre-l { font-family: var(--f-sec); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-top: .75rem; }

/* --------------------------------------------------------------------------
   12. CARTE DU SÉNÉGAL
   -------------------------------------------------------------------------- */
/* Fond de carte : Natural Earth 1:10 m (domaine public). La tournée du bus
   suit le réseau routier réel ; le tracé complet est en pointillés, la
   portion parcourue s'éclaire derrière le bus. */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
@media (min-width: 1020px) { .atlas { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; } }

.atlas-carte {
  position: relative; border-radius: var(--rayon); overflow: hidden;
  background: radial-gradient(120% 90% at 15% 55%, #0B1758 0%, #050C34 70%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.atlas-svg { display: block; width: 100%; height: auto; }
.atlas-svg text { font-family: var(--f-sec); }

.c-grille   { fill: none; stroke: rgba(255,255,255,.05); stroke-width: 1; }
.c-deg      { font-size: 11px; fill: rgba(255,255,255,.28); letter-spacing: .04em; }
.c-voisins  { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.16); stroke-width: 1; stroke-linejoin: round; }
.c-gambie   { fill: #0A1450; stroke: rgba(255,255,255,.32); stroke-width: 1; stroke-linejoin: round; }
.c-senegal  { fill: #15227A; stroke: rgba(216,206,140,.75); stroke-width: 1.6; stroke-linejoin: round; }
.c-regions  { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 2 4; }
.c-routes   { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.1; stroke-linejoin: round; }
.c-fleuves  { fill: none; stroke: #4C8FD6; stroke-opacity: .75; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.c-pays text { font-size: 15px; font-weight: 600; letter-spacing: .32em; fill: rgba(255,255,255,.3); }
.c-pays .c-gmb { font-size: 11px; letter-spacing: .24em; fill: rgba(255,255,255,.42); }
.c-pays .c-oce { font-size: 12px; letter-spacing: .38em; fill: rgba(140,170,230,.45); }
.c-pays .c-fl  { font-family: var(--f-texte); font-size: 12px; font-style: italic; font-weight: 400; letter-spacing: .02em; fill: rgba(120,170,230,.7); }
.c-ville circle { fill: rgba(255,255,255,.45); }
.c-ville text   { font-size: 12.5px; font-weight: 500; fill: rgba(255,255,255,.42); }
.c-echelle path { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1.4; }
.c-echelle text, .c-nord text { font-size: 11px; font-weight: 600; letter-spacing: .12em; fill: rgba(255,255,255,.45); }
.c-nord path { fill: rgba(216,206,140,.6); }
.c-filet-goree { fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1; stroke-dasharray: 1.5 2.5; }

.c-circuit { fill: none; stroke: rgba(192,180,96,.42); stroke-width: 1.6; stroke-dasharray: 4 5; stroke-linejoin: round; }
.c-parcouru { fill: none; stroke: rgba(216,206,140,.55); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.c-trace { fill: none; stroke: var(--or-clair); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.c-trace-lueur { fill: none; stroke: rgba(216,206,140,.22); stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }

/* Étapes */
.atlas-pt { cursor: pointer; }
.atlas-pt .cible { fill: transparent; }
.atlas-pt .halo  { fill: var(--or); opacity: 0; transform-box: fill-box; transform-origin: center; }
.atlas-pt .bague { fill: #0A1450; stroke: rgba(255,255,255,.8); stroke-width: 2; transition: stroke .3s, fill .3s; }
.atlas-pt .coeur { fill: #fff; transition: fill .3s; }
.atlas-pt text {
  font-size: 19px; font-weight: 700; letter-spacing: .02em; fill: rgba(255,255,255,.85);
  paint-order: stroke; stroke: #071045; stroke-width: 5px; stroke-linejoin: round;
  transition: fill .3s;
}
.atlas-pt:hover .bague, .atlas-pt.vise .bague { stroke: var(--or-clair); }
.atlas-pt:hover text, .atlas-pt.vise text { fill: #fff; }
.atlas-pt.vu .bague { fill: var(--or); stroke: #fff; }
.atlas-pt.vu .coeur { fill: var(--indigo-nuit); }
.atlas-pt.vu text { fill: var(--or-clair); }
.atlas-pt.vu .halo { animation: atlas-onde 2.4s var(--doux) infinite; }
@keyframes atlas-onde { 0% { opacity: .45; transform: scale(.35); } 100% { opacity: 0; transform: scale(1.35); } }

/* Le bus cinéma */
.bus { pointer-events: none; }
.bus-ombre    { fill: rgba(0,0,0,.4); }
.bus-caisse   { fill: var(--or); stroke: #8A8036; stroke-width: .8; }
.bus-toit     { stroke: var(--or-clair); stroke-width: 1.4; stroke-linecap: round; }
.bus-vitre    { fill: #0A1450; }
.bus-porte    { fill: #0A1450; stroke: #8A8036; stroke-width: .6; }
.bus-pare-brise { fill: #2B3E9E; }
.bus-filet    { fill: var(--indigo); }
.bus-pastille { fill: var(--indigo); }
.bus-lecture  { fill: var(--or-clair); }
.bus-phare    { fill: #FFF6C8; }
.bus-faisceau { opacity: 0; transition: opacity .4s; }
.bus-pellicule { fill: none; stroke: #0A1450; stroke-width: 2.4; }
.bus-bobine circle { fill: #0A1450; stroke: var(--or-clair); stroke-width: 1.2; }
.bus-bobine .moyeu { fill: var(--or-clair); stroke: none; }
.bus-bobine .trou  { fill: var(--or-sombre); stroke: none; }
.bus-roue circle { fill: #070B26; stroke: #3A4170; stroke-width: 1.4; }
.bus-roue path   { stroke: var(--or-clair); stroke-width: 1; }
.bus-bobine, .bus-roue { transform-box: fill-box; transform-origin: center; }
.bus-bobine { animation: tourne 6s linear infinite; }
.bus.roule .bus-roue    { animation: tourne .45s linear infinite; }
.bus.roule .bus-bobine  { animation-duration: 1.6s; }
.bus.roule .bus-saut    { animation: cahote .32s ease-in-out infinite alternate; }
.bus.roule .bus-faisceau { opacity: 1; }
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes cahote { from { transform: translateY(0); } to { transform: translateY(-1.1px); } }

/* Commandes : lecture/pause + étapes */
.atlas-commandes { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; }
.atlas-lecture {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 1.05rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff;
  font-family: var(--f-sec); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.atlas-lecture:hover { border-color: var(--or); color: var(--or-clair); }
.atlas-lecture .i-lire { display: none; }
.atlas-lecture[aria-pressed="false"] .i-lire { display: block; }
.atlas-lecture[aria-pressed="false"] .i-pause { display: none; }
.atlas-etapes { position: relative;
  list-style: none; margin: 0; padding: 2px; display: flex; gap: .4rem;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
          mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.atlas-etapes::-webkit-scrollbar { display: none; }
.atlas-etapes li { flex: 0 0 auto; scroll-snap-align: start; }
.atlas-etapes button {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82); font-family: var(--f-sec); font-size: .82rem; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.atlas-etapes button b { font-size: .68rem; color: var(--or); letter-spacing: .06em; }
.atlas-etapes button:hover { border-color: rgba(216,206,140,.6); color: #fff; }
.atlas-etapes button[aria-current="step"] { background: var(--or); border-color: var(--or); color: var(--indigo-nuit); }
.atlas-etapes button[aria-current="step"] b { color: var(--indigo); }
@media (min-width: 1020px) {
  .atlas-etapes { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .atlas-commandes { align-items: flex-start; }
}

/* Fiche de l'étape */
.atlas-fiche { min-height: 17rem; }
.atlas-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rayon); background: rgba(255,255,255,.08); margin-bottom: 1.15rem; }
.atlas-media img, .atlas-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atlas-media img { transition: opacity .45s var(--doux), transform 6s var(--doux); }
.atlas-media img.change { opacity: 0; }
.atlas-media video { opacity: 0; transition: opacity .7s var(--doux); }
.atlas-media video.joue { opacity: 1; }
.atlas-route {
  position: absolute; left: .8rem; top: .8rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .7rem; border-radius: 999px; background: rgba(7,15,66,.82); color: var(--or-clair);
  font-family: var(--f-sec); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.atlas-route i { width: 7px; height: 7px; border-radius: 50%; background: var(--or); animation: clignote 1s ease-in-out infinite alternate; }
@keyframes clignote { from { opacity: .3; } to { opacity: 1; } }
.atlas.en-route .atlas-route { opacity: 1; transform: none; }
.atlas-etape { font-family: var(--f-sec); font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.5); margin-bottom: .45rem; }
.atlas-etape span { color: var(--or); }
.atlas-n { margin-bottom: .35rem; }
.atlas-km { font-family: var(--f-sec); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--or-clair); margin-bottom: .8rem; }
.atlas-d { color: rgba(255,255,255,.78); font-size: .97rem; font-weight: 300; }

/* Petits écrans : on garde la carte lisible en n'affichant que l'étiquette
   de l'étape en cours ; les puces sous la carte donnent tous les noms. */
@media (max-width: 640px) {
  .atlas-pt text { font-size: 30px; stroke-width: 7px; opacity: 0; transition: opacity .3s; }
  .atlas-pt.vu text, .atlas-pt.vise text { opacity: 1; }
  .atlas-pt .bague { r: 11; }
  .c-ville, .c-deg, .c-pays .c-fl, .c-echelle, .c-nord { display: none; }
  .c-pays text { font-size: 22px; }
  .c-pays .c-gmb { font-size: 16px; }
  .c-pays .c-oce { font-size: 17px; }
  .atlas-lecture span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .atlas-lecture { padding: 0; width: 44px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-pt.vu .halo { animation: none; opacity: .25; transform: none; }
  .bus-bobine, .bus.roule .bus-roue, .bus.roule .bus-saut { animation: none; }
}

/* --------------------------------------------------------------------------
   13. ACTUALITÉS
   -------------------------------------------------------------------------- */
.brv { display: flex; flex-direction: column; height: 100%; }
.brv-img { overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--rayon); background: var(--indigo-voile); }
.brv-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--doux); }
.brv:hover .brv-img img { transform: scale(1.05); }
.brv-corps { padding-top: .95rem; display: flex; flex-direction: column; flex: 1; }
.brv-meta { display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem; font-family: var(--f-sec); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.brv-c { color: var(--or-sombre); }
.brv-d { color: var(--gris-pale); }
.brv-t { transition: color .25s; margin-bottom: .4rem; }
.brv:hover .brv-t { color: var(--indigo-vif); }
.brv-x { font-size: .93rem; color: var(--gris); font-weight: 300; }
.brv--une { display: grid; grid-template-columns: 1fr; gap: clamp(1.1rem, 3vw, 2.5rem); align-items: center; }
@media (min-width: 900px) { .brv--une { grid-template-columns: 1.15fr 1fr; } }
.brv--une .brv-img { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .brv--une .brv-corps { padding-top: 0; } }

/* --------------------------------------------------------------------------
   14. CHAPEAU DE PAGE
   -------------------------------------------------------------------------- */
.chap { background: var(--indigo); color: #fff; position: relative; overflow: hidden; }
.chap .env { position: relative; z-index: 2; padding-block: calc(var(--entete) + clamp(1.75rem, 4vw, 3rem)) clamp(2rem, 4.5vw, 3.75rem); }
.chap-img { position: absolute; inset: 0; }
.chap-img img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
@media (min-width: 980px) { .chap-img { inset: 0 0 0 44%; } .chap-img img { opacity: 1; } }
.chap-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--indigo) 6%, rgba(12,24,108,.8) 44%, rgba(12,24,108,.42)); }
@media (max-width: 979px) { .chap-img::after { background: linear-gradient(90deg, var(--indigo) 8%, rgba(12,24,108,.86)); } }
.chap-t { margin-block: .85rem; }
.fil { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.fil li, .fil a { font-family: var(--f-sec); font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.64); }
.fil a:hover { color: var(--or-clair); }
.fil li[aria-current] { color: #fff; }
.fil .sp { opacity: .4; }

/* --------------------------------------------------------------------------
   15. ACCORDÉON ET FORMULAIRE
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--trait); }
.acc-i { border-bottom: 1px solid var(--trait); }
.acc-t {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: 1.1rem 0;
  font-family: var(--f-sec); font-size: 1.02rem; font-weight: 600;
  transition: color .25s;
}
.acc-t:hover { color: var(--indigo-vif); }
.acc-s { flex: none; position: relative; width: 16px; height: 16px; }
.acc-s::before, .acc-s::after { content: ''; position: absolute; background: var(--or-sombre); transition: transform .3s var(--sortie); }
.acc-s::before { inset: 7px 0 auto 0; height: 2px; }
.acc-s::after { inset: 0 7px auto 7px; width: 2px; height: 16px; }
.acc-t[aria-expanded="true"] .acc-s::after { transform: scaleY(0); }
.acc-c { max-height: 0; overflow: hidden; transition: max-height .4s var(--doux); }
.acc-c > div { padding-bottom: 1.25rem; color: var(--gris); max-width: 66ch; font-weight: 300; }

.form { display: grid; gap: 1.1rem; }
.form-r { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 620px) { .form-r { grid-template-columns: 1fr 1fr; } }
.ch { display: grid; gap: .4rem; }
.ch > label { font-family: var(--f-sec); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.ch input, .ch textarea, .ch select {
  background: #fff; border: 2px solid var(--trait); border-radius: 8px;
  min-height: 50px; padding: .8rem 1rem; font-size: 1rem;
  transition: border-color .22s, box-shadow .22s;
}
.ch input:focus, .ch textarea:focus, .ch select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(12,24,108,.13); }
.ch textarea { resize: vertical; min-height: 140px; }
.ch input::placeholder, .ch textarea::placeholder { color: var(--gris-pale); }
.form-n { font-size: .84rem; color: var(--gris-pale); }
.form-a { border: 2px solid var(--indigo); border-radius: 8px; background: var(--indigo-voile); padding: .85rem 1.1rem; font-size: .92rem; color: var(--indigo); display: none; }
.form-a.vu { display: block; }

/* --------------------------------------------------------------------------
   16. APPEL ET PIED
   -------------------------------------------------------------------------- */
.appel { display: grid; grid-template-columns: 1fr; background: var(--indigo); color: #fff; }
@media (min-width: 980px) { .appel { grid-template-columns: 1fr 1fr; } }
.appel-t { padding: clamp(2.5rem, 5.5vw, 4.5rem) var(--gouttiere); }
.appel-i { max-width: 32rem; }
@media (min-width: 980px) { .appel-i { margin-left: auto; padding-right: 2rem; } }
.appel-c { min-height: 300px; position: relative; background: var(--indigo-nuit); border-top: 1px solid var(--trait-nuit); }
@media (min-width: 980px) { .appel-c { min-height: 400px; border-top: 0; } }
.appel-c iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

.pied { background: var(--indigo-profond); color: rgba(255,255,255,.72); }
.pied-h { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 620px) { .pied-h { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pied-h { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; } }
.pied-l img { height: 44px; margin-bottom: 1.2rem; }
.pied-x { font-size: .94rem; max-width: 30ch; margin-bottom: 1.4rem; font-weight: 300; }
.pied-t { font-family: var(--f-sec); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or); margin-bottom: 1.05rem; }
.pied-n li + li { margin-top: .2rem; }
.pied-n a { display: flex; align-items: center; min-height: 40px; font-size: .93rem; font-weight: 300; transition: color .25s, padding-left .25s; }
.pied-n a:hover { color: var(--or-clair); padding-left: .3rem; }
.pied-co { display: grid; gap: .9rem; font-size: .93rem; font-weight: 300; }
.pied-co b { display: block; font-family: var(--f-sec); font-size: .66rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .12rem; }
.pied-co a:hover { color: var(--or-clair); }
.res { display: flex; gap: .5rem; }
.res a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--trait-nuit); border-radius: 999px; transition: background-color .25s, border-color .25s, color .25s; }
.res a:hover { background: var(--or); border-color: var(--or); color: var(--indigo-profond); }
.pied-b { border-top: 1px solid var(--trait-nuit); padding-block: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap; font-size: .83rem; font-weight: 300; }
.pied-b a:hover { color: var(--or-clair); }

/* --------------------------------------------------------------------------
   17. RÉVÉLATION ET RETOUR HAUT
   -------------------------------------------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--doux), transform .8s var(--sortie); }
.rv.vu { opacity: 1; transform: none; }
.rv-1 { transition-delay: .06s; }
.rv-2 { transition-delay: .12s; }
.rv-3 { transition-delay: .18s; }
.rv-4 { transition-delay: .24s; }

.haut {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 139;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--indigo); color: #fff; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(12,24,108,.26);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s var(--sortie), background-color .25s;
}
.haut.vu { opacity: 1; visibility: visible; transform: none; }
.haut:hover { background: var(--or); color: var(--indigo-profond); }

/* --------------------------------------------------------------------------
   18. MOUVEMENT RÉDUIT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
  .bande-rail { animation: none; }
  .heros-plan.vu img { animation: none; }
}

/* --------------------------------------------------------------------------
   19. WORDPRESS
   -------------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { clip: auto; width: auto; height: auto; padding: .8rem 1rem; background: #fff; z-index: 999; }

/* Barre d'administration : l'en-tête fixe descend d'autant. */
body.admin-bar .entete { top: 32px; }
body.admin-bar .volet { padding-top: calc(var(--entete) + 32px + 1.25rem); }
@media (max-width: 782px) {
  body.admin-bar .entete { top: 46px; }
  body.admin-bar .volet { padding-top: calc(var(--entete) + 46px + 1.25rem); }
}
@media (max-width: 600px) { body.admin-bar .entete.pose { top: 0; } }

/* Pages sans bandeau sombre en tête : en-tête opaque dès le chargement. */
.ck-entete-plein #principal { padding-top: var(--entete); }

/* Contenu rédigé dans l'éditeur de WordPress */
.lire h2, .lire h3, .lire h4 { font-family: var(--f-sec); color: var(--encre); font-weight: 700; line-height: 1.2; margin: 2em 0 .7em; }
.lire h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); }
.lire h3 { font-size: clamp(1.2rem, 2.4vw, 1.4rem); }
.lire h4 { font-size: 1.08rem; }
.lire > :first-child { margin-top: 0; }
.lire ul, .lire ol { margin: 1.05em 0; padding-left: 1.3em; }
.lire ul { list-style: disc; }
.lire ol { list-style: decimal; }
.lire li + li { margin-top: .4em; }
.lire a:not(.bt):not(.fl) { color: var(--indigo-vif); text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 3px; }
.lire blockquote { margin: 1.8em 0; padding: .3em 0 .3em 1.3em; border-left: 3px solid var(--or); font-family: var(--f-sec); font-size: 1.2rem; color: var(--encre); }
.lire figure, .lire .wp-block-image, .lire .wp-block-embed { margin: 2em 0; }
.lire img { border-radius: var(--rayon); height: auto; }
.lire figcaption, .wp-caption-text { font-size: .82rem; color: var(--gris-pale); margin-top: .6rem; }
.lire hr { border: 0; border-top: 1px solid var(--trait); margin: 2.2em 0; }
.lire table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; }
.lire th, .lire td { padding: .7rem .8rem; border-bottom: 1px solid var(--trait); text-align: left; }
.lire iframe { max-width: 100%; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.sticky, .bypostauthor, .gallery-caption { }

/* Pagination */
.pages-nav { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: .4rem; }
.pages-nav .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
  border: 1px solid var(--trait); border-radius: 999px; font-family: var(--f-sec); font-weight: 600; font-size: .86rem;
}
.pages-nav .page-numbers.current { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pages-nav a.page-numbers:hover { border-color: var(--or); color: var(--indigo); }

/* Recherche */
.recherche { display: flex; gap: .5rem; max-width: 34rem; margin-top: 1.6rem; }
.recherche input { flex: 1; min-height: 48px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.recherche input::placeholder { color: rgba(255,255,255,.6); }

/* Fiche film : bande-annonce */
.fiche-ba { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon); overflow: hidden; background: var(--indigo-profond); }
.fiche-ba video, .fiche-ba iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Aucun résultat */
.vide { padding: 2.5rem; border: 1px dashed var(--trait-fort); border-radius: var(--rayon); color: var(--gris); text-align: center; }

/* --------------------------------------------------------------------------
   20. ELEMENTOR
   Chaque widget Cinekap rend une section complète, pleine largeur :
   le conteneur Elementor qui l'accueille perd ses marges et sa limite de
   largeur, sinon la section serait « encadrée ».
   -------------------------------------------------------------------------- */
.e-con:has(> .elementor-widget[class*="elementor-widget-ck-"]),
.e-con:has(> .e-con-inner > .elementor-widget[class*="elementor-widget-ck-"]) {
  --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px; --widgets-spacing: 0px;
  --content-width: 100%; --container-max-width: 100%;
}
.e-con:has(> .elementor-widget[class*="elementor-widget-ck-"]) > .e-con-inner { max-width: 100%; padding: 0; gap: 0; }
.elementor-widget[class*="elementor-widget-ck-"] { width: 100%; max-width: 100%; margin: 0; }
.elementor-widget[class*="elementor-widget-ck-"] > .elementor-widget-container { margin: 0; padding: 0; }
.elementor .film-aff img, .elementor .brv-img img, .elementor .metier-v img, .elementor .heros-plan img,
.elementor .chap-img img, .elementor .planches img, .elementor .atlas-media img { height: 100%; max-width: none; border-radius: 0; }
.elementor .marque img { height: 34px; max-width: none; }
@media (min-width: 900px) { .elementor .marque img { height: 42px; } }

/* Dans l'éditeur, tout est visible tout de suite. */
.elementor-editor-active .rv, .elementor-editor-preview .rv { opacity: 1; transform: none; }

/* Aperçu d'un gabarit d'en-tête dans la bibliothèque Elementor */
.single-elementor_library .entete { position: relative; top: 0; background: var(--indigo-nuit); }
.single-elementor_library .volet { display: none; }
a.brv-img { display: block; }

/* Formulaire : erreurs et champ piège */
.form-a--erreur { border-color: #B3261E; background: #FCEEEE; color: #8C1D18; }
.ch.erreur input, .ch.erreur textarea, .ch.erreur select { border-color: #B3261E; }
.ch-err { font-size: .8rem; color: #B3261E; }
.ch-piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pied de page : sur téléphone, chaque colonne devient un accordéon.
   Le repli n'est actif qu'une fois le script chargé (.pied--plie). */
.pied-tt { margin: 0; font: inherit; }
.pied-t { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; cursor: default; }
.pied-s { display: none; flex: none; position: relative; width: 14px; height: 14px; }
.pied-s::before, .pied-s::after { content: ''; position: absolute; background: var(--or); transition: transform .3s var(--sortie); }
.pied-s::before { inset: 6px 0 auto 0; height: 2px; }
.pied-s::after { inset: 0 6px auto 6px; width: 2px; height: 14px; }
@media (max-width: 619px) {
  .pied-h { gap: 0; }
  .pied-l { margin-bottom: 1.6rem; }
  .pied-col { border-top: 1px solid var(--trait-nuit); }
  .pied-col:last-child { border-bottom: 1px solid var(--trait-nuit); }
  .pied--plie .pied-t { min-height: 56px; margin: 0; cursor: pointer; font-size: .74rem; }
  .pied--plie .pied-s { display: block; }
  .pied--plie .pied-t[aria-expanded="true"] .pied-s::after { transform: scaleY(0); }
  .pied--plie .pied-c { max-height: 0; overflow: hidden; transition: max-height .4s var(--doux); }
  .pied--plie .pied-c > * { padding-bottom: 1.2rem; }
  .pied-col > .pied-tt + .pied-c { margin-top: 0; }
}

/* Deux photos sous un titre : une grande, une vignette décalée par-dessus. */
.duo { position: relative; margin-top: clamp(1.8rem, 4vw, 2.6rem); padding-bottom: 18%; }
.duo figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--rayon); background: var(--indigo-voile); }
.duo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.duo-a { width: 84%; aspect-ratio: 3 / 2; }
.duo-b { position: absolute !important; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; box-shadow: 0 0 0 6px #fff, 0 18px 40px rgba(12,24,108,.18); }
.sec--gris .duo-b { box-shadow: 0 0 0 6px var(--gris-fond), 0 18px 40px rgba(12,24,108,.18); }
.sec--nuit .duo-b, .sec--profond .duo-b { box-shadow: 0 0 0 6px var(--indigo), 0 18px 40px rgba(0,0,0,.3); }
.duo figcaption {
  position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem);
  padding: .3rem .6rem; border-radius: 999px; background: rgba(4,8,39,.72); color: #fff;
  font-family: var(--f-sec); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.duo--seul { padding-bottom: 0; }
.duo--seul figure { width: 100%; position: relative !important; }
.duo img { transition: transform .9s var(--doux); }
.duo figure:hover img { transform: scale(1.04); }
.elementor .duo img { height: 100%; max-width: none; border-radius: 0; }
.duo-a figcaption { top: .6rem; bottom: auto; }
@media (hover: none) { .pied-n a:hover { padding-left: 0; } }
