/* Yamoo Drive — coquille du site client « Champagne » (@layer coquille)
   En-tête, navigation, menu plein écran, pied de page, Lya (bouton, bulle, panneau), cookies,
   transitions de vues, impression. (7.4 : l'intro de marque a disparu, l'ouverture n'attend plus rien.) (La barre d'onglets du bas a disparu : tout passe par l'en-tête
   et le menu, en deux gestes au plus.)
   État posé par le JS :
   - html[data-vue] et body[data-vue] : vue courante (html posé dès <head> par amorce.js, puis par route()).
   - .barre.solide et body.solide : la page a défilé de plus de 24 px ; body.defile-loin : plus de 60 % de la hauteur d'écran ;
     body.defile-bas : on descend dans la page (barre d'outils de la flotte, flotte.css).
   - #menu.ouvert (Y.ouvrir) et #menuBouton[aria-expanded] (commun.js) : menu plein écran.
   - html.i18n-attente (amorce.js, 1,5 s au plus) : textes [data-t] masqués le temps de leur traduction ;
     #langueDevise et #deviseBouton [aria-expanded], #panneauLangue (client.js) : sélecteur « Langue et devise » (docs/I18N.md § 7). */

@layer coquille {

  /* ============================== Page ============================== */
  body { display: flex; flex-direction: column; min-height: 100dvh; }
  main { flex: 1 0 auto; padding-top: calc(var(--h-entete) + env(safe-area-inset-top)); padding-bottom: clamp(48px, 6vw, 80px); }
  /* L'accueil passe sous l'en-tête transparent : le héros prévoit lui-même la hauteur de l'en-tête. */
  html[data-vue="accueil"] main { padding-top: 0; padding-bottom: 0; }

  .vue { display: none; }
  .vue.active { display: block; }
  /* Avant le premier rendu JS, la vue demandée s'affiche déjà si son contenu est statique (html[data-vue]
     posé par amorce.js), et la page garde au moins un écran de haut : le pied reste sous la ligne de
     flottaison au lieu de s'afficher puis de sauter (CLS, liens #v-… partagés compris). */
  main:not(:has(> .vue.active)) { min-height: 100svh; }
  html[data-vue="accueil"] main:not(:has(> .vue.active)) > .vue[data-vue="accueil"],
  html[data-vue="flotte"] main:not(:has(> .vue.active)) > .vue[data-vue="flotte"],
  html[data-vue="evenements"] main:not(:has(> .vue.active)) > .vue[data-vue="evenements"],
  html[data-vue="aide"] main:not(:has(> .vue.active)) > .vue[data-vue="aide"],
  html[data-vue="confidentialite"] main:not(:has(> .vue.active)) > .vue[data-vue="confidentialite"] { display: block; }
  /* Zones remplies par le JS : invisibles jusqu'au rendu, elles apparaissent à leur place au lieu de glisser. */
  main:not(:has(> .vue.active)) :is(.vue-flotte > :not(.flotte-tete), .aide-corps) { visibility: hidden; }

  /* Texte agrandi (html.texte-grand, client.js) : un libellé de bouton passe à la ligne au lieu d'être rogné
     ou d'élargir sa colonne au-delà de l'écran (WCAG 1.4.4). */
  html.texte-grand .btn { white-space: normal; padding-block: 8px; text-wrap: balance; }
  /* Sans View Transitions : entrée en simple fondu (7.4 ; § « Traversée » plus bas) */
  @supports not (view-transition-name: none) {
    .vue.active { animation: vue-fondu var(--d-3) var(--ease) backwards; }
  }

  /* Lien d'évitement */
  .evitement {
    position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 10px; z-index: calc(var(--z-intro) + 1);
    padding: 12px 18px; border-radius: var(--r-pill);
    background: var(--encre); color: var(--blanc);
    font-weight: 600; text-decoration: none;
    transform: translateY(calc(-100% - 24px));
    transition: transform var(--d-2) var(--ease);
  }
  /* ombre seulement quand le lien est à l'écran : cachée, elle débordait sous le haut de la fenêtre */
  .evitement:focus { transform: none; box-shadow: var(--ombre-3); }

  .noscript-message {
    position: fixed; inset: auto 12px 12px; z-index: var(--z-intro);
    padding: 20px; border-radius: var(--r-l);
    background: var(--ivoire); box-shadow: var(--ombre-3), inset 0 0 0 1px var(--trait);
  }

  /* ============================== En-tête ============================== */
  .barre {
    position: fixed; inset: 0 0 auto 0; z-index: var(--z-entete);
    isolation: isolate;
    padding-top: env(safe-area-inset-top);
    color: var(--encre);
    transition: background-color var(--d-3) var(--ease), color var(--d-3) var(--ease), box-shadow var(--d-3) var(--ease);
    view-transition-name: barre;
  }
  /* voile dégradé discret qui garde l'en-tête lisible sur la photo du héros */
  .barre::before {
    content: ""; position: absolute; inset: 0 0 -32px 0; z-index: -1; pointer-events: none;
    background: var(--voile-entete);
    opacity: 0;
    transition: opacity var(--d-3) var(--ease);
  }
  /* Ivoire dépoli et filet fin : après 24 px sur l'accueil, dès le départ ailleurs */
  .barre.solide, html:not([data-vue="accueil"]) .barre {
    background: var(--verre-ivoire);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: var(--ombre-entete);
  }
  html[data-vue="accueil"] .barre:not(.solide) { color: var(--blanc); }
  html[data-vue="accueil"] .barre:not(.solide)::before { opacity: 1; }

  .barre-int {
    display: flex; align-items: center; gap: var(--s-3);
    height: var(--h-entete);
    transition: height var(--d-3) var(--ease);
  }
  .barre.solide .barre-int { height: var(--h-entete-solide); }

  /* Logo : Y en currentColor + courbe dorée ; mot-symbole en Instrument Sans espacé */
  .logo {
    display: inline-flex; align-items: center; gap: 10px; flex: none;
    min-height: 44px;
    color: inherit; text-decoration: none;
  }
  .logo svg { width: 30px; height: 30px; flex: none; overflow: visible; }
  .logo-y { fill: currentColor; }
  .logo-courbe { fill: none; stroke: var(--or); stroke-width: 3; stroke-linecap: round; }
  .logo-mot { display: grid; line-height: 1; }
  .logo-mot b { font-family: var(--texte); font-size: 17px; font-weight: 600; letter-spacing: .2em; margin-right: -.2em; }
  .logo-mot span { margin-top: 4px; font-size: 12px; font-weight: 500; letter-spacing: .5em; margin-right: -.5em; color: var(--or-texte); }
  :is(.sur-nuit, html[data-vue="accueil"] .barre:not(.solide)) .logo-mot span { color: var(--or-clair); }

  /* Navigation ordinateur (liens au centre) */
  .nav-haut { display: none; }

  /* Groupe de droite : langue et devise (ordinateur), favoris, Réserver, menu (sous 1024 px) */
  .droite { display: flex; align-items: center; gap: var(--s-2); flex: none; margin-left: auto; }

  /* « Langue et devise » (socle « Passeport », 7.2 ; toujours visible depuis 7.4) : sous 1024 px, une pastille « FR · FCFA » ;
     dès 1024 px, deux boutons « FR ▾ » et « FCFA ▾ » (« Français ▾ » dès 1440 px). Tous ouvrent le même panneau ivoire
     (#panneauLangue, client.js : Échap, clic dehors, focus rendu) ; mêmes choix dans le menu plein écran. */
  .ld { position: relative; display: flex; align-items: center; gap: 6px; }
  .ld-bouton {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 0 12px 0 12px;
    border: 0; border-radius: var(--r-pill);
    background: transparent; box-shadow: inset 0 0 0 1px var(--trait-2);
    color: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: background-color var(--d-2), box-shadow var(--d-2);
  }
  .ld-bouton svg.i { width: 18px; height: 18px; stroke-width: 1.5; color: var(--or-texte); }
  .ld-bouton svg.ld-chevron { width: 14px; height: 14px; margin-right: -2px; stroke-width: 2; color: currentColor; opacity: .75; transition: transform var(--d-2) var(--ease); }
  .ld-bouton[aria-expanded="true"] svg.ld-chevron { transform: rotate(180deg); }
  .ld-bouton[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--encre); }
  :is(html[data-vue="accueil"], html[data-vue="flotte"]) .barre:not(.solide) .ld-bouton { box-shadow: inset 0 0 0 1px var(--blanc-50); }
  :is(html[data-vue="accueil"], html[data-vue="flotte"]) .barre:not(.solide) .ld-bouton svg.i:not(.ld-chevron) { color: var(--or-clair); }
  /* Pastille (sous 1024 px) : code seul ; dès 1024 px : langue et devise, chacune son bouton */
  .ld-court, .ld-nom, .ld-devise { display: none; }
  @media (max-width: 399px) { .ld-langue > svg.i:first-child { display: none; } .ld-bouton { padding: 0 10px; } }
  @media (min-width: 1024px) {
    .ld-code { display: none; }
    .ld-court { display: inline; }
    .ld-devise { display: inline-flex; }
    .ld-bouton { min-height: 40px; padding: 0 12px 0 10px; }
    .ld-devise { padding-left: 14px; }
  }
  /* Le nom complet de la langue (« Français ») dès 1440 px ; avant, son code (« FR ») */
  @media (min-width: 1440px) {
    .ld-court { display: none; }
    .ld-nom { display: inline; }
  }
  .ld-panneau {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 2;
    width: min(340px, 100vw - 32px); padding: var(--s-5);
    border-radius: var(--r-l);
    background: var(--ivoire); color: var(--encre);
    box-shadow: var(--ombre-3), inset 0 0 0 1px var(--trait);
    animation: ld-entree var(--d-3) var(--ease) both;
  }
  @keyframes ld-entree { from { opacity: 0; transform: translateY(-6px); } }
  /* Sous 1024 px, la pastille n'est pas au bord de l'écran : le panneau se pose sous l'en-tête, sur toute la largeur utile */
  @media (max-width: 1023px) {
    .ld-panneau {
      position: fixed; top: calc(var(--h-entete) + env(safe-area-inset-top) + 8px); left: 16px; right: 16px; width: auto;
      max-height: calc(100dvh - var(--h-entete) - env(safe-area-inset-top) - var(--bas-onglets) - 24px); overflow-y: auto; overscroll-behavior: contain;
    }
  }
  .ld-titre { margin-bottom: var(--s-3); font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; letter-spacing: var(--serre); }
  .ld-sous, .menu-ld-titre {
    margin: var(--s-4) 0 var(--s-2);
    color: var(--gris); font-size: var(--t-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  }
  .ld-titre + .ld-sous { margin-top: 0; }
  .ld-choix { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .ld-choix button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; min-width: 44px; padding: 0 16px;
    border: 0; border-radius: var(--r-pill);
    background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--trait-2);
    font-size: .9375rem; font-weight: 500; white-space: nowrap;
    transition: background-color var(--d-2), color var(--d-2), box-shadow var(--d-2);
  }
  .ld-choix button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); box-shadow: none; font-weight: 600; }
  .ld-note { margin-top: var(--s-4); color: var(--gris); font-size: .8125rem; line-height: 1.5; }
  .ld-note:empty { display: none; }
  @media (hover: hover) {
    .ld-bouton:hover { background: var(--nuit-05); }
    html[data-vue="accueil"] .barre:not(.solide) .ld-bouton:hover { background: var(--blanc-12); }
    .ld-choix button:not([aria-pressed="true"]):hover { background: var(--nuit-05); box-shadow: inset 0 0 0 1px var(--encre); }
  }
  /* Dans le menu plein écran (encre) : filets blancs, choix actif ivoire */
  .menu-ld { display: grid; gap: var(--s-3); }
  .menu-ld-titre { margin: 0; color: var(--blanc-70); }
  .sur-nuit .ld-choix button { color: var(--blanc); box-shadow: inset 0 0 0 1px var(--blanc-20); }
  .sur-nuit .ld-choix button[aria-pressed="true"] { background: var(--ivoire); color: var(--encre); box-shadow: none; }
  .sur-nuit .ld-note { margin-top: 0; color: var(--blanc-70); }
  @media (hover: hover) {
    .sur-nuit .ld-choix button:not([aria-pressed="true"]):hover { background: var(--blanc-08); box-shadow: inset 0 0 0 1px var(--blanc-50); }
  }

  /* Langue autre que le français : textes [data-t] masqués le temps de leur traduction (html.i18n-attente, amorce.js ;
     1,5 s au plus), pour éviter un éclair de français. */
  html.i18n-attente [data-t] { visibility: hidden; }

  /* Boutons ronds de l'en-tête (favoris, menu) */
  .barre .icon-btn { background: transparent; box-shadow: none; color: inherit; }
  .barre .barre-menu { box-shadow: inset 0 0 0 1px var(--trait-2); }
  html[data-vue="accueil"] .barre:not(.solide) .barre-menu { box-shadow: inset 0 0 0 1px var(--blanc-50); }
  .barre-menu svg.i { width: 20px; height: 20px; stroke-width: 1.6; }
  /* Flèche de retour (7.5) : avant le logo, sur toute page autre que l'accueil */
  .barre-retour { width: 40px; height: 40px; box-shadow: inset 0 0 0 1px var(--trait-2); }
  .barre-retour[hidden] { display: none; }
  .barre-retour svg.i { width: 20px; height: 20px; stroke-width: 1.8; }
  @media (max-width: 399px) { .barre-retour ~ .logo .logo-mot { display: none; } }
  @media (hover: hover) {
    .barre .icon-btn:hover { background: var(--nuit-05); }
    html[data-vue="accueil"] .barre:not(.solide) .icon-btn:hover { background: var(--blanc-12); }
  }
  #favorisCompte {
    position: absolute; top: 4px; right: 2px;
    display: grid; place-items: center;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
    background: var(--or); color: var(--encre);
    font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  }

  /* « Réserver » : pilule or ; sur l'accueil, elle apparaît une fois le héros quitté (en-tête solide) */
  .barre-cta { flex: none; }
  html[data-vue="accueil"] .barre:not(.solide) .barre-cta { display: none; }
  html[data-vue="accueil"] .barre.solide .barre-cta { animation: cta-entree var(--d-3) var(--ease) both; }
  @keyframes cta-entree { from { opacity: 0; transform: translateY(-4px); } }

  /* Compte client (7.4, assets/compte.js) : sous 1024 px, l'icône personne seule (rond filé, nom lu) ; dès 1024 px,
     « Se connecter » en pastille contour (comme Blacklane) et « Créer un compte » en lien appuyé. Connecté : initiales
     dorées et prénom. Sur la photo de l'accueil, filets et texte blancs. */
  .barre-compte { display: flex; align-items: center; gap: 6px; flex: none; }
  .barre-compte button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0;
    border: 0; border-radius: var(--r-pill); background: transparent; color: inherit;
    font-size: .8125rem; font-weight: 600; white-space: nowrap;
    transition: background-color var(--d-2), box-shadow var(--d-2);
  }
  .barre-connexion, .barre-moi { box-shadow: inset 0 0 0 1px var(--trait-2); }
  .barre-connexion svg.i { width: 18px; height: 18px; stroke-width: 1.6; }
  .barre-compte-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .barre-inscription { display: none !important; }
  .barre-initiales {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--encre); color: var(--or-clair); font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  }
  html[data-vue="accueil"] .barre:not(.solide) :is(.barre-connexion, .barre-moi) { box-shadow: inset 0 0 0 1px var(--blanc-50); }
  html[data-vue="accueil"] .barre:not(.solide) .barre-initiales { background: var(--or); color: var(--encre); }
  @media (hover: hover) {
    .barre-compte button:hover { background: var(--nuit-05); }
    html[data-vue="accueil"] .barre:not(.solide) .barre-compte button:hover { background: var(--blanc-12); }
  }
  @media (min-width: 1024px) {
    .barre-compte { gap: 12px; }
    .barre-compte button { min-height: 40px; }
    /* .barre-compte devant : « .barre-compte button { padding: 0 } » l'emportait, le texte touchait le contour */
    .barre-compte .barre-connexion { padding: 0 16px 0 12px; }
    .barre-compte .barre-moi { padding: 0 16px 0 4px; gap: 10px; }
    .barre-compte-txt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
    .barre-compte .barre-inscription { display: inline-flex !important; padding: 0 6px; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 5px; }
    .barre-inscription[hidden] { display: none !important; }
  }
  html.compte-charge { cursor: progress; } /* feuille du compte en cours de chargement (compte.js) */
  /* Sous 1024 px : logo, pastille langue et devise, compte, favoris, menu (« Réserver » est dans la barre du bas) */
  /* 7.4 : sous 450 px, les favoris passent dans le menu (« Mes favoris ») pour laisser l'icône du compte ; sous 360 px,
     l'icône du compte et la pastille se resserrent (40 px, au-dessus des 24 px exigés) */
  @media (max-width: 449px) { .barre-fav { display: none; } }
  @media (max-width: 359px) { .barre-compte button { min-width: 40px; min-height: 40px; } .ld-bouton { padding: 0 8px; } }
  /* Texte agrandi (html.texte-grand, client.js) : « Réserver » grandit avec le texte ; sous 1024 px il laisse sa place
     au bouton du menu (qui le reprend en tête de ses actions), rien n'est poussé hors de l'écran. */
  @media (max-width: 1023px) {
    html.texte-grand .barre-cta { display: none; }
  }
  @media (max-width: 359px) {
    .barre-int { gap: var(--s-2); }
    .droite { gap: 4px; }
    .logo { gap: 8px; }
    .logo-mot b { font-size: 15px; letter-spacing: .16em; margin-right: -.16em; }
    .logo-mot span { letter-spacing: .38em; margin-right: -.38em; }
    .barre-cta.btn-s { padding: 0 14px; }
  }
  /* 7.4 : les liens du centre s'affichent dès 1280 px ; entre 1024 et 1279 px, l'en-tête garde le menu plein écran et
     laisse ainsi la place à la langue, à la devise, à l'offre et bientôt au compte (rien ne sort de l'écran). */
  @media (min-width: 1024px) {
    .barre-int { gap: var(--s-5); }
    .nav-haut a {
      position: relative;
      display: inline-flex; align-items: center;
      min-height: 44px; padding: 0 14px; border-radius: var(--r-pill);
      color: inherit; font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
      opacity: .78;
      transition: opacity var(--d-2) var(--ease);
    }
    /* filet d'or fin sous la vue courante */
    .nav-haut a::after {
      content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px;
      background: var(--or);
      transform: scaleX(0); transform-origin: right;
      transition: transform var(--d-3) var(--ease);
    }
    .nav-haut a[aria-current="page"] { opacity: 1; }
    .nav-haut a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  }
  @media (min-width: 1024px) and (hover: hover) {
    .nav-haut a:hover { opacity: 1; }
    .nav-haut a:hover::after { transform: scaleX(1); transform-origin: left; }
  }
  @media (min-width: 1280px) {
    .barre-menu { display: none; }
    .nav-haut { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
    .droite { margin-left: 0; }
  }
  /* 7.4 : liens du centre resserrés jusqu'à 1439 px (place du compte dans l'en-tête) */
  @media (min-width: 1280px) and (max-width: 1439px) {
    .nav-haut a { padding: 0 10px; }
    .nav-haut a::after { left: 10px; right: 10px; }
  }
  /* 7.4 (étape 5) : « Comment ça marche » rejoint les liens du centre ; jusqu'à 1919 px, « Ma réservation » leur cède la
     place (elle reste dans le compte, le pied de page et, sur mobile, la barre du bas) */
  @media (min-width: 1280px) and (max-width: 1919px) { .nav-haut a[href="#ma-location"] { display: none; } }
  /* De 1280 à 1365 px, hors du haut de l'accueil, « Réserver » s'ajoute à droite : « Se connecter » passe en icône (nom
     accessible gardé ; « Créer un compte » reste écrit) et les liens du centre se resserrent encore */
  @media (min-width: 1280px) and (max-width: 1365px) {
    .barre-int { gap: var(--s-4); }
    .nav-haut a { padding: 0 7px; }
    .nav-haut a::after { left: 7px; right: 7px; }
    .barre-compte .barre-connexion { width: 40px; padding: 0; }
    .barre-connexion .barre-compte-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  }
  @media (min-width: 1600px) {
    .nav-haut a { padding: 0 18px; }
    .nav-haut a::after { left: 18px; right: 18px; }
  }
  /* Texte agrandi jusqu'à 1439 px : l'en-tête garde la disposition compacte (menu plein écran, pastille langue et
     devise), rien ne déborde */
  @media (min-width: 1024px) and (max-width: 1439px) {
    html.texte-grand .nav-haut, html.texte-grand :is(.ld-court, .ld-nom, .ld-devise) { display: none; }
    html.texte-grand .ld-code { display: inline; }
    html.texte-grand .barre-menu { display: inline-grid; }
    html.texte-grand .droite { margin-left: auto; }
  }

  /* ============================== Bouton bleu (7.4) ==============================
     .btn-azur : bleu éclatant, texte blanc (5,4:1 au centre du dégradé), lueur bleue ; l'action du héros. Site client
     seulement (l'Espace Bob ne charge pas cette feuille). */
  .btn-azur { background: var(--azur-bouton); color: var(--blanc); box-shadow: var(--azur-lueur); }
  .btn-azur:focus-visible { outline: 2px solid var(--azur-clair); }
  @media (hover: hover) { .btn-azur:hover { background: var(--azur-fonce); box-shadow: var(--azur-lueur-fort); } }

  /* ============================== Menu plein écran (sous 1024 px) ============================== */
  /* Une feuille (Y.ouvrir) qui couvre tout l'écran, en encre ; grands liens en Instrument Serif. */
  #menu.feuille {
    inset: 0; width: auto; height: 100dvh; max-height: none;
    display: flex; flex-direction: column;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 0; box-shadow: none;
    background: var(--encre); color: var(--blanc);
    opacity: 0; pointer-events: none; transform: none;
    transition: opacity var(--d-3) var(--ease);
  }
  #menu.feuille.ouvert { opacity: 1; pointer-events: auto; transform: none; }
  .menu-tete {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    min-height: var(--h-entete); padding-top: env(safe-area-inset-top);
  }
  .menu-tete .logo { color: var(--blanc); }
  .menu-fermer.icon-btn { background: transparent; color: var(--blanc); box-shadow: inset 0 0 0 1px var(--blanc-50); }
  .menu-fermer svg.i { width: 20px; height: 20px; stroke-width: 1.6; }
  .menu-corps {
    flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-7);
    padding-block: clamp(16px, 4vh, 40px) calc(28px + var(--bas-sur));
  }
  .menu-liens { display: grid; justify-items: start; }
  .menu-liens a {
    display: inline-flex; align-items: center; gap: var(--s-3);
    min-height: 48px; padding-block: 4px;
    color: var(--blanc); text-decoration: none;
    font-family: var(--serif); font-size: min(clamp(2.25rem, 9vw, 3.5rem), 12.5vw); font-weight: 400; line-height: 1.08; letter-spacing: var(--serre);
    transition: color var(--d-2) var(--ease);
  }
  .menu-liens a[aria-current="page"] { color: var(--or-clair); font-style: italic; }
  /* entrée sobre : fondu et légère montée, lien après lien */
  #menu.ouvert .menu-liens a { animation: menu-lien var(--d-4) var(--ease) backwards; }
  #menu.ouvert .menu-liens a:nth-child(2) { animation-delay: 40ms; }
  #menu.ouvert .menu-liens a:nth-child(3) { animation-delay: 80ms; }
  #menu.ouvert .menu-liens a:nth-child(4) { animation-delay: 120ms; }
  #menu.ouvert .menu-liens a:nth-child(5) { animation-delay: 160ms; }
  #menu.ouvert .menu-liens a:nth-child(6) { animation-delay: 200ms; }
  @keyframes menu-lien { from { opacity: 0; transform: translateY(var(--monte)); } }
  .menu-outils { display: grid; gap: var(--s-4); max-width: 560px; }
  .menu-rangee, .menu-contact { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .menu-action {
    display: inline-flex; align-items: center; gap: var(--s-2);
    min-height: 44px; padding: 0 18px;
    border: 0; border-radius: var(--r-pill);
    background: transparent; color: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
    transition: background-color var(--d-2), box-shadow var(--d-2);
  }
  .menu-action svg.i { width: 18px; height: 18px; color: var(--or-clair); }
  .menu-contact .menu-action { font-variant-numeric: tabular-nums; }
  .menu-compte { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-2); }
  .menu-compte .menu-action { justify-content: center; }
  @media (hover: hover) {
    .menu-liens a:hover { color: var(--or-clair); }
    .menu-action:hover { background: var(--blanc-08); box-shadow: inset 0 0 0 1px var(--blanc-50); }
  }
  @media (min-width: 768px) {
    .menu-corps { justify-content: flex-start; gap: var(--s-8); padding-top: clamp(32px, 8vh, 96px); }
  }

  /* Messages éphémères (7.4) : en haut, juste sous l'en-tête (centrés sur mobile, à droite sur ordinateur). Ils ne couvrent
     plus le coin de Lya, la barre du bas, la barre de réservation de la fiche ni le formulaire du héros. */
  .toasts { top: calc(var(--h-entete) + env(safe-area-inset-top) + 8px); bottom: auto; }
  @keyframes toast-haut { from { opacity: 0; transform: translateY(-10px); } }
  .toasts .toast { animation-name: toast-haut; }
  @media (min-width: 1024px) { .toasts { left: auto; right: 24px; transform: none; } }
  /* Feuille ouverte sur mobile : le haut appartient à la feuille (titre, bouton Fermer) ; les messages restent en bas,
     comme avant (une feuille de réservation ou Lya les remonte en haut : reservation.css, lya.css) */
  @media (max-width: 767px) {
    html.feuille-ouverte .toasts { top: auto; bottom: calc(12px + var(--bas-onglets, 0px)); }
    html.feuille-ouverte .toasts .toast { animation-name: toast-entree; }
  }
  /* Feuille ouverte en modale (≥ 768 px) : les messages passent en haut pour ne pas couvrir son pied (Continuer, Payer…). */
  @media (min-width: 768px) {
    html.feuille-ouverte .toasts { top: calc(16px + env(safe-area-inset-top)); bottom: auto; }
  }

  /* ============================== Pied de page ============================== */
  /* Crème, en colonnes : marque et actions, puis Explorer · Services · Contact · Informations, puis la rangée basse. */
  .pied {
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0 calc(32px + var(--bas-sur));
    background: var(--creme); color: var(--gris);
    border-top: 1px solid var(--trait);
    font-size: .9375rem; line-height: 1.6;
  }
  /* Place de la barre de réservation collante de la fiche (mobile) : 120 px, et davantage avec le texte agrandi */
  html[data-vue="vehicule"] .pied { padding-bottom: calc(5rem + 40px + var(--bas-sur)); }
  @media (min-width: 1024px) {
    html[data-vue="vehicule"] .pied { padding-bottom: 32px; }
  }

  .pied-haut {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-6);
    padding-bottom: clamp(32px, 4vw, 48px);
    border-bottom: 1px solid var(--trait);
  }
  .pied-marque { display: grid; gap: var(--s-3); align-content: start; max-width: 40ch; }
  .pied .logo { color: var(--encre); }
  .pied-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
  /* L'accueil se termine déjà par son appel final : pas de doublon */
  html[data-vue="accueil"] .pied-actions { display: none; }

  .pied-grille {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5);
    padding-block: clamp(32px, 4vw, 56px);
  }
  .pied-titre {
    margin-bottom: var(--s-2);
    font-family: var(--texte); font-size: .9375rem; font-weight: 600; line-height: 1.3; letter-spacing: 0;
    color: var(--encre);
  }
  .pied-liens { display: grid; align-content: start; justify-items: start; }
  .pied-lien {
    display: inline-flex; align-items: center; gap: var(--s-2);
    min-height: 44px; padding: 0;
    border: 0; background: none;
    color: var(--gris); font-size: .9375rem; font-weight: 400; line-height: 1.3; text-align: left; text-decoration: none;
    text-decoration-color: var(--or); text-underline-offset: 5px; text-decoration-thickness: 1px;
    transition: color var(--d-2);
    overflow-wrap: anywhere;
  }
  .pied-lien svg.i { width: 18px; height: 18px; color: var(--or-texte); }
  @media (hover: hover) {
    .pied-lien:hover { color: var(--encre); text-decoration-line: underline; }
  }
  .pied-contact address { font-style: normal; max-width: 30ch; }
  #installer { margin-top: var(--s-3); }
  /* Mobile et tablette : le contact (adresse e-mail longue) prend toute la largeur, en dernier ; 4 colonnes dès 1024 px */
  @media (max-width: 1023px) {
    .pied-contact { grid-column: 1 / -1; order: 1; }
  }
  @media (min-width: 1024px) {
    .pied-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  /* Texte agrandi : une colonne sous 600 px, deux jusqu'à 1023 px (« Événements » ne se coupe plus au milieu) */
  @media (max-width: 599px) {
    html.texte-grand .pied-grille { grid-template-columns: minmax(0, 1fr); }
  }

  .pied-bas {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5);
    padding-top: var(--s-5);
    padding-right: 80px; /* place du bouton de Lya, fixé en bas à droite (pastille plus large dès 1024 px) */
    border-top: 1px solid var(--trait);
    font-size: var(--t-petit); color: var(--gris);
  }
  @media (min-width: 1024px) { .pied-bas { padding-right: 232px; } }
  /* Le point reste sur la première ligne quand la phrase passe sur deux lignes */
  .pied-demo { display: inline-flex; align-items: flex-start; gap: var(--s-2); }
  .pied-demo::before { content: ""; width: 6px; height: 6px; margin-top: calc(.8em - 3px); border-radius: 50%; background: var(--or); flex: none; }

  /* ============================== Lya : bouton et bulle ============================== */
  /* 7.4 : le coin de Lya est visible dès l'ouverture, sur toutes les vues, et ne se cache plus au défilement. Il se pose
     au-dessus de ce qui vit en bas de l'écran : barre du bas (--bas-onglets), barre de réservation de la fiche
     (--lya-dessus), bandeau cookies (--h-cookies, mesuré par signature.js). Seule la feuille de Lya ouverte le masque. */
  .lya-coin {
    --lya-bas: calc(16px + var(--bas-sur));
    position: fixed; right: calc(16px + env(safe-area-inset-right)); z-index: var(--z-lya);
    bottom: calc(var(--lya-bas) + var(--lya-dessus, 0px) + var(--h-cookies, 0px));
    display: grid; justify-items: end; gap: var(--s-3);
    view-transition-name: lya-coin;
    animation: lya-arrivee var(--d-3) var(--ease) 60ms both;
    transition: bottom var(--d-3) var(--ease), right var(--d-3) var(--ease), opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease), visibility 0s linear 0s;
  }
  @keyframes lya-arrivee { from { opacity: 0; transform: translateY(12px) scale(.92); } }
  @media (max-width: 1023px) {
    .lya-coin { --lya-bas: calc(12px + var(--bas-onglets)); }
    /* Fiche : la barre de réservation collante (60 px, posée à 12 px du bas) reste dessous */
    html[data-vue="vehicule"] :is(.lya-coin, .recrute-bulle) { --lya-dessus: 72px; }
  }
  @media (min-width: 1024px) {
    .lya-coin { --lya-bas: 24px; right: 24px; }
  }
  /* Un élément qui prend le focus (ou visé par une ancre) s'arrête au-dessus du coin de Lya et de la barre du bas */
  html { scroll-padding-bottom: 96px; }

  /* ============================== Bulle « Yamoo recrute » (7.4) ============================== */
  /* Option de l'Espace Bob : en bas à gauche, à la hauteur du coin de Lya (mêmes --lya-bas, --lya-dessus, --h-cookies),
     verre encre et point vivant vert ; jamais plus large que l'écran moins le rond de Lya. Masquée sous une feuille. */
  .recrute-bulle {
    --lya-bas: calc(16px + var(--bas-sur));
    position: fixed; left: calc(16px + env(safe-area-inset-left)); z-index: var(--z-lya);
    bottom: calc(var(--lya-bas) + var(--lya-dessus, 0px) + var(--h-cookies, 0px));
    display: flex; align-items: center;
    max-width: min(340px, calc(100vw - 16px - 52px - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--encre) 88%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: inset 0 0 0 1px var(--blanc-20), var(--ombre-3);
    color: var(--blanc);
    view-transition-name: recrute-bulle;
    animation: lya-arrivee var(--d-3) var(--ease) 240ms both;
    transition: bottom var(--d-3) var(--ease), opacity var(--d-2) var(--ease);
  }
  .recrute-bulle[hidden] { display: none; }
  html.feuille-ouverte .recrute-bulle { opacity: 0; visibility: hidden; }
  .recrute-bulle-lien {
    display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px;
    padding: 8px 6px 8px 18px; border-radius: inherit;
    color: inherit; text-decoration: none;
  }
  .recrute-bulle .point-vivant { position: relative; width: 8px; height: 8px; border-radius: 50%; color: #5FD08F; background: currentColor; flex: none; }
  .recrute-bulle .point-vivant::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: vivant 1.8s var(--ease) infinite; }
  .recrute-bulle-texte { display: grid; gap: 1px; min-width: 0; line-height: 1.2; }
  .recrute-bulle-texte b { font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
  .recrute-bulle-texte > span { color: var(--or-clair); font-size: .875rem; font-weight: 600; }
  .recrute-bulle-x {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: 6px;
    border: 0; border-radius: 50%; background: transparent; color: var(--blanc-70);
  }
  .recrute-bulle-x .i { width: 18px; height: 18px; }
  /* Sous 1024 px : au-dessus de la barre du bas (comme Lya), plus compacte pour tenir sur une ligne à côté du rond de Lya */
  @media (max-width: 1023px) {
    .recrute-bulle { --lya-bas: calc(12px + var(--bas-onglets)); }
    .recrute-bulle-lien { gap: 10px; min-height: 48px; padding-left: 14px; }
    .recrute-bulle-texte b { font-size: .75rem; letter-spacing: 0; }
    .recrute-bulle-texte > span { font-size: .8125rem; }
    .recrute-bulle-x { width: 36px; height: 36px; margin-right: 4px; }
  }
  @media (hover: hover) {
    .recrute-bulle-lien:hover .recrute-bulle-texte > span { text-decoration: underline; text-underline-offset: 3px; }
    .recrute-bulle-x:hover { background: var(--blanc-12); color: var(--blanc); }
  }
  .recrute-bulle :focus-visible { outline: 2px solid var(--or-clair); outline-offset: 2px; }
  @media (min-width: 1024px) and (max-width: 1279px) {
    html.heros-ecran .recrute-bulle { opacity: 0; visibility: hidden; }
  }
  @media (min-width: 1024px) {
    .recrute-bulle { --lya-bas: 24px; left: 24px; max-width: 360px; }
    /* Le pied garde sa dernière ligne lisible sous la bulle (comme pour Lya à droite) */
    html.avec-recrute .pied-bas { padding-left: 392px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .recrute-bulle { animation: none; transition: none; }
    .recrute-bulle .point-vivant::after { animation: none; }
  }
  /* Feuille ouverte : en-tête et coin de Lya restent en place quand la barre de défilement disparaît (base.css) */
  html.feuille-ouverte :is(.barre, .lya-coin) { padding-right: var(--barre-defil, 0px); }
  /* La conversation est ouverte : le bouton s’efface (sans visibility : le focus doit pouvoir y revenir à la fermeture ;
     il est de toute façon inerte sous la feuille) */
  html:has(#lya.ouvert) .lya-coin {
    opacity: 0; pointer-events: none; transform: translateY(16px) scale(.9);
    transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease);
  }

  /* Bouton flottant : encre, filet d'or fin, visage or clair ; rond sur mobile, pastille « Lya · Pose ta question » dès
     1024 px (le nom visible est contenu dans le nom accessible, WCAG 2.5.3) */
  .lya-bouton {
    position: relative;
    display: grid; place-items: center;
    width: 56px; height: 56px; padding: 0;
    border: 1px solid var(--or); border-radius: var(--r-pill);
    background: var(--encre);
    color: var(--or-clair);
    box-shadow: var(--ombre-3), 0 0 0 4px var(--nuit-05);
    transition: transform var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease), background-color var(--d-2);
  }
  .lya-etiquette { display: none; }
  /* Sous 768 px, un rond plus discret (52 px, cible tactile tenue) */
  @media (max-width: 767px) {
    .lya-bouton { width: 52px; height: 52px; }
    .lya-bouton .lya-robot { scale: .9; }
  }
  @media (min-width: 1024px) {
    .lya-bouton { display: flex; align-items: center; gap: 12px; width: auto; padding: 0 22px 0 13px; }
    .lya-etiquette { display: grid; gap: 1px; text-align: left; line-height: 1.1; }
    .lya-etiquette b { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; color: var(--blanc); letter-spacing: var(--serre); }
    .lya-etiquette span { color: var(--blanc-70); font-size: .8125rem; font-weight: 500; white-space: nowrap; }
  }
  /* Esquive (traversee.js) : un contenu de la page est sous la pastille au repos → Lya se range en languette contre le
     bord droit (visage or, filet d'or), toujours visible et cliquable (cible de 34 × 52 px, 26 × 52 sous 768 px) ; elle se
     déplie au focus clavier. Elle tient dans la gouttière, ou n'empiète que de quelques pixels sur le contenu. */
  .lya-coin.lya-esquive { right: 0; }
  .lya-coin.lya-esquive .lya-bouton:not(:focus-visible) {
    width: 34px; height: 52px; padding: 0 0 0 4px; gap: 0; justify-content: center;
    border-right: 0; border-radius: 26px 0 0 26px;
  }
  .lya-coin.lya-esquive .lya-bouton:not(:focus-visible) .lya-etiquette { display: none; }
  .lya-coin.lya-esquive .lya-bouton:not(:focus-visible) .lya-robot { scale: .72; }
  @media (max-width: 767px) {
    .lya-coin.lya-esquive .lya-bouton:not(:focus-visible) { width: 26px; padding-left: 3px; }
    .lya-coin.lya-esquive .lya-bouton:not(:focus-visible) .lya-robot { scale: .6; }
  }
  .lya-coin.lya-esquive .lya-bouton:focus-visible { margin-right: 16px; }
  @media (min-width: 1024px) { .lya-coin.lya-esquive .lya-bouton:focus-visible { margin-right: 24px; } }
  @media (hover: hover) { .lya-coin.lya-esquive .lya-bouton:hover { transform: translateX(-3px); } }
  .lya-bouton:active { transform: scale(.96); }
  @media (hover: hover) {
    .lya-bouton:hover { transform: translateY(-2px); background: var(--encre-3); }
  }

  /* Visage de Lya : tête arrondie, antenne, yeux qui clignent */
  .lya-robot {
    position: relative;
    display: flex; justify-content: center; gap: 7px;
    width: 30px; height: 24px; padding-top: 6px;
    border: 2px solid currentColor; border-radius: 9px;
    animation: robot-hoche 6s var(--ease) infinite;
  }
  .lya-robot::before {
    content: ""; position: absolute; top: -7px; left: 50%; width: 2px; height: 5px; margin-left: -1px;
    border-radius: 2px; background: currentColor;
  }
  .lya-robot::after {
    content: ""; position: absolute; top: -11px; left: 50%; width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%; background: var(--or);
  }
  .lya-robot i { width: 4px; height: 7px; border-radius: 2px; background: var(--blanc); animation: robot-cligne 5s infinite; }
  .lya-robot b { position: absolute; bottom: 3px; left: 50%; width: 9px; height: 2px; margin-left: -4.5px; border-radius: 2px; background: currentColor; }
  @keyframes robot-cligne { 0%, 92%, 97%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(.15); } }
  @keyframes robot-hoche { 0%, 84%, 100% { transform: none; } 89% { transform: translateY(-2px) rotate(-6deg); } 94% { transform: translateY(-1px) rotate(4deg); } }

  /* Posée au-dessus du bouton, hors du flux : le coin ne change pas de taille (aucun décalage à l'apparition). */
  .lya-bulle {
    position: absolute; right: 0; bottom: calc(100% + var(--s-3));
    width: min(360px, 100vw - 32px);
    /* jamais plus haute que l'écran sous l'en-tête collant (texte agrandi compris) */
    max-height: calc(100dvh - var(--h-entete-solide) - 120px); overflow-y: auto; overscroll-behavior: contain;
    padding: 16px 18px;
    border-radius: 20px 20px 6px 20px;
    background: var(--ivoire); color: var(--encre);
    box-shadow: var(--ombre-3), inset 0 0 0 1px var(--trait);
    font-size: .9375rem; line-height: 1.45;
    transform-origin: bottom right;
    animation: bulle-entree var(--d-3) var(--ease) both;
  }
  /* En retrait (lya.js) : le défilement l'a posée sur les solutions de la page ; elle revient quand la voie est libre. */
  .lya-bulle.en-retrait { pointer-events: none; animation: bulle-retrait var(--d-2) var(--ease) forwards; }
  .lya-bulle > b { display: block; margin-bottom: 4px; padding-right: 36px; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; line-height: 1.15; letter-spacing: var(--serre); }
  .lya-bulle > span { display: block; color: var(--gris); }
  .lya-bulle-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
  /* Mobile : carte compacte, collée au-dessus du bouton ; une seule action sous 360 px (« Contacter l’équipe » reste dans
     le panneau de Lya). */
  @media (max-width: 767px) {
    .lya-bulle { padding: 12px 14px; border-radius: 16px 16px 6px 16px; font-size: .875rem; line-height: 1.4; }
    .lya-bulle > b { margin-bottom: 2px; font-size: 1.1875rem; }
    .lya-bulle-actions { margin-top: var(--s-2); }
    .lya-bulle-x { top: 0; right: 0; }
  }
  /* Téléphone : le titre et l'action seulement (le texte reste lu par les lecteurs d'écran, la bulle est un
     role="status") ; une seule action sous 360 px. */
  @media (max-width: 479px) {
    .lya-bulle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .lya-bulle > b { margin-bottom: 0; padding-block: 8px; }
  }
  @media (max-width: 359px) {
    .lya-bulle-actions .btn + .btn { display: none; }
  }
  .lya-bulle-x {
    position: absolute; top: 4px; right: 4px;
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: none;
    color: var(--gris); font-size: 24px; line-height: 1;
  }
  @media (hover: hover) {
    .lya-bulle-x:hover { background: var(--sable); color: var(--encre); }
  }
  @keyframes bulle-entree { from { opacity: 0; transform: translateY(10px); } }
  @keyframes bulle-retrait { to { opacity: 0; transform: translateY(8px); visibility: hidden; } }

  /* ============================== Lya : panneau ============================== */
  /* Mobile : feuille pleine hauteur moins 8 % ; ≥ 1024 : panneau latéral (géométrie dans base.css) */
  #lya.feuille { height: 92dvh; }
  @media (min-width: 768px) {
    #lya.feuille { height: min(760px, 88dvh); }
  }
  @media (min-width: 1024px) {
    #lya.feuille { height: auto; }
  }
  #lya .feuille-tete { border-bottom: 1px solid var(--trait); }
  #lya .feuille-corps { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-4); }
  #lya .feuille-pied { display: grid; gap: var(--s-2); }

  /* Base minimale de la conversation (affinée par la feuille de la vue Lya) */
  .fil { display: flex; flex-direction: column; gap: 10px; }
  .bulle { max-width: 86%; padding: 10px 14px; border-radius: 18px; background: var(--sable); font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
  .bulle.lya { align-self: flex-start; border-bottom-left-radius: 6px; }
  .bulle.moi { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--encre); color: var(--blanc); }
  .voit { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-s); background: var(--sable); color: var(--gris); font-size: var(--t-petit); line-height: 1.45; }
  .suggestions { display: flex; gap: var(--s-2); overflow-x: auto; padding: 2px; scrollbar-width: none; }
  .suggestions::-webkit-scrollbar { display: none; }
  .saisie { display: flex; gap: var(--s-2); }
  .saisie input {
    flex: 1; min-width: 0; min-height: 48px; padding: 0 18px;
    border: 1.5px solid var(--trait-2); border-radius: var(--r-pill);
    background: var(--ivoire); font-size: 1rem;
  }
  .saisie input:focus { outline: 0; border-color: var(--encre); box-shadow: var(--anneau-champ); }
  .relais { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 10px; }
  .relais a, .relais button {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border: 0; border-radius: var(--r-pill);
    background: var(--ivoire); box-shadow: inset 0 0 0 1px var(--trait-2);
    color: var(--encre); font-size: var(--t-petit); font-weight: 600; text-decoration: none;
  }
  .tape { display: inline-flex; gap: 4px; padding: 4px 0; }
  .tape i { width: 7px; height: 7px; border-radius: 50%; background: var(--gris-2); animation: saute 1s var(--ease-in-out) infinite; }
  .tape i:nth-child(2) { animation-delay: .15s; }
  .tape i:nth-child(3) { animation-delay: .3s; }
  @keyframes saute { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

  /* ============================== Cookies ==============================
     Discret, en bas, verre clair ; « Tout refuser » et « Tout accepter » ont le même poids. Mobile : carte pleine
     largeur (titre serif, texte, deux boutons, lien). Dès 1024 px : bandeau entre le bord gauche et le bouton de Lya,
     titre et texte sur la même ligne, actions à droite. Texte encre : lisible même posé sur la photo sombre du héros. */
  .cookies {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--bas-sur)); z-index: var(--z-cookies);
    display: grid; gap: var(--s-3);
    max-width: 520px; margin-inline: auto; padding: 18px 18px 10px;
    border-radius: var(--r-carte);
    background: var(--verre-ivoire); color: var(--encre);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: var(--ombre-2), inset 0 0 0 1px var(--trait-verre);
    opacity: 0; visibility: hidden; transform: translateY(var(--monte));
    transition: transform var(--d-3) var(--ease), opacity var(--d-3) var(--ease), visibility 0s linear var(--d-3);
    view-transition-name: cookies;
  }
  .cookies.visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  html[data-vue="vehicule"] .cookies { bottom: calc(12px + var(--bas-sur)); }
  .cookies-texte { font-size: var(--t-petit); line-height: 1.5; }
  .cookies-texte b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.375rem; font-weight: 400; letter-spacing: var(--serre); line-height: 1.15; }
  .cookies .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
  .cookies .actions .btn { padding: 0 12px; font-size: var(--t-petit); }
  .cookies .actions .lien-aide { grid-column: 1 / -1; justify-self: center; font-size: var(--t-petit); }
  /* Texte agrandi : les deux choix l'un sous l'autre (libellés entiers) ; la carte défile si elle dépasse l'écran */
  html.texte-grand .cookies { max-height: calc(100dvh - 24px - var(--bas-sur)); overflow-y: auto; overscroll-behavior: contain; }
  @media (max-width: 1023px) { html.texte-grand .cookies .actions { grid-template-columns: minmax(0, 1fr); } }
  @media (min-width: 1024px) {
    .cookies {
      left: 24px; right: 24px; bottom: 24px; max-width: 1120px; /* le coin de Lya se pose au-dessus (7.4) */
      grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-6);
      padding: 12px 12px 12px 24px;
    }
    .cookies-texte b { display: inline; margin: 0 .3em 0 0; font-size: 1.25rem; line-height: 1.2; }
    .cookies-texte p { display: inline; }
    .cookies .actions { display: flex; align-items: center; gap: var(--s-2); }
    .cookies .actions .lien-aide { order: -1; margin-right: var(--s-3); }
  }

  /* Préférences (feuille #prefs et page confidentialité) */
  .pref { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
  .pref:last-child { border-bottom: 0; }
  .pref > div { flex: 1; min-width: 0; }
  .pref small { display: block; margin-top: 2px; color: var(--gris); font-size: var(--t-petit); line-height: 1.45; }

  /* ============================== Transitions de vues ============================== */
  ::view-transition-old(root) { animation: vt-sortie 220ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-entree 440ms var(--ease) both; }
  ::view-transition-group(*) { animation-duration: var(--d-3); animation-timing-function: var(--ease); }
  @keyframes vt-sortie { to { opacity: 0; transform: translateY(-8px); } }
  @keyframes vt-entree { from { opacity: 0; transform: translateY(16px); } }

  /* « Traversée » (7.4, d'après blacklane.com/fr) : changement de vue (html.traverse, client.js transitionVue). L'ancienne
     page se soulève et part vers le haut, une ombre portée sous son bord ; la nouvelle, déjà dessous, sort de l'ombre
     (de .96 et assombrie, elle se pose). Une nappe de bleu éclatant borde la page qui part : liseré brillant, lueur et
     reflet qui balaient l'écran de bas en haut et annoncent la page suivante. L'en-tête, le coin de Lya, les cookies et la
     barre du bas ont leur propre nom de transition : ils restent en place. Mouvement réduit : pas de transition (commun.js). */
  html.traverse { --traverse: 820ms; --traverse-courbe: cubic-bezier(.7, 0, .2, 1); }
  .toasts { view-transition-name: toasts; } /* un message en cours reste à l'écran au lieu de partir avec la page */
  html.traverse::view-transition-group(root) { animation-duration: var(--traverse); }
  html.traverse::view-transition-image-pair(root) { isolation: isolate; background: var(--encre); }
  html.traverse::view-transition-old(root), html.traverse::view-transition-new(root) { mix-blend-mode: normal; animation-duration: var(--traverse); animation-timing-function: var(--traverse-courbe); animation-fill-mode: both; }
  html.traverse::view-transition-old(root) {
    z-index: 2; animation-name: traverse-part;
    box-shadow:
      0 2px 0 0 rgb(170 204 255 / .95),
      0 6px 18px 2px rgb(140 184 255 / .85),
      0 24px 70px 18px rgb(47 123 255 / .55),
      0 90px 160px 60px rgb(26 95 232 / .28),
      0 40px 80px -10px rgb(8 9 11 / .5);
  }
  html.traverse::view-transition-new(root) { z-index: 1; animation-name: traverse-pose; }
  @keyframes traverse-part { from { transform: translateY(0); } to { transform: translateY(-100%); } }
  @keyframes traverse-pose {
    from { transform: scale(.96); filter: brightness(.5) saturate(1.25); }
    to { transform: none; filter: none; }
  }
  /* L'en-tête pendant la traversée : jamais deux en-têtes fondus l'un dans l'autre (texte en double). L'ancien s'efface en
     180 ms, le nouveau paraît juste après ; dessous, un fond plein de la couleur de l'en-tête d'arrivée (ivoire, ou encre
     pour l'accueil et la flotte, dont l'en-tête est posé sur une photo sombre) : la page qui part glisse sous lui sans se
     mêler au logo ni aux liens. Ce fond s'efface à la fin, quand l'en-tête retrouve son verre. */
  html.traverse::view-transition-old(barre) { animation: traverse-barre-sort 180ms var(--ease) both; }
  html.traverse::view-transition-new(barre) { animation: traverse-barre-entre 260ms var(--ease) 140ms both; }
  html.traverse::view-transition-group(barre) { animation: traverse-barre-clair var(--traverse) linear both; }
  html.traverse:is([data-vue="accueil"], [data-vue="flotte"])::view-transition-group(barre) { animation-name: traverse-barre-sombre; }
  @keyframes traverse-barre-sort { to { opacity: 0; } }
  @keyframes traverse-barre-entre { from { opacity: 0; } }
  @keyframes traverse-barre-clair { 0%, 82% { background-color: rgb(251 249 245); box-shadow: var(--ombre-entete); } 100% { background-color: rgb(251 249 245 / .86); box-shadow: var(--ombre-entete); } }
  @keyframes traverse-barre-sombre { 0%, 74% { background-color: rgb(14 15 18 / .97); } 100% { background-color: rgb(14 15 18 / 0); } }
  @keyframes vue-fondu { from { opacity: 0; } }
}

/* ============================== Impression ============================== */
@layer utilitaires {
  .impression { display: none; }
  @media print {
    body { display: block; padding: 0; background: var(--blanc); }
    body > *:not(.impression) { display: none; }
    .impression { display: block; padding: 24px; font-size: 13px; }
  }
}
