/* L'Argus Flotte Auto — application conducteur V2.
   Jetons et composants repris de la maquette du 25/09 (APP CONDUCTEUR, cartes et pack securite).
   Police du telephone (decision du 26/09), mobile d'abord, 430 px de large au plus. */

:root {
    --bg: #f4f4f6;
    --panel: #fff;
    --panel-alt: #fbfbfc;
    --text: #15151a;
    --muted: #6b6b74;
    --muted-2: #94949c;
    --line: #e7e7eb;
    --line-soft: #eeeef1;
    --argus: #a6192e;
    --argus-dark: #88131f;
    --good: #178a56;
    --good-bg: #eaf9f1;
    --warn: #b4600a;
    --warn-bg: #fff6e9;
    --bad: #d5271f;
    --bad-bg: #fdecec;
    --action: #4a4a52;
    --action-bg: #f1f1f3;
    --ease: cubic-bezier(.2, .7, .3, 1);
    --spring: cubic-bezier(.32, 1.25, .5, 1);
    --dur-fast: 120ms;
    --dur-base: 180ms;
    --dur-slow: 260ms;
    --shadow-card: 0 1px 2px rgba(15, 15, 20, .04), 0 10px 30px -18px rgba(15, 15, 20, .18);
    --shadow-lift: 0 14px 32px -14px rgba(15, 15, 20, .16), 0 2px 6px rgba(15, 15, 20, .05);
    --r-lg: 20px;
    --r-md: 16px;
    --r: 8px;
    --gutter: 20px;
    --tabs-h: 68px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --app-w: 430px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}
@media (min-width: 480px) { body { background: #e9e9ec; } }
button { font: inherit; color: inherit; margin: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.ic {
    width: 22px; height: 22px; flex: 0 0 auto; display: block;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic.plein { fill: currentColor; stroke: none; }

/* ---- Cadre ---- */
.app { max-width: var(--app-w); margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }
.screen { padding: 0 var(--gutter) calc(var(--tabs-h) + var(--safe-b) + 34px); }
body:has(.dock-act) .screen { padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 98px); }
.build {
    position: absolute; top: 4px; right: 8px; z-index: 70;
    font-size: 9px; line-height: 1.25; text-align: right; color: var(--muted-2);
    pointer-events: none;
}

/* Apparition des blocs, l'un apres l'autre (maquette : .in). */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.in { animation: rise var(--dur-slow) var(--ease) both; }
.in:nth-child(3) { animation-delay: 50ms; }
.in:nth-child(4) { animation-delay: 100ms; }
.in:nth-child(5) { animation-delay: 150ms; }
.in:nth-child(6) { animation-delay: 200ms; }
.in:nth-child(n+7) { animation-delay: 250ms; }
@media (prefers-reduced-motion: reduce) { .in { animation: none; } }

.press { transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.press:active { transform: scale(.98); }

/* ---- En-tete ---- */
.top { display: flex; align-items: center; gap: 12px; padding: 18px 0 2px; }
.hello { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0; flex: 1; min-width: 0; }
.back {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r);
    background: var(--panel); border: 1px solid var(--line-soft); box-shadow: var(--shadow-card); flex: 0 0 auto;
}
.back .ic { width: 20px; height: 20px; }
.lead { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---- Hors ligne ---- */
.offbar {
    display: flex; align-items: center; gap: 10px; padding: 11px 15px; margin-top: 12px;
    background: var(--text); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; border-radius: var(--r-md);
}
.offbar[hidden] { display: none; }
.offbar .ic { width: 18px; height: 18px; flex: 0 0 18px; }
.offbar b { font-weight: 800; }

/* ---- Sections, cartes, lignes ---- */
.sec { margin-top: 24px; }
.sec-t { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.card { border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-card); overflow: hidden; margin-top: 10px; }
.sec-t + .card { margin-top: 0; }
.note { color: var(--muted); font-size: 13px; margin: 10px 4px 0; line-height: 1.45; }

.veh-row, .veh-info {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    padding: 12px 20px; min-height: 48px; border: 0; border-top: 1px solid var(--line-soft);
    background: transparent; color: inherit; font-size: 14px; font-weight: 600; position: relative;
}
.card > :first-child { border-top: 0; }
.veh-row .ic, .veh-info .ic { width: 18px; height: 18px; color: var(--muted); }
.veh-row > span:not(.chev):not(.pill), .veh-info > span:not(.pill) { flex: 1; min-width: 0; }
.veh-row small, .veh-info small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.veh-row .chev { color: var(--muted-2); }
.veh-row:hover { background: var(--panel-alt); }
.veh-row.na { opacity: .45; pointer-events: none; }

.pill {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; flex: 0 0 auto;
    background: var(--action-bg); color: var(--action);
    font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }

/* Etat vide, et echec d'une section (meme gabarit : une pastille et un titre). */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 24px 28px; }
.empty-ic {
    width: 46px; height: 46px; border-radius: 50%; background: var(--action-bg); color: var(--muted-2);
    display: grid; place-items: center; margin-bottom: 16px;
}
.empty-ic .ic { width: 23px; height: 23px; }
.empty-ic.echec { background: var(--warn-bg); color: var(--warn); }
.empty-t { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.empty-s { color: var(--muted); font-size: 14px; margin: 8px 0 0; line-height: 1.45; }

/* Messages en tete d'ecran. */
.msg { margin-top: 14px; padding: 12px 15px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; line-height: 1.4; }
.msg-info { background: var(--action-bg); color: var(--action); }
.msg-good { background: var(--good-bg); color: var(--good); }
.msg-warn { background: var(--warn-bg); color: var(--warn); }
.msg-bad { background: var(--bad-bg); color: var(--bad); }

/* ---- Action principale (au-dessus des onglets) ---- */
.dock-act {
    position: fixed; bottom: calc(90px + var(--safe-b)); left: 14px; right: 14px; z-index: 60;
    max-width: calc(var(--app-w) - 28px); margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px;
    border: 0; border-radius: 999px; background: var(--text); color: #fff;
    font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}
.dock-act:hover { background: #000; }

/* ---- Formulaires ---- */
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
}
.field .check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.field .check input { width: 20px; height: 20px; }
.help { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.btn {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 22px;
    border: 0; border-radius: 999px; background: var(--text); color: #fff; font-size: 16px; font-weight: 700;
}
.btn:hover { background: #000; }

/* ---- Barre d'onglets ---- */
.tabbar {
    position: fixed; bottom: calc(10px + var(--safe-b)); left: 14px; right: 14px; z-index: 60;
    max-width: calc(var(--app-w) - 28px); margin: 0 auto; display: flex; padding: 6px 4px;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-soft); border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(15, 15, 20, .22), 0 2px 6px rgba(15, 15, 20, .05);
}
.tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px;
    padding: 0 2px; border-radius: 8px; position: relative; color: var(--muted); font-size: 11px; font-weight: 600;
    transition: color var(--dur-fast) var(--ease);
}
.tab .pel {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 14px; border-radius: 999px;
    transition: background var(--dur-fast) var(--ease);
}
.tab .ic { width: 21px; height: 21px; transition: transform var(--dur-fast) var(--spring); }
.tab:active .ic { transform: scale(.9); }
.tab-l { font-size: 10.5px; line-height: 1.15; }
.tab .plein { display: none; }
.tab[aria-current="page"] { color: var(--text); font-weight: 700; }
.tab[aria-current="page"] .trait { display: none; }
.tab[aria-current="page"] .plein { display: block; }
.tab[aria-current="page"] .pel { background: var(--action-bg); }
.tab-aide[aria-current="page"] .pel { background: var(--argus); color: #fff; }
.tab-n {
    position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; padding: 0 5px;
    border-radius: 999px; background: var(--text); color: #fff; font-size: 10.5px; font-weight: 800;
    display: grid; place-items: center; font-variant-numeric: tabular-nums;
}

/* ---- Vignette de fin de geste ---- */
.okv {
    position: fixed; inset: 0; z-index: 400; background: var(--panel);
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 40px;
    text-align: center; opacity: 0; transition: opacity var(--dur-slow) var(--ease);
}
.okv[hidden] { display: none; }
.okv.go { opacity: 1; }
.okv-c {
    width: 88px; height: 88px; border-radius: 50%; background: var(--text); display: grid; place-items: center;
    transform: scale(.72); opacity: 0; transition: transform 440ms var(--spring), opacity 200ms var(--ease);
}
.okv-k { width: 46px; height: 46px; }
.okv-k path {
    stroke: #fff; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 36; stroke-dashoffset: 36; transition: stroke-dashoffset 420ms var(--ease) 220ms;
}
.okv-t {
    font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 24px; opacity: 0; transform: translateY(9px);
    transition: opacity 260ms var(--ease) 340ms, transform 260ms var(--ease) 340ms;
}
.okv-s {
    font-size: 15px; color: var(--muted); margin-top: 8px; line-height: 1.45; opacity: 0; transform: translateY(9px);
    transition: opacity 260ms var(--ease) 420ms, transform 260ms var(--ease) 420ms;
}
.okv.go .okv-c { transform: none; opacity: 1; }
.okv.go .okv-k path { stroke-dashoffset: 0; }
.okv.go .okv-t, .okv.go .okv-s { opacity: 1; transform: none; }

/* ---- Gabarit d'attente ---- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.sk { display: block; background: var(--line); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite; }
.skrow { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.skrow:first-child { border-top: 0; }
.sk-card { margin-top: 24px; }

/* ---- Activation (enrolement) ---- */
.enrol h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 18px 0 10px; }
.enrol p { color: var(--muted); }
.enrol label { display: block; margin: 16px 0 6px; font-weight: 700; font-size: 14px; }
.enrol input {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel);
}
.enrol .muted { font-size: 14px; margin-top: 18px; }
.enrol .muted a { text-decoration: underline; }

/* ---- Premiere ouverture (maquette, ouverture/*) ----
   Une etape : un filet, un titre, une ligne, un contenu, toujours a la meme hauteur, toujours centres.
   Plein ecran : la barre d'onglets n'a rien a faire dans un parcours dont on ne sort pas. */
.ouv-page {
    position: fixed; inset: 0; z-index: 50; max-width: var(--app-w); margin: 0 auto; overflow-y: auto;
    padding: 0 var(--gutter) 156px;
    background: linear-gradient(180deg, rgba(21, 21, 26, 0) 38%, rgba(21, 21, 26, .10) 100%),
                linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
body:has(.ouv-page) .dock-act { bottom: calc(80px + var(--safe-b)); left: var(--gutter); right: var(--gutter);
    max-width: calc(var(--app-w) - var(--gutter) * 2); }
.ouv-filet { height: 3px; border-radius: 999px; background: var(--line); margin: 16px 0 0; overflow: hidden; }
.ouv-filet i { display: block; height: 100%; border-radius: 999px; background: var(--text); transition: width var(--dur-slow) var(--ease); }
.ouv-filet.vide { background: transparent; }
.ouv-tete { margin-top: clamp(48px, 17vh, 181px); text-align: center; }
.ouv-h1 { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.16; max-width: 330px; margin: 0 auto; text-wrap: balance; }
.ouv-sous { margin: 10px auto 0; max-width: 300px; font-size: 14.5px; line-height: 1.45; color: var(--muted); text-wrap: balance; }
.ouv-bloc { margin-top: 26px; text-align: center; }
.ouv-bas {
    position: fixed; z-index: 55; left: 0; right: 0; max-width: var(--app-w); margin: 0 auto; padding: 0 var(--gutter);
    bottom: calc(24px + var(--safe-b)); min-height: 38px; display: flex; align-items: flex-start; justify-content: center;
    font-size: 12.5px; line-height: 1.5; color: var(--muted-2); text-align: center;
}
.ouv-bas a { color: var(--text); font-weight: 600; text-decoration: underline; }
.ouv-erreur { margin: 18px auto 0; max-width: 320px; text-align: left; }

/* Bienvenue : la route, le logo, rien d'autre. */
.ouv-page.ouv-noir { background: var(--text); padding: 0; }
.ouv-fond { position: absolute; inset: 0; overflow: hidden; }
.ouv-fond img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ouv-voile { position: absolute; inset: 0; background: rgba(15, 15, 20, .5); }
.ouv-bienv { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 100%; padding: 0 32px 150px; }
.ouv-logo { width: 210px; max-width: 62%; height: auto; display: block; }
body:has(.ouv-noir) .dock-act { background: var(--panel); color: var(--text); }
body:has(.ouv-noir) .dock-act:hover { background: #fff; }
body:has(.ouv-noir) .ouv-bas { color: rgba(255, 255, 255, .66); }
body:has(.ouv-noir) .ouv-bas a { color: #fff; }
body:has(.ouv-noir) .build { color: rgba(255, 255, 255, .5); }

/* Code d'invitation : six cases remplies par un champ cache, le clavier du telephone ecrit. */
.ouv-cases { display: flex; gap: 9px; width: 100%; border: 0; background: transparent; padding: 0; cursor: text; }
.ouv-case {
    flex: 1; min-width: 0; height: 58px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
    display: grid; place-items: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.ouv-case.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.ouv-cache { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.ouv-champ { margin-top: 22px; text-align: left; }
.ouv-champ label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.ouv-champ small { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); }
.ouv-saisie {
    display: block; width: 100%; height: 58px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 15px;
    background: var(--panel); font: inherit; color: inherit; font-size: 16px; font-weight: 600;
}
.ouv-saisie:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }

/* Permis : deux vues cote a cote. */
.ouv-deux { display: flex; gap: 12px; }
.ouv-deux form { flex: 1; min-width: 0; margin: 0; }
.ouv-vue {
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; height: 132px;
    border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--muted-2);
    box-shadow: var(--shadow-card); cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.ouv-vue .ic { width: 26px; height: 26px; }
.ouv-vue b { font-size: 15px; font-weight: 700; color: var(--text); }
.ouv-vue small { font-size: 12.5px; color: var(--muted-2); }
.ouv-vue.fait { border-color: var(--good); color: var(--good); }
.ouv-vue.fait small { color: var(--good); }
.ouv-vue.envoi { opacity: .6; pointer-events: none; }

/* « C'est bien vous ? » : une carte, quatre lignes. */
.ouv-carte { border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.ouv-ligne { padding: 15px 20px; border-top: 1px solid var(--line-soft); }
.ouv-ligne:first-child { border-top: 0; }
.ouv-ligne b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ouv-ligne small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Les ecrans de choix (feuille) : une porte en haut a gauche, le titre au meme axe. */
.ouv-feuille { position: relative; margin-top: 14px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.ouv-porte { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 999px; background: var(--action-bg);
    color: var(--text); display: grid; place-items: center; }
.ouv-porte .ic { width: 18px; height: 18px; }
.ouv-h2 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-align: center; max-width: 286px; margin: 0 auto; }
.ouv-relu { text-align: left; margin-top: 18px; }
.ouv-relu label.veh-row { align-items: flex-start; cursor: pointer; }
.ouv-relu input { position: absolute; opacity: 0; pointer-events: none; }
.ouv-relu .radio {
    flex: 0 0 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
    box-shadow: 0 0 0 1.5px var(--line) inset; color: transparent;
}
.ouv-relu input:checked ~ .radio { background: var(--text); box-shadow: none; color: #fff; }
.ouv-relu .radio .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.ouv-mot {
    display: block; width: 100%; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 15px;
    background: var(--panel); font: inherit; font-size: 15px; line-height: 1.45; color: inherit; resize: none;
}

/* Charte : le corps reste aligne a gauche, on ne centre pas sept paragraphes de droit. */
.ouv-charte { padding: 14px 0; }
.ouv-corps { max-height: 314px; overflow: auto; -webkit-overflow-scrolling: touch; text-align: left; padding: 0 20px;
    overscroll-behavior: contain; font-size: 14px; line-height: 1.5; }
.ouv-corps p { margin: 0 0 12px; }
.ouv-corps p:last-child { margin-bottom: 0; }

/* Autorisations : une par une, les pions disent ou l'on en est. */
.ouv-trio { display: flex; justify-content: center; gap: 14px; }
.ouv-pion { width: 66px; height: 66px; border-radius: 999px; background: var(--action-bg); color: var(--muted-2);
    display: grid; place-items: center; transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease); }
.ouv-pion .ic { width: 26px; height: 26px; }
.ouv-pion.vif { background: var(--text); color: #fff; }
.ouv-pion.fait { background: var(--good-bg); color: var(--good); }
.ouv-pion.refus { background: var(--warn-bg); color: var(--warn); }

/* Fin : le sceau, la voiture. */
.ouv-sceau { width: 78px; height: 78px; margin: 0 auto; border-radius: 999px; background: var(--good-bg); color: var(--good);
    display: grid; place-items: center; }
.ouv-sceau .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.ouv-cle { margin-top: 24px; }
.ouv-cle-n { margin-top: 11px; font-size: 15px; font-weight: 700; }

/* Plaque d'immatriculation (maquette). */
.plate { display: inline-flex; align-items: stretch; height: 34px; border: 1px solid #15151a; border-radius: 3px; overflow: hidden;
    background: #fff; color: #15151a; box-shadow: 0 1px 2px rgba(15, 15, 20, .06); }
.plate i { width: 15px; flex: 0 0 15px; background: var(--text); display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 1px; font-style: normal; padding: 3px 0; }
.plate i svg { width: 10px; height: 10px; display: block; }
.plate i em { font-style: normal; font-size: 7px; font-weight: 700; color: #fff; line-height: 1; }
.plate b { display: grid; place-items: center; padding: 0 9px; font-size: 19px; font-weight: 700; letter-spacing: .02em;
    font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Accueil contextuel (lot 2.1) : la carte du vehicule du moment, l'encart au-dessus, les tuiles.
   Repris de la maquette du 19/09 ; sans photo du vehicule tant que le parc n'en a pas. */
.num { font-variant-numeric: tabular-nums; }
.veh {
    display: block; width: 100%; border-radius: var(--r-lg); background: var(--panel);
    box-shadow: var(--shadow-card); position: relative; overflow: hidden; margin-top: 10px;
}
.veh-main { display: block; width: 100%; padding: 20px; position: relative; color: inherit; }
.veh-model { font-size: 17px; font-weight: 600; margin-top: 14px; }
.big { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 4px; }
.big small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.state {
    display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; margin-bottom: 12px;
    background: var(--action-bg); color: var(--action); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.veh.off { background: var(--panel-alt); box-shadow: none; border: 1px solid var(--line); }
.veh.off .plate { opacity: .42; }
.veh.off .veh-model { color: var(--muted); }
.veh.off .veh-row, .veh.off .veh-info { border-top-color: var(--line); }

/* La frise d'une periode : debut a gauche, fin a droite, le remplissage dit ou l'on en est. */
.tl {
    display: flex; align-items: flex-end; gap: 12px; margin-top: 18px;
    font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2);
}
.tl b { display: block; font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.01em; text-transform: none; margin-bottom: 1px; }
.tl span { flex: 0 0 auto; }
.tl span + span { text-align: right; }
.tl i { flex: 1; height: 3px; background: var(--line); border-radius: 999px; position: relative; font-style: normal; margin-bottom: 6px; }
.tl i em { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text); border-radius: 999px; font-style: normal; }
.tl i em:after {
    content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%;
    background: var(--text); border: 2px solid var(--panel); box-sizing: content-box;
}
.tl.late i em, .tl.late i em:after { background: var(--argus); }

/* L'encart au-dessus de la carte : le pret, la reservation, le permis a photographier. */
.pret {
    display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 18px; margin-top: 12px;
    border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-card); color: inherit;
}
.pret-ic { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--action-bg); color: var(--text); display: grid; place-items: center; }
.pret-ic .ic { width: 20px; height: 20px; }
.pret-b { flex: 1; min-width: 0; }
.pret-e { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); }
.pret-t { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.pret .chev { color: var(--muted-2); }
.pret.tard .pret-ic { background: var(--bad-bg); color: var(--argus); }

/* Les tuiles de l'Aide : l'urgence en rouge, le signalement en sombre. */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: stretch; }
.tile {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; padding: 16px;
    border-radius: var(--r-md); background: var(--panel); box-shadow: var(--shadow-card); min-height: 112px; color: inherit;
}
.tile.large { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; gap: 16px; }
.tile-ic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--action-bg); display: grid; place-items: center; color: var(--text); }
.tile-ic.bad { background: var(--bad-bg); color: var(--argus); }
.tile-t { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.tile-s { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.tile:has(.tile-ic.bad) { background: var(--argus); box-shadow: 0 14px 32px -14px rgba(166, 25, 46, .55); }
.tile:has(.tile-ic.bad) .tile-ic, .tile.sombre .tile-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.tile:has(.tile-ic.bad) .tile-t, .tile.sombre .tile-t { color: #fff; }
.tile:has(.tile-ic.bad) .tile-s, .tile.sombre .tile-s { color: rgba(255, 255, 255, .82); }
.tile.sombre { background: var(--text); box-shadow: 0 14px 32px -14px rgba(15, 15, 20, .5); }

/* « Me le rappeler plus tard » : le geste secondaire, en bas d'ecran, ecrit comme les liens de l'ouverture. */
.plus-tard { border: 0; background: transparent; padding: 4px 8px; font: inherit; font-size: 14px; font-weight: 600;
    color: var(--text); text-decoration: underline; cursor: pointer; }
.ouv-bloc .note { text-align: center; margin-top: 16px; }
