/* ==========================================================================
   Plan B Évènements — feuille de style du site
   Direction artistique 2 « Le Label »
   ========================================================================== */

/* --------------------------------------------------------------- 1. Jetons */

:root {
  /* couleurs */
  --noir:        #060606;
  --noir-bloc:   #0C0C0C;
  --noir-tuile:  #101010;
  --trait:       #1C1C1C;
  --trait-fort:  #262626;
  --trait-clair: #3A3A3A;
  --blanc:       #F2F0EC;
  --gris:        #C8C2B9;
  --gris-doux:   #B0AAA2;
  --gris-texte:  #99938B;
  --gris-faible: #7D776F;
  --gris-sourd:  #6E685F;
  --gris-muet:   #55504A;
  --accent:      #E8402A;
  --accent-clair:#FF5A42;
  --tuile-logo:  #BAB6AE;

  /* rythme */
  --gouttiere:   clamp(20px, 4vw, 56px);
  --section-y:   clamp(48px, 7vw, 76px);
  --colonne-max: 1440px;

  /* typographie fluide */
  --t-geant:   clamp(38px, 8vw, 116px);
  --t-titre-1: clamp(34px, 6vw, 88px);
  --t-titre-2: clamp(32px, 5vw, 74px);
  --t-titre-3: clamp(30px, 4vw, 62px);
  --t-titre-4: clamp(28px, 3.4vw, 52px);
  --t-titre-5: clamp(26px, 3vw, 48px);
  --t-titre-6: clamp(24px, 2.4vw, 34px);
  --t-sous:    clamp(21px, 2vw, 27px);
  --t-cite:    clamp(17px, 1.6vw, 21px);
  --t-corps:   16px;
  --t-petit:   14px;
  --t-mini:    12px;
}

/* ----------------------------------------------------------- 2. Fondations */

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

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

body {
  margin: 0;
  background: var(--noir);
  color: var(--blanc);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--t-corps);
  line-height: 1.5;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4, p, figure, figcaption, ol { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }

ul { margin: 0; padding: 0; list-style: none; }

/* --------------------------------------------------------- 3. Typographie */

.anton {
  font-family: Anton, "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.kick {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.kick--sourd { color: var(--gris-sourd); }
.kick--muet  { color: var(--gris-muet); }

.t-geant   { font-size: var(--t-geant);   line-height: 1.12; }
.t-titre-1 { font-size: var(--t-titre-1); }
.t-titre-2 { font-size: var(--t-titre-2); }
.t-titre-3 { font-size: var(--t-titre-3); }
.t-titre-4 { font-size: var(--t-titre-4); }
.t-titre-5 { font-size: var(--t-titre-5); }
.t-titre-6 { font-size: var(--t-titre-6); }

.chapo  { font-size: var(--t-corps); color: var(--gris); }
.texte  { font-size: 15px; color: var(--gris-texte); }
.cite   { font-size: var(--t-cite); color: var(--gris); font-style: italic; line-height: 1.35; }
.legende{ font-size: var(--t-mini); color: var(--gris-faible); }

/* ------------------------------------------------------------ 4. Structure */

.page { max-width: var(--colonne-max); margin-inline: auto; }

.section {
  padding: var(--section-y) var(--gouttiere);
  border-top: 1px solid var(--trait);
}
.section--sansfiletsuperieur { border-top: 0; }

.section__entete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.section__titre { display: flex; flex-direction: column; gap: 10px; }

/* --------------------------------------------------------------- 5. Boutons */

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: var(--t-mini);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.btn--plein   { background: var(--accent); color: var(--noir); }
.btn--plein:hover { background: var(--accent-clair); color: var(--noir); }
.btn--contour { border: 1px solid var(--trait-clair); color: var(--blanc); }
.btn--contour:hover { border-color: var(--blanc); }
.btn--compact { padding: 11px 22px; }

.lien-fleche {
  margin-top: auto;
  padding-top: 18px;
  font-size: var(--t-mini);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

/* ------------------------------------------------------- 6. Barre de nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px var(--gouttiere);
  background: var(--noir);
  border-bottom: 1px solid var(--trait);
}
.nav__logo img { height: clamp(32px, 4vw, 44px); width: auto; }

/* Barre compacte au defilement, en mobile. Le titre du hero passait sous une
   barre de 77 px ; compactee elle en fait 52, elle mord donc 25 px de moins,
   et le bouton Nous ecrire reste atteignable pendant toute la lecture. */
.nav, .nav__logo img, .nav__cta, .nav__burger {
  transition: padding .22s ease, height .22s ease, font-size .22s ease;
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav__logo img, .nav__cta, .nav__burger { transition: none; }
}
.nav__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: var(--t-mini);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gris-doux);
}
.nav__liens a:hover { color: var(--blanc); }
.nav__liens .est-actif { color: var(--accent); }

/* ------------------------------------------------------------------ 7. Hero */

.hero { position: relative; min-height: clamp(420px, 60vw, 700px); overflow: hidden; }
.hero__image {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__image img,
img.hero__image {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: 50% 32%;
  background: var(--noir-tuile);
}
.hero__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,6,6,.60) 0%, rgba(6,6,6,.15) 40%, rgba(6,6,6,.96) 100%);
}
.hero__contenu {
  position: relative;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(80px, 12vw, 140px) var(--gouttiere) clamp(40px, 5vw, 60px);
}
.hero__bloc { display: flex; flex-direction: column; gap: 22px; }
.hero__aparte { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------- 8. Bandeau des artistes */

.bandeau {
  background: var(--accent);
  color: var(--noir);
  padding: 14px 0;
  overflow: hidden;
  /* les bords s'estompent : aucun nom n'apparait coupe au milieu d'une lettre */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px,
                                      #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 40px,
                                      #000 calc(100% - 40px), transparent);
}
/* la piste porte deux fois la meme liste et glisse de la moitie de sa
   largeur : la boucle est continue, sans saut au raccord */
.bandeau__piste {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: bandeau-defile 140s linear infinite;
}
.bandeau__piste:hover { animation-play-state: paused; }
.bandeau__lot { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.bandeau span { flex-shrink: 0; white-space: nowrap; }
.bandeau .anton { font-size: 16px; }
.bandeau .sep { opacity: .55; }
@keyframes bandeau-defile {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau {
    overflow-x: auto; scrollbar-width: none;
    padding-inline: var(--gouttiere);
    -webkit-mask-image: none; mask-image: none;
  }
  .bandeau::-webkit-scrollbar { display: none; }
  .bandeau__piste { animation: none; width: auto; }
  .bandeau__lot--copie { display: none; }
}

/* ------------------------------------------------------- 9. Chiffres clés */

.chiffres { display: grid; gap: 1px; background: var(--trait); border: 1px solid var(--trait);
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chiffre { background: var(--noir); padding: 26px 30px; display: flex; flex-direction: column; gap: 8px; }
.chiffre__valeur { font-size: var(--t-titre-4); color: var(--accent); line-height: 0.9; }

/* --------------------------------------------------------- 10. Grille cartes */

.cartes {
  display: grid;
  gap: 1px;
  background: var(--trait);
  border: 1px solid var(--trait);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.carte {
  background: var(--noir);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.carte__numero { font-size: 30px; color: var(--accent); }

/* ------------------------------------------------------- 11. Bloc encadré */

.encadre {
  border: 1px solid var(--trait-fort);
  background: var(--noir-bloc);
  padding: clamp(26px, 3vw, 42px);
}

.duo {
  display: grid;
  /* CORRIGE 17/10 : le plancher valait 320px en dur. Sous 360px de large, la
     colonne restait plus large que la zone de contenu et poussait la page de
     20px vers la droite. min() fait retomber le plancher sur la largeur reelle
     disponible. Au-dessus de 320px de conteneur, le calcul est inchange. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 22px;
  align-items: stretch;
}
.duo--desequilibre { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

.etiquettes { display: flex; flex-wrap: wrap; gap: 7px; }
.etiquette {
  border: 1px solid var(--trait-fort);
  padding: 6px 12px;
  font-size: var(--t-mini);
  color: var(--gris-doux);
}

/* ------------------------------------------------------ 12. Portrait duo */

.portrait-duo { border: 1px solid var(--trait-fort); background: var(--noir-bloc);
                display: flex; flex-direction: column; }
.portrait-duo__image {
  flex-grow: 1; min-height: clamp(220px, 30vw, 340px);
  width: 100%; display: block;
  border-bottom: 1px solid var(--trait-fort);
  object-fit: cover;
  background: var(--noir-tuile);
}
.portrait-duo__texte { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }

/* ---------------------------------------------------------- 13. Vignettes */

.vignettes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vignette {
  display: flex; flex-direction: column; gap: 9px;
  margin: 0; padding: 0; border: 0;
  appearance: none; -webkit-appearance: none;
  background: none; background-color: transparent;
  border-radius: 0; box-shadow: none; color: inherit;
  font: inherit; font-family: inherit;
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* libelle sous la vignette : ne doit jamais deborder */
.vignette > .kick {
  letter-spacing: 0.06em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.vignette__cadre {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--noir-tuile); border: 1px solid var(--trait-fort);
  display: flex; align-items: center; justify-content: center;
}
.vignette__cadre img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: opacity .2s ease, transform .3s ease;
}
.vignette__cadre .lecture { position: relative; z-index: 1; }
.vignette:hover .vignette__cadre img { opacity: .62; transform: scale(1.03); }
.vignette:focus-visible .vignette__cadre { outline: 2px solid var(--accent); outline-offset: 2px; }
.vignette:hover .kick { color: var(--blanc); }
/* le lecteur remplace la vignette une fois lance */
.vignette__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

.lecture { width: 74px; height: 74px; border-radius: 50%; background: rgba(232,64,42,.92);
           display: flex; align-items: center; justify-content: center; }
.lecture--petit { width: clamp(34px, 22%, 48px); height: auto; aspect-ratio: 1; }
.lecture::after {
  content: ""; width: 0; height: 0; margin-left: 6px;
  border-left: 24px solid var(--noir);
  border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
.lecture--petit::after { margin-left: 3px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }

/* ----------------------------------------------------------- 14. Vidéo */

.video {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--noir-tuile) center / cover no-repeat;
  border: 1px solid var(--trait-fort);
  overflow: hidden;
}
.video__voile { position: absolute; inset: 0; background: rgba(6,6,6,.28); }
.video__centre { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lecteur video auto-heberge : remplace l'iframe YouTube depuis la v87.
   L'ancienne iframe chargeait 4 239 Ko des l'ouverture de la page, en lecture
   automatique. Le fichier WebM ne part qu'au clic grace a preload="none" :
   poids au chargement 0 Ko. L'affiche est la meme image que le fond du bloc,
   deja telechargee, donc elle ne coute rien de plus. */
.video__lecteur { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
                  background: transparent; object-fit: cover; }


/* -------------------------------------------------------- 15. Réalisations */

/* Les filets viennent d'un halo pose sur chaque fiche, et non du fond du
   conteneur vu au travers des interstices : sinon la case laissee vide en
   fin de grille apparait en gris clair des que la fenetre se reduit. */
.fiches {
  display: grid; gap: 1px;
  background: var(--noir);
  border: 1px solid var(--trait);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.fiche {
  background: var(--noir);
  box-shadow: 0 0 0 1px var(--trait);
  padding: 24px;
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 0;
}
/* L'annee passe au-dessus du nom : plus de conflit de largeur quand le nom
   est long, et les trois fiches s'alignent ligne a ligne. */
.fiche__annee { white-space: nowrap; margin-bottom: 12px; }
.fiche__ville { font-size: 23px; min-height: 2.24em; margin-bottom: 14px; }
/* Le nom de ville est remplace par le logo de la commune. Le h3 est conserve :
   la hierarchie des titres reste intacte et l'attribut alt porte le nom.
   Hauteur egale pour les trois, la normalisation optique a ete ecartee. */
.fiche__logo { display: block; max-width: min(190px, 100%); max-height: 46px;
               width: auto; height: auto; opacity: .88; }
.fiche__type {
  font-size: 13px; color: var(--gris-texte);
  padding-bottom: 10px; border-bottom: 1px solid var(--trait); margin-bottom: 12px;
}
.fiche__artistes { font-size: 13px; color: var(--gris); line-height: 1.6; }

.temoignage { border: 1px solid var(--trait); border-top: 0; background: var(--noir);
              padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------- 16. Galeries de photos */

.galerie { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galerie--serree { gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }

.figure { display: flex; flex-direction: column; gap: 10px; }
.figure__image {
  width: 100%; display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover; object-position: 50% 22%;
  background: var(--noir-tuile);
  border: 1px solid var(--trait-fort);
}
.figure__image--paysage { aspect-ratio: 4 / 3; }
/* Les portraits de l'equipe viennent de sources carrees. Un cadre 4/3 les
   recoupait de 25 % en hauteur et coupait les mentons. Cadre carre, cadrage
   centre : l'image source passe entiere. */
.figure__image--carre { aspect-ratio: 1 / 1; object-position: 50% 50%; }

/* Fondu des vignettes differees. Voir apparition.js : la classe js-fondu
   n'existe que si le script tourne, donc sans JS les images restent visibles. */
.js-fondu .galerie .figure__image { opacity: 0; transition: opacity .55s ease; }
.js-fondu .galerie .figure__image.est-chargee { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js-fondu .galerie .figure__image { opacity: 1; transition: none; }
}
.figure__nom { font-size: 15px; font-weight: 600; }

/* -------------------------------------------------------- 17. Partenaires */

/* Mur de marques. Les logos sont detoures et ramenes en niveaux de gris, a
   surface d'encre egale : aucune marque ne crie plus fort qu'une autre.
   Sept colonnes sur ordinateur, soit deux lignes pleines pour quatorze. */
/* Meme correctif que sur .fiches : les filets viennent d'un halo pose sur
   chaque cellule, et non du fond du conteneur vu au travers des interstices.
   Sinon, a quatre colonnes, les deux cases laissees vides en fin de grille
   apparaissent en aplat gris. */
.marques {
  display: grid; gap: 1px;
  background: transparent;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.marques__c {
  background: var(--noir);
  box-shadow: 0 0 0 1px var(--trait);
  display: grid; place-items: center;
  padding: 16px 12px; min-height: 104px;
}
.marques img {
  max-width: min(190px, 100%); max-height: 66px;
  width: auto; height: auto;
  opacity: .78; transition: opacity .25s ease;
}
.marques__c:hover img { opacity: 1; }

/* Mur des villes, page Collectivites : dix logos, donc cinq colonnes et
   deux rangees pleines. Tout le reste de l'habillage est celui du mur de
   marques de l'accueil. */
.marques--villes { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1100px) { .marques { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sur telephone, defilement lateral au doigt, comme les cartes de Collectivites */
@media (max-width: 720px) {
  .marques {
    display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    background: transparent; border: 0; gap: 10px;
    margin-inline: calc(var(--gouttiere) * -1);
    padding-inline: var(--gouttiere);
  }
  .marques::-webkit-scrollbar { display: none; }
  .marques__c {
    flex: 0 0 46%; scroll-snap-align: center;
    border: 1px solid var(--trait); min-height: 92px; padding: 14px 10px;
  }
  .marques img { max-width: min(150px, 100%); max-height: 56px; }
}

.partenaires {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 26px;
  padding: 26px var(--gouttiere);
  border-top: 1px solid var(--trait);
}
.partenaires .anton { font-size: 16px; color: var(--gris-muet); }

/* ------------------------------------------------------------- 18. Étapes */

.etapes { display: flex; flex-direction: column; gap: 18px; }
.etape { display: flex; gap: 16px; align-items: baseline; }
.etape__numero { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.etape__texte  { font-size: 23px; line-height: 1.16; color: var(--blanc); }

/* ---------------------------------------------------------------- 19. CTA */

.appel {
  background: var(--accent);
  color: var(--noir);
  padding: var(--section-y) var(--gouttiere);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.appel__coordonnees {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 15px; font-weight: 500; text-align: right;
}
.appel .btn--inverse { background: var(--noir); color: var(--accent); align-self: flex-end; margin-top: 12px; }

/* -------------------------------------------------------------- 20. Footer */

.pied {
  padding: 34px var(--gouttiere);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: var(--t-mini); color: var(--gris-sourd);
  border-top: 1px solid var(--trait);
}
.pied__marque { display: flex; align-items: center; gap: 16px; }
.pied__marque img { height: 34px; width: auto; opacity: .9; }
.pied__liens { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* -------------------------------------------------- 21. Points de rupture */

@media (max-width: 1100px) {
  .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galerie--serree { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero__contenu { grid-template-columns: 1fr; align-items: start; }
  .hero__aparte { max-width: none; }
  .duo--desequilibre { grid-template-columns: 1fr; }
  .appel { flex-direction: column; align-items: flex-start; }
  .appel__coordonnees { text-align: left; }
  .appel .btn--inverse { align-self: flex-start; }
  .section__entete { align-items: flex-start; }
}

@media (max-width: 560px) {
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .galerie--serree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vignettes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ------------------------------------------------------------ 22. Divers */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------- 23. Formulaire */

.formulaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ--large { grid-column: 1 / -1; }

.champ__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gris-faible);
}

.champ__saisie {
  width: 100%;
  border: 1px solid var(--trait-fort);
  background: var(--noir-bloc);
  color: var(--blanc);
  font-family: inherit;
  font-size: var(--t-petit);
  padding: 12px 14px;
  border-radius: 0;
  appearance: none;
}
.champ__saisie:focus {
  outline: none;
  border-color: var(--accent);
}
.champ__saisie--zone { resize: vertical; min-height: 96px; }

.formulaire .btn { border: 0; font-family: inherit; align-self: flex-start; }

@media (max-width: 640px) {
  .formulaire { grid-template-columns: 1fr; }
}

/* -------------------------------------------------- 24. Bandes d'images */

.bande {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--trait-fort);
}
.bande img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bande__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,.08) 0%, rgba(6,6,6,.58) 100%);
}

.visuel {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  border: 1px solid var(--trait-fort);
}

/* ------------------------------------------------ 25. Navigation mobile */

.nav__burger { display: none; }

@media (max-width: 1200px) {
  .nav { flex-wrap: wrap; gap: 14px; }
  .nav__logo { order: 1; }
  .nav__cta   { order: 2; margin-left: auto; }
  .nav__burger {
    order: 3;
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px;
    padding: 0; border: 1px solid var(--trait-fort); background: none;
    cursor: pointer; align-items: center;
  }
  .nav__burger span {
    display: block; width: 20px; height: 2px; background: var(--blanc);
    transition: transform .22s ease, opacity .15s ease;
  }
  .nav__liens {
    order: 4; width: 100%;
    display: none; flex-direction: column; flex-wrap: nowrap;
    gap: 0; font-size: 13px;
  }
  .nav--ouvert .nav__liens { display: flex; }
  .nav__liens a { padding: 15px 2px; border-top: 1px solid var(--trait); }
  .nav__liens a:first-child { border-top: 0; padding-top: 4px; }

  .nav--ouvert .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--ouvert .nav__burger span:nth-child(2) { opacity: 0; }
  .nav--ouvert .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* etat compact : pose par nav.js passe 80 px de defilement.
     Jamais quand le menu est ouvert, le panneau se decalerait sous le doigt. */
  /* La barre passe en position fixe et laisse derriere elle une reserve de
     hauteur constante, mesuree par nav.js. Sans cette reserve, la barre qui
     retrecit rend sa place au flux et tire la page de 27 px vers le haut :
     le titre serait recouvert exactement autant qu'avant. */
  .nav { position: fixed; left: 0; right: 0; }
  .page { padding-top: var(--nav-h, 77px); }
  .nav--compacte { padding-top: 8px; padding-bottom: 8px; }
  .nav--compacte .nav__logo img { height: 26px; }
  .nav--compacte .nav__cta { padding: 8px 16px; font-size: 11px; }
  .nav--compacte .nav__burger { width: 32px; height: 32px; }
  .nav--compacte .nav__burger span { width: 17px; }
}

/* ------------------------------------------------------- 26. Parallax */

[data-parallax] {
  will-change: transform;
  backface-visibility: hidden;
}
/* l'image deborde de son cadre pour que le glissement ne laisse jamais de vide */
img.hero__image[data-parallax],
.bande img[data-parallax] {
  position: absolute; left: 0; top: -25%;
  width: 100%; height: 150%;
}
.bande { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none !important; will-change: auto; }
}

/* --------------------------------------------- 27. Apparition au scroll */
/* La classe js-apparition est posee par le script : sans JS, rien n'est masque. */

.js-apparition .section__entete,
.js-apparition .section__titre,
.js-apparition .carte,
.js-apparition .mur__item,
.js-apparition .film,
.js-apparition .galerie > .figure,
.js-apparition .fiches,
.js-apparition .temoignage,
.js-apparition .marques__c,
.js-apparition .chiffres,
.js-apparition .encadre,
.js-apparition .portrait-duo,
.js-apparition .video,
.js-apparition .bande,
.js-apparition .vignettes:not(.vignettes--trois),
.js-apparition .vignettes--trois > .vignette,
.js-apparition .etapes,
.js-apparition .formulaire,
.js-apparition .visuel,
.js-apparition .partenaires {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
}
.js-apparition .carte {
  transform: translateY(30px);
  transition-duration: .62s;
}
.js-apparition .mur__item {
  transform: translateY(22px);
  transition-duration: .5s;
}
/* Les vignettes de galerie entrent une par une. Le bloc entier montait
   auparavant d'un seul tenant : quand les images etaient deja chargees,
   les huit portraits se posaient ensemble et aucun fondu ne se voyait. */
.js-apparition .galerie > .figure {
  transform: translateY(18px);
  transition-duration: .58s;
}
.js-apparition .est-vu,
.js-apparition .vignettes--trois > .vignette.est-vu,
/* selecteur d'enfant : sa specificite depasse celle de .js-apparition .est-vu,
   l'opacite serait restee a 0 sans cette ligne */
.js-apparition .galerie > .figure.est-vu,
.js-apparition .vignettes:not(.vignettes--trois).est-vu { opacity: 1; transform: none; }
.js-apparition .sans-transition { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .js-apparition [class] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* --------------------------------- 28. Ajustements mobile : nav et hero */

@media (max-width: 1200px) {
  /* menu ouvert : le panneau ne doit jamais depasser la fenetre */
  .nav--ouvert .nav__liens { max-height: calc(100vh - 110px); overflow-y: auto; }
}

@media (max-width: 640px) {
  /* le hero est nettement plus haut que large : on remonte le cadrage
     et on reduit le debordement du parallax, qui rognait le sujet */
  .hero { min-height: clamp(460px, 78vw, 620px); }
  img.hero__image { object-position: 50% 26%; }
  img.hero__image[data-parallax] { top: -12%; height: 124%; }
  .hero__contenu { padding-top: clamp(40px, 9vw, 70px); }
}

/* ==================================================== 29. Page Booking */

/* le H1 tient sur trois lignes ; sans CTA sous le chapo, le hero
   peut etre plus ramasse et la liste du roster remonte d'autant */
.hero--booking { min-height: clamp(430px, 50vw, 580px); }
.hero--collectivites { min-height: clamp(430px, 50vw, 580px); }
.hero--collectivites + .section { padding-top: clamp(34px, 5vw, 54px); }
.hero--booking .hero__contenu { padding-top: clamp(56px, 9vw, 96px); padding-bottom: clamp(30px, 4vw, 46px); }
.hero--booking + .section { padding-top: clamp(34px, 5vw, 54px); }

/* --- index typographique du roster --- */

.index { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,.8fr);
         gap: clamp(24px,4vw,56px); align-items: start; }
.index__noms { display: flex; flex-wrap: wrap; gap: 7px 20px; align-content: flex-start; }
.index__nom {
  font-size: clamp(17px, 2.05vw, 30px); line-height: 1.14;
  color: var(--gris-muet);
  transition: color .18s ease;
}
.index__nom--photo { color: var(--blanc); cursor: pointer; }
.index__nom--photo:hover,
.index__nom--photo:focus-visible,
.index__nom.est-actif { color: var(--accent); outline: none; }

.index__cadre { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.index__vignette {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border: 1px solid var(--trait-fort); background: var(--noir-bloc);
}
.index__vignette img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .3s ease;
}
.index__vignette img.est-affichee { opacity: 1; }
.index__legende { font-size: clamp(19px,2.3vw,30px); color: var(--accent); line-height: 1.05; min-height: 1.1em; }

/* --- mur de portraits --- */

.mur { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.mur__item { display: flex; flex-direction: column; }
.mur__cadre { position: relative; aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--trait-fort); }
.mur__cadre img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity .35s ease, transform .5s ease;
}
.mur__couleur {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0;
  transition: opacity .35s ease;
}
.mur__item:hover .mur__couleur { opacity: 1; }
.mur__item:hover .mur__cadre img { transform: scale(1.03); }
.mur__nom {
  font-size: clamp(15px, 1.45vw, 20px); line-height: 1.12;
  padding: 12px 2px 0; color: var(--blanc); transition: color .2s ease;
}
.mur__item:hover .mur__nom { color: var(--accent); }

@media (max-width: 1100px) { .mur { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .index { grid-template-columns: 1fr; }
  .index__cadre { position: static; max-width: 320px; }
}
@media (max-width: 640px) {
  .mur { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .mur__nom { font-size: 11px; line-height: 1.15; padding-top: 7px; letter-spacing: .01em; }
  .index__noms { gap: 5px 14px; }
  /* le survol n'existe pas au doigt : le cadre photo est inutile */
  .index__cadre { display: none; }
}

/* ------------------- 30. Recouvrement entre roster et images (mobile) */
/* Le bloc du roster se fige quand son bas atteint le bas de l'ecran ;
   la section photos monte par-dessus. Aucune hauteur ajoutee a la page. */

@media (max-width: 860px) {
  /* Le conteneur borne le collage : sans lui, sticky reste actif jusqu'au
     bas de la page et la liste repasse par-dessus le CTA et le pied. */
  .empilement { position: relative; }
  /* top et non bottom : la liste ne se fige qu'une fois arrivee sous la nav,
     sinon elle flotte deja pendant le defilement du hero */
  .bloc-roster { position: sticky; top: 78px; z-index: 0; }
  /* page Captation : le texte se fige sous la nav et l'image N&B glisse DESSOUS.
     Fond opaque obligatoire, sinon l'image transparait a travers le bloc. */
  .bloc-fige {
    position: sticky; top: 78px; z-index: 1;
    background: var(--noir);
    box-shadow: 0 26px 46px rgba(6, 6, 6, .9);
  }
  .bloc-recouvre { position: relative; z-index: 0; box-shadow: none; border-top: 0; }
  .bloc-images {
    position: relative; z-index: 1;
    background: var(--noir);
    border-top: 1px solid var(--trait-fort);
    box-shadow: 0 -26px 46px rgba(6, 6, 6, .85);
  }
  /* ceinture et bretelles : rien ne doit passer sous la liste collee */
  .appel, .pied { position: relative; z-index: 2; }
  .vignettes--trois { position: relative; z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .bloc-roster, .bloc-fige { position: static; }
  .bloc-images { box-shadow: none; }
  .bloc-fige { box-shadow: none; }
}

/* ------------------------------- Noms mis en avant (mobile uniquement) */
/* Sur mobile le cadre photo est masque : la distinction blanc / gris
   (avec ou sans photo) ne sert plus a rien. Le rouge signale les noms
   les plus porteurs, seule hierarchie utile au doigt. */

@media (max-width: 860px) {
  .index__nom--phare { color: var(--accent); }
}

/* ================================================= 31. Diaporama de hero */

.diapo { position: absolute; inset: 0; overflow: hidden; background: var(--noir); }
.diapo__vue { position: absolute; inset: 0; }
.diapo__vue img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(.4, 0, .2, 1);
}
.diapo__vue img.est-active { opacity: 1; }

/* commandes, en bas a droite du hero */
.diapo__barre {
  position: absolute; z-index: 3;
  right: var(--gouttiere); bottom: clamp(18px, 3vw, 30px);
  display: flex; align-items: center; gap: 14px;
}
.diapo__compteur {
  font-size: var(--t-mini); letter-spacing: .14em; color: var(--blanc);
  font-variant-numeric: tabular-nums; opacity: .85;
}
.diapo__compteur b { color: var(--accent); font-weight: 400; }
.diapo__fleche {
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  appearance: none; -webkit-appearance: none;
  background: rgba(6,6,6,.42); border: 1px solid rgba(242,240,236,.34);
  border-radius: 0; color: var(--blanc); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-color .2s ease;
}
.diapo__fleche:hover { background: var(--accent); border-color: var(--accent); color: var(--noir); }
.diapo__fleche:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.diapo__fleche svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* progression : un filet qui se remplit sous le hero */
.diapo__progression {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(242,240,236,.14);
}
.diapo__progression span {
  display: block; height: 100%; width: 0;
  background: var(--accent);
  transition: width .18s linear;
}

@media (max-width: 640px) {
  .diapo__barre { right: auto; left: var(--gouttiere); gap: 10px; }
  .diapo__fleche { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .diapo__vue img { transition: none; }
  .diapo__progression { display: none; }
}

/* ============================================ 32. Vidéos pleine largeur */

.hero--aventuriers { min-height: clamp(460px, 56vw, 660px); }
/* Captation : hero plus bas sur telephone, l'image est trop rognee sinon
   (x2,1 et 48 % de la largeur visible a 460 px ; x1,46 et 69 % a 320 px) */
@media (max-width: 860px) { .hero--captation { min-height: 320px; } }
/* Contact : hero encore 20 % plus bas que Captation sur telephone */
@media (max-width: 860px) { .hero--contact { min-height: 256px; } }

.films { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.film { display: flex; flex-direction: column; gap: 0; }

.film__ecran {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; overflow: hidden;
  margin: 0; padding: 0; border: 1px solid var(--trait-fort);
  appearance: none; -webkit-appearance: none;
  background: var(--noir-tuile); border-radius: 0; box-shadow: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.film__ecran img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
.film__voile {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,.22) 0%, rgba(6,6,6,.05) 45%, rgba(6,6,6,.55) 100%);
  transition: opacity .45s ease;
}
.film__ecran .lecture {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: clamp(58px, 7vw, 84px); height: auto; aspect-ratio: 1;
  background: rgba(232, 64, 42, .94);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), background .25s ease;
}
.film__ecran:hover img { transform: scale(1.035); }
.film__ecran:hover .film__voile { opacity: .55; }
.film__ecran:hover .lecture { transform: translate(-50%, -50%) scale(1.09); background: var(--accent-clair); }
.film__ecran:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* le lecteur remplace la vignette une fois lance */
.film__ecran iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

.film__legende {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 2px 0;
  max-width: 760px;
}
.film__titre { font-size: clamp(21px, 2.4vw, 32px); line-height: 1.12; color: var(--blanc); }
.film__legende .texte { font-size: clamp(14px, 1.3vw, 16px); }

@media (max-width: 640px) {
  .film__legende { padding-top: 15px; }
}

/* ============================================================
   33. bandeau reseaux sociaux
   ============================================================ */
.social {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 14px clamp(18px, 3vw, 34px);
  padding: clamp(26px, 3.4vw, 36px) var(--gouttiere);
  border-top: 1px solid var(--trait);
}
.social__liens { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.social__liens a {
  font-family: Anton, "Arial Narrow", sans-serif;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(17px, 1.9vw, 24px); line-height: 1.12;
  color: var(--blanc); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.social__liens a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.social__liens a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.social__sep { color: var(--gris-sourd); font-size: 14px; }

@media (max-width: 640px) {
  .social { flex-direction: column; gap: 12px; }
  .social__liens { gap: 8px 14px; }
}

/* saut de ligne actif seulement sur ecran etroit */
.saut-etroit { display: none; }
@media (max-width: 640px) { .saut-etroit { display: inline; } }

/* ============================================================
   34. grille de vignettes a trois colonnes (page Captation)
   ============================================================ */
.vignettes--trois { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vignette__artiste {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); line-height: 1.2;
}
.vignette__titre {
  font-family: Anton, "Arial Narrow", sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: -.005em;
  font-size: clamp(14px, 1.25vw, 18px); line-height: 1.12;
  color: var(--gris); transition: color .2s ease;
  overflow-wrap: anywhere;
}
.vignette:hover .vignette__titre { color: var(--blanc); }

@media (max-width: 860px) { .vignettes--trois { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; } }
@media (max-width: 520px) { .vignettes--trois { gap: 10px; } .vignette__titre { font-size: 13px; } }

.js-apparition .vignettes--trois > .vignette { transform: translateY(22px); transition-duration: .5s; }

/* ============================================================
   35. lecteur en surimpression (vignettes de grille)
   Le cadre d'une vignette passe sous 200 px sur telephone :
   le lecteur YouTube n'y demarre pas. On l'ouvre par-dessus.
   ============================================================ */
.modale { position: fixed; inset: 0; z-index: 200; display: flex;
          align-items: center; justify-content: center; padding: 16px; }
.modale[hidden] { display: none; }
.modale__fond { position: absolute; inset: 0; background: rgba(4,4,4,.93); }
.modale__boite { position: relative; width: min(1180px, 96vw); }
.modale__cadre { position: relative; aspect-ratio: 16 / 9; max-height: 82vh;
                 margin: 0 auto; background: #000; border: 1px solid var(--trait-fort); }
.modale__cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modale__fermer {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; padding: 0;
  appearance: none; -webkit-appearance: none;
  background: none; border: 1px solid var(--trait-clair); border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--blanc);
  transition: border-color .2s ease, color .2s ease;
}
.modale__fermer:hover { border-color: var(--accent); color: var(--accent); }
.modale__fermer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modale__fermer svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* le fond ne defile plus pendant la lecture */
.modale-ouverte, .modale-ouverte body { overflow: hidden; }

@media (max-width: 640px) {
  .modale { padding: 10px; }
  .modale__fermer { top: -42px; width: 34px; height: 34px; }
}

/* titre de section transforme en lien : seul le survol le signale */
a.section__titre--lien { text-decoration: none; color: inherit;
  width: max-content; max-width: 100%; }   /* la zone cliquable colle au texte */
a.section__titre--lien h2 { transition: color .2s ease; }
a.section__titre--lien:hover h2 { color: var(--accent); }
a.section__titre--lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

/* formulaire sans colonne de titre : borne pour que les champs restent lisibles */
.formulaire--seul { max-width: 900px; }

/* coordonnees sous le titre du formulaire (page Contact) */
.coordonnees { margin-top: 12px; display: flex; flex-direction: column; gap: 5px;
               font-size: var(--t-corps); color: var(--gris-texte); line-height: 1.5; }
.coordonnees__nom { color: var(--gris); font-weight: 700; }
.coordonnees__tel { color: var(--gris); text-decoration: none;
                    border-bottom: 1px solid var(--trait-fort);
                    padding-bottom: 2px; transition: border-color .2s ease; }
.coordonnees__tel:hover { border-bottom-color: var(--accent); }

/* lien reseau dans le pied de page */
.pied__social { display: inline-flex; align-items: center; line-height: 0; }
.pied__social img { width: 20px; height: 20px; display: block;
                    opacity: .78; transition: opacity .2s ease; }
.pied__social:hover img { opacity: 1; }
.pied__social:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* page Contact : formulaire elargi de 20 % au detriment de la colonne titre
   (1.35fr / 1fr donne 42,6 % au formulaire ; 0.96fr / 1fr lui en donne 51,1 %) */
.duo--formulaire { grid-template-columns: minmax(0, 0.93fr) minmax(0, 1fr); }
@media (max-width: 860px) { .duo--formulaire { grid-template-columns: 1fr; } }

/* ============================================================
   36. pages de texte long (mentions legales, confidentialite)
   ============================================================ */
.doc { max-width: 760px; }
.doc h2 {
  font-family: Anton, "Arial Narrow", sans-serif; font-weight: 400;
  text-transform: uppercase; letter-spacing: -.005em; line-height: 1.12;
  font-size: clamp(20px, 2.1vw, 27px); color: var(--blanc);
  margin: clamp(38px, 5vw, 54px) 0 14px;
  padding-top: clamp(26px, 3.4vw, 34px);
  border-top: 1px solid var(--trait);
}
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc p { font-size: var(--t-corps); color: var(--gris-texte); line-height: 1.62; margin: 0 0 14px; }
.doc p.doc__adresse { color: var(--gris); line-height: 1.75; }
.doc strong { color: var(--gris); font-weight: 700; }
.doc a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--accent); }
.doc ul { margin: 0 0 14px; padding-left: 18px; }
.doc li { font-size: var(--t-corps); color: var(--gris-texte); line-height: 1.62; margin-bottom: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 4px 0 18px; }
.doc th, .doc td {
  text-align: left; padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--trait);
  font-size: 15px; color: var(--gris-texte); line-height: 1.5; vertical-align: top;
}
.doc th { color: var(--gris-sourd); font-size: 11px; letter-spacing: .18em;
          text-transform: uppercase; font-weight: 700; }
.doc td:first-child { color: var(--gris); width: 42%; padding-right: 24px; }
.doc__maj { font-size: 13px; color: var(--gris-muet); margin-bottom: 4px; }

@media (max-width: 520px) {
  .doc td:first-child { width: 46%; padding-right: 14px; }
  .doc th, .doc td { font-size: 14px; }
}

/* ------------------------------------------- 37. Questions et réponses */

.qr { max-width: 860px; }

.qr__item {
  border-top: 1px solid var(--trait);
}
.qr__item:last-child { border-bottom: 1px solid var(--trait); }

.qr__q {
  list-style: none;
  cursor: pointer;
  display: block;
  position: relative;
  padding: clamp(20px, 2.4vw, 26px) 46px clamp(20px, 2.4vw, 26px) 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.42;
  color: var(--gris);
  font-weight: 500;
  transition: color .18s ease;
}
.qr__q::-webkit-details-marker { display: none; }
.qr__q:hover { color: var(--blanc); }
.qr__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* la croix : deux barres, la verticale disparait a l'ouverture */
.qr__q::before,
.qr__q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  background: var(--gris-sourd);
  transition: transform .22s ease, background-color .18s ease;
}
.qr__q::before { width: 15px; height: 1px; transform: translateY(-50%); }
.qr__q::after  { width: 1px; height: 15px; right: 13px; transform: translateY(-50%); }

.qr__item[open] > .qr__q { color: var(--blanc); }
.qr__item[open] > .qr__q::after { transform: translateY(-50%) scaleY(0); }
.qr__q:hover::before,
.qr__q:hover::after { background: var(--accent); }

.qr__r {
  padding: 0 46px clamp(22px, 2.6vw, 30px) 0;
  max-width: 68ch;
}
.qr__r p {
  font-size: var(--t-corps);
  color: var(--gris-texte);
  line-height: 1.62;
  margin: 0 0 12px;
}
.qr__r p:last-child { margin-bottom: 0; }
.qr__r strong { color: var(--gris); font-weight: 700; }
.qr__r a { color: var(--gris); text-decoration: underline; text-underline-offset: 3px; }
.qr__r a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .qr__q, .qr__q::before, .qr__q::after { transition: none; }
}

/* ------------------------ 38. Cartes en defilement lateral (mobile) */

@media (max-width: 720px) {
  .cartes--rail {
    display: flex;
    gap: 10px;
    /* le fond gris de la grille debordait dans les gouttieres et dessinait
       un lisere sur le bord de l'ecran : le rail n'a ni fond ni cadre */
    background: transparent;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* deborde volontairement les gouttieres pour que la carte suivante
       affleure le bord de l'ecran et signale qu'il y en a d'autres */
    margin-inline: calc(var(--gouttiere) * -1);
    padding-inline: var(--gouttiere);
  }
  .cartes--rail::-webkit-scrollbar { display: none; }
  .cartes--rail .carte {
    flex: 0 0 82%;
    scroll-snap-align: center;
    border: 1px solid var(--trait);
    padding: 30px 26px;
  }
}

/* -------------------- 39. Visuel des etapes avec glissement au scroll */

.visuel-cadre {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--trait-fort);
  margin: 0;
}
.visuel-cadre img {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover; display: block;
  border: 0;
}

/* ------------------- 40. Bouton de retour en haut (Collectivites, mobile) */

.haut {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid var(--trait-clair);
  background: rgba(6, 6, 6, .88);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease,
              background-color .18s ease, border-color .18s ease;
}
.haut.est-vu { opacity: 1; transform: none; }
.haut:active { background: var(--accent); border-color: var(--accent); }
.haut:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* la fleche : un chevron fait de deux traits */
.haut__fleche {
  width: 11px; height: 11px;
  border-left: 2px solid var(--gris);
  border-top: 2px solid var(--gris);
  transform: rotate(45deg) translate(1px, 1px);
}
.haut:active .haut__fleche { border-color: var(--noir); }

@media (max-width: 720px) { .haut { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  .haut { transition: none; transform: none; }
}

/* ------------------ 41. Titre de rail et fleche de defilement (mobile) */

.titre-rail { display: flex; align-items: baseline; gap: 14px; }
.titre-rail > * { margin: 0; }

.rail-fleche { display: none; }

@media (max-width: 720px) {
  .rail-fleche {
    display: block;
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 1px;
    background: var(--trait-clair);
    align-self: center;
    animation: rail-glisse 2.6s ease-in-out infinite;
  }
  .rail-fleche::after {
    content: "";
    position: absolute;
    right: 0; top: 50%;
    width: 6px; height: 6px;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
  }
}

@keyframes rail-glisse {
  0%, 62%, 100% { transform: translateX(0); }
  78%           { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .rail-fleche { animation: none; }
}

/* ------------------------------ 42. Hero de l'accueil, mise au point */
/* Le conteneur porte le parallax et le debordement, l'image porte
   l'animation : parallax.js ecrit style.transform et ecraserait le scale. */

.hero__scene[data-parallax] {
  position: absolute; left: 0; top: -25%;
  width: 100%; height: 150%;
}
.p-accueil .hero__image { transform-origin: 50% 55%; }

/* interligne du titre, resserre pour le hero de l'accueil */
.p-accueil .hero .t-geant { line-height: 1.04; }

/* etat de repos */
.p-accueil .hero__image { filter: blur(30px); transform: scale(1.12); }
.p-accueil .hero .kick,
.p-accueil .hero .chapo,
.p-accueil .hero .hero__actions { opacity: 0; }
.p-accueil .hero .ligne__i { transform: translateY(130%); }

/* le titre decoupe en lignes */
.hero .ligne {
  display: block; position: relative;
  width: fit-content; max-width: 100%;
  overflow: hidden;
  padding-top: .10em; margin-top: -.10em;
  padding-bottom: .06em; margin-bottom: -.06em;
}
.hero .ligne__i { display: block; }

/* la sequence, posee par hero.js */
.p-accueil .hero.joue-image .hero__image {
  animation: hero-net 1400ms cubic-bezier(.50,0,.30,1) both;
}
@keyframes hero-net {
  from { filter: blur(30px); transform: scale(1.12); }
  to   { filter: blur(0);    transform: scale(1); }
}
.p-accueil .hero.joue-texte .ligne__i {
  animation: hero-levee 820ms cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(400ms + var(--n) * 300ms);
}
/* 130 % et non 110 % : le cadre masquant est elargi de .10em vers le haut
   pour ne pas couper l'accent du E, et 110 % laissait cet accent depasser
   par le bas pendant toute la montee. */
@keyframes hero-levee {
  from { transform: translateY(130%); }
  to   { transform: translateY(0); }
}
.p-accueil .hero.joue-texte .kick {
  animation: hero-monte 500ms cubic-bezier(.16,1,.3,1) both; animation-delay: 240ms;
}
.p-accueil .hero.joue-texte .chapo {
  animation: hero-monte 500ms cubic-bezier(.16,1,.3,1) both; animation-delay: 1300ms;
}
.p-accueil .hero.joue-texte .hero__actions {
  animation: hero-monte 500ms cubic-bezier(.16,1,.3,1) both; animation-delay: 1420ms;
}
@keyframes hero-monte {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* filet de securite : si le script ne part pas, rien ne reste masque */
.p-accueil .hero.sans-js .hero__image { filter: none; transform: none; }
.p-accueil .hero.sans-js .kick,
.p-accueil .hero.sans-js .chapo,
.p-accueil .hero.sans-js .hero__actions { opacity: 1; }
.p-accueil .hero.sans-js .ligne__i { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .p-accueil .hero__image { filter: none; transform: none; }
  .p-accueil .hero .kick,
  .p-accueil .hero .chapo,
  .p-accueil .hero .hero__actions { opacity: 1; }
  .p-accueil .hero .ligne__i { transform: none; }
  .p-accueil .hero.joue-texte *,
  .p-accueil .hero.joue-image * { animation: none !important; }
}


/* ---------------------- 40. Retour du formulaire de contact (17/10) */

.avis {
  margin: 4px 0 0;
  padding: 14px 18px;
  font-size: var(--t-mini);
  line-height: 1.5;
  color: var(--blanc);
  background: rgba(255,255,255,.04);
  border-left: 3px solid var(--trait-fort);
}
.avis--ok     { border-left-color: var(--accent); }
.avis--alerte { border-left-color: var(--accent-clair); }

/* Bouton pendant l'envoi : il reste plein et le texte reste lisible, une bande
   plus claire balaie le fond. Indicateur d'activite, pas une progression : la
   duree reelle de l'envoi n'est pas connue du navigateur. */
.btn--envoi { position: relative; overflow: hidden; cursor: progress; }
.btn--envoi > span { position: relative; z-index: 2; }
.btn--envoi::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--accent-clair);
  transform-origin: left center;
  animation: btn-balayage 1s ease-in-out infinite;
}
@keyframes btn-balayage {
  0%   { transform: scaleX(0); opacity: 1; }
  65%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--envoi::before { animation: none; transform: scaleX(1); }
}
