/* Yamoo Drive — Flotte, fiche véhicule et visionneuse « Champagne » (@layer vues)
   Carte véhicule (.carte-v, aussi dans le rail de l'accueil) : carte blanche à coins de 20 px, photo nette en 4:3,
   surtitre gris, titre Instrument Sans 500, prix lisible. Vue Flotte : en-tête serif, chiffres calculés, résumé des
   dates modifiable, barre d'outils collante (recherche, tri, puces sur une ligne défilante sous 1024 px), grille
   1 / 2 / 3 colonnes (4 dès 1440 px quand le nombre de cartes s'y prête), état vide. Calendrier compact (.cal : fiche ;
   le tunnel habille le sien). Fiche : galerie (carrousel sous 1024 px, mosaïque au-delà, photos jamais affichées
   au-delà de 560 px CSS), colonne de réservation collante, barre de réservation collante en bas sur mobile, formules,
   règles, similaires. Visionneuse plein écran (#visionneuse). Couleurs : jetons de tokens.css uniquement. */
@layer vues {

  /* ============================== Carte véhicule ============================== */
  .carte-v {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column;
    min-width: 0;
    border-radius: var(--r-carte);
    background: var(--blanc);
    transition: transform var(--d-4) var(--ease), box-shadow var(--d-4) var(--ease);
  }
  /* filet fin posé au-dessus de la photo : le contour reste net sur tout le pourtour */
  .carte-v::after {
    content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--trait);
  }
  .carte-v:has(.car-title:focus-visible) { outline: 2px solid var(--or-texte); outline-offset: 3px; }
  .carte-v .car-title:focus-visible { outline: none; }

  .carte-v .photo {
    position: relative; overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-carte) var(--r-carte) 0 0;
    background: var(--sable);
  }
  .carte-v .photo > img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 58%;
    transition: transform var(--d-5) var(--ease), opacity var(--d-3) var(--ease);
  }
  .carte-v .photo > .sans-photo { position: absolute; inset: 0; }
  /* Disponibilité : pastille de verre ivoire, point de couleur et texte encre (lisible sur toute photo) */
  .carte-v .dispo {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    max-width: calc(100% - 80px);
    padding: 5px 11px;
    background: var(--verre-ivoire); color: var(--encre);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    font-weight: 500;
    white-space: normal;
    pointer-events: none;
  }
  .carte-v .dispo.ok .point { color: var(--palme); }
  .carte-v .dispo.alerte .point { color: var(--laterite); }
  .carte-v .fav { position: absolute; top: 10px; right: 10px; z-index: 3; }

  /* Bouton favori (cartes et fiche) : cœur d'or une fois choisi */
  .fav {
    position: relative;
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--verre-ivoire); color: var(--encre);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: inset 0 0 0 1px var(--trait-verre);
    transition: transform var(--d-2) var(--ease), color var(--d-2) var(--ease), background-color var(--d-2);
  }
  .fav svg.i { width: 20px; height: 20px; transition: fill var(--d-2) var(--ease); }
  .fav:active { transform: scale(.92); }
  .fav[aria-pressed="true"] { color: var(--or-texte); }
  .fav[aria-pressed="true"] svg.i { fill: var(--or); }
  .fav.bat svg.i { animation: coeur-bat 480ms var(--ease); }
  @keyframes coeur-bat { 0% { transform: scale(.7); } 50% { transform: scale(1.18); } 100% { transform: none; } }

  /* Photos suivante / précédente d'une carte */
  .gallery-tools {
    position: absolute; right: 10px; bottom: 10px; z-index: 3;
    display: flex; align-items: center;
    border-radius: var(--r-pill);
    background: var(--verre-nuit); color: var(--blanc);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: opacity var(--d-2) var(--ease);
  }
  .gallery-tools button {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%; background: none; color: inherit;
  }
  .gallery-tools svg.i { width: 18px; height: 18px; }
  .gallery-tools span { min-width: 30px; font-size: .75rem; font-weight: 600; text-align: center; }
  @media (hover: hover) and (pointer: fine) {
    .gallery-tools { opacity: 0; }
    .carte-v:hover .gallery-tools, .carte-v:focus-within .gallery-tools { opacity: 1; }
    .gallery-tools button:hover { background: var(--blanc-12); }
  }

  /* Texte de la carte : le lien du titre couvre toute la carte (un seul lien par véhicule) */
  .carte-v .infos { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 20px 20px; }
  .car-nom { font-family: var(--texte); font-size: var(--t-3); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
  .car-title { color: var(--encre); text-decoration: none; }
  .car-title::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
  .car-meta { order: -1; color: var(--gris); font-size: var(--t-petit); font-weight: 500; line-height: 1.35; }
  .spec-row { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 0; padding: 0; list-style: none; color: var(--gris); font-size: var(--t-petit); }
  .spec-row li { display: inline-flex; align-items: center; gap: 6px; }
  .spec-row svg.i { width: 16px; height: 16px; }
  .car-price-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--trait);
  }
  .carte-v .prix { display: grid; gap: 2px; margin: 0; line-height: 1.25; }
  .carte-v .prix b { font-family: var(--texte); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
  .carte-v .prix span { color: var(--gris); font-size: var(--t-micro); }
  .car-view {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--trait-2); color: var(--encre);
    transition: background-color var(--d-3) var(--ease), color var(--d-3), box-shadow var(--d-3), transform var(--d-3) var(--ease);
  }
  .car-view svg.i { width: 18px; height: 18px; }
  @media (hover: hover) {
    .carte-v:hover { transform: translateY(-4px); box-shadow: var(--ombre-2); }
    .carte-v:hover .photo > img { transform: scale(1.03); }
    .carte-v:hover .car-view { background: var(--encre); color: var(--blanc); box-shadow: none; }
    .fav:hover { background: var(--ivoire); }
  }

  /* Petits boutons des vues flotte et fiche : cible tactile de 44 px */
  .vue-flotte .btn-s, .fiche .btn-s { min-height: 44px; }

  /* ============================== Silhouette « Photo à venir » ============================== */
  .sans-photo {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; place-content: center; justify-items: center; gap: 10px;
    width: 100%; height: 100%; padding: 18px;
    background: var(--sable);
    color: var(--or-texte); text-align: center;
  }
  /* cadre intérieur très fin : la place de la photo est dessinée, pas laissée vide */
  .sans-photo::before {
    content: ""; position: absolute; inset: 10px; z-index: -1; pointer-events: none;
    border-radius: calc(var(--r-carte) - 8px);
    box-shadow: inset 0 0 0 1px var(--trait-2);
  }
  .silhouette { width: min(68%, 220px); height: auto; overflow: visible; color: var(--or); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .silhouette .sil-vitres { fill: currentColor; fill-opacity: .16; stroke-width: 1.5; }
  .silhouette .sil-sol { stroke-opacity: .45; stroke-dasharray: 2 7; }
  .silhouette .sil-galerie, .silhouette .sil-detail { stroke-opacity: .6; stroke-width: 1.5; }
  .silhouette .sil-moyeu { fill: currentColor; }
  .sans-photo-titre {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: var(--t-micro); font-weight: 600; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase;
  }
  .sans-photo-titre::before, .sans-photo-titre::after { content: ""; width: 16px; height: 1px; background: var(--or); }
  .sans-photo-texte { max-width: 36ch; color: var(--gris); font-size: var(--t-petit); line-height: 1.5; }
  .sans-photo.mini { padding: 8px; gap: 4px; }
  .sans-photo.mini::before { display: none; }
  .sans-photo.mini .silhouette { width: 82%; }
  .sans-photo.mini .sans-photo-titre { display: none; }
  @media (hover: hover) {
    .carte-v:hover .sans-photo .silhouette { transform: translateX(4px); transition: transform var(--d-4) var(--ease); }
  }

  /* ============================== Vue Flotte : en-tête ============================== */
  .flotte-tete {
    display: grid; gap: var(--s-6);
    padding-block: clamp(32px, 6vw, 80px) clamp(28px, 4vw, 48px);
  }
  .flotte-tete h1 { max-width: 16ch; }
  .flotte-intro { max-width: 50ch; margin-top: var(--s-4); color: var(--gris); font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; }
  /* Chiffres calculés (aucun chiffre inventé) : valeur en serif, libellé gris, séparés par des filets fins */
  .flotte-faits {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; margin: var(--s-6) 0 0; padding: 0; list-style: none;
    border-block: 1px solid var(--trait);
    background: var(--trait);
  }
  .flotte-faits li { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 14px 16px 14px 0; background: var(--creme); }
  .flotte-faits li:nth-child(even) { padding-left: 16px; }
  .flotte-faits b { font-family: var(--serif); font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); font-weight: 400; line-height: 1.1; letter-spacing: var(--serre); overflow-wrap: break-word; }
  .flotte-faits b small { font-size: .62em; letter-spacing: .02em; } /* devise à part : passe à la ligne entière (client.js) */
  .flotte-faits span { color: var(--gris); font-size: var(--t-petit); line-height: 1.35; }
  @media (min-width: 768px) {
    .flotte-faits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .flotte-faits li, .flotte-faits li:nth-child(even) { padding: 16px 20px; }
    .flotte-faits li:first-child { padding-left: 0; }
  }
  @media (min-width: 1024px) {
    .flotte-tete { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); align-items: end; column-gap: var(--s-8); }
  }
  /* 1024 à 1279 px : la colonne du titre est étroite (résumé à droite), les chiffres repassent en 2 × 2 */
  @media (min-width: 1024px) and (max-width: 1279px) {
    .flotte-faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flotte-faits li, .flotte-faits li:nth-child(even) { padding: 14px 16px; }
    .flotte-faits li:nth-child(odd) { padding-left: 0; }
  }

  /* Résumé des dates + formulaire sur place */
  .resume {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px;
    padding: 18px; border-radius: var(--r-carte);
    background: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--trait);
  }
  /* dates choisies : la pastille passe en encre, icône or clair */
  .resume.choisi .resume-icone { background: var(--encre); color: var(--or-clair); }
  .resume-icone { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--or-pale); color: var(--or-texte); }
  .resume-texte { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; margin: 0; line-height: 1.35; }
  .resume-texte b { font-weight: 600; }
  .resume-texte span { color: var(--gris); font-size: var(--t-petit); }
  .resume .btn { margin-left: auto; }
  .dates-flotte {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px;
    margin-top: 10px; padding: 20px;
    border-radius: var(--r-carte);
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-2);
  }
  .dates-flotte .champ:nth-of-type(3), .dates-flotte .dates-chauffeur, .dates-flotte .dates-erreur, .dates-flotte .dates-actions { grid-column: 1 / -1; }
  .dates-flotte .dates-chauffeur { padding: 6px 0; border: 0; }
  .dates-erreur { color: var(--laterite); font-size: var(--t-petit); font-weight: 600; }
  .dates-erreur:empty { display: none; }
  .dates-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .dates-actions .btn { flex: 1 1 auto; }
  @media (min-width: 480px) { .dates-actions .btn { flex: 0 0 auto; } }
  /* Ordinateur : le formulaire s'ouvre en panneau sous le résumé, par-dessus la barre d'outils (le titre ne saute pas) */
  @media (min-width: 1024px) {
    .resume-dates { position: relative; }
    .dates-flotte { position: absolute; inset: calc(100% + 10px) 0 auto; z-index: calc(var(--z-collant) + 5); margin: 0; box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-3); }
  }

  /* ============================== Vue Flotte : barre d'outils collante ============================== */
  .fleet-temoin { height: 0; }
  .fleet-toolbar {
    position: sticky; top: calc(var(--h-entete-solide) + env(safe-area-inset-top)); z-index: var(--z-collant);
    padding-block: 10px;
    background: var(--verre-ivoire);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 -1px 0 var(--trait);
    transition: box-shadow var(--d-3) var(--ease);
  }
  .fleet-toolbar.colle { box-shadow: 0 1px 0 var(--trait); }
  /* Mobile : une fois collée, en descendant (body.defile-bas, client.js), la barre ne garde que la recherche et le tri.
     La rangée des puces est rognée (clip-path : la hauteur dans le flux ne change pas, rien ne saute ; le rognage coupe
     aussi les clics) et revient dès qu'on remonte ; jamais pendant une saisie ni avec le texte agrandi. */
  @media (max-width: 767px) {
    html:not(.texte-grand) .fleet-toolbar { clip-path: inset(-2px 0 -2px 0); transition: box-shadow var(--d-3) var(--ease), clip-path var(--d-3) var(--ease); }
    .fleet-toolbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 58px; height: 1px; background: var(--trait); opacity: 0; transition: opacity var(--d-2) var(--ease); pointer-events: none; }
    html:not(.texte-grand) body.defile-bas .fleet-toolbar.colle:not(:focus-within) { clip-path: inset(-2px 0 58px 0); }
    html:not(.texte-grand) body.defile-bas .fleet-toolbar.colle:not(:focus-within)::after { opacity: 1; }
  }
  .fleet-toolbar-int { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .fleet-search { position: relative; display: block; min-width: 0; }
  .fleet-search > [data-i] { position: absolute; left: 16px; top: 50%; display: grid; color: var(--gris); transform: translateY(-50%); pointer-events: none; }
  .fleet-search input {
    width: 100%; min-height: 48px; padding: 0 16px 0 46px;
    border: 1px solid var(--trait-2); border-radius: var(--r-pill);
    background: var(--blanc); color: var(--encre);
    font-size: 1rem;
    transition: border-color var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  }
  .fleet-search input:focus { outline: 0; border-color: var(--encre); box-shadow: var(--anneau-champ); }
  /* croix d'effacement native : dessinée en gris (la couleur vient du fond, le SVG ne sert que de masque) */
  .fleet-search input::-webkit-search-cancel-button {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; margin-left: 8px;
    background: var(--gris);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
    cursor: pointer;
  }
  /* Tri : bouton rond (icône) sur mobile, la liste native s'ouvre au toucher ; liste visible dès 560 px */
  .fleet-sort {
    position: relative;
    display: grid; place-items: center; flex: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2);
    color: var(--encre);
  }
  .fleet-sort .tri-icone { display: grid; }
  .fleet-sort .tri-lib { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fleet-sort select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 1rem; cursor: pointer; }
  .fleet-sort:has(select:focus-visible) { outline: 2px solid var(--or-texte); outline-offset: 3px; }
  /* point d'or : un tri autre que « Notre sélection » est actif */
  .fleet-sort:has(option[value="selection"]:not(:checked))::after {
    content: ""; position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--or); box-shadow: 0 0 0 2px var(--blanc);
  }
  @media (min-width: 560px) {
    .fleet-sort { display: flex; align-items: center; gap: 10px; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; }
    .fleet-sort .tri-icone, .fleet-sort::after { display: none; }
    .fleet-sort:has(option[value="selection"]:not(:checked))::after { display: none; }
    .fleet-sort:has(select:focus-visible) { outline: none; }
    .fleet-sort select {
      position: static; opacity: 1;
      appearance: none; -webkit-appearance: none;
      width: auto; min-height: 48px; padding: 0 42px 0 18px;
      border: 1px solid var(--trait-2); border-radius: var(--r-pill);
      background: var(--blanc) var(--chevron) no-repeat right 14px center / 18px;
      color: var(--encre); font-weight: 500;
    }
    .fleet-sort select:focus { outline: 0; border-color: var(--encre); box-shadow: var(--anneau-champ); }
  }
  /* Puces : une seule ligne défilante (bord à bord) sous 1024 px */
  .filtres-rail {
    grid-column: 1 / -1;
    display: flex; gap: 8px;
    margin-inline: calc(-1 * var(--gouttiere)); padding: 2px var(--gouttiere);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gouttiere); scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--encre) var(--gouttiere), var(--encre) calc(100% - var(--gouttiere)), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--encre) var(--gouttiere), var(--encre) calc(100% - var(--gouttiere)), transparent);
  }
  .filtres-rail::-webkit-scrollbar { display: none; }
  .filtres-rail .chip { flex: none; min-height: 44px; background: var(--blanc); scroll-snap-align: start; }
  .filtres-rail .chip[aria-pressed="true"] { background: var(--encre); }
  .filtres-rail .chip svg.i { width: 16px; height: 16px; }
  .chip-n { color: var(--gris); font-variant-numeric: tabular-nums; }
  .chip[aria-pressed="true"] .chip-n { color: var(--or-clair); }
  .chip-libres[aria-pressed="true"] svg.i { color: var(--or-clair); }
  @media (min-width: 768px) {
    .fleet-sort .tri-lib { position: static; width: auto; height: auto; overflow: visible; clip-path: none; color: var(--gris); font-size: var(--t-petit); font-weight: 500; }
  }
  /* Dès 1024 px : puces sur leur propre ligne, sans défilement (elles tiennent toutes). Dès 1440 px, une seule rangée
     recherche · puces · tri, sauf avec la puce « Libres sur tes dates » (elle ne tiendrait plus : deux rangées nettes). */
  @media (min-width: 1024px) {
    .fleet-toolbar { padding-block: 12px; }
    .filtres-rail { flex-wrap: wrap; margin: 0; padding: 2px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  }
  @media (min-width: 1440px) {
    .fleet-toolbar-int:not(:has(.chip-libres)) { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) auto; column-gap: 16px; }
    .fleet-toolbar-int:not(:has(.chip-libres)) .filtres-rail { grid-column: 2; grid-row: 1; }
  }

  /* ============================== Vue Flotte : grille ============================== */
  .flotte-corps { padding-top: var(--s-6); }
  .flotte-statut { min-height: 1.5em; margin-bottom: var(--s-5); color: var(--gris); font-size: var(--t-petit); font-weight: 500; }
  /* 1 / 2 / 3 colonnes ; 4 dès 1440 px quand le compte tombe juste (4, ou 7 et plus) : 6 cartes restent en 3 × 2.
     Les photos (576 px) ne dépassent jamais 560 px CSS. */
  .grille-flotte { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 24px); }
  /* Avant le premier rendu : place réservée, le reste de la page ne saute pas à l'arrivée des cartes. */
  .grille-flotte:empty { min-height: 120svh; }
  @media (min-width: 600px) { .grille-flotte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .grille-flotte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1440px) {
    .grille-flotte:has(> .carte-v:nth-child(7)), .grille-flotte:has(> .carte-v:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .grille-flotte.entree .carte-v { animation: carte-entree var(--d-4) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes carte-entree { from { opacity: 0; transform: translateY(var(--monte)); } }
  .flotte-demo { margin-top: var(--s-7); color: var(--gris); font-size: var(--t-petit); text-align: center; }

  /* État vide : illustration au trait, titre serif, une action claire */
  .fleet-empty {
    grid-column: 1 / -1;
    display: grid; justify-items: center; gap: 12px;
    padding: clamp(40px, 7vw, 88px) clamp(20px, 4vw, 48px);
    border-radius: var(--r-carte);
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait);
    text-align: center;
  }
  .fleet-empty h3 { max-width: 20ch; margin-top: 8px; font-family: var(--serif); font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem); font-weight: 400; line-height: 1.08; letter-spacing: var(--serre); }
  .fleet-empty p { max-width: 44ch; color: var(--gris); }
  .fleet-empty .btn { margin-top: 12px; }
  /* D7 : autres dates proposées quand rien n'est libre */
  .fleet-alt { display: grid; gap: 8px; width: min(100%, 520px); margin: 6px 0 0; padding: 0; list-style: none; }
  .fleet-alt-choix {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px;
    padding: 10px 18px; border: 0; border-radius: var(--r-champ); background: var(--creme); box-shadow: inset 0 0 0 1px var(--trait-2);
    color: var(--encre); font-size: var(--t-petit); text-align: left;
    transition: box-shadow var(--d-2) var(--ease), background-color var(--d-2);
  }
  .fleet-alt-choix b { flex: none; font-weight: 600; }
  @media (hover: hover) { .fleet-alt-choix:hover { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--encre); } }
  .vide-illu { width: 168px; height: auto; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .vide-route { stroke: var(--sable); stroke-width: 16; }
  .vide-tirets { stroke: var(--or); stroke-width: 1.5; stroke-dasharray: 5 9; }
  .vide-loupe { fill: var(--blanc); stroke: var(--encre); stroke-width: 2.5; }
  .vide-manche { stroke: var(--encre); stroke-width: 4; }
  .vide-eclat { fill: var(--or); stroke: none; }

  /* ============================== Calendrier compact (.cal) ==============================
     Le tunnel de réservation habille son propre calendrier (.resa-cal, reservation.css) : ces règles l'excluent.
     Départ et retour : pastilles encre ; période : bande or pâle ; aujourd'hui : anneau d'or ; jour pris : barré. */
  .cal:not(.resa-cal) { display: grid; gap: 8px; max-width: 30rem; }
  .cal:not(.resa-cal) .cal-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .cal:not(.resa-cal) .cal-tete b { min-width: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.1; letter-spacing: var(--serre); text-align: center; }
  .cal:not(.resa-cal) .cal-tete b::first-letter { text-transform: uppercase; }
  .cal:not(.resa-cal) .cal-tete .icon-btn { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2); }
  .cal:not(.resa-cal) .cal-tete .icon-btn:disabled { opacity: .3; }
  .cal-aide { color: var(--gris); font-size: var(--t-petit); line-height: 1.45; }
  .cal:not(.resa-cal) .mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
  /* Noms des jours : suivent le texte agrandi tant que les sept colonnes le permettent (jamais sous 12 px) */
  .cal:not(.resa-cal) .jsem { padding-bottom: 4px; color: var(--gris); font-size: min(.75rem, max(12px, 3.4vw)); font-weight: 500; text-align: center; }
  .cal:not(.resa-cal) .jour {
    --pastille: 38px;
    position: relative; isolation: isolate;
    height: 44px; min-width: 0; padding: 0;
    border: 0; background: none; color: var(--encre);
    font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums;
  }
  /* pastille ronde (départ, retour, survol, aujourd'hui) */
  .cal:not(.resa-cal) .jour::before {
    content: ""; position: absolute; top: 50%; left: 50%; z-index: -1;
    width: var(--pastille); height: var(--pastille); border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background-color var(--d-1) var(--ease), box-shadow var(--d-1);
  }
  /* bande de la période, alignée sur les pastilles */
  .cal:not(.resa-cal) .jour.dans, .cal:not(.resa-cal) .jour.debut:not(.fin)::after, .cal:not(.resa-cal) .jour.fin:not(.debut)::after { background: linear-gradient(var(--or-pale), var(--or-pale)) center / 100% var(--pastille) no-repeat; }
  .cal:not(.resa-cal) .jour.debut:not(.fin)::after, .cal:not(.resa-cal) .jour.fin:not(.debut)::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: -2; }
  .cal:not(.resa-cal) .jour.debut:not(.fin)::after { left: 50%; right: 0; }
  .cal:not(.resa-cal) .jour.fin:not(.debut)::after { left: 0; right: 50%; }
  .cal:not(.resa-cal) .jour.debut, .cal:not(.resa-cal) .jour.fin { color: var(--blanc); font-weight: 600; }
  .cal:not(.resa-cal) .jour.debut::before, .cal:not(.resa-cal) .jour.fin::before { background: var(--encre); }
  .cal:not(.resa-cal) .jour.auj:not(.debut):not(.fin)::before { box-shadow: inset 0 0 0 1px var(--or); }
  .cal:not(.resa-cal) .jour.pris { color: var(--gris-2); text-decoration: line-through; text-decoration-color: var(--laterite); text-decoration-thickness: 1.5px; cursor: not-allowed; }
  .cal:not(.resa-cal) .jour.pris::before { background: var(--laterite-pale); }
  .cal:not(.resa-cal) .jour.passe { color: var(--gris-2); opacity: .5; cursor: not-allowed; }
  .cal:not(.resa-cal) .jour:focus-visible { outline: none; }
  .cal:not(.resa-cal) .jour:focus-visible::before { box-shadow: 0 0 0 2px var(--blanc), 0 0 0 4px var(--or-texte); }
  @media (hover: hover) {
    .cal:not(.resa-cal) .jour:not([aria-disabled]):not(.debut):not(.fin):hover::before { background: var(--sable); }
  }
  .cal:not(.resa-cal) .legende-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--gris); font-size: .75rem; }
  .cal:not(.resa-cal) .legende-cal i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
  .cal:not(.resa-cal) .l-libre { box-shadow: inset 0 0 0 1px var(--trait-2); }
  .cal:not(.resa-cal) .l-pris { background: var(--laterite-pale); box-shadow: inset 0 0 0 1px var(--laterite); }
  .cal:not(.resa-cal) .l-toi { background: var(--encre); }
  .cal:not(.resa-cal) .cal-libres { margin-left: auto; font-weight: 500; }
  @media (pointer: fine) {
    .cal:not(.resa-cal) .jour { --pastille: 34px; height: 38px; font-size: .875rem; }
  }

  /* ============================== Fiche véhicule ============================== */
  .fiche { padding-top: clamp(12px, 2vw, 24px); }
  .fiche-fil { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: var(--s-5); }
  .fiche-fil > .icon-btn { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2); }
  .fil-lien { display: inline-flex; align-items: center; min-height: 44px; color: var(--gris); font-size: var(--t-petit); font-weight: 500; text-decoration: none; }
  @media (hover: hover) { .fil-lien:hover { color: var(--encre); text-decoration: underline; text-decoration-color: var(--or); } }
  .fil-sep { color: var(--trait-2); }
  .fil-ici { overflow: hidden; min-width: 0; color: var(--encre); font-size: var(--t-petit); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
  .fil-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .fil-actions .fav { background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  @media (max-width: 479px) {
    .fil-sep, .fil-ici { display: none; }
    .fil-actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .fil-actions .btn { width: 44px; min-height: 44px; padding: 0; }
  }

  .fiche-grille {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6);
    grid-template-areas: "galerie" "tete" "col" "details";
  }
  .fiche-tete { grid-area: tete; }
  .fiche-galerie { grid-area: galerie; min-width: 0; }
  .fiche-col { grid-area: col; min-width: 0; }
  .fiche-details { grid-area: details; min-width: 0; }
  @media (min-width: 1024px) {
    .fiche-grille {
      grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
      grid-template-rows: auto auto 1fr;
      grid-template-areas: "tete col" "galerie col" "details col";
      column-gap: clamp(40px, 4.4vw, 72px); row-gap: var(--s-7);
    }
    .fiche-col { align-self: stretch; }
  }

  /* Titre */
  .fiche-tete .section-eyebrow { margin-bottom: 12px; }
  .fiche-tete h1 { font-size: var(--t-1); }
  .fiche-sous { margin-top: 12px; color: var(--gris); font-size: var(--t-4); }
  .fiche-pour { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
  .fiche-pour li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--or-pale); color: var(--or-texte); font-size: .8125rem; font-weight: 600; }

  /* Galerie : carrousel (piste à l'aimant + vignettes) sous 1024 px, mosaïque au-delà ; photos ≤ 560 px CSS */
  .fiche-galerie { display: grid; gap: 10px; }
  .galerie-scene {
    position: relative; overflow: hidden; isolation: isolate;
    aspect-ratio: 5 / 4;
    border-radius: var(--r-carte);
    background: var(--sable);
  }
  @media (min-width: 600px) { .galerie-scene { aspect-ratio: 1 / 1; } }
  /* Galerie de la fiche (l'accueil emploie .carnet-piste, sans collision) : règles rangées sous .fiche-galerie. */
  .fiche-galerie .galerie-piste {
    display: flex; height: 100%;
    margin: 0; padding: 0; gap: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none;
  }
  .fiche-galerie .galerie-piste img { aspect-ratio: auto; border-radius: 0; background: none; }
  .fiche-galerie .galerie-piste::-webkit-scrollbar { display: none; }
  .fiche-galerie .galerie-piste:focus-visible { outline: 2px solid var(--or-texte); outline-offset: -4px; }
  .diapo { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
  .diapo-zoom { display: block; overflow: hidden; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
  .diapo-zoom:focus-visible { outline: 2px solid var(--or-texte); outline-offset: -4px; }
  .diapo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: transform var(--d-5) var(--ease); -webkit-user-drag: none; user-select: none; }
  .galerie-nav {
    position: absolute; top: 50%; z-index: 2;
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--verre-ivoire); color: var(--encre);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: inset 0 0 0 1px var(--trait-verre), var(--ombre-1);
    transform: translateY(-50%);
    transition: opacity var(--d-2) var(--ease), transform var(--d-2) var(--ease), background-color var(--d-2);
  }
  .galerie-nav.prec { left: 14px; }
  .galerie-nav.suiv { right: 14px; }
  .galerie-nav:active { transform: translateY(-50%) scale(.94); }
  .galerie-compteur {
    position: absolute; left: 14px; bottom: 14px; z-index: 2;
    padding: 5px 11px; border-radius: var(--r-pill);
    background: var(--verre-nuit); color: var(--blanc);
    font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  }
  .galerie-plein {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border: 0; border-radius: var(--r-pill);
    background: var(--verre-ivoire); color: var(--encre);
    -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: inset 0 0 0 1px var(--trait-verre), var(--ombre-1);
    font-size: var(--t-petit); font-weight: 600;
    transition: background-color var(--d-2) var(--ease), color var(--d-2);
  }
  .galerie-plein svg.i { width: 18px; height: 18px; }
  @media (hover: none) {
    .galerie-nav { display: none; }
    .galerie-plein span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .galerie-plein { width: 44px; padding: 0; justify-content: center; }
  }
  @media (hover: hover) and (pointer: fine) {
    .galerie-nav { opacity: 0; }
    .galerie-scene:hover .galerie-nav, .galerie-scene:focus-within .galerie-nav { opacity: 1; }
    .galerie-nav:hover { background: var(--blanc); }
    .galerie-plein:hover { background: var(--encre); color: var(--blanc); }
    .diapo-zoom:hover img { transform: scale(1.03); }
  }
  .fiche-galerie.en-360 .galerie-piste, .fiche-galerie.en-360 .galerie-nav, .fiche-galerie.en-360 .galerie-compteur, .fiche-galerie.en-360 .galerie-plein { visibility: hidden; }
  .scene360 {
    position: absolute; inset: 0; z-index: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto 3px;
    gap: 6px; padding: 52px 12px 10px; border-radius: var(--r-carte); background: var(--ivoire);
  }
  .scene360 .spin { min-height: 0; padding-bottom: 25px; }
  .scene360 .spin img { height: 100%; object-fit: contain; }
  .scene360 .spin-aide { padding: 2px 8px; font-size: 11px; box-shadow: none; }
  .spin-commandes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
  .spin-commandes button { min-width: 44px; min-height: 44px; }
  .fiche-galerie.en-360 .sans-photo, .fiche-galerie.en-360 .vignettes { visibility: hidden; }
  .bascule {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    display: flex; gap: 2px; padding: 3px;
    border-radius: var(--r-pill);
    background: var(--verre-ivoire); box-shadow: inset 0 0 0 1px var(--trait-verre);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .bascule button { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: none; color: var(--gris); font-size: var(--t-petit); font-weight: 600; }
  .bascule button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }

  .vignettes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
  .vignette {
    flex: none; overflow: hidden;
    width: 64px; height: 64px; padding: 0;
    border: 0; border-radius: var(--r-s);
    background: var(--sable);
    opacity: .55;
    transition: opacity var(--d-2) var(--ease), box-shadow var(--d-2) var(--ease);
  }
  .vignette img { width: 100%; height: 100%; object-fit: cover; }
  .vignette[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--creme), 0 0 0 3.5px var(--encre); }
  @media (hover: hover) { .vignette:hover { opacity: 1; } }

  /* Sans photo : le cadre garde ses proportions mais grandit avec son texte et son bouton (320 px, texte agrandi) ;
     overflow: clip (et non hidden) laisse jouer la hauteur minimale automatique du ratio. */
  .fiche-galerie.sans .galerie-scene { aspect-ratio: auto; }
  .fiche-galerie.sans .sans-photo.grand { aspect-ratio: 4 / 3; height: auto; overflow: clip; border-radius: var(--r-carte); }
  .sans-photo.grand { gap: 14px; padding: 32px 28px; }
  .sans-photo.grand .silhouette { width: min(64%, 300px); }
  .sans-photo.grand .btn { margin-top: 6px; }
  @media (min-width: 768px) {
    .fiche-galerie.multi { grid-template-columns: 76px minmax(0, 560px); align-items: start; }
    .fiche-galerie.multi .vignettes { grid-column: 1; grid-row: 1; flex-direction: column; overflow: visible; }
    .fiche-galerie.multi .galerie-scene { grid-column: 2; grid-row: 1; }
    .fiche-galerie.multi .vignette { width: 76px; height: 76px; }
    .fiche-galerie:not(.multi):not(.sans) { max-width: 560px; }
    .fiche-galerie.sans .sans-photo.grand { aspect-ratio: 16 / 10; }
  }
  /* Ordinateur : mosaïque (photo principale ≤ 560 px, deux photos à côté), « Voir les n photos » ouvre la visionneuse */
  @media (min-width: 1024px) {
    .fiche-galerie.multi { grid-template-columns: minmax(0, 1fr); }
    .fiche-galerie.multi .vignettes, .fiche-galerie.multi .galerie-nav, .fiche-galerie.multi .galerie-compteur { display: none; }
    .fiche-galerie.multi .galerie-scene { grid-column: 1; aspect-ratio: 16 / 11; overflow: visible; background: none; }
    .fiche-galerie.multi .galerie-piste {
      display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
      gap: 8px; overflow: visible; scroll-snap-type: none;
    }
    .fiche-galerie.multi .diapo { height: auto; min-height: 0; overflow: hidden; border-radius: var(--r-carte); background: var(--sable); }
    .fiche-galerie.multi .diapo:first-child { grid-row: 1 / -1; }
    .fiche-galerie.multi .diapo:nth-child(n + 4) { display: none; }
    .fiche-galerie.multi .galerie-piste:has(> .diapo:nth-child(2):last-child) > .diapo:nth-child(2) { grid-row: 1 / -1; }
    .fiche-galerie.multi .scene360 { border-radius: var(--r-carte); }
  }

  /* ============================== Fiche : colonne de réservation ============================== */
  .fc-carte {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px;
    padding: clamp(20px, 2.4vw, 28px);
    border-radius: var(--r-carte);
    background: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-2);
  }
  @media (min-width: 1024px) {
    .fc-carte { position: sticky; top: var(--col-haut, calc(var(--h-entete-solide) + 16px)); }
  }
  /* Rangées souples : « TA LOCATION » ne se coupe jamais en syllabes, l'étiquette passe à la ligne si la place manque
     (320 px, texte agrandi) ; total, dates et prix du jour occupent chacun toute la largeur. */
  .fc-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
  .fc-eyebrow {
    font-family: var(--texte); font-size: var(--t-micro); font-weight: 600; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gris);
  }
  .fc-tete .tag { white-space: normal; }
  .fc-total, .fc-dates, .fc-jour { flex: 1 1 100%; min-width: 0; }
  .fc-total { margin-top: 6px; }
  .fc-total b { font-family: var(--texte); font-size: clamp(2rem, 1.7rem + 1.1vw, 2.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.025em; overflow-wrap: anywhere; }
  html.texte-grand .fc-total b { font-size: 1.75rem; }
  .fc-dates { font-weight: 500; }
  .fc-jour { color: var(--gris); font-size: var(--t-petit); }
  .fc-jour b { color: var(--encre); font-weight: 600; }
  /* Quatre faits séparés par des filets (le fond --trait passe entre les cases) : 4 × 1, ou 2 × 2 sous 360 px et
     quand le texte est agrandi ; jamais une case vide. */
  .fiche .faits {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px; margin: 0; padding: 1px; list-style: none;
    overflow: hidden; border-radius: var(--r-m);
    background: var(--trait);
  }
  @media (max-width: 359px) { .fiche .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  html.texte-grand .fiche .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche .fait {
    display: grid; justify-items: center; align-content: start; gap: 2px;
    padding: 12px 4px;
    background: var(--blanc);
    color: var(--gris); font-size: .75rem; line-height: 1.25; text-align: center;
  }
  .fiche .fait svg.i { width: 18px; height: 18px; margin-bottom: 4px; color: var(--or-texte); }
  .fiche .fait b { overflow-wrap: break-word; hyphens: auto; color: var(--encre); font-size: var(--t-petit); font-weight: 600; }
  .fc-bloc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fc-titre { font-family: var(--texte); font-size: var(--t-corps); font-weight: 600; letter-spacing: 0; line-height: 1.3; }

  /* Bandeau « Pris sur tes dates → libre dès … » */
  .dispo-bandeau {
    display: grid; gap: 12px;
    padding: 16px;
    border-radius: var(--r-m);
    background: var(--laterite-pale);
  }
  .bandeau-tete { display: flex; align-items: flex-start; gap: 12px; }
  .bandeau-tete > svg.i { margin-top: 2px; color: var(--laterite); }
  .bandeau-tete p { display: grid; gap: 2px; line-height: 1.4; }
  .bandeau-tete b { color: var(--laterite); font-weight: 600; }
  .bandeau-tete span { color: var(--encre); font-size: var(--t-petit); }
  .bandeau-note { color: var(--gris); font-size: .75rem; text-align: center; }
  .bandeau-liens { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .dispo-bandeau .lien-aide { font-size: var(--t-petit); }
  /* « Prendre du … au … » : le libellé passe à la ligne plutôt que d'être rogné (320 px, texte agrandi) */
  .dispo-bandeau .btn { white-space: normal; min-height: 44px; height: auto; padding-block: 10px; text-align: center; }
  .dispo-bandeau .btn span { min-width: 0; overflow-wrap: anywhere; }
  html.texte-grand .dispo-bandeau .btn { padding-inline: 12px; }
  html.texte-grand .dispo-bandeau .btn svg.i { display: none; }
  .attente-form { display: grid; gap: 10px; margin-top: 6px; }
  .attente-erreur { color: var(--laterite); font-size: var(--t-petit); font-weight: 600; }
  .attente-erreur:empty { display: none; }
  .attente-ok { display: flex; gap: 10px; align-items: flex-start; color: var(--palme); font-size: var(--t-petit); line-height: 1.5; }
  .attente-ok span { color: var(--encre); }
  .bandeau-liens .attente-ok { flex: 1 1 100%; padding-block: 8px; }
  .attente-ok:focus { outline: none; }

  /* Options en tuiles : 2 colonnes au plus ; une seule quand le texte est agrandi (7rem suit la taille du texte) */
  .options-fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(7rem, 50% - 4px)), 1fr)); gap: 8px; }
  .fiche .opt {
    position: relative;
    display: flex; align-items: flex-start; gap: 10px;
    min-height: 64px; padding: 12px 14px;
    border-radius: var(--r-m);
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait-2);
    cursor: pointer;
    transition: box-shadow var(--d-2) var(--ease), background-color var(--d-2) var(--ease);
  }
  .fiche .opt input[type="checkbox"] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .fiche .opt-coche {
    display: grid; place-items: center; flex: none;
    width: 22px; height: 22px; margin-top: 1px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px var(--trait-2);
    color: transparent;
    transition: background-color var(--d-2) var(--ease), color var(--d-2), box-shadow var(--d-2);
  }
  .fiche .opt-coche svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
  .fiche .opt-texte { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
  .fiche .opt-texte b { font-size: var(--t-petit); font-weight: 600; }
  .fiche .opt-texte small { color: var(--gris); font-size: .75rem; }
  .fiche .opt:has(input:checked) { background: var(--ivoire); box-shadow: inset 0 0 0 1.5px var(--encre); }
  .fiche .opt:has(input:checked) .opt-coche { background: var(--or); color: var(--encre); box-shadow: none; }
  .fiche .opt:has(input:focus-visible), .fiche .opt:has(select:focus-visible) { outline: 2px solid var(--or-texte); outline-offset: 2px; }
  .fiche .opt-zone { cursor: default; }
  .fiche .opt-zone .opt-texte { width: 100%; }
  /* zone de toucher de 44 px sans agrandir la tuile (marges négatives) */
  .fiche .opt-zone select {
    appearance: none; -webkit-appearance: none;
    width: 100%; min-height: 44px; margin: -6px 0; padding: 0 22px 0 0;
    border: 0; background: transparent var(--chevron) no-repeat right center / 16px;
    color: var(--encre); font-size: 1rem; font-weight: 600;
  }
  .fiche .opt-zone select:focus { outline: 0; }
  @media (hover: hover) {
    .fiche .opt:not(:has(input:checked)):hover { box-shadow: inset 0 0 0 1px var(--encre); }
  }
  /* Avec chauffeur (7.4) : nous l'affectons parmi nos chauffeurs vérifiés (fiche et étape Trajet du tunnel) */
  .chauffeur-choix {
    display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 0; padding: 12px 14px;
    border-radius: var(--r-s); background: var(--sable); color: var(--encre); font-size: .9375rem; line-height: 1.45;
  }
  .chauffeur-choix .i { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--or-texte); }
  /* Conditions d'annulation (feuille #annulationFiche) */
  .fc-annulation p { margin-block: 0; color: var(--gris); font-size: .9375rem; line-height: 1.55; }
  .fc-annulation strong { color: var(--encre); font-weight: 600; }
  .fc-annulation button { justify-self: start; font-size: var(--t-petit); text-align: left; }

  /* Détail du total */
  .fiche .lignes { display: grid; gap: 8px; margin: 0; }
  .fiche .lignes > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: var(--t-petit); line-height: 1.4; }
  .fiche .lignes dt { min-width: 0; color: var(--gris); }
  .fiche .lignes dd { margin: 0 0 0 auto; color: var(--encre); font-weight: 500; white-space: nowrap; }
  .fiche .lignes dd.remise { color: var(--palme); }
  .fiche .lignes .ligne-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--trait); font-size: var(--t-corps); }
  .fiche .lignes .ligne-total dt, .fiche .lignes .ligne-total dd { color: var(--encre); font-weight: 600; }
  .fiche .lignes .ligne-acompte { font-size: .8125rem; }

  /* Actions */
  .fc-actions { display: grid; gap: 10px; }
  .fc-actions .btn-or { min-height: 56px; font-size: 1.0625rem; }
  .fc-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
  .fc-liens .lien-aide { font-size: var(--t-petit); }
  .fc-note { color: var(--gris); font-size: .75rem; line-height: 1.5; text-align: center; }

  @media (min-width: 768px) and (max-width: 1023px) {
    .fc-carte { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); align-items: start; }
    .fc-carte > * { grid-column: 1 / -1; }
    .fc-carte > .fc-bloc:has(#calFiche) { grid-column: 1; grid-row: span 3; }
    .fc-carte > .fc-bloc:not(:has(#calFiche)), .fc-carte > .fc-actions { grid-column: 2; }
  }

  /* Barre de réservation collante (mobile et tablette ; plus de barre d'onglets dessous) */
  .fiche-barre {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--bas-sur)); z-index: var(--z-onglets);
    display: flex; align-items: center; gap: 12px;
    max-width: 560px; margin-inline: auto; padding: 8px 8px 8px 22px;
    border-radius: var(--r-pill);
    background: var(--verre-ivoire);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: inset 0 0 0 1px var(--trait), var(--ombre-3);
    transition: transform var(--d-3) var(--ease), opacity var(--d-2) var(--ease);
  }
  .fiche-barre.cachee { opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none; }
  .barre-total { display: grid; flex: 1; min-width: 0; margin: 0; line-height: 1.2; }
  .barre-total b { font-family: var(--texte); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; }
  .barre-total span { overflow: hidden; color: var(--gris); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
  .fiche-barre .btn { flex: none; padding-inline: 26px; }
  html.texte-grand .fiche-barre { border-radius: var(--r-xl); }
  @media (min-width: 1024px) { .fiche-barre { display: none; } }

  /* ============================== Fiche : formules, règles, similaires ============================== */
  .fiche-details { display: grid; gap: clamp(56px, 7vw, 96px); padding-top: var(--s-4); }
  .fiche-section h2 { font-size: clamp(2rem, 1.55rem + 1.8vw, 3rem); }
  .fiche-section .section-eyebrow { margin-bottom: 12px; }
  .fiche-intro { max-width: 56ch; margin-top: 12px; color: var(--gris); }
  .fiche-formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, 50% - 6px)), 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
  .formule-f {
    display: grid; align-content: start; gap: 4px;
    padding: 18px;
    border-radius: var(--r-carte);
    background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait);
  }
  .formule-f b { font-family: var(--texte); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
  .formule-f span { color: var(--gris); font-size: .8125rem; line-height: 1.4; }
  .formule-f em { margin-top: 10px; font-family: var(--texte); font-size: 1.1875rem; font-style: normal; font-weight: 600; letter-spacing: -.015em; }
  .formule-f small { color: var(--gris); font-size: .75rem; }
  .formule-f.actif { background: var(--encre); color: var(--blanc); box-shadow: none; }
  .formule-f.actif span, .formule-f.actif small { color: var(--blanc-70); }
  .formule-f.actif em { color: var(--or-clair); }
  @media (min-width: 768px) { .fiche-formules { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, 25% - 9px)), 1fr)); } }

  .fiche .regles-liste { display: grid; margin: 20px 0 24px; }
  .fiche .regle { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--trait); }
  .fiche .regle > svg.i { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--blanc); box-shadow: inset 0 0 0 1px var(--trait); color: var(--encre); }
  .fiche .regle b { display: block; font-weight: 600; line-height: 1.35; }
  .fiche .regle span { display: block; margin-top: 4px; color: var(--gris); font-size: var(--t-petit); line-height: 1.55; }
  @media (min-width: 768px) {
    .fiche .regles-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
  }

  /* Similaires : rail à l'aimant sur mobile (la carte suivante dépasse), trois colonnes dès 768 px */
  .similaires {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 16px;
    margin: 24px calc(-1 * var(--gouttiere)) 0; padding: 0 var(--gouttiere) 4px; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gouttiere); scrollbar-width: none;
  }
  .similaires::-webkit-scrollbar { display: none; }
  .similaires > li { min-width: 0; scroll-snap-align: start; }
  .sim-lien {
    display: grid; align-content: start; gap: 12px;
    height: 100%; padding: 0;
    border-radius: var(--r-carte);
    color: inherit; text-decoration: none;
  }
  .sim-photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-carte); background: var(--sable); }
  .sim-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: transform var(--d-5) var(--ease); }
  .sim-infos { display: grid; justify-items: start; gap: 4px; min-width: 0; }
  .sim-nom { font-family: var(--texte); font-size: var(--t-3); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
  .sim-meta, .sim-prix { color: var(--gris); font-size: var(--t-petit); }
  .sim-prix b { color: var(--encre); font-size: var(--t-corps); font-weight: 600; }
  .sim-infos .tag { margin-top: 4px; }
  .sim-lien:focus-visible { outline: 2px solid var(--or-texte); outline-offset: 4px; }
  @media (hover: hover) {
    .sim-lien:hover .sim-photo img { transform: scale(1.03); }
    .sim-lien:hover .sim-nom { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 1px; text-underline-offset: 4px; }
  }
  @media (min-width: 768px) {
    .similaires { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-inline: 0; padding: 0; overflow: visible; }
  }

  /* Véhicule absent */
  .fiche-absente { display: grid; justify-items: center; gap: 16px; max-width: 560px; margin: var(--s-7) auto; text-align: center; }
  .fiche-absente .sans-photo { aspect-ratio: 16 / 10; border-radius: var(--r-carte); }
  .fiche-absente h1 { font-size: var(--t-2); }

  /* ============================== Visionneuse plein écran ============================== */
  #visionneuse.feuille {
    inset: 0; width: auto; height: 100dvh; max-height: none;
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    border-radius: 0;
    background: var(--noir); color: var(--blanc);
    box-shadow: none;
    opacity: 0; transform: none;
    transition: opacity var(--d-3) var(--ease);
  }
  #visionneuse.feuille.ouvert { opacity: 1; transform: none; pointer-events: auto; }
  .vis-tete { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
  .vis-titre { display: flex; flex: 1; align-items: baseline; gap: 14px; min-width: 0; margin: 0; }
  .vis-nom { overflow: hidden; font-family: var(--serif); font-size: 1.625rem; font-weight: 400; letter-spacing: var(--serre); line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
  .vis-compteur { color: var(--blanc-70); font-size: var(--t-petit); font-weight: 500; font-variant-numeric: tabular-nums; }
  #visionneuse .vis-fermer { background: var(--blanc-08); color: var(--blanc); box-shadow: inset 0 0 0 1px var(--blanc-20); }
  .vis-scene {
    position: relative;
    display: grid; place-items: center;
    min-height: 0; padding: 8px 16px;
    overflow: hidden;
    touch-action: pan-y; user-select: none; -webkit-user-select: none;
  }
  /* photo à sa taille réelle au plus (576 px) : jamais agrandie */
  .vis-scene img {
    width: auto; height: auto; max-width: min(100%, 560px); max-height: 100%;
    border-radius: var(--r-carte);
    -webkit-user-drag: none;
  }
  .vis-nav {
    position: absolute; top: 50%; z-index: 1;
    display: grid; place-items: center;
    width: 52px; height: 52px; padding: 0;
    border: 0; border-radius: 50%;
    background: var(--blanc-08); color: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--blanc-20);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background-color var(--d-2) var(--ease), color var(--d-2);
  }
  .vis-prec { left: max(16px, env(safe-area-inset-left)); }
  .vis-suiv { right: max(16px, env(safe-area-inset-right)); }
  .vis-nav:active { transform: translateY(-50%) scale(.94); }
  .vis-vignettes { display: flex; justify-content: center; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
  .vis-vignettes:empty { display: none; }
  .vis-vignette { flex: none; overflow: hidden; width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--r-s); background: var(--blanc-08); opacity: .45; transition: opacity var(--d-2), box-shadow var(--d-2); }
  .vis-vignette img { width: 100%; height: 100%; object-fit: cover; }
  .vis-vignette[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--noir), 0 0 0 3.5px var(--or-clair); }
  .vis-aide { padding: 4px 16px 14px; color: var(--blanc-70); font-size: .75rem; text-align: center; }
  #visionneuse.une-photo .vis-nav { display: none; }
  @media (hover: none) { .vis-aide { display: none; } }
  @media (hover: hover) {
    .vis-nav:hover, #visionneuse .vis-fermer:hover { background: var(--blanc); color: var(--encre); }
    .vis-vignette:hover { opacity: .85; }
  }
  @media (max-width: 599px) {
    .vis-nav { top: auto; bottom: 12px; width: 48px; height: 48px; transform: none; }
    .vis-nav:active { transform: scale(.94); }
    .vis-scene { padding-bottom: 72px; }
  }

  /* ============================== Transition carte → fiche ============================== */
  .vt-photo { view-transition-name: vehicule-photo; }
  ::view-transition-group(vehicule-photo) { animation-duration: var(--d-3); animation-timing-function: var(--ease); }
  ::view-transition-old(vehicule-photo), ::view-transition-new(vehicule-photo) { height: 100%; object-fit: cover; overflow: clip; }
}
