/* Place de marché (lot P1, 02/11/2026) — application voyageur /v/ — feuille de style.
   Système du design du 01/11 (§ 2.4, palette A bleu) réduit au flux de la décision D-B : police système, UNE couleur d'accent,
   neutres mesurés (au moins 4,5:1 pour tout texte, y compris les commandes inactives), rayons 8 / 12 / 16 / pilule, espacement
   4 · 8 · 12 · 16 · 24 · 32 · 48, cibles de 44 px, champs de 48 px, texte de 16 px, mode sombre automatique
   (prefers-color-scheme) et forçable par data-theme, mouvement réduit. Aucune ressource externe, aucune police web.
   Fluide de 320 à 430 px, centré à 430 px au-delà. Aucun style en ligne dans la page (politique de contenu stricte). */

/* Marque (lot CW, 08/11/2026) : charte de l'application, bleu premium (Gestion_planification/06-Medias-films-images/courself-logo/
   CHARTE_APPLICATION_COURSELF.md, 03/11/2026), reprise du prototype. Clair : page blanche, surfaces papier, titres et bouton
   principal nuit, liens et sélections bleu premium, jamais d'or sur fond clair. Nuit : fond en dégradé premium, cartes nuit
   cernées d'un filet, tuiles en surface, texte blanc et papier, bouton principal or (texte nuit). Exceptions héritées : filets
   clairs #D5D9E0, erreur et succès. Bleu nuit du logo #0E1A3A réservé à la plaque du logo. */
:root {
  color-scheme: light dark;
  --couleur-fond: #FFFFFF;                 /* blanc : page, cartes, feuilles */
  --couleur-surface: #F7F5F2;              /* papier : tuiles, puces, fond hors de la colonne */
  --couleur-texte: #2A3652;                /* texte : 12,01:1 sur blanc, 11,04:1 sur papier */
  --couleur-titre: #081831;                /* nuit : titres, 17,72:1 sur blanc */
  --couleur-texte-2: #2A3652;              /* la charte n'a pas de gris de texte ; hiérarchie par taille et graisse */
  --couleur-bordure: #D5D9E0;              /* filets clairs (exception héritée), décoratifs */
  --couleur-accent: #244890;               /* bleu premium : liens, sélections, focus ; 8,73:1 sur blanc */
  --couleur-accent-2: #081831;
  --couleur-accent-fond: #F7F5F2;          /* papier : puce choisie (bordure bleue de 2 px), pastilles */
  --couleur-sur-accent: #FFFFFF;           /* sur le bleu premium : 8,73:1 */
  --couleur-bouton: #081831;               /* bouton principal : nuit */
  --couleur-bouton-appui: #244890;         /* pressé : bleu premium */
  --couleur-sur-bouton: #FFFFFF;           /* 17,72:1 (8,73:1 pressé) */
  --couleur-logo-fond: #0E1A3A;            /* plaque du logo : son propre fond, en aplat */
  --couleur-erreur: #C92D2D;               /* 5,39:1 sur blanc */
  --couleur-succes: #0E7C66;               /* 5,13:1 sur blanc */
  --couleur-poignee: rgba(42, 54, 82, 0.4);
  --couleur-voile: rgba(8, 24, 49, 0.5);
  --fond-degrade: none;                    /* uni en clair, dégradé premium en nuit */
  --degrade-marque: radial-gradient(70% 140px at 50% 48%, rgba(36, 72, 144, 0.55), rgba(36, 72, 144, 0) 100%),
    linear-gradient(180deg, #0B1F40 0%, #081831 55%, #05142D 100%);
  --coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ombre-1: 0 1px 2px rgba(8, 24, 49, 0.06);
  --ombre-2: 0 4px 12px rgba(8, 24, 49, 0.08);
  --ombre-3: 0 -4px 24px rgba(8, 24, 49, 0.12);
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --marge: 16px;
  --gouttiere: 12px;
  --rayon-8: 8px;
  --rayon-12: 12px;
  --rayon-16: 16px;
  --rayon-pilule: 999px;
  --duree-nav: 250ms;
  --duree-feuille: 300ms;
  --duree-fondu: 150ms;
  --zone-haute: env(safe-area-inset-top, 0px);
  --zone-basse: env(safe-area-inset-bottom, 0px);
  --onglets-hauteur: 56px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --couleur-fond: #081831;               /* nuit : cartes, feuilles, champs (17,72:1 avec le blanc) */
    --couleur-surface: #102139;            /* surface : tuiles, puces (16,17:1 avec le blanc) */
    --couleur-texte: #FFFFFF;
    --couleur-titre: #FFFFFF;
    --couleur-texte-2: #F7F5F2;            /* papier : 16,28:1 sur nuit */
    --couleur-bordure: #26364F;            /* filet décoratif */
    --couleur-accent: #F4C465;             /* or : liens, sélections, focus ; 10,91:1 sur nuit */
    --couleur-accent-2: #E5A340;
    --couleur-accent-fond: #172B48;        /* surface haute ; or dessus 8,76:1 */
    --couleur-sur-accent: #081831;
    --couleur-bouton: #F4C465;             /* bouton principal or, texte nuit (10,91:1) */
    --couleur-bouton-appui: #E5A340;       /* or moyen : 8,14:1 */
    --couleur-sur-bouton: #081831;
    --couleur-erreur: #F07067;             /* 6,09:1 sur nuit */
    --couleur-succes: #3ECF8E;
    --couleur-poignee: rgba(247, 245, 242, 0.4);
    --couleur-voile: rgba(5, 20, 45, 0.72);
    --fond-degrade: radial-gradient(130% 360px at 18% -40px, rgba(36, 72, 144, 0.42), rgba(36, 72, 144, 0) 72%),
      radial-gradient(90% 300px at 100% 100%, rgba(91, 124, 157, 0.14), rgba(91, 124, 157, 0) 70%),
      linear-gradient(180deg, #0B1F40 0, #081831 360px, #05142D 100%);
    --degrade-marque: radial-gradient(closest-side at 50% 56%, rgba(36, 72, 144, 0.55), rgba(36, 72, 144, 0));
    --coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23081831' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --ombre-1: 0 0 0 1px var(--couleur-bordure);
    --ombre-2: 0 0 0 1px var(--couleur-bordure);
    --ombre-3: 0 0 0 1px var(--couleur-bordure);
  }
}
:root[data-theme="dark"] {
  --couleur-fond: #081831;
  --couleur-surface: #102139;
  --couleur-texte: #FFFFFF;
  --couleur-titre: #FFFFFF;
  --couleur-texte-2: #F7F5F2;
  --couleur-bordure: #26364F;
  --couleur-accent: #F4C465;
  --couleur-accent-2: #E5A340;
  --couleur-accent-fond: #172B48;
  --couleur-sur-accent: #081831;
  --couleur-bouton: #F4C465;
  --couleur-bouton-appui: #E5A340;
  --couleur-sur-bouton: #081831;
  --couleur-erreur: #F07067;
  --couleur-succes: #3ECF8E;
  --couleur-poignee: rgba(247, 245, 242, 0.4);
  --couleur-voile: rgba(5, 20, 45, 0.72);
  --fond-degrade: radial-gradient(130% 360px at 18% -40px, rgba(36, 72, 144, 0.42), rgba(36, 72, 144, 0) 72%),
    radial-gradient(90% 300px at 100% 100%, rgba(91, 124, 157, 0.14), rgba(91, 124, 157, 0) 70%),
    linear-gradient(180deg, #0B1F40 0, #081831 360px, #05142D 100%);
  --degrade-marque: radial-gradient(closest-side at 50% 56%, rgba(36, 72, 144, 0.55), rgba(36, 72, 144, 0));
  --coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23081831' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ombre-1: 0 0 0 1px var(--couleur-bordure);
  --ombre-2: 0 0 0 1px var(--couleur-bordure);
  --ombre-3: 0 0 0 1px var(--couleur-bordure);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--couleur-surface); }
body { margin: 0; background: var(--couleur-surface); color: var(--couleur-texte); font-family: var(--police); font-size: 16px; line-height: 1.375; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--couleur-accent); }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico--petit { width: 20px; height: 20px; }
.ico--grand { width: 32px; height: 32px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--couleur-accent); outline-offset: 2px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }   /* titre recevant le focus au changement d'écran (lecteurs d'écran) */
.app { position: relative; max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--couleur-fond); overflow-x: hidden; }
@media (min-width: 431px) { .app { box-shadow: var(--ombre-2); } }

/* ------------------------------------------------------------------ typographie */
.titre1 { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; margin-top: 8px; overflow-wrap: anywhere; }
.titre2 { font-size: 22px; line-height: 28px; font-weight: 600; margin-top: 24px; margin-bottom: 12px; overflow-wrap: anywhere; }
.titre3 { font-size: 17px; line-height: 22px; font-weight: 600; margin-top: 16px; margin-bottom: 8px; }
.sous-titre { color: var(--couleur-texte-2); font-size: 16px; line-height: 22px; margin-top: 4px; }
.texte { font-size: 16px; line-height: 22px; margin-top: 8px; }
.texte-2 { color: var(--couleur-texte-2); font-size: 15px; line-height: 20px; margin-top: 8px; }
.texte-aide { color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; margin-top: 8px; }
.texte-aide--centre { text-align: center; }
.espace { margin-top: 8px; }
.espace-16 { margin-top: 16px; }
.espace-24 { margin-top: 24px; }
.montant { font-variant-numeric: tabular-nums; white-space: nowrap; }
.montant-grand { font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lien { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--couleur-accent); font-weight: 600; font-size: 15px; text-decoration: none; text-align: left; }
.lien--centre { display: flex; width: 100%; justify-content: center; text-align: center; }
.lien--inline { min-height: 44px; padding: 0 2px; vertical-align: middle; font-size: inherit; }
.lien--souligne { text-decoration: underline; text-underline-offset: 3px; }
.message-erreur { display: flex; align-items: flex-start; gap: 6px; color: var(--couleur-erreur); font-size: 13px; line-height: 18px; margin-top: 8px; }
.message-erreur .ico { stroke: var(--couleur-erreur); width: 20px; height: 20px; margin-top: -1px; }
.succes { color: var(--couleur-succes); }
.barre { text-decoration: line-through; color: var(--couleur-texte-2); font-weight: 400; }
.marque-bloc { display: flex; flex-direction: column; min-width: 0; }
.logotype { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.accroche { color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; font-weight: 600; }

/* ------------------------------------------------------------------ écrans, en-têtes */
.ecrans { position: relative; }
.ecran { display: none; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding-top: var(--zone-haute); background: var(--couleur-fond); background-image: var(--fond-degrade); }
.ecran.ecran--active { display: flex; animation: entree var(--duree-nav) ease-out; }
.ecran.ecran--active.ecran--retour { animation-name: entree-retour; }
.ecran__corps { display: flex; flex-direction: column; flex: 1; min-width: 0; }
@keyframes entree { from { transform: translateX(24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes entree-retour { from { transform: translateX(-24px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.ecran--onglets { padding-bottom: calc(var(--onglets-hauteur) + var(--zone-basse) + 16px); }
.contenu { flex: 1; min-width: 0; padding: 0 var(--marge) 24px; }
.contenu--haut { padding-top: 24px; }
.entete { display: flex; align-items: center; min-height: 56px; padding: 4px var(--marge); gap: 8px; }
.entete__gauche, .entete__droite { min-width: 44px; display: flex; align-items: center; }
.entete__droite { justify-content: flex-end; }
.entete__titre { flex: 1; min-width: 0; text-align: center; font-size: 17px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entete--marque { justify-content: space-between; padding-top: 12px; }
.pastille-demo { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--couleur-bordure); border-radius: var(--rayon-pilule); background: var(--couleur-surface); color: var(--couleur-texte-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn-texte { min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; color: var(--couleur-accent); font-weight: 600; font-size: 16px; }

/* ------------------------------------------------------------------ boutons (inactif : neutre lisible, jamais une opacité) */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 16px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--rayon-12); background: var(--couleur-bouton); color: var(--couleur-sur-bouton); font-size: 17px; font-weight: 600; line-height: 22px; text-align: center; text-decoration: none; transition: background var(--duree-fondu); }
.btn--primaire:active { background: var(--couleur-bouton-appui); }
.btn[aria-disabled="true"], .btn:disabled { background: var(--couleur-surface); color: var(--couleur-texte-2); border-color: var(--couleur-bordure); cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--deux-lignes { flex-direction: column; gap: 2px; min-height: 64px; }
.btn--deux-lignes .btn__ligne2 { font-size: 13px; line-height: 18px; font-weight: 500; }
.btn--secondaire { min-height: 48px; background: transparent; border-color: var(--couleur-accent); color: var(--couleur-accent); }
.btn--secondaire:active { background: var(--couleur-accent-fond); }
.btn--danger { min-height: 48px; background: transparent; color: var(--couleur-erreur); }
.btn--danger:active { background: var(--couleur-surface); }
.btn--compact { width: auto; min-height: 48px; margin-top: 0; padding: 0 16px; }
.boutons-ligne { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.boutons-ligne .btn { flex: 1 1 120px; margin-top: 0; }
.btn-icone { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; border: 0; border-radius: var(--rayon-pilule); background: transparent; color: var(--couleur-texte); position: relative; }
.btn-icone--petit { color: var(--couleur-texte-2); }
.pilule { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--rayon-pilule); background: var(--couleur-surface); color: var(--couleur-texte); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.pilule .ico { width: 20px; height: 20px; }
.puce-menu { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--rayon-pilule); background: var(--couleur-surface); color: var(--couleur-texte); font-size: 15px; font-weight: 600; white-space: nowrap; }
.puce-menu .ico { width: 18px; height: 18px; }
.puce-menu[aria-pressed="true"] { background: var(--couleur-accent-fond); color: var(--couleur-accent); }
.puces-menus { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
.pastille-point { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--couleur-accent); }
.pastille-point--onglet { top: 6px; right: calc(50% - 18px); }

/* ------------------------------------------------------------------ champs */
.champ { display: block; margin-top: 12px; }
.champ__libelle { display: block; color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; margin-bottom: 4px; }
.champ__saisie { display: block; width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--couleur-bordure); border-radius: var(--rayon-8); background: var(--couleur-fond); color: var(--couleur-texte); font-size: 16px; }
.champ__saisie::placeholder { color: var(--couleur-texte-2); opacity: 1; }
.champ__saisie:focus { outline: 2px solid var(--couleur-accent); outline-offset: 0; border-color: var(--couleur-accent); }
.champ__saisie[aria-invalid="true"] { border-color: var(--couleur-erreur); }
.champ__saisie:disabled { background: var(--couleur-surface); color: var(--couleur-texte-2); }
textarea.champ__saisie { min-height: 96px; padding: 12px; resize: vertical; line-height: 22px; }
select.champ__saisie { appearance: auto; }
.cases-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (max-width: 359px) { .cases-code { gap: 4px; } }   /* 320 px : six cases de 44 px au moins */
.case-code { width: 100%; min-width: 0; min-height: 56px; padding: 0; border: 1px solid var(--couleur-bordure); border-radius: var(--rayon-8); background: var(--couleur-fond); color: var(--couleur-texte); text-align: center; font-family: var(--police-mono); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.case-code:focus { outline: 2px solid var(--couleur-accent); outline-offset: 0; border-color: var(--couleur-accent); }
.case-code[aria-invalid="true"] { border-color: var(--couleur-erreur); }
/* Case à cocher : la case native (44 × 44, cible tactile entière) dessine une boîte de 22 px par deux anneaux d'ombre. */
.case { display: flex; gap: 8px; align-items: flex-start; min-height: 44px; margin-top: 16px; cursor: pointer; }
.case input { -webkit-appearance: none; appearance: none; flex: 0 0 auto; width: 44px; height: 44px; margin: -11px -3px -11px -11px; border: 0; border-radius: 15px; background: transparent no-repeat center / 16px 16px; box-shadow: inset 0 0 0 11px var(--couleur-fond), inset 0 0 0 13px var(--couleur-texte-2); cursor: pointer; }
/* Cochée : l'anneau de 11 px (couleur du fond) laisse au centre une boîte de 22 px peinte par le fond (coche par-dessus la
   couleur d'accent) ; une ombre intérieure se peindrait AU-DESSUS de l'image et cacherait la coche. */
.case input:checked { background: var(--coche) center / 16px 16px no-repeat, var(--couleur-accent); box-shadow: inset 0 0 0 11px var(--couleur-fond); }
.case input:focus-visible { outline: 2px solid var(--couleur-accent); outline-offset: -9px; }
.case__libelle { display: block; flex: 1; min-width: 0; font-size: 15px; line-height: 22px; }
.champ-montant { display: block; margin-top: 16px; }
.champ-montant__ligne { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--couleur-bordure); padding-bottom: 4px; }
.champ-montant__ligne:focus-within { border-bottom: 2px solid var(--couleur-accent); padding-bottom: 3px; }
.champ-montant__saisie { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; }
.champ-montant__saisie:focus { outline: none; }
.champ-montant__saisie:disabled { color: var(--couleur-texte-2); }
.champ-montant__suffixe { font-size: 22px; font-weight: 600; color: var(--couleur-texte-2); }

/* ------------------------------------------------------------------ puces de prix (rabais réglés + « Autre montant ») */
.puces-prix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gouttiere); margin-top: 12px; }
.puces-prix--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.puces-prix--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.puce-prix { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; min-height: 58px; padding: 8px 10px; border: 1px solid var(--couleur-bordure); border-radius: var(--rayon-8); background: var(--couleur-fond); color: var(--couleur-texte); text-align: left; }
.puce-prix__montant { font-size: 17px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.puce-prix__montant--texte { font-size: 15px; line-height: 20px; white-space: normal; overflow-wrap: anywhere; }   /* « Autre montant » : passe à la ligne */
.puce-prix__sous { font-size: 13px; line-height: 18px; color: var(--couleur-texte-2); }
.puce-prix[aria-checked="true"] { border: 2px solid var(--couleur-accent); background: var(--couleur-accent-fond); padding: 7px 9px; }
.puce-prix[aria-checked="true"] .puce-prix__sous { color: var(--couleur-accent); }
.puce-prix[aria-disabled="true"] { background: var(--couleur-surface); color: var(--couleur-texte-2); cursor: not-allowed; }
@media (max-width: 359px) { .puce-prix { padding: 8px 6px; } .puce-prix[aria-checked="true"] { padding: 7px 5px; } .puce-prix__montant { font-size: 15px; } }
.ligne-reference-bloc { display: flex; align-items: center; gap: 4px; margin-top: 12px; }   /* « Prix de référence » et « ? » sur une ligne */
.ligne-reference { display: flex; flex: 1; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 0 8px 0 12px; border: 1px solid var(--couleur-bordure); border-radius: var(--rayon-8); background: var(--couleur-fond); color: var(--couleur-texte); text-align: left; }
.ligne-reference[aria-checked="true"] { border: 2px solid var(--couleur-accent); background: var(--couleur-accent-fond); padding: 0 7px 0 11px; }
.ligne-reference__montant { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-reference__texte { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ bloc départ / arrivée, suggestions */
.trajet-bloc { display: flex; margin-top: 12px; border: 2px solid var(--couleur-texte); border-radius: var(--rayon-12); padding: 0 4px 0 12px; background: var(--couleur-fond); }
.trajet-bloc__fil { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 12px; padding: 18px 0; margin-right: 10px; }
.fil__disque { width: 10px; height: 10px; border-radius: 50%; background: var(--couleur-texte); flex: 0 0 auto; }
.fil__trait { flex: 1; width: 2px; background: var(--couleur-texte); margin: 4px 0; }
.fil__carre { width: 10px; height: 10px; background: var(--couleur-texte); flex: 0 0 auto; }
.trajet-bloc__champs { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trajet-bloc__champ { display: flex; align-items: center; gap: 4px; min-height: 52px; border-bottom: 1px solid var(--couleur-bordure); }
.trajet-bloc__champ:last-child { border-bottom: 0; }
.trajet-bloc__saisie { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 16px; padding: 0; color: var(--couleur-texte); }
.trajet-bloc__saisie::placeholder { color: var(--couleur-texte-2); opacity: 1; }
.trajet-bloc__saisie:focus { outline: none; }
.trajet-bloc__champ:focus-within { box-shadow: inset 0 -2px 0 var(--couleur-accent); }
.trajet-bloc__position { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--rayon-pilule); background: var(--couleur-surface); color: var(--couleur-texte); font-size: 13px; font-weight: 600; white-space: nowrap; }
.trajet-bloc__position .ico { width: 18px; height: 18px; }
.suggestions { margin-top: 4px; }

/* ------------------------------------------------------------------ listes, cartes, bandeaux */
.liste { display: flex; flex-direction: column; }
.ligne-liste { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--couleur-bordure); background: none; color: var(--couleur-texte); text-align: left; text-decoration: none; }
.ligne-liste:last-child { border-bottom: 0; }
.ligne-liste__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ligne-liste__titre { font-size: 16px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-liste__titre--libre { white-space: normal; overflow-wrap: anywhere; }
.ligne-liste__sous { font-size: 13px; line-height: 18px; color: var(--couleur-texte-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-liste__droite { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ligne-liste > .ico { color: var(--couleur-texte-2); }
.carte-bloc { margin-top: 12px; padding: 16px; border-radius: var(--rayon-12); background: var(--couleur-fond); box-shadow: var(--ombre-2); }
.carte-bloc > .titre3:first-child { margin-top: 0; }
.bloc-teinte { margin-top: 16px; padding: 12px 16px; border-radius: var(--rayon-12); background: var(--couleur-accent-fond); color: var(--couleur-texte); font-size: 15px; line-height: 20px; }
.bloc-teinte .titre3 { margin-top: 0; }
.bandeau { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: var(--rayon-12); font-size: 15px; line-height: 20px; margin-top: 12px; }
.bandeau--info { background: var(--couleur-accent-fond); color: var(--couleur-texte); }
.bandeau--erreur { background: var(--couleur-surface); color: var(--couleur-texte); }
.bandeau--erreur > .ico { color: var(--couleur-erreur); }
.bandeau--global { position: sticky; top: 0; z-index: 20; margin: 0; border-radius: 0; background: var(--couleur-surface); color: var(--couleur-texte); border-bottom: 1px solid var(--couleur-bordure); }
.bandeau--global > .ico { color: var(--couleur-erreur); }
.bandeau-course { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 12px; padding: 8px 12px; border: 0; border-radius: var(--rayon-12); background: var(--couleur-accent-fond); color: var(--couleur-texte); font-size: 16px; font-weight: 600; text-align: left; }
.bandeau-course > span { flex: 1; min-width: 0; }
.bandeau-course > .ico { color: var(--couleur-accent); }
.recap { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.recap > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.recap dt { color: var(--couleur-texte-2); font-size: 15px; line-height: 20px; min-width: 0; }
.recap dd { font-variant-numeric: tabular-nums; font-size: 16px; text-align: right; white-space: nowrap; }
.recap .recap--total dt, .recap .recap--total dd { color: var(--couleur-texte); font-weight: 700; font-size: 17px; }
.ligne-cadenas { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--couleur-texte-2); font-size: 15px; line-height: 20px; }
.ligne-cadenas > .ico { color: var(--couleur-succes); }
.liste-radio { margin-top: 4px; }
.ligne-radio { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--couleur-bordure); background: none; color: var(--couleur-texte); text-align: left; }
.ligne-radio > .ico { color: var(--couleur-texte-2); }
.ligne-radio__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-radio__titre { font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.ligne-radio__sous { font-size: 15px; line-height: 20px; color: var(--couleur-texte-2); }
.radio { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; border: 2px solid var(--couleur-texte-2); position: relative; }
[aria-checked="true"] > .radio { border-color: var(--couleur-accent); }
[aria-checked="true"] > .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--couleur-accent); }
.pied-version { margin-top: 24px; text-align: center; color: var(--couleur-texte-2); font-size: 13px; }
.mentions p + p { margin-top: 8px; }
.mentions p { color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; }

/* ------------------------------------------------------------------ frise du trajet */
.frise { display: flex; gap: 12px; margin-top: 12px; }
.frise__fil { display: flex; flex-direction: column; align-items: center; width: 12px; padding: 6px 0; }
.frise__lignes { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.frise__ligne { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.frise__ligne > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frise__droite { color: var(--couleur-texte-2); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.frise__sous { color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; }

/* ------------------------------------------------------------------ feuille basse, voile */
.feuille { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; max-height: 90vh; max-height: 90dvh; z-index: 51; display: flex; flex-direction: column; background: var(--couleur-fond); border-radius: var(--rayon-16) var(--rayon-16) 0 0; box-shadow: var(--ombre-3); animation: montee var(--duree-feuille) cubic-bezier(.2, .8, .2, 1); }
.feuille__poignee { width: 36px; height: 4px; margin: 8px auto 4px; border-radius: 2px; background: var(--couleur-poignee); flex: 0 0 auto; }
.feuille__contenu { flex: 1; min-height: 0; overflow-y: auto; padding: 4px var(--marge) calc(16px + var(--zone-basse)); -webkit-overflow-scrolling: touch; }
.feuille__contenu > .titre2:first-child { margin-top: 8px; }
@keyframes montee { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.voile { position: fixed; inset: 0; z-index: 50; background: var(--couleur-voile); animation: fondu var(--duree-fondu); }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.feuille-actions { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }

/* ------------------------------------------------------------------ attente, chrono, réponses */
.attente-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 8px; }
.attente-tete__textes { flex: 1; min-width: 0; }
.attente-tete .titre1 { margin-top: 0; }
.chrono { position: relative; width: 64px; height: 64px; flex: 0 0 auto; }
.chrono__anneau { width: 64px; height: 64px; transform: rotate(-90deg); }
.chrono__piste { fill: none; stroke: var(--couleur-bordure); stroke-width: 4; }
.chrono__progression { fill: none; stroke: var(--couleur-accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 175.93; transition: stroke-dashoffset 1s linear; }
.chrono__texte { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chrono__libelle { display: block; margin-top: 4px; color: var(--couleur-texte-2); font-size: 12px; line-height: 16px; text-align: center; }
.carte-reponse { margin-top: 12px; padding: 12px 16px; border-radius: var(--rayon-12); background: var(--couleur-fond); box-shadow: var(--ombre-2); animation: fondu var(--duree-fondu); }
.carte-reponse__ligne { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 17px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.carte-reponse--fermee { background: var(--couleur-surface); box-shadow: none; }
.liste-vide { color: var(--couleur-texte-2); font-size: 15px; line-height: 20px; padding: 12px 0; }
.pastille-etat { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--rayon-8); background: var(--couleur-accent-fond); color: var(--couleur-accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pastille-etat--neutre { background: var(--couleur-surface); color: var(--couleur-texte-2); }
.pastille-etat--succes { background: var(--couleur-surface); color: var(--couleur-succes); }

/* ------------------------------------------------------------------ fiche chauffeur, suivi */
.suivi-tete { margin-top: 8px; }
.suivi-tete .titre1 { margin-top: 0; }
.fiche-chauffeur { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.avatar { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; background: var(--couleur-surface); display: flex; align-items: center; justify-content: center; color: var(--couleur-texte); font-weight: 700; font-size: 20px; }
.avatar .ico { width: 32px; height: 32px; color: var(--couleur-texte-2); }
.fiche-chauffeur__colonne { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plaque { display: inline-block; width: max-content; max-width: 100%; padding: 4px 8px; border: 1px solid var(--couleur-texte); border-radius: var(--rayon-8); font-family: var(--police-mono); font-size: 15px; font-weight: 600; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fiche-chauffeur__modele { font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.fiche-chauffeur__nom { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--couleur-texte-2); font-size: 15px; line-height: 20px; }
.fiche-chauffeur__nom .ico { width: 14px; height: 14px; color: var(--couleur-texte); }
.rappel-plaque { margin-top: 12px; padding: 10px 12px; border-radius: var(--rayon-8); background: var(--couleur-accent-fond); font-size: 15px; line-height: 20px; font-weight: 600; }
.actions-pilules { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ étoiles, activité, compte */
.etoiles { display: flex; gap: 4px; margin-top: 8px; }
.etoile { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--couleur-texte-2); display: flex; align-items: center; justify-content: center; }
.etoile .ico { width: 32px; height: 32px; }
.etoile[aria-checked="true"] { color: var(--couleur-accent); }
.bloc-notation { margin-top: 24px; }
.bloc-notation > .titre3:first-child { margin-top: 0; }
.ligne-succes { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--couleur-succes); font-size: 16px; line-height: 22px; font-weight: 600; }
.carte-course { display: block; width: 100%; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: var(--rayon-12); background: var(--couleur-fond); box-shadow: var(--ombre-2); color: var(--couleur-texte); text-align: left; }
.carte-course__tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.carte-course__date { font-size: 15px; font-weight: 600; }
.carte-course__trajet { margin-top: 6px; font-size: 16px; line-height: 22px; overflow-wrap: anywhere; }
.carte-course__prix { margin-top: 4px; color: var(--couleur-texte-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.carte-course .boutons-ligne .btn { min-height: 44px; }
.groupe { margin-top: 24px; }
.groupe__titre { color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.vide { text-align: center; padding: 32px 0 16px; }
.vide > .ico { width: 96px; height: 96px; color: var(--couleur-texte-2); stroke-width: 1; }
.carte-identite { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.carte-identite__textes { flex: 1; min-width: 0; }
.carte-identite__nom { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.carte-identite__sous { color: var(--couleur-texte-2); font-size: 15px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ onglets, toast, squelette */
.onglets { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 430px; z-index: 30; display: flex; min-height: calc(var(--onglets-hauteur) + var(--zone-basse)); padding-bottom: var(--zone-basse); background: var(--couleur-fond); border-top: 1px solid var(--couleur-bordure); }
.onglet { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 0; border: 0; background: none; color: var(--couleur-texte-2); font-size: 12px; line-height: 16px; font-weight: 600; }
.onglet[aria-current="page"] { color: var(--couleur-accent); }
.toast { position: fixed; left: 50%; bottom: calc(var(--onglets-hauteur) + var(--zone-basse) + 16px); transform: translateX(-50%); z-index: 70; width: max-content; max-width: calc(100% - 32px); min-height: 48px; display: flex; align-items: center; padding: 10px 16px; border-radius: var(--rayon-12); background: var(--couleur-texte); color: var(--couleur-fond); font-size: 15px; line-height: 20px; font-weight: 600; box-shadow: var(--ombre-2); animation: fondu var(--duree-fondu); }
.toast--haut { bottom: auto; top: calc(var(--zone-haute) + 72px); }
.squelette { border-radius: var(--rayon-8); background: var(--couleur-surface); animation: scintiller 1.2s ease-in-out infinite; margin-top: 12px; }
.squelette--titre { height: 34px; width: 60%; margin-top: 32px; }
.squelette--ligne { height: 48px; }
@keyframes scintiller { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ------------------------------------------------------------------ pages sans script (paiement) */
.page-statique .app { padding: 24px 0; }
.page-statique__corps { padding-top: 24px; }
.page-statique__pied { padding: 0 var(--marge) 24px; }

/* ------------------------------------------------------------------ mouvement réduit : toutes transitions à 0 ms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .chrono__anneau { display: none; }
  .chrono { height: auto; }
  .chrono__texte { position: static; min-height: 44px; font-size: 22px; }
  .squelette { animation: none; }
}

/* ------------------------------------------------------------------ marque (lot CW, 08/11/2026) */
/* Titres en nuit (clair) ou blanc (nuit) ; fond d'écran en dégradé premium en nuit (uni en clair). */
.app { background-image: var(--fond-degrade); }
.titre1, .titre2, .titre3, .entete__titre { color: var(--couleur-titre); }
/* Bandeau de marque (connexion, accueil) : logo horizontal (marque et slogan en tracés) sur sa plaque en aplat de son propre bleu
   nuit #0E1A3A, 4 px autour du fichier, coins de la plaque arrondis à 16 px, filet bleu lumière à 32 % ; jamais rogné, ombré ni
   recoloré ; dégradé premium derrière (clair) ou halo limité au bandeau (nuit). La pastille « Démonstration » a sa propre ligne. */
.entete--marque { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 12px var(--marge) 8px; background-color: transparent; background-image: var(--degrade-marque); color: #FFFFFF; }
.entete--marque__ligne { display: flex; justify-content: flex-end; }
.entete--marque__ligne:empty { display: none; }
.plaque-logo { display: block; width: min(100%, 312px); margin: 0 auto; padding: 4px; border-radius: var(--rayon-16); background: var(--couleur-logo-fond); box-shadow: 0 0 0 1px rgba(91, 124, 157, 0.32); }
.logo-marque { display: block; width: 100%; height: auto; }
.entete--marque + .contenu { padding-top: 16px; }

/* Lot CW4a (08/11/2026) : accueil à services de « Demander », repris du prototype. Champ en pilule (bouton principal et puce
   « Maintenant » côte à côte : deux boutons, jamais l'un dans l'autre), tuiles sur la surface, mêmes jetons en clair et en nuit. */
.champ-pilule { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 12px; padding: 4px 8px 4px 4px; border-radius: var(--rayon-pilule); background: var(--couleur-surface); }
.champ-pilule__principal { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 8px 0 12px; border: 0; border-radius: var(--rayon-pilule); background: transparent; color: var(--couleur-texte); font: inherit; text-align: left; }
.champ-pilule__fantome { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.puce-menu--integree { flex: 0 0 auto; max-width: 62%; min-width: 0; min-height: 44px; padding: 0 8px 0 12px; background: var(--couleur-fond); }
.champ-pilule .puce-menu--integree[aria-pressed="true"] { background: var(--couleur-fond); color: var(--couleur-accent); box-shadow: inset 0 0 0 2px var(--couleur-accent); }
.puce-menu__texte { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gouttiere); }
.tuile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 108px; padding: 24px 8px 12px; border: 0; border-radius: var(--rayon-12); background: var(--couleur-surface); color: var(--couleur-texte); font: inherit; font-size: 15px; font-weight: 600; }
.tuile > span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.tuile__icone { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tuile:active { box-shadow: inset 0 0 0 2px var(--couleur-accent); }
.demander-retour { display: flex; margin: 4px 0 -4px -10px; }
@media (max-width: 340px) {
  .champ-pilule__principal { gap: 8px; padding-left: 8px; }
  .champ-pilule__fantome { font-size: 16px; }
  .puce-menu--integree { gap: 4px; padding: 0 4px 0 8px; font-size: 14px; }
  .tuile { padding: 20px 4px 12px; font-size: 14px; }
}

/* Lot CW5a (09/11/2026) : hôtels partenaires sur l'accueil de « Demander », repris du prototype (section E1) : carte à tête
   (icône d'immeuble, titre, aide), code et « Valider » sur une ligne, carte de l'hôtel choisi cernée de l'accent ; mêmes jetons
   en clair et en nuit. */
.carte-bloc__tete { display: flex; gap: 12px; align-items: flex-start; }
.carte-bloc__tete > .ico { color: var(--couleur-accent); }
.carte-bloc__texte { flex: 1 1 auto; min-width: 0; }
.carte-bloc__tete .titre3 { margin-top: 0; overflow-wrap: anywhere; }
.carte-bloc__tete .texte-2 { margin-top: 4px; overflow-wrap: anywhere; }
.carte-bloc--choisie { outline: 2px solid var(--couleur-accent); outline-offset: -2px; }
.carte-bloc__actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.ligne-formulaire { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.ligne-formulaire .champ { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.ligne-formulaire .btn { flex: 0 0 auto; width: auto; min-height: 48px; margin-top: 0; padding: 0 16px; }
.champ__saisie--code { text-transform: uppercase; letter-spacing: 0.04em; }
.champ__saisie--code::placeholder { text-transform: none; }

/* Lot DF (09/11/2026) : carte du suivi (prototype, écran E6b), de l'acceptation à l'arrivée. Tuiles de 256 px posées par le script
   (element.style), calque SVG (trait pointillé droit, point de départ, carré d'arrivée comme la frise, voiture), mention de source
   en bas à droite, âge de la position sous la carte. Jetons clair et nuit : en nuit, les tuiles sont assombries par un filtre ;
   repères en or. La voiture glisse en une seconde, jamais sous mouvement réduit. */
:root {
  --carte-fond: #EEF0F3;
  --carte-filtre: none;
  --carte-trait: #2A3652;
  --carte-depart: #244890;
  --carte-arrivee: #081831;
  --carte-repere-bord: #FFFFFF;
  --carte-voiture-fond: #081831;
  --carte-voiture-ico: #FFFFFF;
  --carte-voiture-halo: rgba(36, 72, 144, 0.24);
  --carte-source-fond: rgba(255, 255, 255, 0.88);
  --carte-source-texte: #2A3652;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --carte-fond: #05142D;
    --carte-filtre: invert(0.92) hue-rotate(180deg) saturate(0.5) brightness(0.85);
    --carte-trait: #F4C465;
    --carte-depart: #F4C465;
    --carte-arrivee: #F7F5F2;
    --carte-repere-bord: #081831;
    --carte-voiture-fond: #F4C465;
    --carte-voiture-ico: #081831;
    --carte-voiture-halo: rgba(244, 196, 101, 0.28);
    --carte-source-fond: rgba(8, 24, 49, 0.88);
    --carte-source-texte: #F7F5F2;
  }
}
:root[data-theme="dark"] {
  --carte-fond: #05142D;
  --carte-filtre: invert(0.92) hue-rotate(180deg) saturate(0.5) brightness(0.85);
  --carte-trait: #F4C465;
  --carte-depart: #F4C465;
  --carte-arrivee: #F7F5F2;
  --carte-repere-bord: #081831;
  --carte-voiture-fond: #F4C465;
  --carte-voiture-ico: #081831;
  --carte-voiture-halo: rgba(244, 196, 101, 0.28);
  --carte-source-fond: rgba(8, 24, 49, 0.88);
  --carte-source-texte: #F7F5F2;
}
.carte-suivi-zone:empty { display: none; }
.carte-suivi { position: relative; height: 240px; margin-top: 16px; border-radius: var(--rayon-12); overflow: hidden; background: var(--carte-fond); box-shadow: var(--ombre-2); isolation: isolate; }
.carte-suivi__tuiles { position: absolute; inset: 0; filter: var(--carte-filtre); }
.carte-suivi__tuile { position: absolute; display: block; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.carte-suivi__dessus { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.carte-suivi__trait { fill: none; stroke: var(--carte-trait); stroke-width: 2.5; stroke-dasharray: 6 6; stroke-linecap: round; }
.carte-suivi__depart { fill: var(--carte-depart); stroke: var(--carte-repere-bord); stroke-width: 3; }
.carte-suivi__arrivee { fill: var(--carte-arrivee); stroke: var(--carte-repere-bord); stroke-width: 3; }
.carte-suivi__voiture { transition: transform 1s ease-in-out; }
.carte-suivi__voiture-halo { fill: var(--carte-voiture-halo); }
.carte-suivi__voiture-fond { fill: var(--carte-voiture-fond); stroke: var(--carte-repere-bord); stroke-width: 2; }
.carte-suivi__voiture-ico { fill: none; stroke: var(--carte-voiture-ico); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.carte-suivi__source { position: absolute; right: 0; bottom: 0; padding: 2px 8px; border-top-left-radius: var(--rayon-8); background: var(--carte-source-fond); color: var(--carte-source-texte); font-size: 12px; line-height: 18px; }
.carte-suivi__maj { margin-top: 6px; color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.carte-suivi__attente { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; padding: 12px 16px; border-radius: var(--rayon-12); background: var(--couleur-surface); color: var(--couleur-texte); font-size: 15px; line-height: 1.4; }
.carte-suivi__attente > .ico { color: var(--couleur-accent); }
@media (prefers-reduced-motion: reduce) { .carte-suivi__voiture { transition: none; } }

/* Lot DH (09/11/2026) : écran de suivi refait sur les références du dirigeant (disposition et composants ; marque, textes et
   illustrations de la référence jamais repris). Carte plein écran en haut (63 % de la hauteur, de 300 à 600 px), bouton rond
   « Compte » (56 px), boutons flottants (48 px, espacés de 12 px), feuille du bas qui recouvre la carte (coins de 16 px, poignée
   de 36 × 4 px, titre centré de 28 px), carte des détails (bordure fine, rayon de 16 px), bouton « … » (48 px, rayon de 12 px).
   Uniquement les jetons de l'application ; tuiles désaturées en clair, assombries en nuit. */
:root { --carte-filtre-suivi: saturate(0.25) brightness(1.03); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --carte-filtre-suivi: var(--carte-filtre); } }
:root[data-theme="dark"] { --carte-filtre-suivi: var(--carte-filtre); }
.ecran--suivi { padding-top: 0; }
.suivi { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 100vh; min-height: 100dvh; }
.suivi-carte { position: relative; flex: 0 0 auto; height: 63vh; height: clamp(300px, 63dvh, 600px); overflow: hidden; background: var(--carte-fond); touch-action: none; user-select: none; -webkit-user-select: none; }
.suivi-carte .carte-suivi { position: absolute; inset: 0; height: auto; margin: 0; border-radius: 0; box-shadow: none; }
.suivi-carte .carte-suivi__tuiles { filter: var(--carte-filtre-suivi); }
.carte-suivi__monde { position: absolute; inset: 0; }
.suivi-carte .carte-suivi__source { left: 0; right: auto; bottom: 18px; border-radius: 0 var(--rayon-8) var(--rayon-8) 0; }   /* à gauche : jamais sous les boutons flottants */
.suivi-carte__attente { position: absolute; left: var(--marge); right: var(--marge); top: 40%; margin: 0; background: var(--couleur-fond); box-shadow: var(--ombre-2); }
.carte-suivi__itineraire { fill: none; stroke: var(--couleur-accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.carte-voiture__corps { fill: var(--couleur-bouton); stroke: var(--couleur-fond); stroke-width: 1.5; }
.carte-voiture__vitre { fill: none; stroke: var(--couleur-sur-bouton); stroke-width: 1.5; stroke-linejoin: round; }
.carte-voiture__phare { fill: var(--couleur-sur-bouton); }
.carte-etiquette { position: absolute; transform: translate(-50%, -100%); padding: 4px 8px; border-radius: var(--rayon-8); background: var(--couleur-fond); color: var(--couleur-titre); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; box-shadow: var(--ombre-2); pointer-events: none; }
.carte-etiquette--distance { transform: translate(0, -50%); font-variant-numeric: tabular-nums; }
.suivi-compte { position: absolute; z-index: 3; top: calc(var(--zone-haute) + 12px); right: var(--marge); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: var(--couleur-fond); color: var(--couleur-titre); box-shadow: var(--ombre-2); font-size: 22px; font-weight: 700; }
.suivi-demo { position: absolute; z-index: 3; top: calc(var(--zone-haute) + 28px); left: var(--marge); }
.suivi-flottants { position: absolute; z-index: 3; right: var(--marge); top: calc(min(63vh, 600px) - 140px); top: calc(clamp(300px, 63dvh, 600px) - 140px); display: flex; flex-direction: column; gap: 12px; }
.suivi-rond { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--couleur-fond); color: var(--couleur-texte); box-shadow: var(--ombre-2); }
.suivi-feuille { position: relative; z-index: 2; flex: 1 1 auto; margin-top: -16px; padding: 0 var(--marge) calc(24px + var(--zone-basse)); border-radius: var(--rayon-16) var(--rayon-16) 0 0; background: var(--couleur-fond); box-shadow: var(--ombre-3); }
.suivi--sans-carte .suivi-feuille { margin-top: calc(var(--zone-haute) + 80px); box-shadow: none; }
.suivi--sans-carte .suivi-feuille__poignee { visibility: hidden; }   /* feuille seule : rien à faire glisser */
.suivi-feuille__poignee { width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--couleur-poignee); }
.suivi-feuille__titre { margin: 12px 0 0; text-align: center; color: var(--couleur-titre); font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; text-wrap: balance; }
.suivi-feuille__titre--ligne { white-space: nowrap; text-wrap: nowrap; }   /* 375 px et plus : une ligne (taille ajustée par le script) */
.suivi-details { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--couleur-bordure); border-radius: var(--rayon-16); }
.suivi-details__texte { flex: 1 1 auto; min-width: 0; }
.suivi-details__etiquette { color: var(--couleur-texte-2); font-size: 13px; line-height: 18px; }
.suivi-details__principal { margin-top: 4px; color: var(--couleur-titre); font-size: 16px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }
.suivi-details__secondaire { margin-top: 4px; color: var(--couleur-texte-2); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.suivi-details__plus { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; padding: 0 0 8px; border: 0; border-radius: var(--rayon-12); background: var(--couleur-surface); color: var(--couleur-texte); font-size: 24px; line-height: 1; font-weight: 700; }
.suivi-chauffeur { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.suivi-chauffeur .avatar { width: 48px; height: 48px; font-size: 20px; }
.suivi-chauffeur__texte { flex: 1 1 auto; min-width: 0; }
.suivi-chauffeur__vehicule { color: var(--couleur-texte-2); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.suivi-chauffeur__nom { color: var(--couleur-texte); font-size: 16px; line-height: 22px; font-weight: 600; }
.suivi-chauffeur__nom .ico--note { width: 16px; height: 16px; vertical-align: -2px; }
.suivi-chauffeur__plaque { flex: 0 0 auto; color: var(--couleur-titre); font-family: var(--police-mono); font-size: 17px; font-weight: 700; white-space: nowrap; }
.suivi-appel { gap: 8px; }   /* feuille « Sécurité » : espace entre l'icône et « Appeler le 112 » */
.suivi-prix { margin-top: 16px; color: var(--couleur-texte-2); font-size: 15px; line-height: 20px; font-variant-numeric: tabular-nums; }
@media (max-width: 340px) { .suivi-feuille__titre { font-size: 24px; line-height: 30px; } .suivi-chauffeur__plaque { font-size: 15px; } }

/* Lot DH2 (10/11/2026) : âge de la position (au-delà de 20 s), étiquette discrète au-dessus de « © IGN », mêmes jetons. */
.suivi-carte .carte-suivi__source.carte-suivi__age { bottom: 42px; font-variant-numeric: tabular-nums; }
