/* Yamoo Drive — vue Accueil (@layer vues)
   Plan (docs/DESIGN.md § 8, édition 7.4 « Traversée ») : héros plein cadre et panneau de réservation en verre → bulle
   d'accueil → vitrine de la flotte → occasions → « Monte. Expire. » → le site dans ta main. Les sections « Ce qui compte,
   dit d'avance », « Les grands jours », « La flotte en images », « Ton budget », « Comment ça marche », « Yamoo recrute » et
   l'appel final ont été retirées en 7.4 (demande du propriétaire : elles répétaient ce que l'accueil montre déjà).
   Héros (d'après blacklane.com/fr) :
   - le film (img/route-t2.webp, img/route-toyota.webp, 1536 px ; DIAPOS de client.js) couvre tout le héros, à toutes les
     largeurs, sous un voile sombre ; l'en-tête reste transparent au texte blanc tant qu'on n'a pas défilé ;
   - titre compact, pastille « Avec | Sans chauffeur » centrée, grand panneau de verre sombre flouté (16 px de rayon, fin
     liseré clair) ; ordinateur : Destination | Départ | Retour | bouton bleu sur une rangée (requêtes de conteneur en em :
     un texte agrandi garde une mise en page qui tient) ; mobile : le panneau en colonne ;
   - Départ et Retour : la date s'affiche en toutes lettres (« sam. 21 nov. 2026 ») par-dessus le champ natif, qui reste
     la source de vérité ; le calendrier déroulant (.calendrier, assets/traversee.js) est un verre sombre, comme le panneau.
   Puis l'affiche « Comment ça marche ? » (.cm-affiche, avant la pile). Au défilement, les huit grandes sections (.pile-page) se superposent comme des pages (fin de ce fichier).
   États posés par le JS (assets/client.js, zone accueil ; assets/traversee.js) :
   - .voyage-hero.entre : entrée du héros ; .lecture : diaporama en marche ; .paused : en pause.
   - #voyageBackground img.active : visuel affiché (fondu enchaîné), --focale : son cadrage.
   - .r-jour.formate : date écrite en toutes lettres (traversee.js) ; .r-cal[aria-expanded] : calendrier ouvert.
   - .lya-dis.rempli : « Dis-le à Lya » contient du texte (l'exemple tournant s'efface).
   - [data-journey][aria-pressed="true"] : occasion choisie (porte aussi [data-occasion]). */
@layer vues {

  .vue[data-vue="accueil"] { --diapo: 9500ms; }

  /* ============================== Héros ============================== */
  .voyage-hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: max(100svh, 620px);
    padding: calc(var(--h-entete) + env(safe-area-inset-top) + 36px) 0 var(--s-6);
    background: var(--encre); color: var(--blanc);
    touch-action: pan-y pinch-zoom;
  }

  /* Visuels : plein cadre à toutes les largeurs, fondu enchaîné (mouvement coupé en mouvement réduit) */
  .voyage-background {
    position: absolute; inset: 0; z-index: -3; overflow: hidden;
    transition: opacity 1200ms var(--ease), scale 1600ms var(--ease);
  }
  .voyage-background img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: var(--focale, 60% 55%);
    opacity: 0;
    transition: opacity 1200ms var(--ease-in-out);
  }
  .voyage-background img.active { opacity: 1; animation: lent-zoom 26s var(--ease-in-out) infinite alternate; }
  .voyage-hero.paused .voyage-background img.active { animation-play-state: paused; }
  @keyframes lent-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }
  /* Au-delà de 1600 px, le visuel large (1536 px) est déjà agrandi en plein cadre : pas de zoom lent en plus. */
  @media (min-width: 1600px) { .voyage-background img.active { animation: none; } }

  /* Voile : en-tête lisible en haut, panneau lisible en bas ; plus dense sur mobile, où tout le texte est sur la photo */
  .voyage-voile {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--noir) 62%, transparent) 0%,
        color-mix(in srgb, var(--noir) 30%, transparent) 24%,
        color-mix(in srgb, var(--noir) 46%, transparent) 46%,
        color-mix(in srgb, var(--noir) 82%, transparent) 78%,
        var(--noir) 100%);
  }
  @media (min-width: 1024px) {
    .voyage-voile {
      background:
        radial-gradient(70% 50% at 50% 62%, color-mix(in srgb, var(--noir) 30%, transparent), transparent 72%),
        var(--voile-heros);
    }
  }

  /* ---------- Titre (compact) ---------- */
  .voyage-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .voyage-kicker {
    margin-bottom: var(--s-3);
    font-size: var(--t-micro); font-weight: 600; line-height: 1.3; letter-spacing: .18em; text-transform: uppercase;
    color: var(--blanc-90);
  }
  .voyage-title {
    max-width: 16ch;
    font-size: clamp(2.5rem, 1.7rem + 3vw, 4.25rem);
    color: var(--blanc); letter-spacing: -.012em;
    text-shadow: 0 2px 28px color-mix(in srgb, var(--noir) 45%, transparent);
  }
  .voyage-description {
    max-width: 46ch; margin-top: var(--s-3);
    font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.5;
    color: var(--blanc-90);
    text-wrap: balance;
  }

  /* ---------- Réservation : pastille + panneau de verre ---------- */
  .heros-reservation {
    position: relative; z-index: 1;
    display: grid; gap: var(--s-4);
    margin-top: clamp(20px, 3.4vh, 40px);
    scroll-margin-top: calc(var(--h-entete-solide) + 16px);
  }
  .recherche { display: grid; justify-items: center; gap: var(--s-4); }
  /* « Avec | Sans chauffeur » : pastille de verre à deux choix, posée au-dessus du panneau, centrée */
  .r-chauffeur.segment-verre {
    width: auto; max-width: 100%;
    background: color-mix(in srgb, var(--encre) 42%, transparent);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  }
  .r-chauffeur button { flex: 0 1 auto; min-height: 40px; padding: 0 22px; font-size: .9375rem; }
  .r-chauffeur button[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--noir) 60%, transparent); }
  @media (max-width: 379px) { .r-chauffeur button { padding-inline: 14px; font-size: .875rem; } }

  /* Le grand panneau : verre sombre translucide flouté, fin liseré clair, coins de 16 px */
  .barre-resa {
    container-type: inline-size;
    width: 100%;
    padding: 6px clamp(18px, 2vw, 28px) 0;
    border-radius: var(--r-m);
    background: color-mix(in srgb, var(--encre) 44%, transparent);
    -webkit-backdrop-filter: blur(26px) saturate(1.35); backdrop-filter: blur(26px) saturate(1.35);
    box-shadow:
      inset 0 0 0 1px var(--blanc-20),
      inset 0 1px 0 var(--blanc-12),
      0 40px 90px -40px color-mix(in srgb, var(--noir) 80%, transparent);
    font-size: 1rem;
  }
  .barre-resa-champs {
    display: grid; gap: var(--s-4) var(--s-5);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "zone" "dep" "ret" "go";
    padding: 14px 0 var(--s-5);
  }
  .r-zone { grid-area: zone; }
  .r-depart { grid-area: dep; }
  .r-retour { grid-area: ret; }
  .r-go { grid-area: go; }
  /* Petits libellés blancs, valeurs soulignées */
  .barre-resa .champ.souligne { position: relative; gap: 4px; min-width: 0; font-size: .75rem; letter-spacing: .04em; }
  .barre-resa .champ.souligne > span:first-child { color: var(--blanc-90); font-weight: 500; }
  .barre-resa .champ.souligne :is(input, select) { min-height: 44px; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
  .barre-resa .champ.souligne select { text-overflow: ellipsis; }
  :where(.sur-photo) .barre-resa .champ.souligne :is(input, select):focus { border-bottom-color: var(--azur-clair); box-shadow: 0 1px 0 var(--azur-clair); }
  /* Date et heure : un seul soulignement, un filet fin entre les deux */
  .r-duo {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    border-bottom: 1px solid var(--blanc-50);
    transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  }
  .r-duo:focus-within, .r-duo:has(.r-cal[aria-expanded="true"]) { border-bottom-color: var(--azur-clair); box-shadow: 0 1px 0 var(--azur-clair); }
  .barre-resa .r-duo input { border-bottom: 0; box-shadow: none; }
  .barre-resa .r-duo input:focus { box-shadow: none; }
  .r-duo input[type="time"] { width: 6em; padding-left: var(--s-3); margin-left: var(--s-3); border-left: 1px solid var(--blanc-20); }
  .barre-resa input::-webkit-calendar-picker-indicator { opacity: .8; cursor: pointer; }
  /* Date en toutes lettres par-dessus le champ natif (.formate, posé par traversee.js) ; au clavier, le champ natif
     reprend la main pour la saisie. Le bouton calendrier remplace l'indicateur du navigateur. */
  .r-jour { position: relative; min-width: 0; }
  .r-jour input[type="date"] { width: 100%; }
  .r-jour-texte, .r-cal { display: none; }
  .r-jour.formate input[type="date"] { padding-right: 44px; cursor: pointer; }
  .r-jour.formate input[type="date"]::-webkit-calendar-picker-indicator { display: none; }
  .r-jour.formate input[type="date"]:not(:focus) { color: transparent; }
  .r-jour.formate .r-jour-texte {
    position: absolute; left: 0; right: 40px; top: 50%; translate: 0 -50%;
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: var(--blanc); font-size: 1rem; font-weight: 500;
    pointer-events: none;
  }
  .r-jour.formate input[type="date"]:focus ~ .r-jour-texte { display: none; }
  .r-jour.formate .r-cal {
    position: absolute; right: 0; top: 50%; translate: 0 -50%;
    display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%;
    background: transparent; color: var(--blanc-90);
    transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease);
  }
  .r-cal svg.i { width: 18px; height: 18px; stroke-width: 1.6; }
  .r-cal[aria-expanded="true"] { background: var(--azur-voile); color: var(--blanc); }
  @media (hover: hover) { .r-cal:hover { background: var(--blanc-12); color: var(--blanc); } }
  /* Texte agrandi : date et heure l'une sous l'autre */
  html.texte-grand .r-duo { grid-template-columns: minmax(0, 1fr); }
  html.texte-grand .r-duo input[type="time"] { width: 100%; margin-left: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--blanc-20); }
  /* Bouton bleu vif « Voir les véhicules » */
  .r-go { width: 100%; min-height: 52px; margin-top: var(--s-2); padding-inline: 28px; }
  .r-go span[aria-hidden] { transition: transform var(--d-2) var(--ease); }
  @media (hover: hover) { .r-go:hover span[aria-hidden] { transform: translateX(3px); } }

  /* Seuils mesurés (7.4) pour que la date en toutes lettres tienne entière en fr, en, de et zh, de 320 à 1920 px.
     Deux colonnes (≥ 33em) : destination seule, départ et retour côte à côte */
  @container (min-width: 33em) {
    .barre-resa-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "zone zone" "dep ret" "go go"; }
  }
  /* Tablette (≥ 47em) : les trois champs sur une ligne, le bouton dessous */
  @container (min-width: 47em) {
    .barre-resa-champs { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.1fr); grid-template-areas: "zone dep ret" "go go go"; }
  }
  /* Ordinateur (≥ 61em) : une seule rangée, filets verticaux entre les groupes */
  @container (min-width: 61em) {
    .barre-resa-champs {
      --ecart: 24px;
      grid-template-columns: minmax(9.5em, .8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto;
      grid-template-areas: "zone dep ret go";
      align-items: end; column-gap: var(--ecart);
      padding: 18px 0 var(--s-5);
    }
    .r-depart::before, .r-go::before {
      content: ""; position: absolute; left: calc(var(--ecart) / -2); top: 4px; bottom: 4px; width: 1px;
      background: var(--blanc-20);
    }
    .r-go { position: relative; width: auto; min-height: 56px; margin: 0; align-self: center; overflow: visible; }
    .r-go::before { top: -6px; bottom: -6px; }
  }
  @container (min-width: 70em) {
    .barre-resa-champs { --ecart: 32px; }
  }

  /* Pied du panneau : raccourcis de dates et aperçu en direct */
  .barre-resa-pied {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5);
    padding: var(--s-3) 0 var(--s-4);
    border-top: 1px solid var(--blanc-12);
  }
  .raccourcis { display: flex; gap: var(--s-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
  .raccourcis::-webkit-scrollbar { display: none; }
  .barre-resa .chip {
    flex: none; min-height: 40px; padding: 0 16px;
    background: transparent; color: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--blanc-50);
  }
  .barre-resa .chip[aria-pressed="true"] { background: var(--blanc); color: var(--encre); box-shadow: none; }
  @media (hover: hover) {
    .barre-resa .chip:not([aria-pressed="true"]):hover { background: var(--blanc-12); box-shadow: inset 0 0 0 1px var(--blanc); }
  }
  @media (max-width: 479px) {
    .barre-resa { padding-inline: 16px; }
    .barre-resa .chip { padding: 0 12px; }
  }
  /* Très petits écrans : les raccourcis passent à la ligne plutôt que de se cacher sous le bord */
  @media (max-width: 379px) {
    .raccourcis { flex-wrap: wrap; overflow: visible; }
  }
  .apercu-live {
    display: flex; align-items: center; gap: 10px;
    min-height: 24px; margin: 0;
    color: var(--blanc-90); font-size: .9375rem; line-height: 1.4;
  }
  .apercu-live:empty { display: none; }
  .apercu-live::before {
    content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
    background: var(--azur-clair);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--azur) 26%, transparent);
  }
  .apercu-live b { font-weight: 600; color: var(--blanc); white-space: nowrap; }
  .apercu-live[data-etat="alerte"] { color: var(--laterite-pale); }
  .apercu-live[data-etat="alerte"]::before { background: var(--laterite-pale); box-shadow: none; }
  .search-feedback { margin: 0 0 var(--s-4); padding: 10px 14px; border-radius: var(--r-champ); background: var(--laterite-pale); color: var(--laterite); font-size: var(--t-petit); font-weight: 600; }
  .search-feedback:empty { display: none; }

  /* Épure (7.4) : sur ordinateur, l'offre de bienvenue est déjà dans l'en-tête (pastille −10 %) et le chapitre du film
     doublait la légende du modèle : le bas du héros garde le devis, « Dis-le à Lya », la légende, « Défile pour tout
     voir » et les commandes. Sur mobile, la phrase d'accroche cède sa place pour que « Voir les véhicules » tienne dans le
     premier écran, au-dessus de la barre du bas. */
  @media (min-width: 1024px) {
    .voyage-actions [data-offre], .heros-legende .film-chapitre { display: none; }
  }
  @media (max-width: 479px) {
    .voyage-description { display: none; }
    .voyage-kicker { margin-bottom: var(--s-2); }
  }
  /* ---------- Sous le panneau : liens discrets et « Dis-le à Lya » ---------- */
  .heros-outils { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); }
  .voyage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-5); }
  .voyage-link {
    display: inline-flex; align-items: center; gap: var(--s-2);
    min-height: 44px; padding: 0;
    border: 0; background: none; color: var(--blanc-90);
    font-size: .9375rem; font-weight: 500;
    text-decoration: underline; text-decoration-color: var(--filet-or); text-decoration-thickness: 1px; text-underline-offset: 5px;
    transition: color var(--d-2) var(--ease), text-decoration-color var(--d-2);
  }
  .voyage-link svg.i { width: 16px; height: 16px; color: var(--or-clair); }
  @media (hover: hover) {
    .voyage-link:hover { color: var(--blanc); text-decoration-color: var(--or-clair); }
  }

  .lya-dis {
    position: relative;
    display: flex; align-items: center; gap: var(--s-2);
    width: min(100%, 460px); min-height: 60px;
    padding: 7px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--encre) 46%, transparent);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    transition: box-shadow var(--d-2) var(--ease), background-color var(--d-2) var(--ease);
  }
  .lya-dis:focus-within { background: color-mix(in srgb, var(--encre) 70%, transparent); box-shadow: inset 0 0 0 1px var(--or-clair); }
  .lya-dis-av {
    flex: none; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--encre); color: var(--or-clair);
    box-shadow: inset 0 0 0 1px var(--filet-or);
  }
  .lya-dis-av .lya-robot { scale: .68; translate: 0 2px; }
  .lya-dis-champ { position: relative; flex: 1 1 auto; min-width: 0; display: grid; align-content: center; padding-left: 4px; }
  .lya-dis-lib {
    position: absolute; top: 3px; left: 4px; z-index: 1;
    font-size: var(--t-micro); font-weight: 600; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase;
    color: var(--or-clair);
    pointer-events: none;
  }
  /* Le texte saisi et l'exemple commencent sous le libellé (décalages en rem : un texte agrandi ne chevauche pas) */
  .lya-dis input {
    width: 100%; min-width: 0; min-height: calc(26px + 1.25rem); padding: calc(3px + .9rem) 0 2px;
    border: 0; outline: 0; background: transparent;
    color: var(--blanc); caret-color: var(--or-clair);
    font-size: 1rem; font-weight: 500; line-height: 1.3;
  }
  .lya-dis-exemple {
    position: absolute; left: 4px; right: 0; top: calc(6px + .9rem);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: var(--blanc-70); font-size: .9375rem; line-height: 1.3;
    pointer-events: none;
    transition: opacity 260ms var(--ease), transform 320ms var(--ease);
  }
  .lya-dis-exemple.sort { opacity: 0; transform: translateY(-8px); }
  .lya-dis-exemple.arrive { opacity: 0; transform: translateY(8px); transition: none; }
  .lya-dis.rempli .lya-dis-exemple { opacity: 0; transform: none; }
  .lya-dis:focus-within .lya-dis-exemple { color: var(--blanc-50); }
  html.texte-grand .lya-dis { border-radius: var(--r-carte); }
  html.texte-grand .lya-dis-lib { position: static; grid-area: 1 / 1; }
  html.texte-grand .lya-dis input { grid-area: 2 / 1; min-height: 0; padding: 2px 0; }
  html.texte-grand .lya-dis-exemple { position: static; grid-area: 2 / 1; align-self: center; }
  .lya-dis-btn {
    flex: none; display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%;
    transition: transform var(--d-1) var(--ease), background-color var(--d-2) var(--ease);
  }
  .lya-dis-btn:active { transform: scale(.94); }
  .lya-dis-btn svg.i { width: 20px; height: 20px; }
  .lya-dis-micro { background: var(--blanc-12); color: var(--blanc); }
  .lya-dis-envoyer { background: var(--or); color: var(--encre); }
  .lya-dis-envoyer svg.i { stroke-width: 2; }
  @media (hover: hover) {
    .lya-dis-micro:hover { background: var(--blanc-20); }
    .lya-dis-envoyer:hover { background: var(--or-survol); }
  }

  /* ---------- Bon retour (2ᵉ visite) : rappel en verre ---------- */
  .bon-retour {
    display: flex; align-items: center; gap: var(--s-3);
    width: min(100%, 640px); padding: 8px;
    border-radius: var(--r-carte);
    background: color-mix(in srgb, var(--encre) 56%, transparent);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    animation: bon-retour-entree var(--d-4) var(--ease) both;
  }
  .bon-retour-photo { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: var(--r-s); }
  .bon-retour-photo img { width: 100%; height: 100%; object-fit: cover; }
  .bon-retour-photo .silhouette-v { min-height: 0; padding: 0; }
  .bon-retour-photo .silhouette-v span { display: none; }
  .bon-retour-txt { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.35; }
  .bon-retour-txt small { color: var(--or-clair); font-size: var(--t-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .bon-retour-txt b { font-size: .9375rem; font-weight: 600; }
  .bon-retour-txt span { color: var(--blanc-70); font-size: var(--t-petit); }
  .bon-retour .btn { flex: none; }
  .bon-retour-x.icon-btn { flex: none; background: transparent; box-shadow: none; color: var(--blanc-70); }
  @keyframes bon-retour-entree { from { opacity: 0; transform: translateY(-8px); } }
  @media (max-width: 479px) {
    .bon-retour { flex-wrap: wrap; }
    .bon-retour-txt { flex-basis: calc(100% - 56px - 44px - 2 * var(--s-3)); }
    .bon-retour .btn { order: 4; flex: 1 1 100%; }
  }

  /* ---------- Légende du visuel et commandes du diaporama ----------
     Sous 1024 px, dans le flux, en bas du héros, après « Dis-le à Lya » : l'ordre visuel suit celui du clavier
     (WCAG 2.4.3). Dès 1024 px, posée en bas de la photo plein cadre. */
  .heros-legende {
    position: relative; z-index: 2;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
    margin-top: var(--s-6); padding-top: var(--s-4);
    border-top: 1px solid var(--trait-nuit);
  }
  @media (min-width: 1024px) {
    .heros-legende {
      position: absolute; left: 0; right: 0;
      flex-wrap: nowrap;
      margin: 0 auto; padding-top: 0; border-top: 0;
      pointer-events: none;
    }
  }
  .heros-legende > * { pointer-events: auto; }
  .hero-current { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
  /* Légende du visuel : le modèle montré, sa disponibilité et son prix pour les dates (lien vers sa fiche), dès 768 px
     (en dessous, le chapitre du film et les commandes tiennent seuls) */
  @media (max-width: 767px) { #heroVehicle { display: none; } }
  @media (min-width: 768px) {
    #heroVehicle {
      display: grid; align-content: center; gap: 1px;
      min-height: 44px; min-width: 0;
      color: var(--blanc); text-decoration: none;
    }
    .hero-available { display: inline-flex; align-items: center; gap: 6px; color: var(--blanc-70); font-size: var(--t-micro); font-weight: 500; letter-spacing: .02em; }
    .hero-available::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--or-clair); }
    .hero-available[data-etat="alerte"]::before { background: var(--blanc-50); }
    .hero-v-txt { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
    .hero-v-txt strong { flex: none; font-size: .9375rem; font-weight: 600; }
    .hero-v-txt > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--blanc-70); font-size: var(--t-petit); }
    @media (hover: hover) { #heroVehicle:hover strong { text-decoration: underline; text-decoration-color: var(--or-clair); text-underline-offset: 4px; } }
  }
  .hero-controls {
    display: flex; align-items: center; gap: 2px; padding: 3px;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--noir) 34%, transparent);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .hero-controls button {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%;
    background: transparent; color: var(--blanc);
    transition: background-color var(--d-2) var(--ease), transform var(--d-1) var(--ease);
  }
  .hero-controls button:active { transform: scale(.92); }
  .hero-controls svg.i { width: 18px; height: 18px; }
  @media (hover: hover) { .hero-controls button:hover { background: var(--blanc-12); } }

  /* ---------- Entrée du héros (.entre), seulement quand le JS anime (html.anime) ---------- */
  html.anime .voyage-hero:not(.entre) .voyage-background { opacity: 0; scale: 1.03; }
  html.anime .voyage-hero:not(.entre) :is(.voyage-copy > *, .heros-reservation > *, .heros-legende) { opacity: 0; transform: translateY(var(--monte)); }
  html.anime .voyage-hero :is(.voyage-copy > *, .heros-reservation > *, .heros-legende) {
    transition: opacity var(--d-4) var(--ease), transform var(--d-4) var(--ease);
  }
  html.anime .voyage-hero.entre .voyage-title { transition-delay: 80ms; }
  html.anime .voyage-hero.entre .voyage-description { transition-delay: 180ms; }
  html.anime .voyage-hero.entre .heros-reservation > :nth-child(1) { transition-delay: 280ms; }
  html.anime .voyage-hero.entre .heros-reservation > :nth-child(n + 2) { transition-delay: 380ms; }
  html.anime .voyage-hero.entre .heros-legende { transition-delay: 480ms; }

  /* ---------- Mise en page selon la largeur ---------- */
  /* Jusqu'à 1279 px, liens et « Dis-le à Lya » ne tiennent pas sur une ligne : deux lignes centrées */
  @media (max-width: 1279px) {
    .heros-outils { justify-content: center; }
    .voyage-actions { justify-content: center; }
    .bon-retour { justify-self: center; }
  }
  @media (max-width: 599px) {
    .voyage-actions { column-gap: var(--s-4); }
    .lya-dis { width: 100%; }
    .voyage-description { font-size: .9375rem; }
  }
  /* Ordinateur : contenu posé dans le bas de la photo, légende du film en bas */
  @media (min-width: 1024px) {
    .voyage-hero { min-height: max(100svh, 700px); padding-bottom: 108px; }
    .voyage-title { max-width: none; }
    /* la pastille de Lya (24 px du bord, ~180 px de large) garde sa place : les commandes du film passent à sa gauche */
    .heros-legende { top: auto; bottom: 24px; padding-right: max(0px, 224px - max(var(--gouttiere), (100vw - var(--largeur)) / 2)); }
  }
  /* 7.4 : la bulle « Yamoo recrute » (en bas à gauche, option de l'Espace Bob) garde sa place de la même façon dès 1280 px ;
     entre 1024 et 1279 px, la légende n'a pas la place : la bulle attend que le héros soit passé (app.css, html.heros-ecran) */
  @media (min-width: 1280px) {
    html.avec-recrute .heros-legende { padding-left: max(0px, 352px - max(var(--gouttiere), (100vw - var(--largeur)) / 2)); }
  }
  /* Écrans bas (portable de 768 px de haut) : un peu moins d'air au-dessus du panneau */
  @media (min-width: 1024px) and (max-height: 820px) {
    .voyage-hero { padding-bottom: 96px; }
    .voyage-description { margin-top: var(--s-2); }
    .heros-reservation { margin-top: var(--s-4); gap: var(--s-3); }
  }

  /* ============================== Phrase éditoriale (or pâle) ============================== */
  .accueil-edito { padding-block: clamp(80px, 8vw + 40px, 160px); }
  .accueil-edito .edito-phrase { max-width: 17ch; }
  .accueil-edito .edito-phrase em { font-style: italic; color: var(--or-texte); }
  .accueil-edito .edito-appui { color: var(--encre); }

  /* ============================== Rails (occasions, flotte) : débord jusqu'au bord de l'écran ============================== */
  .accueil-rail {
    margin-inline: calc(-1 * var(--gouttiere)); padding: 8px var(--gouttiere) 16px;
    margin-block: -8px -16px;
    scroll-padding-inline: var(--gouttiere);
  }
  /* Dès 1024 px, trois colonnes remplissent le conteneur : la carte suivante ne dépasse que de quelques pixels dans la
     gouttière. Un fondu sur les gouttières en fait une simple invitation à défiler (plus de liseré de texte coupé). */
  @media (min-width: 1024px) {
    .accueil-rail {
      -webkit-mask-image: linear-gradient(to right, transparent, var(--encre) var(--gouttiere), var(--encre) calc(100% - var(--gouttiere)), transparent);
      mask-image: linear-gradient(to right, transparent, var(--encre) var(--gouttiere), var(--encre) calc(100% - var(--gouttiere)), transparent);
    }
  }
  .entete .fleches { flex: none; }
  .rail-outils { display: flex; align-items: center; gap: var(--s-4); }
  .rail-outils > a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--encre); font-weight: 600; text-decoration: underline; text-decoration-color: var(--or); text-underline-offset: 5px; }
  /* Au doigt, les rails des occasions et de la flotte se font glisser (la carte suivante dépasse) : pas de flèches. */
  @media (max-width: 599px) {
    :is(.accueil-occasions, .fleet-home) .entete .fleches { display: none; }
  }

  /* ============================== Occasions et services ============================== */
  .accueil-occasions .occasions-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  @media (min-width: 600px) { .accueil-occasions .occasions-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1200px) { .accueil-occasions .occasions-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .occasion { position: relative; }
  .occasion .carte-photo { aspect-ratio: 4 / 3; }
  .occasion .carte-photo img { transition: transform var(--d-5) var(--ease); }
  .occasion .carte-titre { margin-top: -2px; }
  .occasion .carte-texte { max-width: 38ch; }
  /* Le bouton couvre toute la carte (une seule cible par carte) */
  .occasion > .btn { position: static; overflow: visible; isolation: auto; margin-top: var(--s-3); }
  .occasion > .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-carte); }
  .occasion > .btn:focus-visible { outline-offset: 3px; }
  .occasion:has(> .btn:focus-visible) .carte-photo { outline: 2px solid var(--or-texte); outline-offset: 3px; }
  /* Occasion choisie ([data-journey] porte aussi [data-occasion]) */
  .journey-card[aria-pressed="true"] { background: var(--encre); color: var(--blanc); box-shadow: none; }
  .journey-card[aria-pressed="true"]::before {
    content: ""; flex: none; width: 16px; height: 16px;
    background: var(--or-clair);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .occasion[data-photo="cote"] .carte-photo img { object-position: 50% 62%; }
  .occasion[data-photo="mariage"] .carte-photo img { object-position: 50% 24%; }
  .occasion[data-photo="quiz"] .carte-photo img { object-position: 50% 30%; }
  @media (hover: hover) {
    .occasion:hover .carte-photo img { transform: scale(1.04); }
    .occasion:hover > .btn-contour:not([aria-pressed="true"]) { background: var(--encre); color: var(--blanc); }
  }
  .journey-feedback { margin: 0; }

  /* ============================== La flotte : rail de cartes claires ============================== */
  .fleet-home .entete { margin-bottom: clamp(24px, 3vw, 40px); }
  .rail-dates { margin-top: var(--s-3); max-width: 56ch; font-size: 1rem; }
  /* Cartes véhicules (.carte-v, flotte.css) : 1,18 par écran sur mobile, 2,15 dès 600 px, 3 dès 1024 px */
  .rail-v > .carte-v { height: 100%; }
  .fleet-demo { margin-top: var(--s-5); color: var(--gris); font-size: var(--t-petit); }

  /* Véhicule sans photo : silhouette dorée « Photo à venir » (réutilisable : .silhouette-v > span) */
  .silhouette-v {
    --silhouette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100'%3E%3Cpath fill-rule='evenodd' d='M8 70V57q0-7 7-9l53-7q6-1 10-6l14-14q3-3 8-3h104q5 0 8 4l12 14q5 5 5 12v22h-23a20 20 0 0 0-40 0H74a20 20 0 0 0-40 0zM86 37l12-13h38v13zM142 24h56l12 13h-68zM39 72a15 15 0 1 0 30 0 15 15 0 1 0-30 0zM48 72a6 6 0 1 0 12 0 6 6 0 1 0-12 0zM171 72a15 15 0 1 0 30 0 15 15 0 1 0-30 0zM180 72a6 6 0 1 0 12 0 6 6 0 1 0-12 0zM108 12h88v3h-88z'/%3E%3C/svg%3E");
    position: relative; overflow: hidden;
    display: grid; place-items: center; align-content: center; gap: var(--s-3);
    width: 100%; height: 100%; min-height: 180px; padding: var(--s-5);
    background: var(--encre);
    color: var(--or-clair);
  }
  .silhouette-v::before {
    content: ""; width: min(78%, 260px); aspect-ratio: 240 / 100;
    background: var(--or);
    -webkit-mask: var(--silhouette) center / contain no-repeat;
    mask: var(--silhouette) center / contain no-repeat;
  }
  .silhouette-v span { font-size: var(--t-micro); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }

  /* ============================== Calendrier déroulant (7.4, assets/traversee.js) ==============================
     Verre sombre comme le panneau ; mois entre deux flèches rondes ; jours passés barrés et désactivés ; plage départ →
     retour surlignée de bleu ; jour choisi en bleu éclatant. Fixé à l'écran sous (ou au-dessus de) son champ. */
  .calendrier {
    position: fixed; z-index: calc(var(--z-cookies) + 1);
    width: min(360px, calc(100vw - 24px));
    padding: 16px 16px 12px;
    border-radius: var(--r-m);
    background: color-mix(in srgb, var(--encre) 80%, transparent);
    -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
    box-shadow:
      inset 0 0 0 1px var(--blanc-20),
      inset 0 1px 0 var(--blanc-12),
      0 30px 70px -28px color-mix(in srgb, var(--noir) 85%, transparent);
    color: var(--blanc);
    animation: cal-entree var(--d-2) var(--ease) both;
  }
  .calendrier[hidden] { display: none; }
  .calendrier.au-dessus { animation-name: cal-entree-haut; }
  @keyframes cal-entree { from { opacity: 0; transform: translateY(-8px); } }
  @keyframes cal-entree-haut { from { opacity: 0; transform: translateY(8px); } }
  .cal-quoi {
    margin-bottom: 8px; text-align: center;
    color: var(--azur-clair); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  }
  .cal-tete { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; margin-bottom: 8px; }
  .cal-mois { margin: 0; text-align: center; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.1; }
  .cal-mois::first-letter { text-transform: uppercase; }
  .cal-fleche {
    display: grid; place-items: center;
    width: 40px; height: 40px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--blanc-08); color: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    transition: background-color var(--d-2) var(--ease), color var(--d-2) var(--ease);
  }
  .cal-fleche svg.i { width: 18px; height: 18px; stroke-width: 2; }
  .cal-fleche[aria-disabled="true"] { opacity: .35; cursor: default; }
  @media (hover: hover) { .cal-fleche:not([aria-disabled="true"]):hover { background: var(--blanc); color: var(--encre); } }
  .cal-grille { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .cal-grille th {
    padding: 4px 0 8px;
    color: var(--blanc-70); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  }
  .cal-grille td { padding: 2px 0; text-align: center; }
  .cal-grille td.dans-plage { background: var(--azur-voile); }
  .cal-grille td.debut-plage { border-radius: 999px 0 0 999px; }
  .cal-grille td.fin-plage { border-radius: 0 999px 999px 0; }
  .cal-grille td.debut-plage.fin-plage { border-radius: 999px; }
  .cal-jour {
    position: relative;
    display: inline-grid; place-items: center;
    width: min(40px, 100%); aspect-ratio: 1; padding: 0;
    border: 0; border-radius: 50%;
    background: transparent; color: var(--blanc);
    font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums;
    transition: background-color var(--d-1) var(--ease), color var(--d-1) var(--ease);
  }
  .cal-jour:focus-visible { outline: 2px solid var(--azur-clair); outline-offset: 1px; }
  .cal-jour.aujourdhui::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--azur-clair); }
  .cal-jour[aria-disabled="true"] { color: var(--blanc-50); text-decoration: line-through; text-decoration-thickness: 1px; cursor: not-allowed; }
  .cal-grille td[aria-selected="true"] .cal-jour { background: var(--azur-bouton); color: var(--blanc); box-shadow: var(--azur-lueur); font-weight: 600; }
  .cal-grille td[aria-selected="true"] .cal-jour.aujourdhui::after { background: var(--blanc); }
  @media (hover: hover) { .cal-grille td:not([aria-selected="true"]) .cal-jour:not([aria-disabled="true"]):hover { background: var(--blanc-12); } }
  .cal-pied {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--blanc-12);
    color: var(--blanc-70); font-size: .8125rem; line-height: 1.35;
  }
  .cal-fermer {
    flex: none; min-height: 40px; padding: 0 14px;
    border: 0; border-radius: var(--r-pill);
    background: transparent; color: var(--blanc);
    font-size: .875rem; font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--blanc-20);
  }
  @media (hover: hover) { .cal-fermer:hover { background: var(--blanc-12); } }
  @media (max-width: 359px) { .calendrier { padding-inline: 10px; } .cal-jour { font-size: .875rem; } }

  /* ============================== Affiche « Comment ça marche ? » (7.4, étape 5) ==============================
     Papier ivoire entre deux pages de nuit : un grand « 3 » au trait en fond, la proposition en serif, trois pictos ronds
     reliés par un filet d'or pointillé, une grande flèche bleue. Le lien du titre couvre toute l'affiche (::after) ; le
     focus clavier entoure l'affiche entière. */
  .cm-affiche { padding: var(--section) 0; background: var(--creme); color: var(--encre); }
  .cm-affiche-carte {
    position: relative; isolation: isolate; display: grid; gap: clamp(28px, 4vw, 52px);
    padding: clamp(28px, 5vw, 72px); border-radius: clamp(22px, 3vw, 36px); overflow: hidden;
    background: radial-gradient(70% 110% at 100% 0%, rgb(47 123 255 / .1), transparent 60%), var(--ivoire);
    box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-3);
    transition: transform var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease);
  }
  .cm-affiche-carte::before {
    content: "3" / ""; position: absolute; z-index: -1; right: clamp(-12px, 2vw, 40px); top: 50%; translate: 0 -54%; pointer-events: none;
    font-family: var(--serif); font-size: clamp(16rem, 34vw, 34rem); line-height: 1; color: transparent;
    -webkit-text-stroke: 1.5px var(--trait);
  }
  .cm-affiche-tete { display: grid; gap: var(--s-3); }
  .cm-affiche-tete .section-eyebrow { color: var(--or-texte); }
  .cm-affiche-titre { max-width: 15ch; font-family: var(--serif); font-size: clamp(2.5rem, 1.4rem + 4vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
  .cm-affiche-titre em { font-style: italic; color: var(--or-texte); }
  .cm-affiche-lien { color: inherit; text-decoration: none; outline: none; }
  .cm-affiche-lien::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
  .cm-affiche-carte:has(.cm-affiche-lien:focus-visible) { outline: 3px solid var(--azur); outline-offset: 4px; }
  .cm-affiche-temps { --ecart: clamp(18px, 3vw, 32px); display: grid; gap: var(--ecart); }
  .cm-affiche-temps li:not(:last-child)::after { content: ""; position: absolute; border: 0 dashed var(--or); pointer-events: none; } /* filet vers le temps suivant */
  .cm-affiche-temps li { position: relative; display: grid; gap: 4px 16px; align-content: start; }
  .cm-picto {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--encre); color: var(--blanc); box-shadow: 0 0 0 6px var(--ivoire), 0 12px 26px -12px rgb(14 15 18 / .6);
  }
  .cm-picto svg.i { width: 26px; height: 26px; }
  .cm-affiche-temps li:last-child .cm-picto { background: var(--azur-bouton); box-shadow: 0 0 0 6px var(--ivoire), var(--azur-lueur); }
  .cm-affiche-temps b { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 600; line-height: 1.2; }
  .cm-affiche-temps span:not(.cm-picto) { color: var(--gris); line-height: 1.45; max-width: 26ch; }
  .cm-affiche-pied {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--trait);
    font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  }
  .cm-affiche-fleche {
    display: grid; place-items: center; flex: none; width: clamp(64px, 7vw, 88px); height: clamp(64px, 7vw, 88px); border-radius: 50%;
    background: var(--azur-bouton); color: var(--blanc); box-shadow: var(--azur-lueur);
    transition: transform var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease);
  }
  .cm-affiche-fleche svg { width: 46%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  @media (hover: hover) {
    .cm-affiche-carte:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--trait-2), 0 30px 60px -28px rgb(14 15 18 / .35); }
    .cm-affiche-carte:hover .cm-affiche-fleche { transform: translateX(8px); box-shadow: var(--azur-lueur-fort); }
  }
  @media (min-width: 900px) {
    .cm-affiche-carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; }
    .cm-affiche-pied { grid-column: 1 / -1; }
    .cm-affiche-temps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cm-affiche-temps li:not(:last-child)::after { top: 31px; left: 76px; right: calc(-1 * var(--ecart) + 6px); border-top-width: 2px; }
  }
  @media (max-width: 899px) {
    .cm-affiche-temps li:not(:last-child)::after { top: 76px; bottom: calc(-1 * var(--ecart) + 6px); left: 31px; border-left-width: 2px; }
    .cm-affiche-temps li { grid-template-columns: 64px minmax(0, 1fr); }
    .cm-picto { grid-row: span 2; }
    .cm-affiche-temps b { align-self: end; }
  }
  @media (max-width: 599px) { .cm-affiche-carte::before { display: none; } }
  @media (max-width: 479px) { .cm-affiche-pied { letter-spacing: .1em; } }
  @media (prefers-reduced-motion: reduce) { .cm-affiche-carte, .cm-affiche-fleche { transition: none; } .cm-affiche-carte:hover, .cm-affiche-carte:hover .cm-affiche-fleche { transform: none; } }

  /* ============================== Pile de pages (7.4 « Traversée ») ==============================
     Au défilement, chaque grande section de l'accueil (.pile-page : héros, bulle, vitrine, occasions, « Monte. Expire. »,
     l'affiche « Comment ça marche ? » (7.4, étape 5), celle du parrainage (étape 4), le site dans ta main) se comporte comme une page posée sur la précédente : elle glisse par-dessus pendant que la
     précédente, restée collée, recule un peu et s'assombrit. Quand une page arrive, un liseré de bleu éclatant et son halo
     l'annoncent sur son bord haut.
     - Collage : top = --pile-haut, posé par assets/traversee.js = min(0, hauteur visible − hauteur de la section) (la
       hauteur visible exclut la barre du bas). Une section plus haute que l'écran défile donc entière avant de se coller
       par le bas : rien n'est jamais piégé dessous. Sans JS, --pile-haut manque : rien ne colle.
     - Effets : animation-timeline view() (chaque section est le sujet de --arrivee-N, partagé par timeline-scope ; la
       précédente recule sur l'arrivée de la suivante). Sans view() : --recul (0 à 1) et .pile-arrive posés par
       traversee.js (défilement et IntersectionObserver).
     - Clavier : un élément qui prend le focus sous une page qui le recouvre est ramené en vue (traversee.js).
     - Mouvement réduit : sections dans le flux, aucun effet. */
  .vue[data-vue="accueil"] {
    background: var(--noir); /* visible autour d'une page qui recule */
    timeline-scope: --arrivee-2, --arrivee-3, --arrivee-4, --arrivee-5, --arrivee-6, --arrivee-7, --arrivee-8;
  }
  .vue[data-vue="accueil"] > .pile-page {
    position: sticky; top: var(--pile-haut, auto);
    isolation: isolate;
    transform-origin: 50% var(--pile-origine, 50%);
  }
  .vue[data-vue="accueil"] > .pile-page:nth-child(1 of .pile-page) { --suivante: --arrivee-2; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(2 of .pile-page) { --arrivee: --arrivee-2; --suivante: --arrivee-3; view-timeline: --arrivee-2 block; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(3 of .pile-page) { --arrivee: --arrivee-3; --suivante: --arrivee-4; view-timeline: --arrivee-3 block; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(4 of .pile-page) { --arrivee: --arrivee-4; --suivante: --arrivee-5; view-timeline: --arrivee-4 block; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(5 of .pile-page) { --arrivee: --arrivee-5; --suivante: --arrivee-6; view-timeline: --arrivee-5 block; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(6 of .pile-page) { --arrivee: --arrivee-6; --suivante: --arrivee-7; view-timeline: --arrivee-6 block; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(7 of .pile-page) { --arrivee: --arrivee-7; --suivante: --arrivee-8; view-timeline: --arrivee-7 block; }
  .vue[data-vue="accueil"] > .pile-page:nth-child(8 of .pile-page) { --arrivee: --arrivee-8; view-timeline: --arrivee-8 block; }
  /* Voile qui assombrit la page qui recule */
  .vue[data-vue="accueil"] > .pile-page::after {
    content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none;
    background: var(--noir); opacity: 0;
  }
  /* Liseré bleu éclatant et halo du bord haut, à l'arrivée d'une page */
  .vue[data-vue="accueil"] > .pile-page:not(:first-child)::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 21; pointer-events: none;
    height: clamp(96px, 16vh, 180px);
    background:
      linear-gradient(90deg, rgb(140 184 255 / 0), rgb(140 184 255 / .95) 18%, rgb(255 255 255 / .95) 50%, rgb(140 184 255 / .95) 82%, rgb(140 184 255 / 0)) top / 100% 2px no-repeat,
      var(--azur-eclat);
    opacity: 0;
  }
  /* Pages claires (crème, blanc) : le bleu s'y fond par multiplication, pour un bleu franc et lumineux plutôt qu'un voile
     laiteux entre une page sombre et une page claire */
  .vue[data-vue="accueil"] > :is(.accueil-bulle, .accueil-occasions, .cm-affiche, .appli).pile-page::before {
    height: clamp(72px, 11vh, 120px); mix-blend-mode: multiply;
    background:
      linear-gradient(90deg, rgb(47 123 255 / 0), rgb(47 123 255 / .9) 18%, rgb(26 95 232) 50%, rgb(47 123 255 / .9) 82%, rgb(47 123 255 / 0)) top / 100% 3px no-repeat,
      linear-gradient(180deg, rgb(47 123 255 / .42), rgb(47 123 255 / .16) 45%, rgb(47 123 255 / 0));
  }
  @keyframes pile-recul {
    from { transform: none; border-radius: 0; }
    to { transform: scale(.94); border-radius: 28px; }
  }
  @keyframes pile-sombre { from { opacity: 0; } to { opacity: .6; } }
  @keyframes pile-lisere { 0% { opacity: 0; } 18% { opacity: 1; } 72% { opacity: .85; } 100% { opacity: 0; } }
  @keyframes pile-halo {
    0% { box-shadow: 0 0 0 0 rgb(47 123 255 / 0); }
    20%, 70% { box-shadow: 0 -2px 0 0 rgb(140 184 255 / .7), 0 -26px 70px -14px rgb(47 123 255 / .6); }
    100% { box-shadow: 0 0 0 0 rgb(47 123 255 / 0); }
  }
  @keyframes pile-eclair { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
  @supports (animation-timeline: view()) {
    .vue[data-vue="accueil"] > .pile-page {
      animation: pile-halo linear both, pile-recul linear both;
      animation-timeline: view(), var(--suivante, none);
      animation-range: entry 0% entry 100%;
    }
    .vue[data-vue="accueil"] > .pile-page:first-child { animation: pile-recul linear both; animation-timeline: var(--suivante); animation-range: entry 0% entry 100%; }
    .vue[data-vue="accueil"] > .pile-page::after { animation: pile-sombre linear both; animation-timeline: var(--suivante, none); animation-range: entry 0% entry 100%; }
    .vue[data-vue="accueil"] > .pile-page:not(:first-child)::before { animation: pile-lisere linear both; animation-timeline: var(--arrivee); animation-range: entry 0% entry 100%; }
    /* La dernière page n'a pas de suivante : elle ne recule ni ne s'assombrit jamais (une animation sans timeline
       garderait sinon son état final, réduite et voilée, pendant toute sa lecture). */
    @media (prefers-reduced-motion: no-preference) {
      .vue[data-vue="accueil"] > .pile-page:nth-last-child(1 of .pile-page) { animation: pile-halo linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
      .vue[data-vue="accueil"] > .pile-page:nth-last-child(1 of .pile-page)::after { animation: none; opacity: 0; }
    }
  }
  @supports not (animation-timeline: view()) {
    .vue[data-vue="accueil"] > .pile-page { transform: scale(calc(1 - var(--recul, 0) * .06)); border-radius: calc(var(--recul, 0) * 28px); }
    .vue[data-vue="accueil"] > .pile-page::after { opacity: calc(var(--recul, 0) * .6); }
    .vue[data-vue="accueil"] > .pile-page.pile-arrive::before { animation: pile-eclair 1.3s var(--ease) both; }
  }
  /* Défilement vers un élément de la pile (html.pile-libre, traversee.js) : pages dans le flux le temps du trajet, pour que
     le navigateur vise la bonne position */
  html.pile-libre .vue[data-vue="accueil"] > .pile-page:nth-child(n) { position: relative; top: auto; }
  html.pile-libre { overflow-anchor: none; } /* le changement de mise en page ne doit pas déplacer le défilement en cours */
  @media (prefers-reduced-motion: reduce) {
    .vue[data-vue="accueil"] > .pile-page:nth-child(n) { position: relative; top: auto; transform: none; border-radius: 0; animation: none; }
    .vue[data-vue="accueil"] > .pile-page::before, .vue[data-vue="accueil"] > .pile-page::after { display: none; animation: none; }
  }
}
