/* ============================================================================
   Rivierako — HOME (front-page.php), refonte complète 0.26.0 (14/09/2026).

   Chargée sur la home SEULE, après responsive.css (functions.php). Classes
   `ac-*` propres au gabarit ; les rares retouches de composants partagés sont
   préfixées `.accueil` (classe de <main>) : aucune fiche ne peut en hériter.

   Direction Cabotage inchangée (palette, Outfit/Inter, rayon 16px, ombres
   douces, aucune bordure de carte). La personnalité vient de l'échelle (Outfit
   maigre en très grand), du rythme des fonds (crème, sable, bleu profond), des
   photos pleine surface et des micro-détails (surtitres filetés, carte des
   prix à points de conduite, frise horaire).

   Chaque bloc porte ses propres media queries, en fin de bloc.
   ========================================================================== */

:root {
  --surface-bande-sombre:  #16324F;   /* bleu profond du pied, repris en bande de rythme */
  --encre-sur-sombre:      #D5DEE8;
  --encre-sur-sombre-fort: #FFFFFF;
  --accent-sur-sombre:     #EDA487;   /* terracotta éclairci : lisible en petit sur le bleu profond (6,4:1) */
  --voile-tuile:           linear-gradient(180deg, rgba(22,50,79,0) 24%, rgba(22,50,79,.56) 56%, rgba(22,50,79,.92) 100%);
  /* Petites cartes : le texte y occupe plus de la moitié de la hauteur, le
     voile doit donc commencer plus haut (surtitre illisible sur un ciel clair). */
  --voile-tuile-courte:    linear-gradient(180deg, rgba(22,50,79,.06) 0%, rgba(22,50,79,.6) 42%, rgba(22,50,79,.93) 100%);
  --ombre-texte-photo:     0 1px 10px rgba(12, 28, 45, .45);
  --filet-pointille:       #D9C7B4;
  --filet-etapes:          #EADCCB;
  --ombre-portee:          0 30px 60px -32px rgba(22, 50, 79, .5);
  --rythme-accueil:        clamp(4.2rem, 3rem + 4.5vw, 7.5rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.accueil [id] { scroll-margin-top: 92px; }
.accueil .icone { width: 1.1em; height: 1.1em; flex: none; }

/* ---- Titres de la home : plus grands et plus serrés que sur les fiches ---- */
.accueil h2 {
  font-size: clamp(1.85rem, 1.25rem + 2.1vw, 3rem);
  line-height: 1.06;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.ac-section { padding-block: var(--rythme-accueil); }

.ac-surtitre {
  display: flex; align-items: center; gap: .75rem;
  margin: 0 0 1rem;
  font-family: var(--police-titre); font-weight: 600;
  font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-action);
}
.ac-surtitre::before {
  content: ""; flex: 0 0 28px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.ac-surtitre--clair { color: var(--accent-sur-sombre); }

.ac-chapo {
  margin: 1.1rem 0 0; max-width: 60ch;
  font-size: clamp(1.04rem, .98rem + .3vw, 1.18rem); line-height: 1.62;
  color: var(--encre-texte);
}
.ac-note { margin: 1rem 0 0; max-width: 60ch; font-size: .88rem; line-height: 1.55; color: var(--encre-texte); }

.ac-entete { margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
.ac-entete--lien {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.2rem 2.4rem;
}
.ac-entete__texte { flex: 1 1 34rem; }

.ac-lien-fleche {
  display: inline-flex; align-items: center; gap: .45rem;
  padding-bottom: 2px; border-bottom: 2px solid transparent;
  font-family: var(--police-bouton); font-weight: 600; font-size: .98rem;
  color: var(--accent-action); text-decoration: none; white-space: nowrap;
  transition: border-color .16s ease;
}
.ac-lien-fleche .icone { width: 1.05rem; height: 1.05rem; transition: transform .18s ease; }
.ac-lien-fleche:hover, .ac-lien-fleche:focus-visible { border-bottom-color: currentColor; }
.ac-lien-fleche:hover .icone { transform: translateX(3px); }

/* Pastille de prix, pleine (jamais translucide sur une photo). */
.ac-prix {
  display: inline-flex; align-items: center;
  margin: 1rem 0 0; padding: .42rem .85rem;
  border-radius: 999px; background: #FFFFFF; color: var(--encre-titre);
  font-family: var(--police-donnee); font-weight: 600; font-size: .86rem; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* Puces de liens (maillage secondaire). */
.ac-puces {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.ac-puces a {
  display: inline-flex; align-items: center;
  min-height: 2.6rem; padding: .45rem 1.05rem;
  border-radius: 999px; background: var(--surface-carte); color: var(--encre-titre);
  box-shadow: var(--ombre-carte);
  font-family: var(--police-bouton); font-weight: 600; font-size: .9rem;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.ac-puces a:hover, .ac-puces a:focus-visible { background: var(--accent-action); color: var(--encre-sur-accent); }
.ac-aussi { margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
.ac-aussi__titre {
  margin: 0; font-family: var(--police-titre); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-texte);
}
.ac-aussi .ac-puces { margin-top: .8rem; }

/* ============================================================================
   HERO — plein écran, titre éditorial (mot-clé en appel, promesse en Outfit
   maigre), contenu ancré en bas à gauche. La vidéo et son repli photo restent
   ceux de rivierako_hero_video().
   ========================================================================== */
.ac-hero .enveloppe {
  min-height: clamp(420px, calc(68vh - 76px), 640px);
  min-height: clamp(420px, calc(68svh - 76px), 640px);
  justify-content: flex-end;
  padding-block: 5rem clamp(2.4rem, 1.6rem + 3vw, 4.4rem);
}
.ac-hero .hero__voile {
  background:
    linear-gradient(0deg, rgba(22,50,79,.78) 0%, rgba(22,50,79,.26) 46%, rgba(22,50,79,0) 72%),
    var(--hero-voile-accueil);
}
/* Fond d'attente sombre sous la photo (hero et bandeau final) : le fond crème
   des médias passé sous le voile donnait un gris sale le temps du chargement. */
.ac-hero .media, .ac-final .media { background: var(--surface-bande-sombre); }
.ac-hero .hero__texte { max-width: 52rem; }
.ac-hero__titre { margin: .9rem 0 0; font-size: 1rem; color: var(--encre-sur-hero-photo); }
.ac-hero__mot-cle {
  display: block; margin-bottom: .55rem;
  font-weight: 600; font-size: clamp(1.1rem, .92rem + .8vw, 1.55rem);
  letter-spacing: .01em;
}
.ac-hero__promesse {
  display: block;
  font-weight: 300; font-size: clamp(2.75rem, 1.15rem + 5.6vw, 5.9rem);
  line-height: .98; letter-spacing: -.038em;
  text-wrap: balance;
}
.ac-hero__intro {
  margin: 1.7rem 0 0; max-width: 40rem;
  font-size: clamp(1.02rem, .96rem + .3vw, 1.16rem); line-height: 1.6;
  color: var(--encre-sur-hero-photo); opacity: .93;
}
.ac-hero .hero__actions { margin-top: 2.3rem; }

@media (max-width: 700px) {
  .ac-hero .enveloppe { padding-block: 5rem 2.6rem; }
  .ac-hero .hero__voile {
    background: linear-gradient(180deg, rgba(22,50,79,.30) 0%, rgba(22,50,79,.52) 40%, rgba(22,50,79,.88) 100%);
  }
}

/* ============================================================================
   CARTES PHOTO — motif commun aux tuiles bateaux, cartes postales et escales :
   photo pleine surface, voile bas, texte blanc, lien étendu à toute la carte.
   ========================================================================== */
.ac-tuile, .ac-postale, .ac-escale {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--rayon-carte);
  background: var(--surface-carte-muette);
  box-shadow: var(--ombre-carte);
}
.ac-tuile .media, .ac-postale .media, .ac-escale .media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; margin: 0;
  border-radius: 0; aspect-ratio: auto;
}
.ac-tuile .media img, .ac-postale .media img, .ac-escale .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.22, 1, .36, 1);
}
.ac-tuile::after, .ac-postale::after, .ac-escale::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--voile-tuile); pointer-events: none;
}
.ac-tuile:not(.ac-tuile--vedette)::after { background: var(--voile-tuile-courte); }
.ac-tuile__texte, .ac-postale__texte, .ac-escale__texte { text-shadow: var(--ombre-texte-photo); }
.ac-tuile__texte .ac-prix { text-shadow: none; }
.ac-tuile:hover .media img, .ac-postale:hover .media img, .ac-escale:hover .media img { transform: scale(1.05); }

.ac-tuile h3, .ac-postale h3, .ac-escale h3 { color: #FFFFFF; }
.ac-tuile h3 a, .ac-postale h3 a, .ac-escale h3 a, .ac-sortie h3 a { color: inherit; text-decoration: none; }
/* Zone cliquable étendue : le titre reste le seul lien du DOM. */
.ac-tuile h3 a::after, .ac-postale h3 a::after, .ac-escale h3 a::after, .ac-sortie h3 a::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
}
.ac-tuile h3 a:focus-visible, .ac-postale h3 a:focus-visible,
.ac-escale h3 a:focus-visible, .ac-sortie h3 a:focus-visible { outline: none; }
.ac-tuile:has(a:focus-visible), .ac-postale:has(a:focus-visible),
.ac-escale:has(a:focus-visible), .ac-sortie:has(a:focus-visible) {
  outline: 3px solid var(--accent-action); outline-offset: 3px;
}

/* Flèche d'angle : signal de lien lisible au doigt, pas seulement au survol. */
.ac-fleche {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #FFFFFF; color: var(--encre-titre);
  box-shadow: 0 6px 18px rgba(22, 50, 79, .2);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.ac-fleche .icone { width: 20px; height: 20px; }
.ac-tuile:hover .ac-fleche, .ac-postale:hover .ac-fleche, .ac-escale:hover .ac-fleche {
  background: var(--accent-action); color: var(--encre-sur-accent); transform: scale(1.06);
}

/* Saison : pastille pleine en haut à gauche des cartes de destination. */
.ac-saison {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .38rem;
  margin: 0; padding: .34rem .72rem;
  border-radius: 999px; background: #FFFFFF; color: var(--encre-titre);
  font-family: var(--police-titre); font-weight: 600; font-size: .74rem; line-height: 1.2;
}
.ac-saison .icone { width: .95rem; height: .95rem; color: var(--accent-action); }

@media (prefers-reduced-motion: reduce) {
  .ac-tuile .media img, .ac-postale .media img, .ac-escale .media img { transition: none; }
  .ac-tuile:hover .media img, .ac-postale:hover .media img, .ac-escale:hover .media img { transform: none; }
}

/* ============================================================================
   BATEAUX — mosaïque (yacht en vedette) + rangée « à la journée ».
   ========================================================================== */
.ac-mosaique { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ac-tuile { min-height: 360px; }
.ac-tuile__texte {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.3rem, 1rem + 1.2vw, 2.1rem);
  color: #FFFFFF;
}
.ac-tuile__usage {
  margin: 0;
  font-family: var(--police-titre); font-weight: 600;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}
.ac-tuile h3 {
  margin: .35rem 0 .5rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -.02em;
}
.ac-tuile--vedette h3 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.ac-tuile__desc {
  margin: 0; max-width: 42ch;
  font-size: .97rem; line-height: 1.5; color: rgba(255, 255, 255, .92);
}

@media (min-width: 700px) {
  .ac-mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-tuile--vedette { grid-column: 1 / -1; min-height: 460px; }
}
@media (min-width: 1000px) {
  .ac-mosaique {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 1.2rem;
  }
  .ac-tuile { grid-column: span 5; min-height: 0; }
  .ac-tuile--vedette { grid-column: span 7; grid-row: span 2; }
}

.ac-sous-titre {
  display: flex; align-items: center; gap: 1rem;
  margin: clamp(2.4rem, 1.8rem + 2vw, 3.4rem) 0 1.1rem;
  font-family: var(--police-titre); font-weight: 650; font-size: 1.05rem;
  color: var(--encre-titre);
}
.ac-sous-titre::after { content: ""; flex: 1; height: 1px; background: #E6D9CB; }

.ac-sorties { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ac-sortie {
  position: relative;
  display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 1.1rem;
  padding: .7rem 1.1rem .7rem .7rem;
  border-radius: var(--rayon-carte); background: var(--surface-carte);
  box-shadow: var(--ombre-carte);
  transition: box-shadow .18s ease, transform .18s ease;
}
.ac-sortie:hover { box-shadow: 0 10px 28px rgba(22, 50, 79, .14); transform: translateY(-2px); }
.ac-sortie .media { aspect-ratio: 1; border-radius: 12px; }
.ac-sortie h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.ac-sortie:hover h3 a { color: var(--accent-action); }
.ac-sortie__corps p { margin: 0; font-size: .9rem; line-height: 1.45; }
.ac-sortie__corps .ac-prix { margin-top: .55rem; padding: .3rem .7rem; font-size: .8rem; background: var(--surface-hero); }

@media (min-width: 900px) {
  .ac-sorties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============================================================================
   SKIPPER — photo + comparaison en deux cartes (avec / sans).
   ========================================================================== */
.ac-skipper { background: var(--surface-hero); }
.ac-split { display: grid; gap: clamp(2.2rem, 1rem + 4vw, 5rem); align-items: center; }
.ac-split .media {
  aspect-ratio: 4 / 3; border-radius: var(--rayon-carte);
  box-shadow: var(--ombre-portee);
}
.ac-split .media img { object-position: 38% 50%; }

.ac-duo { display: grid; gap: 1rem; margin: 2rem 0 1.8rem; grid-template-columns: 1fr; }
.ac-duo__col {
  padding: 1.4rem 1.4rem 1.3rem;
  border-radius: var(--rayon-carte); background: var(--surface-carte);
  box-shadow: var(--ombre-carte);
}
.ac-duo__col--fort { background: var(--surface-bande-sombre); }
.ac-duo__titre {
  margin: 0 0 .9rem;
  font-family: var(--police-titre); font-weight: 650; font-size: 1.15rem;
  color: var(--encre-titre);
}
.ac-duo__col--fort .ac-duo__titre { color: var(--encre-sur-sombre-fort); }

.ac-coches { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.ac-coches li {
  display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: .6rem;
  font-size: .95rem; line-height: 1.48; color: var(--encre-texte);
}
.ac-coches .icone { width: 1.15rem; height: 1.15rem; margin-top: .18rem; color: var(--accent-action); }
.ac-duo__col--fort .ac-coches li { color: var(--encre-sur-sombre); }
.ac-duo__col--fort .ac-coches .icone { color: var(--accent-sur-sombre); }

@media (min-width: 600px) {
  .ac-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .ac-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .ac-split .media { aspect-ratio: 4 / 5; }
}

/* ============================================================================
   UNE JOURNÉE À BORD — bande bleu profond, frise horaire de six photos.
   Défile à l'horizontale sous 1100px, frise pleine largeur au-dessus.
   ========================================================================== */
.ac-journee {
  padding-block: var(--rythme-accueil);
  background: var(--surface-bande-sombre); color: var(--encre-sur-sombre);
  overflow: hidden;
}
.ac-journee h2 { color: var(--encre-sur-sombre-fort); max-width: 18ch; }
.ac-journee .ac-chapo { color: var(--encre-sur-sombre); }

.ac-film {
  --marge-film: max(1rem, calc((100% - 1140px) / 2));
  list-style: none;
  margin: clamp(2.2rem, 1.6rem + 2vw, 3.4rem) 0 0;
  padding: 0 var(--marge-film) .4rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 70%);
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--marge-film);
  scrollbar-width: none;
}
.ac-film::-webkit-scrollbar { display: none; }
.ac-film__moment { margin: 0; scroll-snap-align: start; }
.ac-film__heure {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 .9rem;
  font-family: var(--police-donnee); font-weight: 600; font-size: 1.02rem;
  color: var(--encre-sur-sombre-fort); font-variant-numeric: tabular-nums;
}
.ac-film__heure .icone { width: 1.15rem; height: 1.15rem; color: var(--accent-sur-sombre); }
.ac-film .media { aspect-ratio: 4 / 5; border-radius: 14px; background: #0F2338; }
.ac-film .media img { object-position: var(--cadrage, 50% 50%); }
.ac-film__texte { margin: .95rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--encre-sur-sombre); }

@media (min-width: 700px) {
  .ac-film { grid-auto-columns: minmax(240px, 38%); }
}
@media (min-width: 1100px) {
  .ac-film {
    --marge-film: max(1.5rem, calc((100% - 1380px) / 2));
    position: relative;
    grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.1rem; overflow: visible;
  }
  /* Filet de la frise, à hauteur des icônes horaires. */
  .ac-film::before {
    content: ""; position: absolute; top: .76rem;
    left: var(--marge-film); right: var(--marge-film);
    height: 1px; background: rgba(213, 222, 232, .24);
  }
  .ac-film__heure .icone {
    position: relative;
    background: var(--surface-bande-sombre);
    box-shadow: 0 0 0 6px var(--surface-bande-sombre);
  }
}

/* ============================================================================
   DESTINATIONS FRANCE — cartes postales (Côte d'Azur en vedette), bandeau
   fluvial, puces des autres départs.
   ========================================================================== */
.ac-postales { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ac-postale { aspect-ratio: 4 / 5; }
.ac-postale--vedette { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.ac-postale__texte {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.05rem 1.1rem;
  color: #FFFFFF;
}
.ac-postale h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.ac-postale--vedette h3 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
.ac-postale__texte p {
  display: none;
  margin: .35rem 0 0; max-width: 40ch;
  font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .92);
}
.ac-postale--vedette .ac-postale__texte p { display: block; }
/* Sur une petite carte, la flèche cède la place à la pastille de saison. */
.ac-postale:not(.ac-postale--vedette) .ac-fleche { display: none; }

@media (min-width: 640px) {
  .ac-postale__texte p { display: block; }
  .ac-postale:not(.ac-postale--vedette) .ac-fleche { display: grid; }
}
@media (min-width: 1000px) {
  .ac-postales {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, 290px);
    gap: 1.2rem;
  }
  .ac-postale { grid-column: span 3; aspect-ratio: auto; }
  .ac-postale--vedette { grid-column: span 6; grid-row: span 2; }
  .ac-postale__texte { padding: 1.2rem 1.3rem 1.3rem; }
}

.ac-fleuve {
  position: relative; display: grid;
  margin-top: 1.2rem; overflow: hidden;
  border-radius: var(--rayon-carte); background: var(--surface-hero);
  box-shadow: var(--ombre-carte);
}
.ac-fleuve .media { border-radius: 0; aspect-ratio: 16 / 9; }
.ac-fleuve__texte { align-self: center; padding: clamp(1.5rem, 1rem + 2.4vw, 3rem); }
.ac-fleuve h3 { margin: 0 0 .8rem; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -.015em; }
.ac-fleuve__desc { margin: 0; max-width: 52ch; }
.ac-fleuve .ac-prix { background: var(--surface-carte); }

@media (min-width: 900px) {
  .ac-fleuve { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .ac-fleuve .media { aspect-ratio: auto; height: 100%; min-height: 360px; }
}

/* ============================================================================
   RAYON D'ACTION — le bandeau des fiches, posé tel quel sur fond sable.
   ========================================================================== */
.ac-rayon { padding-block: var(--rythme-accueil); background: var(--surface-encart); }
.ac-rayon .ac-entete { margin-bottom: 0; }
.ac-rayon .rayon-bandeau { padding-block: 1.8rem 0; border-top: 0; background: transparent; }
.ac-rayon .rayon__carte { height: clamp(320px, 40vw, 500px); }

/* ============================================================================
   CHARTER À LA SEMAINE — rail horizontal de cartes portrait. Le rail sort de
   la colonne pour filer jusqu'au bord de l'écran (marges calculées, jamais
   100vw : la barre de défilement créerait un débordement horizontal).
   ========================================================================== */
.ac-monde { overflow: hidden; }
.ac-monde .ac-entete { margin-bottom: 1.6rem; }
.ac-rail-nav { display: flex; gap: .6rem; }
.ac-rail-nav[hidden] { display: none; }
.ac-rail-bouton {
  display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--surface-carte); color: var(--encre-titre);
  box-shadow: var(--ombre-carte); cursor: pointer;
  transition: background .16s ease, color .16s ease, opacity .16s ease;
}
.ac-rail-bouton .icone { width: 22px; height: 22px; }
.ac-rail-bouton:hover:not(:disabled) { background: var(--encre-titre); color: #FFFFFF; }
.ac-rail-bouton:disabled { opacity: .35; cursor: default; }
.ac-rail-bouton:focus-visible { outline: 2px solid var(--accent-action); outline-offset: 3px; }

.ac-rail {
  --marge-rail: max(1rem, calc((100% - 1140px) / 2));
  list-style: none; margin: 0;
  padding: .4rem var(--marge-rail) 1.6rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 74%);
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--marge-rail);
  scrollbar-width: none;
}
.ac-rail::-webkit-scrollbar { display: none; }
.ac-escale { aspect-ratio: 3 / 4; scroll-snap-align: start; }
.ac-escale__texte {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.25rem 1.3rem;
  color: #FFFFFF;
}
.ac-escale h3 { margin: 0 0 .35rem; font-size: 1.55rem; letter-spacing: -.015em; }
.ac-escale__texte p { margin: 0; font-size: .92rem; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.ac-monde__pied { margin: .4rem 0 0; }

@media (min-width: 700px) {
  .ac-rail { grid-auto-columns: minmax(250px, 40%); gap: 1.2rem; }
}
@media (min-width: 1100px) {
  .ac-rail { grid-auto-columns: 300px; }
}

/* ---- Comparateur (composant partagé) : seul le rythme vertical change ---- */
.accueil .comparateur { padding-block: var(--rythme-accueil); }

/* ============================================================================
   BUDGET — texte + « carte » des prix à points de conduite, en deux colonnes
   (à la journée / à la semaine) : jamais deux unités mêlées sur une ligne.
   ========================================================================== */
.ac-budget__grille { display: grid; gap: clamp(2rem, 1rem + 3.5vw, 4.5rem); align-items: center; }
.ac-budget__lien { margin: 1.6rem 0 0; }
.ac-menu {
  display: grid; gap: 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  border-radius: var(--rayon-carte); background: var(--surface-carte);
  box-shadow: 0 24px 50px -28px rgba(22, 50, 79, .35);
}
.ac-menu__titre {
  display: flex; align-items: center; gap: .55rem;
  margin: 0 0 1.1rem; padding-bottom: .8rem;
  border-bottom: var(--filet-section);
  font-family: var(--police-titre); font-weight: 650;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--encre-titre);
}
.ac-menu__titre .icone { width: 1.1rem; height: 1.1rem; color: var(--accent-action); }
.ac-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.ac-menu li { display: flex; align-items: baseline; gap: .55rem; }
.ac-menu__libelle { font-size: .95rem; line-height: 1.4; color: var(--encre-titre); }
.ac-menu__points {
  flex: 1 1 1.5rem; min-width: 1.5rem;
  border-bottom: 2px dotted var(--filet-pointille);
  transform: translateY(-.3em);
}
.ac-menu__prix {
  flex: none; white-space: nowrap;
  font-family: var(--police-donnee); font-weight: 650; font-size: 1.02rem;
  color: var(--encre-titre); font-variant-numeric: tabular-nums;
}
.ac-menu__prix small {
  font-family: var(--police-texte); font-weight: 400; font-size: .78em;
  color: var(--encre-texte);
}

/* Deux groupes côte à côte seulement quand la carte a toute la largeur (sous
   le texte) ; en colonne de droite, ils s'empilent : chaque libellé tient
   alors sur une ligne et les points de conduite gardent leur longueur. */
@media (min-width: 700px) and (max-width: 999px) {
  .ac-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem; }
}
@media (min-width: 1000px) {
  .ac-budget__grille { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .ac-menu { gap: 2.2rem; }
}

/* ============================================================================
   BON À SAVOIR — permis et réservation côte à côte, en points à pastille
   d'icône (étapes reliées par un filet vertical).
   ========================================================================== */
.ac-pratique { background: var(--surface-carte); }
.ac-pratique__grille { display: grid; gap: clamp(3.2rem, 2rem + 3vw, 5rem); }
.ac-pratique .media { aspect-ratio: 16 / 9; margin-bottom: 2rem; border-radius: var(--rayon-carte); }
.ac-pratique h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }

.ac-points { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.ac-points li {
  position: relative;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; align-items: start;
}
.ac-pastille {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--surface-hero); color: var(--accent-action);
}
.ac-pastille .icone { width: 1.25rem; height: 1.25rem; }
.ac-point__titre {
  margin: .2rem 0 .2rem;
  font-family: var(--police-titre); font-weight: 650; font-size: 1.04rem;
  color: var(--encre-titre);
}
.ac-point__texte { margin: 0; font-size: .95rem; line-height: 1.55; }
.ac-point__texte a {
  color: var(--accent-action); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
}
.ac-point__texte a:hover { text-decoration-thickness: 2px; }
.ac-points--etapes li:not(:last-child)::before {
  content: ""; position: absolute;
  left: calc(1.375rem - 1px); top: 2.75rem; bottom: -1.25rem;
  width: 2px; background: var(--filet-etapes);
}
.ac-pratique .ac-note { margin-top: 1.6rem; }
.ac-pratique__pied { margin: 1.2rem 0 0; }

@media (min-width: 1000px) {
  .ac-pratique__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================================
   FAQ — intro à gauche, accordéon à droite.
   ========================================================================== */
.ac-faq__grille { display: grid; gap: 2rem; }
.ac-faq .faq-block details:first-child { padding-top: 0; }
.ac-faq .faq-block summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 1.1rem;
}

@media (min-width: 1000px) {
  .ac-faq__grille { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4.5rem; align-items: start; }
}

/* ============================================================================
   BANDEAU FINAL — photo pleine largeur, dernière promesse, CTA affilié.
   Collé au pied de page (même bleu profond), sans marge crème entre les deux.
   ========================================================================== */
.ac-final { position: relative; isolation: isolate; overflow: hidden; background: var(--surface-bande-sombre); }
.ac-final .media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; margin: 0;
  border-radius: 0; aspect-ratio: auto;
}
.ac-final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(95deg, rgba(22,50,79,.9) 0%, rgba(22,50,79,.62) 50%, rgba(22,50,79,.18) 100%);
}
.ac-final .enveloppe {
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(440px, 64vh, 640px);
  padding-block: 4.5rem;
}
.ac-final__titre {
  margin: 0; max-width: 13ch;
  font-family: var(--police-titre); font-weight: 300;
  font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.8rem); line-height: 1; letter-spacing: -.035em;
  color: #FFFFFF; text-wrap: balance;
}
.ac-final__texte {
  margin: 1.3rem 0 0; max-width: 36rem;
  font-size: clamp(1.02rem, .96rem + .3vw, 1.16rem); line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.ac-final .hero__actions { margin-top: 2.2rem; }
.home .pied { margin-top: 0; }

@media (max-width: 700px) {
  .ac-final::before {
    background: linear-gradient(180deg, rgba(22,50,79,.5) 0%, rgba(22,50,79,.88) 100%);
  }
}
