/* ============================================================
   lv-divers.css — habillage « Livrée course » des pages « divers » (24/10/2026) : mentions légales & CGV, politique de
   confidentialité, page 404, roue de la fortune, analyseur de datalog, CartoGrip (module et option), et les pages rendues
   par le serveur (désabonnement, offre, avis, retour d'essai, vérification…, lib/pageLivree.js).
   Chargée par ces pages seulement, après style.css. Jetons : ceux de l'accueil (body.lv-page, style.css) ; classes à part
   (lv-div-*) pour que les règles des autres pages ne jouent pas ici. Chiffres en condensé italique (Barlow), pictogrammes
   SVG au trait, aucun émoji, deux thèmes (sombre par défaut, html[data-theme="light"]).
   La page hors ligne (public/offline.html) n'en dépend pas : elle porte ses propres styles (aucune requête réseau).
   ============================================================ */
body.lv-div { --dv-err: #ff7a86; --dv-ok: #3ddc84; --dv-att: #ffc21a; }
html[data-theme="light"] body.lv-div { --dv-err: #b3261e; --dv-ok: #0b7a3d; --dv-att: #8a5a00; }
.lv-div main a:not([class]) { color: var(--lv-lien); text-decoration: underline; text-underline-offset: 3px; }
.lv-div main a:not([class]):hover { color: var(--lv-lien-h); }
.lv-div main a:not([class]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.lv-div-svg { flex: none; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Section de page, en-tête (filet de livrée + titre + phrase) ---------- */
.lv-div-sec { position: relative; background: var(--lv-bg); }
.lv-div-in { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; padding-bottom: 56px; }
.lv-div-etroit { max-width: 908px; }
.lv-div-tete { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.lv-div-tete .lv-h2 { text-wrap: balance; }
.lv-div-tete .lv-sous { max-width: 720px; }
.lv-div-tete .lv-sous b { color: var(--lv-t); }
/* Le filet de livrée seul (décor) : trois barres inclinées, comme devant les surtitres */
.lv-div-filet { display: block; width: 46px; height: 14px; margin-left: 4px; transform: skewX(-28deg);
  background: linear-gradient(90deg, var(--lv-r) 0 12px, transparent 12px 17px, var(--lv-o) 17px 28px, transparent 28px 33px, var(--lv-j) 33px 42px, transparent 42px); }
.lv-div-centre { align-items: center; text-align: center; margin: 0 auto; }
.lv-div-centre .lv-div-filet { margin-left: 0; }

/* ---------- Prose (textes juridiques, notes) ---------- */
.lv-div-prose { display: flex; flex-direction: column; gap: 14px; max-width: 860px; padding-top: 18px; border-top: 1px solid var(--lv-ligne); color: var(--lv-t2); }
.lv-div-prose h2 { margin: 22px 0 0; font-size: 1.5rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--lv-t); text-wrap: balance; scroll-margin-top: calc(var(--header-h, 64px) + 12px); }
.lv-div-prose h2:first-child { margin-top: 4px; }
.lv-div-prose p { margin: 0; font-size: 1rem; line-height: 1.65; }
.lv-div-prose b, .lv-div-prose strong { color: var(--lv-t); }
.lv-div-prose ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 1rem; line-height: 1.6; }
.lv-div-prose ul > li { position: relative; padding-left: 22px; }
.lv-div-prose ul > li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 9px; height: 5px; background: var(--accent); transform: skewX(-28deg); }
.lv-div-prose code { padding: 1px 6px; border-radius: 5px; background: var(--lv-creux); border: 1px solid var(--lv-ligne); color: var(--lv-t); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; overflow-wrap: anywhere; }
.lv-div-prose .lv-div-note { font-size: .92rem; }
.lv-div-prose .lv-div-voir { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--lv-ligne); font-size: .92rem; }
/* Le tableau des traitements : il défile dans son cadre au téléphone (jamais la page), comme ceux des pages piliers */
.lv-div-prose .lv-pil-defile { margin-top: 2px; }
.lv-div-tab { min-width: 640px; }
.lv-div-tab td { min-width: 10em; }
.lv-div-tab td:first-child { color: var(--lv-t); }
.lv-div-tab code { font-size: .8em; }
/* Le bouton « Gérer mes choix (annonces) » du §3 (balisage de lib/consentementPub, testé) : celui des pages converties */
.lv-div-prose .btn.btn-ghost.btn-sm { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0; padding: 0 16px; border-radius: 10px; border: 1px solid var(--lv-champ); background: transparent; color: var(--lv-t); font-size: .94rem; font-weight: 700; line-height: 1.2; box-shadow: none; vertical-align: middle; }
.lv-div-prose .btn.btn-ghost.btn-sm::after { display: none; }
.lv-div-prose .btn.btn-ghost.btn-sm:hover { border-color: var(--lv-t); background: color-mix(in srgb, var(--lv-t) 6%, transparent); color: var(--lv-t); transform: translateY(-1px); }

@media (max-width: 640px) {
  .lv-div-in { gap: 18px; padding-top: 20px; padding-bottom: 40px; }
  .lv-div-prose { gap: 12px; padding-top: 14px; }
  .lv-div-prose h2 { margin-top: 16px; font-size: 1.25rem; }
  .lv-div-prose p, .lv-div-prose ul { font-size: .94rem; }
  .lv-div-tab { min-width: 560px; font-size: .84rem; }
}

/* ---------- Page 404 : le compte-tours à zéro, le numéro de course, deux boutons ---------- */
.lv-div-404 .lv-div-in { gap: 14px; padding-top: 56px; padding-bottom: 80px; max-width: 720px; }
.lv-div-jauge { display: block; fill: none; stroke-linecap: round; stroke-width: 2.4; }
.lv-div-jauge .j-arc { stroke: var(--lv-t2); }
.lv-div-jauge .j-rouge { stroke: var(--accent); stroke-width: 3; }
.lv-div-jauge .j-crans { stroke: var(--lv-champ); }
.lv-div-jauge .j-aiguille { stroke: var(--lv-o); stroke-width: 2.6; }
.lv-div-jauge .j-axe { fill: var(--lv-t); stroke: none; }
.lv-div-404-n { margin: 0; font-size: clamp(5.5rem, 16vw, 8.5rem); line-height: .9; letter-spacing: -.01em; color: var(--lv-t); }
.lv-div-404-n::after { content: ""; display: block; height: 8px; margin: 10px auto 0; width: 70%; transform: skewX(-28deg);
  background: linear-gradient(90deg, var(--lv-r) 0 50%, var(--lv-o) 50% 83.34%, var(--lv-j) 83.34% 100%); }
.lv-div-404 .lv-sous { max-width: 520px; }
.lv-div-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
/* La photo d'illustration de la page 404 (style.css, .lv-ph) : sous les boutons, jamais dessus */
.lv-div-404-ph { max-width: 640px; margin-top: 22px; }
@media (max-width: 640px) {
  .lv-div-404 .lv-div-in { padding-top: 36px; padding-bottom: 56px; }
  .lv-div-boutons { align-self: stretch; flex-direction: column; }
  .lv-div-boutons .btn { justify-content: center; }
}

/* ---------- Roue de la fortune : la roue sur son pneu, moyeu à damier, pointeur, formulaire, résultat ---------- */
.rw-wrap { align-items: center; gap: 22px; max-width: 680px; }
.rw-h1 { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; }
.rw-h1-ic { color: var(--lv-coche); }
.rw-stage { position: relative; width: min(360px, 84vw); height: min(360px, 84vw); margin: 8px auto 0; }
/* Le pneu : un anneau sombre (les deux thèmes) cerclé du filet de la livrée */
.rw-stage::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: #0e1016; box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px var(--lv-bg), 0 0 0 8px var(--lv-j), var(--lv-sel-ombre); }
.rw-stage svg { position: relative; width: 100%; height: 100%; display: block; }
#rwSpinGroup { transform-origin: 50% 50%; transition: transform 4.6s cubic-bezier(.16, .84, .3, 1); }
@media (prefers-reduced-motion: reduce) { #rwSpinGroup { transition-duration: 1.2s; } }
.rw-pointer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); z-index: 3; width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 28px solid var(--lv-t); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.rw-hub { position: absolute; top: 50%; left: 50%; z-index: 2; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(#0e1016 0% 25%, #f3f4f7 0% 50%) 50% / 14px 14px; box-shadow: 0 0 0 4px #0e1016, 0 0 0 7px var(--accent), 0 4px 16px rgba(0, 0, 0, .4); }
.rw-form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.rw-form input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--lv-champ); background: var(--lv-champ-bg); color: var(--lv-t); font: inherit; font-size: 1.02rem; text-align: center; }
.rw-form input::placeholder { color: var(--lv-t2); opacity: .85; }
.rw-form input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.rw-form input.rw-invalide { border-color: var(--dv-err); box-shadow: inset 0 0 0 1px var(--dv-err); }
.lv-page .rw-form .btn.lv-btn { width: 100%; justify-content: center; }
.rw-tourne svg { animation: rwTourne .9s linear infinite; }
@keyframes rwTourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rw-tourne svg { animation: none; } }
.rw-result { width: 100%; max-width: 520px; display: none; }
.rw-result.show { display: block; animation: rwPop .5s ease; }
@keyframes rwPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rw-result.show { animation: none; } }
.rw-carte { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; border-radius: 18px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); box-shadow: var(--lv-carte-ombre); text-align: center; }
.rw-carte.rw-gagne { border-color: var(--accent); }
.rw-carte p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--lv-t2); }
.rw-carte .rw-titre { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.3rem; line-height: 1.25; font-weight: 800; color: var(--lv-t); }
.rw-titre svg { color: var(--lv-coche); }
.rw-lot { color: var(--lv-acc-t); }
.rw-code { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 22px; border-radius: 12px; border: 2px dashed var(--accent); background: var(--lv-creux); color: var(--lv-t); cursor: pointer;
  font-family: "Barlow Condensed", Outfit, system-ui, sans-serif; font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; letter-spacing: .08em; }
.rw-code:hover { border-style: solid; }
.rw-code:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rw-code svg { color: var(--dv-ok); }
.rw-carte .rw-note { font-size: .86rem; }
.rw-carte .btn.lv-btn { margin-top: 4px; }
.rw-msg { min-height: 1em; font-size: 1rem; line-height: 1.5; color: var(--lv-t2); text-align: center; }
.rw-msg:empty { display: none; }
.rw-legal { margin: 8px 0 0; max-width: 620px; font-size: .78rem; line-height: 1.55; color: var(--lv-t2); text-align: center; }
@media (max-width: 640px) {
  .rw-carte { padding: 18px 16px; }
  .rw-carte .rw-titre { font-size: 1.15rem; }
  .lv-page .rw-carte .btn.lv-btn { align-self: stretch; justify-content: center; }
}

/* ---------- Analyseur de datalog (datalog.html, public/js/datalog-analyzer.js) ---------- */
.dla-in { gap: 20px; }
.dla-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; border: 2px dashed var(--lv-champ); border-radius: 18px; background: var(--lv-carte); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dla-drop:hover, .dla-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--lv-carte)); }
.dla-di { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--lv-creux); border: 1px solid var(--lv-ligne); color: var(--lv-coche); }
.dla-drop h3 { margin: 6px 0 0; font-size: 1.25rem; font-weight: 800; color: var(--lv-t); }
.dla-drop p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--lv-t2); }
.dla-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.lv-page .dla-actions .btn.lv-btn, .lv-page .dla-actions .btn.lv-btn-ghost { min-height: 48px; font-size: 1rem; }
.dla-privacy { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--lv-ligne2); background: var(--lv-creux); font-size: .82rem; font-weight: 600; color: var(--lv-t); }
.dla-privacy svg { color: var(--dv-ok); }
.dla-status { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--lv-t2); text-align: center; }
.dla-status:empty { display: none; }
.dla-status b { color: var(--lv-t); }
.dla-err { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--dv-err); font-weight: 600; text-align: left; }
.dla-err svg { margin-top: 2px; }
.dla-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--dv-ok); font-weight: 600; white-space: nowrap; }
#dlaResult { display: flex; flex-direction: column; gap: 16px; }
.dla-kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.dla-chip { display: inline-flex; flex-direction: column; gap: 2px; min-width: 96px; padding: 10px 14px; border-radius: 12px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); box-shadow: var(--lv-carte-ombre); }
.dla-chip small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lv-t2); }
.dla-chip b { font-family: "Barlow Condensed", Outfit, system-ui, sans-serif; font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1.05; color: var(--lv-t); font-variant-numeric: tabular-nums; }
.dla-carbu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: .9rem; color: var(--lv-t2); }
.dla-fuel { display: inline-flex; border: 1px solid var(--lv-champ); border-radius: 10px; overflow: hidden; }
.dla-fuel label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: .9rem; font-weight: 700; color: var(--lv-t2); cursor: pointer; }
.dla-fuel label + label { border-left: 1px solid var(--lv-champ); }
.dla-fuel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dla-fuel label:has(input:checked) { background: var(--lv-bande); color: var(--accent-ink, #fff); }
.dla-fuel label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.dla-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
#dlaChart { width: 100%; height: 360px; display: block; border-radius: 14px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); cursor: crosshair; }
.dla-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dla-c { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--lv-ligne2); background: var(--lv-carte); font-size: .84rem; color: var(--lv-t); cursor: pointer; user-select: none; }
.dla-c.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--lv-carte)); }
.dla-c input { display: none; }
.dla-c small { color: var(--lv-t2); font-variant-numeric: tabular-nums; }
.dla-sw { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.dla-h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 800; color: var(--lv-t); }
.dla-h3 svg { color: var(--lv-coche); }
.dla-flag { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--lv-carte-ligne); border-left: 4px solid var(--dla-c, var(--lv-champ)); background: var(--lv-carte); font-size: .9rem; line-height: 1.45; color: var(--lv-t); cursor: pointer; }
.dla-flag svg { margin-top: 1px; color: var(--dla-c, var(--lv-t2)); }
.dla-flag[data-idx]:hover { background: var(--lv-creux); }
.dla-n-danger { --dla-c: var(--dv-err); }
.dla-n-warn { --dla-c: var(--dv-att); }
.dla-n-ok { --dla-c: var(--dv-ok); }
.dla-n-info { --dla-c: #3aa0ff; }
html[data-theme="light"] .dla-n-info { --dla-c: #1f6fc2; }
.dla-tip { position: fixed; z-index: 50; display: none; max-width: 240px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--lv-ligne2); background: var(--lv-surf); color: var(--lv-t); font-size: .8rem; line-height: 1.5; pointer-events: none; box-shadow: var(--lv-sel-ombre); }
.dla-tip small { color: var(--lv-t2); }
.dla-tip .dla-sw { display: inline-block; margin-right: 5px; }
table.dla-stats { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .86rem; color: var(--lv-t); font-variant-numeric: tabular-nums; }
table.dla-stats th, table.dla-stats td { padding: 8px 12px; text-align: right; border-top: 1px solid var(--lv-carte-ligne); }
table.dla-stats tr:first-child th { border-top: 0; background: var(--lv-creux); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lv-t2); }
table.dla-stats th:first-child, table.dla-stats td:first-child { text-align: left; }
.dla-cta { margin-top: 8px; }
.lv-page .dla-cta .btn.lv-btn { justify-content: center; text-align: center; }
.dla-honnete { margin: 0; display: flex; align-items: flex-start; gap: 10px; max-width: 900px; font-size: .82rem; line-height: 1.6; color: var(--lv-t2); }
.dla-honnete svg { margin-top: 2px; color: var(--lv-coche); }
.dla-honnete b { color: var(--lv-t); }
@media (max-width: 900px) { .dla-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .dla-drop { padding: 22px 14px; }
  .dla-actions { align-self: stretch; flex-direction: column; }
  .dla-actions .btn { justify-content: center; }
}

/* ---------- CartoGrip : option « gel du compteur » (cartogrip-option.html) ---------- */
.op-wrap { max-width: 808px; gap: 20px; }
.op-card { display: flex; flex-direction: column; padding: 24px; border-radius: 18px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); box-shadow: var(--lv-carte-ombre); }
.op-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 12px; }
.op-prix b { font-size: 3rem; line-height: 1; color: var(--lv-t); white-space: nowrap; }
.op-prix span { font-size: .94rem; color: var(--lv-t2); }
.op-txt { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--lv-t2); }
.op-txt b { color: var(--lv-t); }
.op-franc { margin-top: 16px; padding: 14px 16px; border-radius: 0 12px 12px 0; border-left: 4px solid var(--accent); background: var(--lv-creux); font-size: .92rem; line-height: 1.6; color: var(--lv-t2); }
.op-franc b { color: var(--lv-t); }
.op-sep { margin: 24px 0; border: 0; border-top: 1px solid var(--lv-ligne); }
.op-h2 { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.25; font-weight: 800; color: var(--lv-t); }
.op-aide { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--lv-t2); }
.op-l { display: block; margin: 14px 0 6px; font-size: .88rem; font-weight: 700; color: var(--lv-t2); }
.op-card input { width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--lv-champ); background: var(--lv-champ-bg); color: var(--lv-t); font: inherit; font-size: 1rem; }
.op-card input::placeholder { color: var(--lv-t2); opacity: .8; }
.op-card input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.lv-page .op-card .btn.op-btn { width: 100%; margin-top: 16px; justify-content: center; }
.op-msg { display: none; margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--lv-carte-ligne); border-left-width: 4px; background: var(--lv-creux); font-size: .92rem; line-height: 1.55; color: var(--lv-t); }
.op-msg.open { display: block; }
.op-err { border-color: var(--dv-err); background: color-mix(in srgb, var(--dv-err) 8%, var(--lv-carte)); }
.op-ok { border-color: var(--dv-ok); background: color-mix(in srgb, var(--dv-ok) 8%, var(--lv-carte)); }
.op-code { display: block; margin: 8px 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: 2px; color: var(--lv-t); overflow-wrap: anywhere; }
.op-pts { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: .94rem; line-height: 1.6; color: var(--lv-t2); }
.op-pts li { position: relative; padding-left: 22px; }
.op-pts li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 9px; height: 5px; background: var(--accent); transform: skewX(-28deg); }
.op-pts b { color: var(--lv-t); }
.op-pied { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--lv-t2); text-align: center; }
@media (max-width: 640px) {
  .op-card { padding: 18px 16px; }
  .op-prix b { font-size: 2.5rem; }
}

/* ---------- Pages rendues par le serveur (lib/pageLivree.js) : en-tête et pied réduits, contenu étroit ---------- */
body.lv-div-seul { min-height: 100vh; display: flex; flex-direction: column; }
body.lv-div-seul main { flex: 1; padding-top: 0; }
.lv-div-haut { background: var(--lv-bg); border-bottom: 1px solid var(--lv-ligne); }
.lv-div-haut-in { display: flex; align-items: center; min-height: 64px; }
.lv-div-marque { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1.4rem; font-weight: 900; letter-spacing: -.03em; color: var(--lv-t); text-decoration: none; }
.lv-div-marque:hover { color: var(--lv-t); }
.lv-div-marque b { margin-left: .28em; font-weight: 900; color: var(--accent); }
html[data-theme="light"] .lv-div-marque b { color: var(--lv-acc-t); }
.lv-div-marque:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.lv-div-damier { fill: var(--lv-t); }
.lv-div-bas { margin-top: auto; background: var(--lv-pied); }
.lv-div-bas::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--lv-r) 0 50%, var(--lv-o) 50% 83.34%, var(--lv-j) 83.34% 100%); }
.lv-div-bas-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding-top: 10px; padding-bottom: 14px; font-size: .86rem; color: var(--lv-t2); }
.lv-div-bas a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lv-t2); text-decoration: underline; text-underline-offset: 3px; }
.lv-div-bas a:hover { color: var(--lv-t); }
.lv-div-seul-in { max-width: 688px; padding-top: 40px; }
.lv-div-pastille { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--lv-creux); border: 1px solid var(--lv-ligne2); color: var(--lv-coche); }
.lv-div-pastille-ok { color: var(--dv-ok); }
.lv-div-pastille-err { color: var(--dv-err); }
.lv-div-pastille-att { color: var(--dv-att); }
.lv-div-texte { margin: 0; max-width: 600px; font-size: 1.02rem; line-height: 1.65; color: var(--lv-t2); }
.lv-div-texte b { color: var(--lv-t); }
.lv-div-centre .lv-div-texte { margin: 0 auto; }
.lv-div-carte { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); box-shadow: var(--lv-carte-ombre); text-align: left; }
.lv-div-veh { margin: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px 16px; border-radius: 12px; background: var(--lv-creux); border: 1px solid var(--lv-ligne); font-size: .95rem; line-height: 1.45; color: var(--lv-t2); }
.lv-div-veh > span { display: flex; align-items: flex-start; gap: 10px; }
.lv-div-veh svg { margin-top: 1px; color: var(--lv-coche); }
.lv-div-veh b { color: var(--lv-t); }
.lv-div-prix { display: flex; flex-direction: column; gap: 6px; }
.lv-div-prix > b { font-size: 3rem; line-height: 1; color: var(--lv-t); }
.lv-div-prix p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--lv-t2); }
.lv-div-mention { margin: 0; font-size: .82rem; line-height: 1.6; color: var(--lv-t2); }
.lv-div-etat { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lv-carte-ligne); border-left: 4px solid var(--dv-etat, var(--lv-champ)); background: color-mix(in srgb, var(--dv-etat, var(--lv-champ)) 8%, var(--lv-carte)); font-size: .95rem; line-height: 1.5; color: var(--lv-t); text-align: left; }
.lv-div-etat svg { margin-top: 1px; color: var(--dv-etat, var(--lv-t2)); }
.lv-div-etat-ok { --dv-etat: var(--dv-ok); }
.lv-div-etat-err { --dv-etat: var(--dv-err); }
.lv-div-etat-att { --dv-etat: var(--dv-att); }
.lv-div-etat-info { --dv-etat: var(--lv-champ); }
.lv-div-centre .lv-div-etat { max-width: 560px; margin: 0 auto; }
/* Formulaires des pages serveur : libellés, champs, listes, zone de texte, fichier — ceux des pages converties */
.lv-div-form { gap: 0; }
.lv-div-form label { display: block; margin: 16px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.45; color: var(--lv-t2); }
.lv-div-form label:first-child { margin-top: 0; }
.lv-div-champ, .lv-div-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="hidden"]), .lv-div-form select, .lv-div-form textarea {
  display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 6px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--lv-champ); background: var(--lv-champ-bg); color: var(--lv-t); font: inherit; font-size: 1rem; font-weight: 400; }
.lv-div-form textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.lv-div-form select { appearance: auto; }
.lv-div-form input[type="file"] { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px; border-radius: 10px; border: 1px dashed var(--lv-champ); background: var(--lv-creux); color: var(--lv-t2); font: inherit; font-size: .88rem; cursor: pointer; }
.lv-div-champ::placeholder, .lv-div-form ::placeholder { color: var(--lv-t2); opacity: .8; }
.lv-div-champ:focus-visible, .lv-div-form input:focus-visible, .lv-div-form select:focus-visible, .lv-div-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.lv-div-form .lv-div-sec-t { margin: 28px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--lv-ligne); font-family: "Barlow Condensed", Outfit, system-ui, sans-serif; font-style: italic; font-size: 1.12rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-sur-c); }
.lv-div-form .lv-div-sec-t:first-child { margin-top: 0; }
.lv-div-form .lv-div-aide { margin: 6px 0 0; font-size: .82rem; font-weight: 400; line-height: 1.5; color: var(--lv-t2); }
.lv-div-form .lv-div-aide-ok { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: .84rem; font-weight: 600; color: var(--dv-ok); }
.lv-page .lv-div-form .btn.lv-btn { margin-top: 22px; align-self: flex-start; }
.lv-div-code { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; font-size: 1.15rem !important; }
.lv-page .lv-div-carte .btn.lv-btn-plein { width: 100%; justify-content: center; }
.lv-div-attente { margin: 0; font-size: .92rem; color: var(--lv-t2); }
.lv-div-res { display: flex; flex-direction: column; gap: 6px; }
.lv-div-res .kv { font-size: .92rem; line-height: 1.7; color: var(--lv-t2); }
.lv-div-res .kv b { color: var(--lv-t); }
.lv-div-res .petit { margin: 4px 0 0; font-size: .8rem; color: var(--lv-t2); }
/* Notes par étoiles (avis client) : de droite à gauche, la note choisie et les précédentes s'allument */
.lv-div-notes { margin: 0; padding: 0; border: 0; }
.lv-div-notes legend { padding: 0; font-size: .9rem; font-weight: 700; color: var(--lv-t); }
.lv-div-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 8px 0 4px; }
.lv-div-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lv-div-form .lv-div-stars label { margin: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; cursor: pointer; color: var(--lv-champ); transition: color .15s; }
.lv-div-stars label svg { fill: currentColor; stroke: currentColor; stroke-width: 1.2; }
.lv-div-form .lv-div-stars input:checked ~ label, .lv-div-form .lv-div-stars label:hover, .lv-div-form .lv-div-stars label:hover ~ label { color: var(--lv-j); }
html[data-theme="light"] .lv-div-form .lv-div-stars input:checked ~ label, html[data-theme="light"] .lv-div-form .lv-div-stars label:hover, html[data-theme="light"] .lv-div-form .lv-div-stars label:hover ~ label { color: #b37a00; }
.lv-div-stars input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }
/* SOS écriture : étapes numérotées, boutons, encadrés */
.lv-div-etapes { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; font-size: .97rem; line-height: 1.6; color: var(--lv-t2); }
.lv-div-etapes b { color: var(--lv-t); }
.lv-div-etapes li::marker { color: var(--lv-acc-t); font-weight: 800; }
.lv-div-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.lv-page .lv-div-btns .btn { min-height: 48px; font-size: 1rem; }
.lv-div-h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; line-height: 1.3; color: var(--lv-t); }
.lv-div-h2 svg { color: var(--dv-err); }
@media (max-width: 640px) {
  .lv-div-seul-in { padding-top: 24px; }
  .lv-div-carte { padding: 18px 16px; }
  .lv-div-prix > b { font-size: 2.5rem; }
  .lv-page .lv-div-form .btn.lv-btn, .lv-page .lv-div-btns .btn { align-self: stretch; justify-content: center; width: 100%; }
}

/* ---------- CartoGrip : le module (cartogrip.html) — cartes, formulaires et états du thème ; la vitrine (platines, cadran,
   trace du firmware) garde ses couleurs d'écran, sombres dans les deux thèmes : c'est ce que la dalle affiche ---------- */
body[data-page="cartogrip"] { --cg-hors: #ff9d2e; }
html[data-theme="light"] body[data-page="cartogrip"] { --cg-hors: #b34a00; }
.cg-wrap { max-width: 888px; gap: 18px; }
.cg-card { padding: 24px; border-radius: 18px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); box-shadow: var(--lv-carte-ombre); }
.cg-card > .lv-sur { margin-bottom: 10px; font-size: 1rem; }
.cg-card h2 { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-size: 1.35rem; line-height: 1.25; font-weight: 800; color: var(--lv-t); }
.cg-card h2 svg { color: var(--lv-coche); }
.cg-card > p.lead { margin: 0 0 16px; font-size: .95rem; line-height: 1.6; color: var(--lv-t2); }
.cg-card > p.lead b { color: var(--lv-t); }
.cg-steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: s; }
.cg-steps li { position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--lv-carte-ligne); font-size: .95rem; line-height: 1.55; color: var(--lv-t2); }
.cg-steps li:last-child { border-bottom: none; }
.cg-steps li b { color: var(--lv-t); }
.cg-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 8px; transform: skewX(-12deg); background: var(--lv-bande); color: var(--accent-ink, #fff); display: flex; align-items: center; justify-content: center;
  font-family: "Barlow Condensed", Outfit, system-ui, sans-serif; font-style: italic; font-weight: 800; font-size: 1.1rem; }
.cg-safe, .cg-warn { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lv-carte-ligne); border-left: 4px solid var(--cg-c); background: color-mix(in srgb, var(--cg-c) 8%, var(--lv-carte)); font-size: .92rem; line-height: 1.55; color: var(--lv-t); }
.cg-safe svg, .cg-warn svg { margin-top: 1px; color: var(--cg-c); }
.cg-safe { --cg-c: var(--dv-ok); }
.cg-warn { --cg-c: var(--dv-err); }
.cg-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 20px; border: 2px dashed var(--lv-champ); border-radius: 18px; background: var(--lv-creux); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.cg-drop:hover, .cg-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--lv-creux)); }
.cg-drop .ic { display: flex; margin-bottom: 6px; color: var(--lv-coche); }
.cg-drop b { display: block; font-size: 1.02rem; color: var(--lv-t); }
.cg-drop small { color: var(--lv-t2); font-size: .85rem; }
.cg-res { margin-top: 16px; display: none; }
.cg-res.open { display: block; animation: cgIn .3s ease; }
@keyframes cgIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .cg-res.open, .cg-code.open { animation: none; } }
.cg-verdict { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--lv-carte-ligne); border-left: 4px solid var(--cg-c, var(--lv-champ)); background: color-mix(in srgb, var(--cg-c, var(--lv-champ)) 8%, var(--lv-carte)); font-size: .97rem; color: var(--lv-t); }
.cg-verdict .ic { display: flex; color: var(--cg-c, var(--lv-t2)); }
.cg-verdict.ok { --cg-c: var(--dv-ok); }
.cg-verdict.warn { --cg-c: var(--dv-att); }
.cg-verdict.danger { --cg-c: var(--dv-err); }
.cg-id { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cg-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--lv-ligne2); background: var(--lv-creux); font-size: .82rem; color: var(--lv-t2); }
.cg-chip b { color: var(--lv-t); }
.cg-pts { list-style: none; padding: 0; margin: 14px 0 0; }
.cg-pts li { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--lv-carte-ligne); font-size: .92rem; line-height: 1.5; }
.cg-pts li:last-child { border-bottom: none; }
.cg-pts .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; background: var(--c); }
.cg-pts b { display: block; margin-bottom: 2px; color: var(--lv-t); }
.cg-pts span { color: var(--lv-t2); }
.cg-err { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lv-carte-ligne); border-left: 4px solid var(--dv-err); background: color-mix(in srgb, var(--dv-err) 8%, var(--lv-carte)); font-size: .92rem; line-height: 1.5; color: var(--lv-t); }
.cg-err.open { display: block; }
.cg-mail { display: flex; gap: 8px 12px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.cg-mail input { flex: 1; min-width: 200px; }
.cg-mail-aide { font-size: .84rem; color: var(--lv-t2); }
.cg-mail input, .cg-f input { min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--lv-champ); background: var(--lv-champ-bg); color: var(--lv-t); font: inherit; font-size: .97rem; }
.cg-f input { width: 100%; box-sizing: border-box; }
.cg-mail input::placeholder, .cg-f input::placeholder { color: var(--lv-t2); opacity: .8; }
.cg-mail input:focus-visible, .cg-f input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.cg-priv { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: .85rem; line-height: 1.55; color: var(--lv-t2); }
.cg-priv svg { margin-top: 1px; color: var(--lv-coche); }
.cg-priv b { color: var(--lv-t); }
.cg-act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.cg-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cg-f > span { font-size: .86rem; font-weight: 700; color: var(--lv-t2); }
.lv-page .btn.cg-act-btn { margin-top: 14px; }
.cg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lv-page .cg-actions .btn.lv-btn-ghost { min-height: 48px; font-size: 1rem; }
.cg-code { display: none; margin-top: 16px; padding: 18px; border-radius: 12px; border: 1px solid var(--lv-carte-ligne); border-left: 4px solid var(--dv-ok); background: color-mix(in srgb, var(--dv-ok) 8%, var(--lv-carte)); }
.cg-code.open { display: block; animation: cgIn .3s ease; }
.cg-code-t { margin: 0 0 8px; font-size: .92rem; color: var(--lv-t); }
.cg-code-txt { margin: 12px 0 0; font-size: .88rem; line-height: 1.55; color: var(--lv-t2); }
.cg-code-txt b { color: var(--lv-t); }
.cg-code-val { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .14em; color: var(--dv-ok); cursor: pointer; user-select: all; word-break: break-all; }
.cg-date { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lv-carte-ligne); }

/* Vitrine : les platines */
.cg-show h2 { font-size: 1.5rem; }
.cg-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 720px) { .cg-boards { grid-template-columns: 1fr; } }
.cg-board { display: flex; flex-direction: column; min-width: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--lv-carte-ligne); background: var(--lv-creux); }
.cg-board img { width: 100%; height: auto; display: block; border-radius: 8px; }
.cg-board h3 { margin: 12px 0 2px; font-size: 1.02rem; font-weight: 800; color: var(--lv-t); }
.cg-board .sub { margin-bottom: 10px; font-size: .86rem; color: var(--lv-t2); }
.cg-figs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cg-fig { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--lv-ligne2); background: var(--lv-carte); font-size: .8rem; color: var(--lv-t2); }
.cg-fig b { font-family: "Barlow Condensed", Outfit, system-ui, sans-serif; font-style: italic; font-weight: 800; font-size: 1.05rem; color: var(--lv-t); font-variant-numeric: tabular-nums; }
.cg-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; padding: 0; list-style: none; }
.cg-leg li { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--lv-t2); }
.cg-leg i { width: 11px; height: 11px; border-radius: 3px; background: var(--c); flex: none; }

/* Vitrine : l'écran au démarrage */
.cg-boot { display: grid; grid-template-columns: minmax(0, 270px) 1fr; gap: 24px; margin-top: 18px; align-items: center; }
@media (max-width: 720px) { .cg-boot { grid-template-columns: 1fr; justify-items: center; } }
.cg-dial-boot { max-width: 270px; }
.cg-dial-boot svg { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.cg-boot-info { min-width: 0; }
.cg-boot-etapes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.cg-boot-etapes li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: baseline; padding: 7px 10px; border-radius: 8px; font-size: .88rem; color: var(--lv-t2); transition: background .2s, color .2s; }
.cg-boot-etapes li.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--lv-t); }
.cg-boot-etapes li b { font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 600; color: var(--lv-t2); }
.cg-boot-etapes li.on b { color: var(--lv-acc-t); }
.cg-cmd-boot { margin-top: 14px; }

/* Vitrine : le logiciel en marche (le cadran reste un écran sombre) */
.cg-sim { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 22px; margin-top: 18px; align-items: start; }
@media (max-width: 720px) { .cg-sim { grid-template-columns: 1fr; } }
.cg-dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cg-dial { position: relative; width: 100%; max-width: 250px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #15171f, #080a0e 70%); border: 1px solid #343946; box-shadow: inset 0 2px 14px rgba(0, 0, 0, .9), 0 0 0 6px #0b0c11, 0 0 0 7px #262c3d; color: #f3f4f7; }
.cg-dial svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-dial .face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.cg-mode { font-size: 1.42rem; font-weight: 800; letter-spacing: .06em; line-height: 1; transition: color .25s; }
.cg-kmh { margin-top: 6px; font-family: "Barlow Condensed", Outfit, system-ui, sans-serif; font-style: italic; font-size: 2.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.cg-kmh small { margin-left: 3px; font-family: Outfit, system-ui, sans-serif; font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: #9097a5; }
.cg-relais { margin-top: 8px; padding: 2px 9px; border-radius: 99px; border: 1px solid currentColor; font-size: .66rem; font-weight: 700; letter-spacing: .1em; opacity: .9; }
.cg-phase { min-height: 2.4em; font-size: .86rem; color: var(--lv-t2); text-align: center; }
.cg-phase b { display: block; font-size: .92rem; color: var(--lv-t); }
.cg-cause { padding: 11px 13px; border-radius: 12px; border: 1px solid var(--lv-carte-ligne); background: var(--lv-creux); font-size: .88rem; line-height: 1.45; color: var(--lv-t2); transition: border-color .25s, background .25s; }
.cg-cause b { color: var(--lv-t); }
.cg-cause.repli { border-color: color-mix(in srgb, var(--cg-hors) 55%, transparent); background: color-mix(in srgb, var(--cg-hors) 9%, var(--lv-carte)); }
/* Seul le titre passe à la ligne : un « > » manquant ici mettait aussi en bloc les noms de modes cités DANS la phrase. */
.cg-cause > b { display: block; margin-bottom: 1px; }
.cg-jauges { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.cg-j { display: grid; grid-template-columns: 82px 1fr 78px; gap: 10px; align-items: center; font-size: .82rem; }
.cg-j .nm { color: var(--lv-t2); }
.cg-j .bar { position: relative; height: 8px; border-radius: 99px; background: var(--lv-creux); border: 1px solid var(--lv-carte-ligne); overflow: hidden; }
.cg-j .fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--dv-ok); transition: width .18s linear, background .25s; }
.cg-j.hors .fill { background: var(--cg-hors); }
.cg-j .lim { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--lv-t2); opacity: .75; }
.cg-j .vl { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--lv-t); }
.cg-j.hors .vl { color: var(--cg-hors); }
.cg-piste { position: relative; height: 26px; margin-top: 16px; border-radius: 6px; background: #12141b; overflow: hidden; cursor: pointer; }
.cg-piste:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cg-piste canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cg-tete { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); pointer-events: none; }
.cg-cmd { display: flex; align-items: center; gap: 8px 12px; margin-top: 10px; flex-wrap: wrap; }
.cg-cmd button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--lv-champ); background: transparent; color: var(--lv-t); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.cg-cmd button:hover { border-color: var(--lv-t); }
.cg-cmd button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cg-t { font-variant-numeric: tabular-nums; font-size: .84rem; color: var(--lv-t2); }
.cg-relache { color: var(--cg-hors); }
.cg-src { margin-top: 14px; font-size: .82rem; line-height: 1.55; color: var(--lv-t2); }
.cg-src b { color: var(--lv-t); }
.cg-src code { padding: 1px 5px; border-radius: 4px; background: var(--lv-creux); border: 1px solid var(--lv-carte-ligne); font-size: .92em; color: var(--lv-t); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .cg-j .fill { transition: none; } }
@media (max-width: 640px) {
  .cg-card { padding: 18px 16px; }
  .lv-page .btn.cg-act-btn, .lv-page .cg-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Devis (/devis/:id/:token) : gains en condensé italique, tableau des prix garantis ; imprimable ---------- */
.dv-imprimer { margin: 0; display: flex; justify-content: flex-end; }
.lv-page .dv-imprimer .btn.lv-btn-ghost { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.dv-gains { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dv-gain { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--dv-ok) 45%, transparent); background: color-mix(in srgb, var(--dv-ok) 9%, var(--lv-carte)); font-size: .88rem; font-weight: 600; color: var(--lv-t); }
.dv-gain .lv-num { font-size: 1.2rem; color: var(--dv-ok); }
.dv-tab .dv-p { text-align: right; white-space: nowrap; }
.dv-tab td.dv-p .lv-num { font-size: 1.35rem; color: var(--lv-t); }
.dv-vecu { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; line-height: 1.6; color: var(--lv-t2); }
.dv-vecu svg { margin-top: 3px; color: var(--lv-coche); }
.dv-vecu b { color: var(--lv-t); }
.lv-page .btn.dv-commander { align-self: flex-start; }
@media (max-width: 640px) { .lv-page .btn.dv-commander { align-self: stretch; justify-content: center; } }
@media print {
  body.lv-div-seul { background: #fff; color: #111; }
  .lv-div-haut, .lv-div-bas, .dv-imprimer, .dv-commander, .lv-div-pastille { display: none !important; }
  .lv-div-seul-in { max-width: none; padding: 0; }
  .lv-div-carte, .lv-div-veh, .lv-pil-defile, .lv-div-etat, .dv-gain { box-shadow: none; background: #fff !important; border-color: #ccc !important; color: #111; }
  .lv-h2, .lv-div-veh b, .dv-tab td.dv-p .lv-num, .dv-gain .lv-num, .lv-pil-tab th, .lv-pil-tab td { color: #111 !important; }
  .lv-sous, .lv-div-mention, .dv-vecu { color: #444 !important; }
}

/* ---------- Dossier de reprogrammation (/dossier/:id/:token) : document de traçabilité, imprimable comme le devis ---------- */
.ds-tab tbody th, .ds-tab th[scope="row"] { width: 42%; color: var(--lv-t2); font-weight: 700; }
.ds-tab td { color: var(--lv-t); }
.ds-tab code { padding: 1px 6px; border-radius: 5px; background: var(--lv-creux); border: 1px solid var(--lv-ligne); font-size: .8em; word-break: break-all; }
.ds-h2 { margin-top: 6px; }
.ds-h2 svg { color: var(--lv-coche); }
.ds-code { margin: 0; font-size: .95rem; color: var(--lv-t2); }
.ds-authcode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; color: var(--lv-acc-t); }
.dv-gain svg { align-self: center; color: var(--dv-ok); }

/* ---------- Calendrier de l'avent (/calendrier-de-l-avent, lib/aventVue) : l'en-tête de la page et le règlement complet ----------
   Ils servent aussi APRÈS l'événement (en janvier, la page dit « Le calendrier est terminé » et garde le règlement), quand la
   feuille du thème de Noël n'est plus chargée : leur structure est donc ici, sur les jetons de la livrée (pendant l'événement,
   public/css/evenement-noel.css redéfinit ces jetons et ils prennent les couleurs du thème). Classes propres à cette page :
   aucune autre page ne change. */
.nl-page-tete { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: 0 auto 36px; max-width: 820px; }
.nl-page-tete .lv-sous { margin: 0; }
.nl-page-tete .lv-sur { margin: 0; justify-content: center; }
.nl-page-tete sup, .nl-reglement sup { font-size: .62em; line-height: 0; }
/* Le règlement complet : les articles à gauche, la grille entière des remises à droite (un tableau, lisible au lecteur d'écran) */
.nl-reglement { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px 36px; align-items: start; padding: 28px; border-radius: 16px; background: var(--lv-carte); border: 1px solid var(--lv-carte-ligne); }
.nl-reglement h2 { grid-column: 1 / -1; margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 800; color: var(--lv-t); }
.nl-reglement-art { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 12px; font-size: .92rem; line-height: 1.55; color: var(--lv-t2); }
.nl-reglement-art li::marker { color: var(--lv-sur-c); font-weight: 800; }
.nl-reglement-art b { color: var(--lv-t); }
.nl-reglement-art .lv-lien { display: inline; min-height: 0; font-size: inherit; white-space: nowrap; text-underline-offset: 3px; }
.nl-reglement-grille { min-width: 0; overflow-x: auto; border-radius: 12px; border: 1px solid var(--lv-ligne); background: var(--lv-creux); }
.nl-reglement-grille table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--lv-t2); }
.nl-reglement-grille caption { padding: 14px 14px 10px; text-align: left; font-weight: 700; color: var(--lv-t); }
.nl-reglement-grille th, .nl-reglement-grille td { padding: 6px 14px; text-align: left; border-top: 1px solid var(--lv-ligne); }
.nl-reglement-grille thead th { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lv-sur-c); }
.nl-reglement-grille tbody th { font-weight: 700; color: var(--lv-t); }
.nl-reglement-grille td:nth-child(2) { font-weight: 800; color: var(--lv-t); white-space: nowrap; }
@media (max-width: 1007px) { .nl-reglement { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .nl-page-tete { margin-bottom: 20px; gap: 8px; }
  .nl-reglement { padding: 18px 16px; }
  .nl-reglement-grille th, .nl-reglement-grille td { padding: 6px 10px; }
}
