/* Yamoo Drive — édition 7.3 « Signature » (@layer vues, chargée en dernier ; comportements : assets/signature.js).
   Barre du bas, progression de lecture, bulle et personnage, défilé des quartiers, vitrine sombre qui pivote, plaque
   tournante Jetour, « Monte. Expire. » (cartes empilées), téléphone en main, « Yamoo recrute », visite guidée, offre de
   bienvenue par pays, pastille « Yamoo recrute » de la candidature, correctifs d'espacement et de cadrage du texte.
   7.4 : la page publique des chauffeurs et ses styles sont retirés (nous choisissons le chauffeur).
   Mouvement réduit : rien ne défile ni ne pivote tout seul (bloc final). */

@layer base {
  :root { --section: clamp(56px, 4vw + 40px, 112px); --h-cookies: 0px; }
  @media (max-width: 1023px) {
    :root { --h-onglets: 64px; --bas-onglets: calc(var(--h-onglets) + var(--bas-sur)); }
    html[data-vue="vehicule"] { scroll-padding-bottom: calc(var(--bas-onglets) + 84px); }
  }
}

@layer vues {
  /* ============================== Texte mieux cadré ============================== */
  :is(h1, h2, h3, .titre-hero, .bulle-titre, .respire-titre) { text-wrap: balance; }
  :is(p, li, blockquote, figcaption) { text-wrap: pretty; }
  .chapeau, .pg-chapeau, .respire-chapeau, .bulle-texte, .flotte-intro { max-width: 60ch; }
  .entete .chapeau { max-width: 52ch; }

  /* ============================== En-tête : offre, progression ============================== */
  .barre-offre { display: none; }
  @media (min-width: 1024px) {
    .barre-offre {
      display: inline-flex; align-items: center; gap: 6px;
      min-height: 40px; padding: 0 14px 0 10px;
      border: 0; border-radius: var(--r-pill);
      background: var(--or); color: var(--encre);
      font-size: .8125rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
      box-shadow: 0 0 0 0 rgb(184 145 63 / .5);
      animation: offre-pouls 3.2s var(--ease) 2s 3;
    }
    .barre-offre svg.i { width: 16px; height: 16px; stroke-width: 1.8; }
    .barre-int { gap: var(--s-4); }
  }
  @keyframes offre-pouls { 0% { box-shadow: 0 0 0 0 rgb(184 145 63 / .55); } 70% { box-shadow: 0 0 0 12px rgb(184 145 63 / 0); } 100% { box-shadow: 0 0 0 0 rgb(184 145 63 / 0); } }
  .barre-progres { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
  /* 7.4 : bleu éclatant brillant, comme la nappe qui annonce la page suivante (app.css § Traversée) */
  .barre-progres span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--azur-fonce), var(--azur) 60%, var(--azur-clair));
    box-shadow: 0 0 10px 1px rgb(47 123 255 / .65), 0 0 2px rgb(140 184 255 / .9);
    transform: scaleX(0); transform-origin: left; transition: transform 90ms linear;
  }
  html[data-vue="accueil"] .barre:not(.solide) .barre-progres { opacity: 0; }

  /* ============================== Barre du bas (sous 1024 px) ============================== */
  .nav-bas { display: none; }
  @media (max-width: 1023px) {
    .nav-bas {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-onglets);
      display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
      height: calc(var(--h-onglets) + var(--bas-sur)); padding: 0 6px var(--bas-sur);
      /* fond ivoire plein : les libellés gris gardent 4,8:1 même au-dessus de la photo sombre du héros */
      background: var(--ivoire); color: var(--encre);
      box-shadow: 0 -1px 0 var(--trait), 0 -10px 30px -18px rgb(14 15 18 / .3);
      view-transition-name: nav-bas;
    }
    .nav-bas a {
      position: relative;
      display: grid; justify-items: center; align-content: center; gap: 3px;
      height: var(--h-onglets); min-width: 0;
      color: var(--gris); text-decoration: none;
      font-size: .6875rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1;
      -webkit-tap-highlight-color: transparent;
    }
    .nav-bas a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-bas a svg.i { width: 22px; height: 22px; stroke-width: 1.6; transition: transform var(--d-2) var(--spring); }
    .nav-bas a[aria-current="page"] { color: var(--encre); }
    .nav-bas a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--or); }
    .nav-bas a[aria-current="page"] svg.i { color: var(--or-texte); transform: translateY(-1px); }
    .nav-bas a:active svg.i { transform: scale(.9); }
    /* « Réserver » : rond or surélevé au centre */
    .nav-bas .nav-bas-resa { color: var(--encre); }
    .nav-bas .nav-bas-resa svg.i {
      box-sizing: content-box; width: 22px; height: 22px; padding: 11px; margin-top: -22px;
      border-radius: 50%; background: var(--or); color: var(--encre);
      box-shadow: 0 6px 16px -6px rgb(125 95 34 / .7), 0 0 0 4px var(--ivoire);
    }
    .nav-bas .nav-bas-resa[aria-current="page"]::before { display: none; }
    .nav-bas .nav-bas-resa[aria-current="page"] svg.i { color: var(--encre); }
    html.texte-grand .nav-bas span { display: none; }
    html.texte-grand .nav-bas a { font-size: 0; }
    /* « Réserver » est en bas : l'en-tête garde logo, langue et devise, favoris et menu. 7.4 : sur la fiche aussi (sa
       barre collante porte « Réserver ») : la pastille langue et devise garde sa place, rien ne sort de l'écran. */
    .barre .barre-cta { display: none; }
    /* Ce qui vit en bas de l'écran passe au-dessus de la barre ; un élément qui prend le focus s'arrête au-dessus d'elle
       et du coin de Lya (7.4, WCAG 2.4.11). Les messages éphémères sont en haut, sous l'en-tête (app.css). */
    html { scroll-padding-bottom: calc(var(--bas-onglets) + 72px); }
    .cookies { bottom: calc(10px + var(--bas-onglets)); }
    .pied { padding-bottom: calc(32px + var(--bas-onglets)); }
    .guide-invite { bottom: calc(12px + var(--bas-onglets)); }
    .fiche-barre { bottom: calc(var(--bas-onglets) + 20px); }
    html[data-vue="vehicule"] .pied { padding-bottom: calc(var(--bas-onglets) + 104px); }
    html[data-vue="vehicule"] .lya-coin { --lya-bas: calc(var(--bas-onglets) + 94px); }
  }

  .retour-haut {
    position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: calc(var(--bas-onglets) + 14px);
    z-index: var(--z-onglets); width: 44px; height: 44px; background: var(--ivoire);
    box-shadow: 0 0 0 1px var(--trait), var(--ombre-1);
  }
  .retour-haut svg { transform: rotate(90deg); }
  html[data-vue="vehicule"] .retour-haut { bottom: calc(var(--bas-onglets) + 94px); }

  /* ============================== Héros : inviter à défiler ============================== */
  .heros-defile {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 4px;
    border: 0; background: none; color: var(--blanc-90);
    font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    cursor: pointer;
  }
  .heros-defile-souris { position: relative; width: 22px; height: 34px; border: 1.5px solid var(--blanc-70); border-radius: 12px; flex: none; }
  .heros-defile-souris::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--or-clair); animation: souris 1.8s var(--ease-in-out) infinite; }
  @keyframes souris { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
  .heros-legende { gap: var(--s-4); }
  @media (max-width: 1023px) { .heros-defile { order: 3; width: 100%; justify-content: center; } }
  @media (min-width: 1024px) { .heros-defile { margin-inline: auto; white-space: nowrap; } }
  :is(#decouvrir, #preparer) { scroll-margin-top: calc(var(--h-entete-solide) + 12px); }

  /* ============================== Film du héros (client.js : heroFilm) ==============================
     Une barre par scène en haut du héros (façon « stories ») ; la courante se remplit pendant la scène (--duree-film) et
     s'arrête avec la pause. Légende : numéro, chapitre et lieu de la scène. Travelling lent, sens alterné d'une image à l'autre. */
  .film-barres { position: absolute; z-index: 2; top: calc(var(--h-entete) + env(safe-area-inset-top) + 6px); left: 0; right: 0; display: flex; gap: 6px; pointer-events: none; }
  .film-barres i { flex: 1; height: 3px; border-radius: 3px; background: var(--blanc-20); overflow: hidden; }
  .film-barres b { display: block; height: 100%; background: var(--blanc); transform: scaleX(0); transform-origin: left; }
  .film-barres i.vu b { transform: scaleX(1); }
  .film-barres i.actif b { animation: film-barre var(--duree-film, 6500ms) linear forwards; }
  .voyage-hero.paused .film-barres i.actif b { animation-play-state: paused; }
  @keyframes film-barre { to { transform: scaleX(1); } }
  .film-chapitre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; color: var(--blanc); font-size: .875rem; line-height: 1.3; }
  .film-chapitre:empty { display: none; }
  .film-chapitre .film-num { font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--or-clair); }
  .film-chapitre b { font-weight: 600; letter-spacing: .02em; }
  .film-chapitre .film-lieu { color: var(--blanc-70); }
  .film-chapitre .film-lieu::before { content: "— "; color: var(--or-clair); }
  .hero-current { flex-wrap: wrap; }
  .hero-current .film-chapitre { flex-basis: 100%; }
  .voyage-background img.active { animation: travelling var(--duree-travelling, 13s) linear both; }
  .voyage-background img:nth-child(2).active { animation-name: travelling-inverse; }
  @keyframes travelling { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2.2%, -1%, 0); } }
  @keyframes travelling-inverse { from { transform: scale(1.14) translate3d(-2%, -1%, 0); } to { transform: scale(1.04) translate3d(1%, 0, 0); } }

  /* ============================== Bulle et personnage ============================== */
  .accueil-bulle { padding: clamp(40px, 5vw, 72px) 0 0; background: var(--creme); overflow: hidden; }
  .bulle-scene {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--s-3) var(--s-5);
    max-width: 980px;
  }
  .bonhomme { width: clamp(92px, 12vw, 150px); align-self: end; }
  .bonhomme-svg { display: block; width: 100%; height: auto; overflow: visible; }
  .bh-ombre { fill: rgb(14 15 18 / .1); }
  .bh-veste { fill: var(--encre); }
  .bh-revers { fill: var(--encre-3); }
  .bh-chemise { fill: var(--ivoire); }
  .bh-cravate { fill: var(--or); }
  .bh-peau { fill: #7B4A2C; }
  .bh-casquette { fill: var(--encre-2); }
  .bh-galon { fill: var(--or); }
  .bh-visiere { fill: var(--noir); }
  .bh-insigne { fill: var(--or-clair); }
  .bh-oeil { fill: var(--encre); }
  .bh-sourire { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; }
  .bh-joue { fill: none; stroke: rgb(232 120 98 / .55); stroke-width: 3; stroke-linecap: round; }
  .bh-poignet { fill: none; stroke: var(--ivoire); stroke-width: 3; stroke-linecap: round; }
  .bh-bras { transform-box: view-box; transform-origin: 106px 116px; }
  .bulle-scene.vu .bh-bras { animation: salue 2.4s var(--ease-in-out) .4s 2; }
  .bulle-scene.vu .bonhomme-svg { animation: sautille 4s var(--ease-in-out) infinite; }
  @keyframes salue { 0%, 100% { transform: rotate(0); } 15%, 45% { transform: rotate(-14deg); } 30%, 60% { transform: rotate(8deg); } 75% { transform: rotate(-6deg); } }
  @keyframes sautille { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
  .bulle-parole {
    position: relative; align-self: center;
    padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px);
    border-radius: 28px 28px 28px 8px;
    background: var(--ivoire); box-shadow: var(--ombre-2), inset 0 0 0 1px var(--trait);
  }
  /* pointe de la bulle, vers le personnage */
  .bulle-parole::before { content: ""; position: absolute; left: -10px; bottom: 18px; width: 22px; height: 22px; background: var(--ivoire); transform: rotate(45deg) skew(12deg, 12deg); box-shadow: -1px 1px 0 var(--trait); border-radius: 0 0 0 4px; }
  .bulle-titre { position: relative; font-family: var(--serif); font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 400; line-height: 1.08; letter-spacing: var(--serre); }
  .bulle-titre em { color: var(--or-texte); }
  .bulle-texte { position: relative; margin-top: 8px; color: var(--gris); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.55; }
  .bulle-faits { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; padding-top: var(--s-4); }
  .bulle-faits li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait); font-size: .875rem; font-weight: 600; }
  .bulle-faits svg.i { width: 18px; height: 18px; color: var(--or-texte); }
  @media (max-width: 599px) {
    .bulle-scene { grid-template-columns: 84px minmax(0, 1fr); gap: var(--s-2) var(--s-3); }
    .bulle-parole { border-radius: 22px 22px 22px 6px; }
    .bulle-faits { justify-content: flex-start; }
    .bulle-faits li { font-size: .8125rem; padding: 0 12px; min-height: 36px; }
  }
  /* Défilé des quartiers */
  .defile-lieux { margin-top: clamp(28px, 4vw, 48px); padding-block: 14px; overflow: hidden; border-block: 1px solid var(--trait); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .defile-piste { display: flex; width: max-content; animation: defile 46s linear infinite; }
  .defile-piste span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--serif); font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); font-style: italic; color: var(--encre); white-space: nowrap; }
  .defile-piste span::after { content: "✦"; font-family: var(--texte); font-style: normal; font-size: .5em; color: var(--or); }
  .defile-lieux:hover .defile-piste { animation-play-state: paused; }
  @keyframes defile { to { transform: translateX(-50%); } }

  /* ============================== Vitrine sombre qui tourne ============================== */
  /* 7.4 : la vitrine est une page sombre pleine largeur de la pile (plus de carte posée sur la crème : aucune bande claire
     autour d'elle quand elle glisse sur la page précédente) */
  .showroom { padding-top: clamp(40px, 5vw, 72px); background: radial-gradient(90% 70% at 85% 0%, rgb(184 145 63 / .16), transparent 60%), var(--encre); color: var(--blanc); }
  .showroom-panneau { position: relative; padding: 0; color: var(--blanc); }
  .showroom-panneau .entete h2 { color: var(--blanc); }
  .showroom-panneau :is(.rail-dates, .chapeau) { color: var(--blanc-70); }
  .showroom-panneau .rail-outils a { color: var(--blanc); text-decoration-color: var(--or); }
  .showroom-panneau .fleches { background: var(--blanc-08); box-shadow: inset 0 0 0 1px var(--blanc-20); }
  .showroom-panneau .fleches .fleche { background: transparent; color: var(--blanc); box-shadow: none; }
  @media (hover: hover) { .showroom-panneau .fleches .fleche:not(:disabled):hover { background: var(--blanc); color: var(--encre); } }
  .showroom-panneau .fleet-demo { color: var(--blanc-50); }
  /* Cartes claires dans la vitrine sombre : elles gardent l'encre (sur-nuit ne doit pas les blanchir) */
  .showroom-panneau .carte-v { color: var(--encre); }
  .showroom-panneau .carte-v :is(.prix b, .num, .car-nom, .car-title) { color: var(--encre); }
  .showroom-panneau .carte-v :is(.car-meta, .prix span, .spec-row) { color: var(--gris); }
  .showroom #railLibres { scroll-behavior: smooth; perspective: 1200px; }
  .showroom #railLibres > * { transform-origin: 50% 60%; }
  @supports (animation-timeline: view()) {
    .showroom #railLibres > * { animation: carte-pivote linear both; animation-timeline: view(inline); animation-range: cover 0% cover 100%; }
    @keyframes carte-pivote {
      0% { transform: perspective(1000px) rotateY(22deg) scale(.9); opacity: .55; }
      30%, 70% { transform: none; opacity: 1; }
      100% { transform: perspective(1000px) rotateY(-22deg) scale(.9); opacity: .55; }
    }
  }
  /* Plaque tournante Jetour (illustration) — classe .tournante (.plaque est la plaque d'immatriculation) */
  .tournante { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-bottom: clamp(28px, 4vw, 56px); }
  .tournante-scene { position: relative; height: clamp(190px, 26vw, 330px); perspective: 1400px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .tournante-anneau { position: absolute; left: 50%; top: 8%; width: clamp(220px, 30vw, 400px); height: 76%; margin-left: calc(clamp(220px, 30vw, 400px) / -2); transform-style: preserve-3d; animation: tournante 36s linear infinite; }
  .tournante-anneau figure { position: absolute; inset: 0; margin: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; box-shadow: 0 30px 50px -30px rgb(0 0 0 / .8); transform: rotateY(calc(var(--k) * 45deg)) translateZ(clamp(300px, 42vw, 560px)); }
  .tournante-anneau img { width: 100%; height: 100%; object-fit: cover; }
  .tournante-anneau figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--verre-sombre); color: var(--blanc); font-size: .75rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .tournante-scene::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 20%; background: radial-gradient(50% 60% at 50% 100%, rgb(184 145 63 / .35), transparent 70%); pointer-events: none; }
  .tournante:hover .tournante-anneau, .tournante:focus-within .tournante-anneau, .tournante.arrete .tournante-anneau { animation-play-state: paused; }
  @keyframes tournante { to { transform: rotateY(-360deg); } }
  .tournante-legende p { max-width: 42em; }
  .tournante-legende { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); color: var(--blanc-70); font-size: .875rem; }
  .tournante-legende b { color: var(--blanc); font-weight: 600; }
  .tournante-pastilles { display: flex; gap: 8px; }
  .tournante-pastilles i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--blanc-50); }

  /* Photo du modèle (pas le véhicule de Yamoo) : mention discrète en bas de la photo */
  .carte-v .tag.photo-modele { position: absolute; left: 12px; bottom: 12px; top: auto; right: auto; background: var(--verre-sombre); color: var(--blanc); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .75rem; }

  /* Occasions : photos de Douala, zoom au survol */
  .occasion .carte-photo { overflow: hidden; }
  .occasion .carte-photo img { transition: transform 1.2s var(--ease); }
  @media (hover: hover) { .occasion:hover .carte-photo img { transform: scale(1.06); } }

  /* ============================== « Monte. Expire. » ============================== */
  /* 7.4 : fond encre (plus de blanc entre les photos) ; les cartes se suivent sans espace : la suivante glisse sur la
     précédente, collée sous l'en-tête. Chaque carte tient entière à l'écran (hauteur bornée par celle de l'écran moins
     l'en-tête et la barre du bas) : elle est vue en entier, légende et photos encadrées comprises, avant d'être recouverte. */
  .respire { --respire-haut: calc(var(--h-entete-solide) + 14px); padding: var(--section) 0 calc(var(--section) * .6); background: var(--encre); color: var(--blanc); }
  .respire-tete { text-align: center; }
  .respire-titre { font-family: var(--serif); font-size: clamp(3.25rem, 1.6rem + 7vw, 8.5rem); font-weight: 400; line-height: .95; letter-spacing: -.025em; color: var(--blanc); }
  .respire-titre em { color: var(--or-clair); }
  .respire-chapeau { margin: clamp(16px, 2vw, 28px) auto 0; color: var(--blanc-90); font-size: clamp(1.0625rem, .95rem + .55vw, 1.5rem); line-height: 1.45; max-width: 42ch; }
  .respire-pile { display: grid; gap: 0; max-width: 1180px; margin-top: clamp(32px, 5vw, 72px); padding-bottom: 6vh; }
  .respire-carte {
    position: sticky; top: calc(var(--respire-haut) + var(--n, 0) * 10px);
    height: min(64vh, 640px, 100svh - var(--respire-haut) - var(--bas-onglets, 0px) - 64px); min-height: 340px;
    border-radius: clamp(20px, 2vw, 28px); overflow: hidden; isolation: isolate;
    background: var(--encre);
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--couvert, 0) * .07));
    filter: brightness(calc(1 - var(--couvert, 0) * .55));
    box-shadow: 0 30px 60px -40px rgb(14 15 18 / .6);
    will-change: transform, filter;
  }
  .respire-carte:nth-child(2) { --n: 1; } .respire-carte:nth-child(3) { --n: 2; } .respire-carte:nth-child(4) { --n: 3; } .respire-carte:nth-child(5) { --n: 4; }
  .respire-carte > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.06 - var(--couvert, 0) * .06)); transition: transform 1.2s var(--ease); }
  .respire-legende {
    position: absolute; left: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: clamp(14px, 2vw, 24px);
    padding: clamp(14px, 1.6vw, 22px) clamp(16px, 2vw, 26px);
    border-radius: 16px;
    background: rgb(20 20 22 / .5); color: var(--blanc);
    -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
  }
  .respire-num { grid-row: span 2; font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); line-height: 1; color: var(--or-clair); }
  .respire-legende h3 { font-family: var(--texte); font-size: clamp(1.1875rem, .95rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.15; }
  .respire-legende p { margin-top: 4px; color: var(--blanc-90); font-size: clamp(.9375rem, .88rem + .3vw, 1.125rem); line-height: 1.45; }
  /* Remise des clés (7.4) : les conditions lues s'appliquent, sinon pénalités */
  .respire-legende .respire-regles { grid-column: 2; max-width: 60ch; display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--blanc-20); color: var(--blanc-90); font-size: clamp(.8125rem, .78rem + .2vw, .9375rem); }
  .respire-regles b { color: var(--or-clair); font-weight: 600; }
  .respire-regles svg.i { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--or-clair); }

  /* ============================== Le film de la location (cartes de « Monte. Expire. ») ==============================
     Chaque scène compile une photo de fond (nette, ou floutée si elle est petite) et des photos encadrées, légèrement
     inclinées, qui entrent quand la carte arrive (.joue, signature.js). La commande montre l'écran du téléphone, animé. */
  .scene .scene-fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
  .scene .scene-fond.flou { filter: blur(14px) brightness(.62) saturate(1.1); transform: scale(1.12); }
  .scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 9 11 / .15), rgb(8 9 11 / .05) 40%, rgb(8 9 11 / .55)); }
  .scene.joue .scene-fond:not(.flou) { animation: travelling 16s linear both; }
  .scene-cadres { position: absolute; inset: 6% 5% 30% 5%; pointer-events: none; }
  .cadre-photo {
    position: absolute; margin: 0; padding: 7px 7px 7px; border-radius: 6px;
    background: var(--ivoire); box-shadow: 0 26px 50px -20px rgb(0 0 0 / .65);
    opacity: 0; transform: translateY(40px) rotate(var(--r, 0deg)) scale(.92);
    transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  }
  .cadre-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
  .cadre-photo.c1 { --r: -4deg; left: 4%; top: 6%; width: min(38%, 400px); }
  .cadre-photo.c2 { --r: 5deg; right: 6%; top: 0; width: min(30%, 320px); transition-delay: .18s; }
  .cadre-photo.c3 { --r: -2deg; right: 22%; top: 34%; width: min(24%, 260px); transition-delay: .34s; }
  .scene.joue .cadre-photo { opacity: 1; transform: translateY(0) rotate(var(--r)) scale(1); }
  /* La commande : téléphone au centre, photo du véhicule choisi en cadre */
  /* Téléphone dessiné à 210 px (comme celui de « Tout Yamoo ») puis mis à l'échelle de la carte (--echelle) */
  .scene-cadres .telephone-scene { --echelle: .86; left: 9%; right: auto; top: 0; width: 210px; transform-origin: top left; transform: translateY(30px) rotate(-4deg) scale(var(--echelle)); opacity: 0; transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
  .scene.joue .telephone-scene { opacity: 1; transform: rotate(-4deg) scale(var(--echelle)); }
  @media (max-width: 1023px) { .scene-cadres .telephone-scene { --echelle: .72; } }
  .scene[data-scene="commande"] .cadre-photo.c2 { right: 8%; top: 12%; }
  .ecran-commande .ecran-recap { display: grid; gap: 5px; margin: 4px 0; }
  .ecran-commande .ecran-recap li { display: flex; justify-content: space-between; padding-bottom: 4px; border-bottom: 1px solid var(--trait); font-size: 9px; }
  .ecran-commande .ecran-recap span { color: var(--gris); }
  .ecran-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; }
  .ecran-total b { font-size: 13px; }
  .ecran-bouton { padding: 7px; border-radius: 99px; background: var(--or); color: var(--encre); text-align: center; font-weight: 700; }
  .ecran-ok { display: grid; justify-items: center; gap: 2px; margin-top: auto; padding: 10px; border-radius: 12px; background: var(--palme-pale); color: var(--palme); text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease) 1.4s, transform .6s var(--ease) 1.4s; }
  .ecran-ok span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--palme); color: var(--blanc); font-weight: 700; }
  .ecran-ok b { font-size: 10px; } .ecran-ok small { font-size: 8.5px; color: var(--gris); }
  .scene.joue .ecran-ok { opacity: 1; transform: none; }
  @media (max-width: 599px) {
    .scene-cadres { inset: 5% 4% 40% 4%; }
    .scene-cadres .cadre-photo { padding: 4px; }
    .scene-cadres .cadre-photo.c1 { width: 52%; left: 2%; }
    .scene-cadres .cadre-photo.c2 { width: 44%; right: 2%; top: 18%; }
    .scene-cadres .cadre-photo.c3 { display: none; }
    .scene-cadres .telephone-scene { --echelle: .56; left: 5%; }
    .scene[data-scene="commande"] .cadre-photo.c2 { right: 2%; top: 22%; width: 40%; }
  }

  /* ============================== Le site dans ta main ============================== */
  .appli { padding: var(--section) 0; background: #EFEDE8; overflow: hidden; }
  .appli-grille { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
  @media (min-width: 900px) { .appli-grille { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); } }
  .appli-visuel { position: relative; display: grid; place-items: center; min-height: clamp(440px, 52vw, 640px); }
  .appli-halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(184 145 63 / .28), transparent 65%); filter: blur(6px); }
  .appli-main { position: relative; width: clamp(250px, 30vw, 330px); aspect-ratio: 330 / 600; animation: flotte-main 7s var(--ease-in-out) infinite; }
  @keyframes flotte-main { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
  .main-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .main-derriere { z-index: 0; } .main-devant { z-index: 2; filter: drop-shadow(0 6px 10px rgb(14 15 18 / .25)); }
  .main-manche { fill: var(--encre); } .main-poignet { fill: var(--ivoire); } .main-bouton { fill: var(--or); stroke: var(--or-clair); stroke-width: 1.5; }
  .main-ongle { fill: none; stroke: rgb(255 226 205 / .55); stroke-width: 3; stroke-linecap: round; }
  .telephone {
    position: absolute; left: 13%; right: 13%; top: 2%; z-index: 1;
    aspect-ratio: 9 / 18.6;
    padding: 9px; border-radius: 40px;
    background: linear-gradient(145deg, #2c2d31, #0b0b0d);
    box-shadow: 0 40px 70px -30px rgb(14 15 18 / .55), inset 0 0 0 1.5px #3b3c41;
  }
  .telephone-encoche { position: absolute; z-index: 3; top: 15px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 12px; background: #050506; }
  .telephone-ecran { position: relative; height: 100%; overflow: hidden; border-radius: 32px; background: var(--blanc); color: var(--encre); font-size: 10px; line-height: 1.35; }
  .telephone-ecran.entre .ecran { animation: ecran-entre .55s var(--ease) both; }
  @keyframes ecran-entre { from { opacity: 0; transform: translateX(18px); } }
  .ecran { height: 100%; padding: 34px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
  .ecran-tete { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
  .ecran-tete b { font-weight: 700; }
  .ecran-meta { color: var(--gris); font-size: 9px; }
  .ecran-puces { display: flex; gap: 4px; margin-block: 4px; }
  .ecran-puces span { padding: 2px 7px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--trait-2); font-size: 8.5px; }
  .ecran-puces .actif { background: var(--encre); color: var(--blanc); box-shadow: none; }
  .ecran-compte { font-size: 9px; color: var(--gris); }
  .ecran-compte b { color: var(--encre); }
  .ecran-carte { position: relative; padding: 6px; border-radius: 10px; box-shadow: 0 1px 0 var(--trait), inset 0 0 0 1px var(--trait); display: grid; gap: 1px; }
  .ecran-carte img { width: 100%; height: 62px; object-fit: cover; border-radius: 6px; }
  .ecran-carte small { color: var(--gris); font-size: 8.5px; }
  .ecran-carte p { display: flex; justify-content: space-between; margin-top: 2px; padding-top: 3px; border-top: 1px solid var(--trait); font-size: 9px; }
  .ecran-tag { position: absolute; top: 9px; right: 9px; z-index: 1; padding: 1px 6px; border-radius: 99px; background: var(--palme-pale); color: var(--palme); font-size: 8px; font-weight: 700; }
  .ecran-tete-lya, .ecran-tete-wa { justify-content: flex-start; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--trait); }
  .ecran-tete-lya span:last-child { margin-left: auto; }
  .ecran-robot { display: inline-flex; gap: 3px; justify-content: center; align-items: center; width: 22px; height: 18px; border: 1.5px solid var(--encre); border-radius: 6px; }
  .ecran-robot i { width: 2.5px; height: 5px; border-radius: 1px; background: var(--encre); }
  .ecran-fil { display: flex; flex-direction: column; gap: 6px; flex: 1; padding-top: 6px; }
  .ecran-bulle { max-width: 84%; padding: 6px 9px; border-radius: 12px 12px 12px 4px; background: var(--sable); font-size: 9.5px; }
  .ecran-bulle.moi { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: var(--encre); color: var(--blanc); }
  .ecran-mini { display: flex; gap: 6px; align-items: center; padding: 5px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--trait); }
  .ecran-mini img { width: 48px; height: 34px; object-fit: cover; border-radius: 6px; }
  .ecran-mini span { display: grid; font-size: 9px; }
  .ecran-tape { display: flex; gap: 3px; padding: 4px 6px; }
  .ecran-tape i { width: 5px; height: 5px; border-radius: 50%; background: var(--gris-2); animation: saute 1s var(--ease-in-out) infinite; }
  .ecran-tape i:nth-child(2) { animation-delay: .15s; } .ecran-tape i:nth-child(3) { animation-delay: .3s; }
  .ecran-saisie { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--trait-2); color: var(--gris-2); font-size: 9px; }
  .ecran-saisie b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--or); color: var(--encre); }
  .ecran-ref { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 8px; border-radius: 8px; background: var(--sable); }
  .ecran-ref b { font-size: 12px; letter-spacing: .06em; }
  .ecran-photo { width: 100%; height: 84px; object-fit: cover; border-radius: 10px; }
  .ecran-etapes { display: grid; gap: 8px; padding: 6px 2px; }
  .ecran-etapes li { display: flex; align-items: center; gap: 8px; color: var(--gris-2); font-size: 9.5px; }
  .ecran-etapes i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--trait-2); flex: none; }
  .ecran-etapes .fait { color: var(--encre); } .ecran-etapes .fait i { background: var(--palme); box-shadow: none; }
  .ecran-etapes .cours { color: var(--encre); font-weight: 700; } .ecran-etapes .cours i { background: var(--or); box-shadow: 0 0 0 3px rgb(184 145 63 / .3); }
  .ecran-actions { display: flex; gap: 6px; margin-top: auto; }
  .ecran-actions span { flex: 1; padding: 6px; border-radius: 99px; text-align: center; box-shadow: inset 0 0 0 1px var(--trait-2); font-weight: 600; }
  .ecran-actions span:first-child { background: var(--encre); color: var(--blanc); box-shadow: none; }
  .ecran-3 { background: #EFE7DD; }
  .ecran-tete-wa { margin: -34px -12px 0; padding: 34px 12px 8px; background: #1F5C4A; color: var(--blanc); border: 0; }
  .ecran-tete-wa b { display: grid; font-size: 11px; } .ecran-tete-wa small { font-weight: 400; opacity: .8; font-size: 8.5px; }
  .ecran-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--or); color: var(--encre); font-weight: 700; }
  .ecran-fil-wa .ecran-bulle { background: var(--blanc); }
  .ecran-fil-wa .ecran-bulle.moi { background: #D7F5C8; color: var(--encre); }
  .appli-texte { max-width: 560px; }
  .appli-texte h2 { font-size: var(--t-2); }
  .appli-compteur { display: flex; align-items: center; gap: 14px; margin: clamp(18px, 2vw, 28px) 0; }
  .appli-ligne { position: relative; width: 150px; height: 2px; background: var(--trait-2); overflow: hidden; }
  .appli-ligne i { position: absolute; inset: 0; background: var(--encre); transform: scaleX(.25); transform-origin: left; transition: transform var(--d-4) var(--ease); }
  .appli-compteur b { font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .appli-diapos { min-height: 9.5rem; }
  .appli-diapo h3 { font-family: var(--texte); font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); font-weight: 500; line-height: 1.15; }
  .appli-diapo p { margin: 10px 0 12px; color: var(--gris); font-size: 1.0625rem; line-height: 1.6; max-width: 46ch; }
  .appli-diapo.active { animation: diapo-entre .5s var(--ease) both; }
  @keyframes diapo-entre { from { opacity: 0; transform: translateY(10px); } }
  .appli-commandes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: clamp(16px, 2.4vw, 32px); }
  .fleche-ronde { display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); transition: background-color var(--d-2), color var(--d-2); }
  .fleche-ronde svg.i { width: 22px; height: 22px; }
  @media (hover: hover) { .fleche-ronde:hover { background: var(--encre); color: var(--blanc); } }
  .appli-visite { margin-left: auto; }
  @media (max-width: 599px) { .appli-visite { margin-left: 0; width: 100%; justify-content: center; } }
  /* Télécharger (7.4, comme govirtuo.com) : pastilles noires façon store, texte blanc, glyphe générique (pas de badge
     officiel) ; la note dit qu'il s'agit d'une application web. */
  .appli-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 2vw, 26px); }
  .store-badge {
    display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px;
    border: 0; border-radius: 14px; background: var(--noir); color: var(--blanc); text-align: left; cursor: pointer;
    box-shadow: 0 0 0 1px rgb(255 255 255 / .14) inset, 0 14px 28px -16px rgb(8 9 11 / .7);
    transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  }
  .store-badge:focus-visible { outline: 3px solid var(--azur); outline-offset: 3px; }
  .store-glyphe { flex: none; width: 28px; height: 28px; fill: currentColor; }
  .store-glyphe .store-trait { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
  .store-glyphe .store-oeil { fill: var(--noir); }
  .store-texte { display: grid; line-height: 1.1; }
  .store-texte small { font-size: .75rem; font-weight: 500; letter-spacing: .01em; color: var(--blanc-90); }
  .store-texte b { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
  @media (hover: hover) { .store-badge:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(140 184 255 / .5) inset, 0 18px 34px -16px rgb(47 123 255 / .55); } }
  .appli-note { margin-top: 12px; color: var(--gris); font-size: .875rem; line-height: 1.5; max-width: 46ch; }
  .appli-install-msg:not(:empty) { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait); font-size: .9375rem; line-height: 1.45; max-width: 46ch; }
  .appli-stores + .appli-note + .appli-install-msg + .appli-compteur { margin-top: clamp(22px, 2.6vw, 34px); }
  @media (max-width: 419px) { .store-badge { flex: 1 1 100%; } }
  @media (max-width: 899px) { .appli-texte { order: -1; } } /* mobile : titre et pastilles de téléchargement avant le téléphone */

  /* Feuille « Installe Yamoo sur ton écran d'accueil » (#installAppli) */
  .ins-intro { color: var(--gris); line-height: 1.5; }
  .ins-etapes { display: grid; gap: 10px; margin: 16px 0; }
  .ins-etapes li { display: grid; grid-template-columns: 28px 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sable); line-height: 1.45; }
  .ins-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: var(--blanc); font-size: .875rem; font-weight: 700; }
  .ins-icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ivoire); color: var(--azur-fonce); }
  .ins-icone svg.i { width: 22px; height: 22px; }
  .ins-note { color: var(--gris); font-size: .875rem; line-height: 1.5; }

  /* ============================== Yamoo recrute : pastille de la candidature ============================== */
  .recrute-pastille {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 34px; padding: 0 14px;
    border-radius: var(--r-pill);
    background: rgb(31 110 67 / .22); color: #BFE8CF; box-shadow: inset 0 0 0 1px rgb(191 232 207 / .35);
    font-size: .8125rem; font-weight: 600; letter-spacing: .01em;
  }
  .recrute-pastille:empty { display: none; }
  .recrute-pastille.ferme { background: var(--blanc-08); color: var(--blanc-70); box-shadow: inset 0 0 0 1px var(--blanc-20); }
  .recrute-pastille-claire { background: var(--palme-pale); color: var(--palme); box-shadow: none; margin-bottom: var(--s-3); }
  .recrute-pastille-claire.ferme { background: var(--sable); color: var(--gris); }
  .point-vivant { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
  .recrute-pastille:not(.ferme) .point-vivant::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: vivant 1.8s var(--ease) infinite; }
  @keyframes vivant { to { transform: scale(2.8); opacity: 0; } }

  /* ============================== Visite guidée ============================== */
  .guide { position: fixed; inset: 0; z-index: 96; opacity: 0; transition: opacity var(--d-3) var(--ease); }
  .guide.ouvert { opacity: 1; }
  html.guide-ouvert { overflow: hidden; }
  .guide-halo {
    position: fixed; border-radius: 18px; pointer-events: none;
    box-shadow: 0 0 0 9999px rgb(8 9 11 / .66), 0 0 0 2px var(--or), 0 0 30px 4px rgb(184 145 63 / .45);
    transition: top .45s var(--ease), left .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
  }
  .guide-carte {
    position: fixed; width: min(380px, 100vw - 32px);
    padding: 20px 20px 16px; border-radius: 22px;
    background: var(--ivoire); color: var(--encre);
    box-shadow: var(--ombre-3), inset 0 0 0 1px var(--trait);
    transition: top .45s var(--ease), left .45s var(--ease);
  }
  .guide-carte.entre { animation: guide-entre .4s var(--ease) both; }
  @keyframes guide-entre { from { opacity: 0; transform: translateY(8px) scale(.98); } }
  .guide-etape { color: var(--or-texte); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .guide-titre { margin: 6px 0 6px; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.08; }
  .guide-texte { color: var(--gris); font-size: .9375rem; line-height: 1.55; }
  .guide-points { display: flex; gap: 6px; margin: 14px 0 12px; }
  .guide-points i { width: 6px; height: 6px; border-radius: 99px; background: var(--trait-2); transition: width var(--d-3) var(--ease), background-color var(--d-3); }
  .guide-points i.actif { width: 22px; background: var(--or); }
  .guide-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .guide-actions #guideQuitter { margin-right: auto; }
  .guide-invite {
    position: fixed; left: 16px; bottom: 16px; z-index: calc(var(--z-lya) + 1);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; align-items: center;
    width: min(400px, 100vw - 32px); padding: 16px;
    border-radius: 20px; background: var(--ivoire);
    box-shadow: var(--ombre-3), inset 0 0 0 1px var(--trait);
    animation: bulle-entree var(--d-4) var(--ease) both;
  }
  .guide-invite[hidden] { display: none; }
  .guide-invite b { display: block; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.1; }
  .guide-invite p { color: var(--gris); font-size: .875rem; line-height: 1.45; }
  .guide-invite-icone { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--or); color: var(--encre); font-family: var(--serif); font-size: 1.5rem; }
  .guide-invite-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
  @media (min-width: 1024px) { .guide-invite { left: 24px; bottom: 24px; } }

  /* ============================== Offre de bienvenue ============================== */
  /* Le bandeau cookies reste visible et utilisable au-dessus de la feuille ouverte (commun.js le laisse hors de inert). */
  html.feuille-ouverte .cookies.visible { z-index: calc(var(--z-feuille) + 8); }
  html.cookies-a-choisir .cookies { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .feuille.feuille-offre { max-height: calc(100dvh - var(--h-cookies) - var(--bas-onglets) - 16px); }
  html.cookies-a-choisir .feuille.feuille-offre { bottom: calc(var(--h-cookies) + var(--bas-onglets)); border-radius: var(--r-xl); }
  .feuille-offre .offre-visuel { height: 132px; }
  .offre-badge { position: absolute; left: 16px; bottom: 14px; display: grid; padding: 8px 14px; border-radius: 14px; background: var(--verre-sombre); color: var(--blanc); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .offre-badge b { font-family: var(--serif); font-size: 2.25rem; font-weight: 400; line-height: 1; color: var(--or-clair); }
  .offre-badge span { font-size: .75rem; font-weight: 600; }
  .offre-contenu { align-content: start; gap: var(--s-3); padding: var(--s-5) var(--s-5) calc(var(--s-5) + var(--bas-sur)); }
  .offre-contenu h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
  .offre-corps { display: grid; gap: var(--s-3); }
  .offre-corps[hidden] { display: none; }
  .offre-etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .offre-etapes li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--sable); font-size: .8125rem; font-weight: 600; line-height: 1.2; }
  .offre-etapes b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--encre); color: var(--or-clair); font-size: .75rem; flex: none; }
  .offre-form { display: grid; gap: var(--s-3); }
  /* Accroche (premier passage) : titre, promesse, trois temps et un seul bouton ; le formulaire vient ensuite */
  .offre-cta { display: grid; justify-items: center; gap: var(--s-1); margin-top: var(--s-2); }
  .feuille-offre:not(.offre-accroche) .offre-cta, .feuille-offre.offre-accroche .offre-form { display: none; }
  .feuille-offre.offre-accroche .offre-contenu { align-content: safe center; }
  /* Mobile, premier passage : l'offre et le bandeau cookies paraissent ensemble ; l'accroche se resserre (photo plus
     basse, sans les trois temps) et le bandeau garde son titre et ses boutons (sa phrase revient l'offre refermée), pour que
     le titre de l'offre et son bouton se lisent sans défiler. */
  @media (max-width: 767px) {
    .feuille-offre.offre-accroche .offre-visuel { height: 96px; }
    .feuille-offre.offre-accroche .offre-etapes { display: none; }
    .feuille-offre.offre-accroche .offre-contenu { gap: var(--s-2); padding-block: var(--s-4); }
    html:has(#offre.ouvert) .cookies-texte p { display: none; }
  }
  .offre-ligne, .offre-adresse { display: grid; gap: var(--s-3); }
  @media (min-width: 560px) {
    .offre-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Deux champs par ligne ; l'adresse (rue) prend toute la ligne ; code postal et région courts, la ville à côté */
    .offre-adresse { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .offre-adresse .champ { grid-column: span 3; }
    .offre-adresse :is([data-champ="ligne1"], [data-champ="paysNom"]) { grid-column: span 6; }
    .offre-adresse .champ-court { grid-column: span 2; }
    .offre-adresse .champ-court + .champ:not(.champ-court), .offre-adresse .champ:not(.champ-court):has(+ .champ-court) { grid-column: span 4; }
  }
  .offre-form .champ small.resa-facultatif { font-weight: 400; color: var(--gris-2); }
  .offre-msg { display: block; min-height: 0; color: var(--laterite); font-size: .8125rem; line-height: 1.35; }
  .offre-msg:empty { display: none; }
  .offre-form [aria-invalid="true"] { border-color: var(--laterite); box-shadow: 0 0 0 3px rgb(176 58 27 / .14); }
  .offre-accord { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.45; color: var(--encre); }
  .offre-accord input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--encre); }
  .offre-pourquoi { color: var(--gris); font-size: .8125rem; line-height: 1.45; }
  .offre-contenu .offre-resultat { padding: 0; background: none; }
  .offre-ok { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: var(--or-pale); }
  .offre-ok h3 { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.1; }
  .offre-ok p { color: var(--encre); font-size: .9375rem; line-height: 1.55; }
  .offre-ok-icone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--palme); color: var(--blanc); font-weight: 700; }
  .offre-ok:not(.active) .offre-ok-icone { background: var(--encre); color: var(--or-clair); font-family: var(--serif); font-style: italic; }
  .offre-code-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .offre-envoi { display: flex; gap: 8px; align-items: flex-start; padding-top: 8px; border-top: 1px solid rgb(125 95 34 / .2); color: var(--gris) !important; font-size: .875rem !important; }
  .offre-envoi svg.i { width: 18px; height: 18px; color: var(--or-texte); flex: none; }
  .offre-ok-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
  @media (min-width: 768px) {
    .feuille.feuille-offre { width: min(960px, 100vw - 48px); height: min(720px, calc(100dvh - var(--h-cookies) - 32px)); grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); grid-template-rows: minmax(0, 1fr); }
    .feuille-offre .offre-visuel { height: 100%; min-height: 0; }
    .feuille-offre .offre-image { object-position: 50% 70%; }
    .offre-badge { left: 22px; bottom: 22px; padding: 12px 18px; }
    .offre-badge b { font-size: 3.25rem; }
    .offre-contenu { padding: var(--s-6) var(--s-6) var(--s-5); overflow-y: auto; }
    html.cookies-a-choisir .feuille.feuille-offre { bottom: auto; top: calc(50% - var(--h-cookies) / 2); }
  }

  /* Tunnel : offre appliquée */
  .resa-bienvenue:empty { display: none; }
  .resa-bv { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--sable); font-size: .9375rem; line-height: 1.5; }
  .resa-bv.est-ok { background: var(--palme-pale); color: var(--encre); }
  .resa-bv svg.i { width: 20px; height: 20px; flex: none; color: var(--or-texte); }
  .resa-bv.est-ok svg.i { color: var(--palme); }


  /* ============================== Titres en zigzag ([data-zigzag], signature.js) ==============================
     Mot par mot, un d'en haut, le suivant d'en bas, avec une légère rotation ; 90 ms entre deux mots. */
  .zz .mot { display: inline-block; }
  .zz.zz-joue .mot { animation: zz-mot .75s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 80ms); }
  .zz.zz-joue .mot.haut { --dy: -.75em; --rot: -7deg; }
  .zz.zz-joue .mot.bas { --dy: .75em; --rot: 7deg; }
  @keyframes zz-mot { from { opacity: 0; transform: translateY(var(--dy)) rotate(var(--rot)); filter: blur(4px); } 60% { filter: blur(0); } to { opacity: 1; transform: none; filter: none; } }

  /* ============================== Flotte (7.3) ============================== */
  .vue-flotte { padding-top: 0; }
  html[data-vue="flotte"] main { padding-top: 0; }
  .flotte-heros {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--h-entete) + env(safe-area-inset-top) + clamp(32px, 5vw, 72px)) 0 clamp(28px, 4vw, 48px);
    background: radial-gradient(70% 90% at 85% 20%, rgb(184 145 63 / .2), transparent 60%), var(--encre); color: var(--blanc);
  }
  html[data-vue="flotte"] .barre:not(.solide) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--blanc); }
  html[data-vue="flotte"] .barre:not(.solide)::before { opacity: 1; }
  html[data-vue="flotte"] .barre:not(.solide) .logo-mot span { color: var(--or-clair); }
  html[data-vue="flotte"] .barre:not(.solide) :is(.ld-bouton, .barre-menu) { box-shadow: inset 0 0 0 1px var(--blanc-50); }
  .flotte-heros .flotte-tete { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: 0; }
  .flotte-heros .flotte-tete > div { max-width: 960px; }
  .flotte-heros h1 { color: var(--blanc); font-size: var(--t-1); }
  .flotte-heros h1 em { color: var(--or-clair); }
  .flotte-heros .flotte-intro { color: var(--blanc-70); max-width: 52ch; }
  .flotte-heros .flotte-faits { background: var(--trait-nuit); box-shadow: none; border-color: var(--trait-nuit); }
  .flotte-heros .flotte-faits li { background: var(--encre); border-color: var(--trait-nuit); }
  .flotte-heros .resume { color: var(--encre); }
  .flotte-heros .resume b { color: var(--encre); }
  .flotte-heros .flotte-faits b, .flotte-heros .flotte-faits b small { color: var(--blanc); }
  .flotte-heros .flotte-faits span { color: var(--blanc-70); }
  .flotte-dates { margin-top: clamp(24px, 3vw, 36px); }
  .flotte-dates .resume-dates { max-width: 760px; }
  /* Cartes de la grille : un cadre net et un survol vivant */
  .vue-flotte .grille-flotte .carte-v { transition: box-shadow var(--d-3) var(--ease); }
  @media (hover: hover) {
    .vue-flotte .grille-flotte .carte-v:hover { transform: none; box-shadow: var(--ombre-2); }
    .vue-flotte .grille-flotte .carte-v:hover .photo img { transform: none; }
  }
  .vue-flotte .fleet-toolbar .fleet-toolbar-int {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }
  .vue-flotte .fleet-toolbar .filtres-rail { grid-column: 1 / -1; grid-row: auto; }
  .fleet-facette {
    display: grid; align-self: stretch; align-content: center; gap: 3px; min-width: 0;
    padding: 6px 10px; background: var(--papier); border: 1px solid var(--trait-2); border-radius: 12px;
  }
  .fleet-facette span { font-size: .875rem; color: var(--gris); }
  .fleet-facette select { width: 100%; min-width: 0; font-size: .9375rem; }
  @media (max-width: 719px) {
    .vue-flotte .fleet-toolbar .fleet-toolbar-int { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vue-flotte .fleet-toolbar .filtres-rail { flex-wrap: wrap; gap: 6px; margin-inline: 0; padding-inline: 0; overflow: visible; mask-image: none; }
    .vue-flotte .fleet-toolbar { position: relative; top: auto; }
  }
  @media (max-width: 359px) {
    .vue-flotte .fleet-toolbar .fleet-search { grid-column: 1 / -1; }
  }
  /* Ce qui est compris (li.compris : le bouton « Compris » des règles du tunnel, button.compris, n’en hérite pas) */
  .flotte-compris { margin-top: clamp(40px, 5vw, 72px); padding: clamp(40px, 5vw, 72px) 0; background: var(--ivoire); border-block: 1px solid var(--trait); }
  .compris-liste { display: grid; gap: var(--s-3); margin-top: var(--s-5); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 640px) { .compris-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .compris-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  li.compris { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-carte); background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); }
  li.compris > svg.i { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--encre); color: var(--or-clair); }
  li.compris b { display: block; font-weight: 600; line-height: 1.3; }
  li.compris span { display: block; margin-top: 3px; color: var(--gris); font-size: .9375rem; line-height: 1.5; }
  /* Tu hésites ? */
  .flotte-aide { padding-block: clamp(40px, 5vw, 72px) var(--section); }
  .aide-cartes { display: grid; gap: var(--s-3); margin-top: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .aide-carte {
    display: grid; align-content: start; gap: 6px; min-height: 150px; padding: 20px;
    border: 0; border-radius: var(--r-carte); background: var(--ivoire); color: var(--encre); text-align: left; text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--trait); cursor: pointer; transition: transform var(--d-3) var(--ease), box-shadow var(--d-3);
  }
  .aide-carte > svg.i { width: 40px; height: 40px; padding: 9px; margin-bottom: 6px; border-radius: 12px; background: var(--or-pale); color: var(--or-texte); }
  .aide-carte b { font-size: 1.125rem; font-weight: 600; }
  .aide-carte span { color: var(--gris); font-size: .9375rem; line-height: 1.5; }
  .aide-carte-encre { background: var(--encre); color: var(--blanc); box-shadow: none; }
  .aide-carte-encre span { color: var(--blanc-70); }
  .aide-carte-encre > svg.i { background: var(--blanc-08); color: var(--or-clair); }
  @media (hover: hover) { .aide-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-2), inset 0 0 0 1px var(--trait); } }

  /* ============================== Crédits photos ============================== */
  .credits-liste { display: grid; gap: 10px; font-size: .875rem; line-height: 1.45; }
  .credits-liste li { padding-bottom: 10px; border-bottom: 1px solid var(--trait); }
  .credits-liste a { color: var(--encre); }
  .credits-liste span { color: var(--gris); }

  /* Tunnel : code de parrainage du filleul (replié derrière « J'ai un code de parrainage ») */
  .resa-parrain { display: grid; gap: var(--s-2); }
  .resa-parrain > .lien-aide { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  .resa-parrain > .lien-aide svg.i { width: 16px; height: 16px; color: var(--or-texte); }

  /* ============================== Affiche « Parraine, gagne −30 % » (7.4, accueil) ==============================
     Une page de la pile, nuit bleutée : texte à gauche (taux en or, trois temps numérotés, bouton bleu), affiche à droite
     (photo, grand « −30 % » en or, coupon détachable « YAM-••••• » en pointillés). Mobile : l'affiche passe sous le texte. */
  .parrainage-affiche {
    padding: var(--section) 0; color: var(--blanc); overflow: hidden;
    background: radial-gradient(70% 60% at 85% 20%, rgb(47 123 255 / .34), transparent 62%), radial-gradient(60% 50% at 0% 100%, rgb(184 145 63 / .18), transparent 60%), var(--encre);
  }
  .parrainage-grille { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
  @media (min-width: 900px) { .parrainage-grille { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
  .parrainage-texte { display: grid; gap: var(--s-4); justify-items: start; }
  .parrainage-texte .section-eyebrow { color: var(--or-clair); }
  .parrainage-titre { max-width: 16ch; font-family: var(--serif); font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; color: var(--blanc); }
  .parrainage-titre em { color: var(--or-clair); white-space: nowrap; }
  .parrainage-temps { display: grid; gap: 10px; max-width: 46ch; }
  .parrainage-temps li { display: flex; gap: 12px; align-items: flex-start; color: var(--blanc-90); font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.45; }
  .parrainage-temps b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(232 207 150 / .6); color: var(--or-clair); font-family: var(--serif); font-size: 1.0625rem; font-weight: 400; }
  .parrainage-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
  .parrainage-cta { white-space: normal; }
  .parrainage-conditions { max-width: 52ch; color: var(--blanc-70); font-size: .875rem; line-height: 1.5; }
  .parrainage-poster {
    position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 4 / 5; margin: 0;
    border-radius: 26px; overflow: hidden; background: var(--encre-2);
    box-shadow: 0 40px 90px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .1), 0 0 80px -20px rgb(47 123 255 / .45);
    transform: rotate(-2.5deg);
  }
  .parrainage-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .parrainage-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 10 20 / .1) 20%, rgb(8 10 20 / .9) 78%); }
  .parrainage-poster-texte { position: absolute; left: 26px; right: 26px; bottom: 96px; z-index: 1; display: grid; gap: 6px; }
  .parrainage-poster-taux { font-family: var(--serif); font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: .9; color: var(--or-clair); letter-spacing: -.03em; }
  .parrainage-poster-pour { max-width: 20ch; color: var(--blanc); font-size: 1rem; font-weight: 600; line-height: 1.35; }
  .parrainage-coupon {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 26px; border-top: 2px dashed rgb(232 207 150 / .55); background: rgb(8 10 20 / .55);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--blanc-70); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  }
  .parrainage-coupon b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; letter-spacing: .08em; text-transform: none; color: var(--or-clair); }
  @media (max-width: 899px) { .parrainage-poster { width: min(100%, 360px); transform: rotate(-1.5deg); } }
  @media (max-width: 479px) { .parrainage-poster-texte { left: 20px; right: 20px; bottom: 84px; } .parrainage-coupon { padding: 14px 20px; } }

  /* ============================== Responsive : resserrer, ne jamais déborder ============================== */
  @media (max-width: 599px) {
    .respire-carte { height: min(66vh, 560px, 100svh - var(--respire-haut) - var(--bas-onglets, 0px) - 56px); min-height: 320px; }
    .respire-legende { grid-template-columns: minmax(0, 1fr); }
    .respire-legende .respire-regles { grid-column: auto; }
    .respire-num { grid-row: auto; font-size: 1.75rem; }
    .appli-visuel { min-height: 420px; }
    .offre-etapes li { flex-direction: column; text-align: center; font-size: .75rem; }
    .entete { gap: var(--s-3); }
  }
  html, body { overflow-x: clip; }
}

/* ============================== Mouvement réduit ============================== */
@layer utilitaires {
  @media (prefers-reduced-motion: reduce) {
    .defile-piste, .tournante-anneau, .appli-main, .bulle-scene.vu .bonhomme-svg, .bulle-scene.vu .bh-bras, .heros-defile-souris::after, .barre-offre, .point-vivant::after { animation: none !important; }
    .showroom #railLibres > * { animation: none !important; }
    .voyage-background img.active, .scene .scene-fond, .film-barres i.actif b { animation: none !important; }
    .zz.zz-joue .mot { animation: none !important; }
    .cadre-photo, .telephone-scene, .ecran-ok { transition: none !important; }
    .respire-carte { position: relative; top: auto; transform: none; filter: none; }
    .respire-pile { gap: 16px; }
    /* À l'arrêt, la bande devient une liste centrée des onze lieux, sans fondu de bord (il coupait le premier mot) */
    .defile-lieux { mask-image: none; }
    .defile-piste { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; row-gap: 6px; }
    .defile-piste span:nth-child(n+12) { display: none; }
    .defile-piste span:nth-child(11)::after { content: none; }
    .parrainage-poster { transform: none; }
  }
}
