/* KMAR — interface v1.7 « salle de contrôle »
 * Inspirée du matériel de sécurité électronique : bandeau graphite comme un enregistreur NVR,
 * voyants (LED) verts / orange / rouges pour les statuts, chiffres en caractères industriels (DIN),
 * titres de page cadrés comme l'image d'une caméra. Couleurs du logo : rouge KMAR et graphite, sans bleu.
 * Chargée après les autres feuilles de style.
 */
:root {
  --graphite: #17191c; --steel: #23272c; --rail: #353b43; --rail-txt: #b7bdc5;
  --paper: #eceef1; --card: #ffffff; --ink: #1b1e22; --slate: #5b636d; --line: #dde1e6;
  --brand: #b41e1f; --brand-2: #8f1718; --brand-hi: #e0403f; --red-soft: #f7e7e7;
  --ok: #1d8a4b; --warn: #b87500; --bad: #b32626;
  --bg: var(--paper); --muted: var(--slate); --radius: 12px; --dark: var(--graphite);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  --din: "Bahnschrift", "DIN Alternate", "DIN 2014", "Roboto Condensed", "Arial Narrow", sans-serif;
}
body { background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font); }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; border-radius: 4px; }

/* ---------- Bandeau : graphite, filet rouge, menu à icônes ---------- */
.top { background: var(--graphite); color: #fff; border-bottom: 0; box-shadow: inset 0 -3px 0 var(--brand), 0 6px 18px rgba(23,25,28,.18); }
.top-in { min-height: 60px; gap: .8rem; }
.brand { color: #fff; gap: .7rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 0; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font-family: var(--din); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; }
.brand-txt small { color: var(--rail-txt); font-size: .72rem; font-weight: 400; }
.nav { gap: 2px; }
.nav a, .nav .linkbtn, .nav-more > summary { color: var(--rail-txt); display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .6rem; border-radius: 7px; font-size: .88rem; font-weight: 500; position: relative; }
.nav a:hover, .nav .linkbtn:hover, .nav-more > summary:hover { background: var(--steel); color: #fff; }
.nav > a.on, .nav-more.on > summary { background: var(--steel); color: #fff; font-weight: 600; }
.nav > a.on::after, .nav-more.on > summary::after { content: ""; position: absolute; inset-inline: .6rem; bottom: -2px; height: 2px; border-radius: 2px; background: var(--brand-hi); }
.nav-more[open] > summary { background: var(--steel); color: #fff; }
.nav-more > summary::after { content: none; }
.nav-more > summary > span::after { content: "▾"; font-size: .7em; margin-inline-start: .3em; opacity: .7; }
.nav .ico { flex: none; opacity: .9; }
.nav-menu { background: var(--steel); border: 1px solid var(--rail); box-shadow: 0 14px 34px rgba(0,0,0,.35); border-radius: 10px; }
.nav-menu a, .nav-menu .linkbtn { color: #e3e6ea; border-radius: 6px; }
.nav-menu a:hover, .nav-menu .linkbtn:hover { background: var(--rail); color: #fff; }
.nav-menu a.on { background: var(--brand); color: #fff; }
.nav-user > summary { color: #fff; }
.nav .lang-switch { border-color: var(--rail); }
.nav .lang-switch a { color: var(--rail-txt); }
html[lang="fr"] .nav .lang-switch a[lang="fr"], html[lang="ar"] .nav .lang-switch a[lang="ar"] { background: var(--brand); color: #fff; }
.burger { color: #fff; }

/* ---------- Titres : cadre de visée de caméra ---------- */
h1 { font-family: var(--din); font-weight: 600; font-size: 1.6rem; letter-spacing: .01em; color: var(--graphite); }
.head > div > h1, .head > h1 { position: relative; padding: .15rem .7rem; }
.head > div > h1::before, .head > h1::before, .head > div > h1::after, .head > h1::after {
  content: ""; position: absolute; width: 10px; height: 10px; border: 2px solid var(--brand); pointer-events: none; }
.head > div > h1::before, .head > h1::before { top: 0; inset-inline-start: 0; border-inline-end: 0; border-bottom: 0; }
.head > div > h1::after, .head > h1::after { bottom: 0; inset-inline-end: 0; border-inline-start: 0; border-top: 0; }
.head > div > .muted, .head > div > p { padding-inline-start: .7rem; }
.veh-head > div > h1 { padding: 0; } .veh-head > div > h1::before, .veh-head > div > h1::after { content: none; }
h2 { font-family: var(--din); font-weight: 600; font-size: 1.08rem; letter-spacing: .01em; color: var(--graphite); }
legend { font-family: var(--din); font-weight: 600; color: var(--graphite); letter-spacing: .01em; }

/* ---------- Cartes, tuiles, boutons ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,25,28,.04); }
fieldset.card { padding-top: 12px; }
.stat { border-radius: 10px; background: var(--card); box-shadow: 0 1px 2px rgba(23,25,28,.04); }
.stat b { font-family: var(--din); font-weight: 600; font-size: 1.65rem; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--graphite); }
a.stat:hover { border-color: #c4cad1; }
.money, .fuel-price, .big-num { font-family: var(--din); font-variant-numeric: tabular-nums; }
.btn { border-radius: 8px; border-color: #cfd4da; font-weight: 600; }
.btn:hover { border-color: #aeb5bd; background: #f7f8f9; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; }
input, select, textarea { border-color: #cdd2d8; border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(180,30,31,.25); border-color: var(--brand); }
label { color: #2f343a; }

/* Statuts : un voyant devant chaque pastille */
.badge { display: inline-flex; align-items: center; gap: .35em; }
.badge::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px rgba(255,255,255,.6); flex: none; }

/* Messages */
.flash { border-radius: 10px; border-inline-start-width: 4px; }

/* Tableaux : en-têtes en minuscules, lignes aérées */
table.list { border-radius: var(--radius); border-color: var(--line); }
.list th { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; color: var(--slate); background: #f4f5f7; }
.list td { border-top-color: #eceef1; }
.list tbody tr:hover { background: #f8f9fa; }

/* Pied de page */
.foot { color: var(--slate); }

/* ---------- Connexion : poste de contrôle ---------- */
.login-body { background: var(--graphite); background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; }
.login { max-width: 860px; display: grid; grid-template-columns: 1.1fr 1fr; text-align: start; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.login-panel { background: #fff; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; border-inline-end: 4px solid var(--brand); }
.login-panel .login-logo { width: 200px; max-width: 80%; margin: 0 0 18px; }
.login-tag { color: var(--slate); margin: 0 0 18px; }
.login-mods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.login-mods li { font-family: var(--din); font-size: .85rem; padding: .25rem .6rem; border-radius: 6px; background: var(--paper); color: var(--graphite); }
.login-form { background: var(--steel); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.login-form .login-title { color: #fff; font-size: 1.5rem; margin: 0 0 16px; }
.login-form label { color: var(--rail-txt); }
.login-form input { background: var(--graphite); border-color: var(--rail); color: #fff; }
.login-form input:focus { border-color: var(--brand-hi); outline-color: rgba(224,64,63,.35); }
.login-form .btn.primary { min-height: 46px; margin-top: 6px; font-size: 1rem; }
.login-form .login-lang { margin: 0 0 18px; border-color: var(--rail); }
.login-form .lang-switch a { color: var(--rail-txt); }
html[lang="fr"] .login-form .lang-switch a[lang="fr"], html[lang="ar"] .login-form .lang-switch a[lang="ar"] { background: var(--brand); color: #fff; }
.login .card { margin-top: 0; }
@media (max-width: 720px) {
  .login { grid-template-columns: 1fr; max-width: 420px; }
  .login-panel { padding: 24px; border-inline-end: 0; border-bottom: 4px solid var(--brand); align-items: center; text-align: center; }
  .login-mods { justify-content: center; }
  .login-form { padding: 24px; }
}

/* ---------- Parc auto : bandeau des prix, page des prix, litres calculés ---------- */
.fuel-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px; }
.fs-title { font-family: var(--din); font-weight: 600; color: var(--graphite); margin-inline-end: 4px; }
.fuel-pill { display: inline-flex; align-items: baseline; gap: .45em; padding: .3rem .7rem; border-radius: 8px; background: #f4f5f7; border: 1px solid var(--line); font-size: .88rem; }
.fuel-pill b { font-family: var(--din); font-weight: 600; font-variant-numeric: tabular-nums; }
.fuel-pill.fp-missing { background: #fff3dd; border-color: #f0d49c; color: #7a4d05; }
.fuel-strip .btn { margin-inline-start: auto; }
.fuel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; }
.fuel-card { margin: 0; border-top: 3px solid var(--graphite); }
.fuel-price { font-size: 2rem; font-weight: 600; color: var(--graphite); line-height: 1.1; }
.fuel-price small { font-family: var(--font); font-size: .85rem; font-weight: 400; color: var(--slate); }
.fuel-card p { margin: .3rem 0 0; }
.grid.two { grid-template-columns: 1fr 1fr; }
.litres-calc { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: .5rem .8rem; margin-bottom: 12px; border-radius: 8px; background: #f4f5f7; border: 1px dashed #c4cad1; }
.litres-calc .lc-label { font-size: .88rem; font-weight: 600; color: #2f343a; }
.litres-calc b { font-family: var(--din); font-size: 1.4rem; font-weight: 600; color: var(--graphite); font-variant-numeric: tabular-nums; }
.litres-calc .hint { margin: 0; }
.litres-calc[hidden] { display: none !important; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .top-in { min-height: 56px; }
  .nav { background: var(--graphite); border-top: 1px solid var(--rail); padding-top: 8px; }
  .nav a, .nav .linkbtn, .nav-more > summary { width: 100%; padding: .65rem .6rem; font-size: .95rem; }
  .nav > a.on::after, .nav-more.on > summary::after { inset-inline: auto 0; inset-inline-start: 0; top: .5rem; bottom: .5rem; width: 3px; height: auto; }
  .nav-menu { background: transparent; border: 0; box-shadow: none; padding-inline-start: 30px; }
  .brand-txt small { display: none; }
}
@media (max-width: 620px) {
  h1 { font-size: 1.35rem; }
  .list tr { border-radius: 10px; box-shadow: 0 1px 2px rgba(23,25,28,.04); }
  .grid.two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .top { display: none; } body { background: #fff; } }

/* Bandeau sur deux niveaux (bureau) : marque en haut, menu sur toute la largeur */
@media (min-width: 861px) {
  .top-in { padding-top: 8px; row-gap: 4px; }
  .top .nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .top .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav-more > summary { white-space: nowrap; }
  .nav .nav-user { margin-inline-start: auto; }
  .top .nav { overflow: visible; }
}
main.wrap { padding-top: 26px; }
main.login { padding: 0; }
.head > div > h1, .head > h1 { width: fit-content; }
.fuel-card .grid.two { grid-template-columns: 1fr; }
.fuel-price .muted { font-family: var(--din); font-weight: 500; color: #8a9099; font-size: 1.5rem; }
.login-body main.login { padding: 0 !important; margin: auto; align-items: stretch; }

/* ---------- v1.8 : voyants d'échéance clignotants ----------
 * Rouge (en retard) : clignotement rapide. Orange (bientôt) : plus lent. Les autres : très lent.
 */
@keyframes kmar-led { 0%, 45% { opacity: 1; } 55%, 100% { opacity: .2; } }
@keyframes kmar-glow { 0%, 45% { box-shadow: 0 0 0 0 rgba(224,64,63,.0); } 50% { box-shadow: 0 0 0 4px rgba(224,64,63,.25); } 100% { box-shadow: 0 0 0 0 rgba(224,64,63,0); } }
.dl-bad, .dl-warn, .dl-ok, .dl-muted { display: inline-flex; align-items: center; gap: .4em; }
.dl-bad::before, .dl-warn::before, .dl-ok::before, .dl-muted::before { content: ""; width: .6em; height: .6em; border-radius: 50%; flex: none; background: currentColor; }
.dl-bad { color: var(--bad); font-weight: 700; }
.dl-bad::before { background: #e0201f; box-shadow: 0 0 6px rgba(224,32,31,.7); animation: kmar-led .7s linear infinite; }
.dl-warn::before { background: #e08a00; animation: kmar-led 1.6s linear infinite; }
.dl-ok::before { background: var(--ok); animation: kmar-led 3.2s linear infinite; }
.dl-muted::before { background: #9aa1a9; animation: kmar-led 3.2s linear infinite; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.35em; height: 1.35em; padding: 0 .35em; margin-inline-start: .15em;
  border-radius: 99px; background: #e0201f; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; animation: kmar-led .7s linear infinite; }
.stat.is-late { border-left-color: #e0201f; animation: kmar-glow 1.4s ease-out infinite; }
.stat.is-late b { color: var(--bad); }
.stat.is-late b::after { content: ""; display: inline-block; width: .32em; height: .32em; margin-inline-start: .3em; vertical-align: .55em; border-radius: 50%; background: #e0201f; animation: kmar-led .7s linear infinite; }

/* Onglets Tous / Les miens / Archives */
.vue-tabs { display: flex; gap: 4px; margin: 0 0 14px; padding: 4px; background: #e2e5e9; border-radius: 10px; width: fit-content; }
.vue-tabs a { padding: .4rem .9rem; border-radius: 7px; color: var(--slate); text-decoration: none; font-weight: 600; font-size: .9rem; }
.vue-tabs a:hover { color: var(--graphite); }
.vue-tabs a.on { background: #fff; color: var(--graphite); box-shadow: 0 1px 2px rgba(23,25,28,.12); }
.flash.archived { background: #f1f2f4; border-color: #cfd4da; color: #2f343a; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { .dl-bad::before, .nav-badge { animation: none !important; } }

/* ======================================================================
 * v1.9 — une couleur par module dans toute l'application
 * Écrit sans fonctions CSS récentes (pas de :has ni de color-mix) pour les anciens téléphones.
 * Les couleurs d'état ne changent pas : vert = bon, orange = attention, rouge = urgent.
 * ====================================================================== */
:root {
  --c-tickets: #d32f2f; --c-pointage: #2e8b57; --c-fiches: #7b4bb7; --c-sav: #e8710a; --c-parc: #6f7f1a;
  --c-rewards: #b8860b; --c-annuaire: #8d5b3a; --c-gestion: #4a4f57; --c-dash: #1f1f1f;
  --t-tickets: #fdecec; --t-pointage: #e8f5ee; --t-fiches: #f2ecfa; --t-sav: #fff0e3; --t-parc: #f2f5e1;
  --t-rewards: #fbf4df; --t-annuaire: #f6eee8; --t-gestion: #eef0f2; --t-dash: #eef0f2;
  /* teintes claires lisibles sur le bandeau graphite */
  --n-tickets: #ff7a7a; --n-pointage: #63d39b; --n-fiches: #bf9cf2; --n-sav: #ffab5e; --n-parc: #c6d85a;
  --n-rewards: #f2cc5a; --n-annuaire: #d9ae8c; --n-gestion: #cfd4da; --n-dash: #e9ecef;
  --mod: var(--c-dash); --mod-t: var(--t-dash);
}
/* Menu : chaque icône dans la couleur de son module */
.nav .ico { opacity: 1; }
.nav .m-dash .ico { color: var(--n-dash); } .nav .m-tickets .ico { color: var(--n-tickets); } .nav .m-pointage .ico { color: var(--n-pointage); }
.nav .m-fiches .ico { color: var(--n-fiches); } .nav .m-sav .ico { color: var(--n-sav); } .nav .m-parc .ico { color: var(--n-parc); }
.nav .m-rewards .ico { color: var(--n-rewards); } .nav .m-annuaire .ico { color: var(--n-annuaire); } .nav .m-gestion .ico { color: var(--n-gestion); }
.nav > a.m-tickets.on::after { background: var(--n-tickets); } .nav > a.m-pointage.on::after { background: var(--n-pointage); }
.nav > a.m-fiches.on::after { background: var(--n-fiches); } .nav > a.m-sav.on::after { background: var(--n-sav); }
.nav > a.m-parc.on::after { background: var(--n-parc); } .nav > a.m-rewards.on::after { background: var(--n-rewards); }
.nav-more.m-annuaire.on > summary::after { background: var(--n-annuaire); } .nav-more.m-gestion.on > summary::after { background: var(--n-gestion); }

/* Chaque page prend la couleur de son module (attribut data-mod du <body>) */
body[data-mod="tickets"] { --mod: var(--c-tickets); --mod-t: var(--t-tickets); }
body[data-mod="pointage"] { --mod: var(--c-pointage); --mod-t: var(--t-pointage); }
body[data-mod="fiches"] { --mod: var(--c-fiches); --mod-t: var(--t-fiches); }
body[data-mod="sav"] { --mod: var(--c-sav); --mod-t: var(--t-sav); }
body[data-mod="parc"] { --mod: var(--c-parc); --mod-t: var(--t-parc); }
body[data-mod="rewards"] { --mod: var(--c-rewards); --mod-t: var(--t-rewards); }
body[data-mod="annuaire"] { --mod: var(--c-annuaire); --mod-t: var(--t-annuaire); }
body[data-mod="gestion"] { --mod: var(--c-gestion); --mod-t: var(--t-gestion); }
.head > div > h1::before, .head > h1::before, .head > div > h1::after, .head > h1::after { border-color: var(--mod); }
body:not([data-mod="dash"]) main .card:not(.veh-card):not(.fuel-card) { border-top: 3px solid var(--mod); }
body:not([data-mod="dash"]) main h2 { border-inline-start: 4px solid var(--mod); padding-inline-start: .5rem; }
body:not([data-mod="dash"]) main fieldset.card legend { color: var(--mod); }
body:not([data-mod="dash"]) .list th { background: var(--mod-t); border-bottom: 2px solid var(--mod); color: #2f343a; }
body:not([data-mod="dash"]) .vue-tabs a.on, body:not([data-mod="dash"]) .tabs a.on { box-shadow: inset 0 -3px 0 var(--mod), 0 1px 2px rgba(23,25,28,.12); }
body:not([data-mod="dash"]) .filters.card { background: var(--mod-t); }
body:not([data-mod="dash"]) main .list tbody tr:hover { background: var(--mod-t); }
main .plaque, main .money { border-top: 0; }

/* Cartes et tuiles du tableau de bord : couleur de leur module */
.mod-tickets { --mod: var(--c-tickets); --mod-t: var(--t-tickets); } .mod-pointage { --mod: var(--c-pointage); --mod-t: var(--t-pointage); }
.mod-fiches { --mod: var(--c-fiches); --mod-t: var(--t-fiches); } .mod-sav { --mod: var(--c-sav); --mod-t: var(--t-sav); }
.mod-parc { --mod: var(--c-parc); --mod-t: var(--t-parc); } .mod-rewards { --mod: var(--c-rewards); --mod-t: var(--t-rewards); }
.mod-dash { --mod: var(--c-dash); --mod-t: var(--t-dash); }
.card.mod-card { border-top: 4px solid var(--mod); }
.card.mod-card > h2 { display: flex; align-items: center; gap: .5rem; border: 0; padding: 0; }
.card.mod-card > h2::before { content: ""; width: .7rem; height: .7rem; border-radius: 3px; background: var(--mod); flex: none; }
.stat.mod-tickets, .stat.mod-pointage, .stat.mod-sav, .stat.mod-fiches, .stat.mod-parc { border-left-color: var(--mod); background: var(--mod-t); }
.stat.mod-tickets b, .stat.mod-pointage b, .stat.mod-sav b { color: var(--mod); }

/* Actions rapides du technicien : grandes tuiles colorées, faciles à toucher */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.qa { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 14px; border-radius: 12px; text-decoration: none;
  background: var(--mod); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.15), 0 6px 14px rgba(23,25,28,.10); position: relative; overflow: hidden; }
.qa::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.12); }
.qa b { font-family: var(--din); font-size: 1.12rem; font-weight: 600; letter-spacing: .01em; }
.qa small { opacity: .92; font-size: .8rem; }
.qa:hover { opacity: .93; }
.qa:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }
@media (max-width: 980px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .quick { grid-template-columns: repeat(2, 1fr); } .qa { min-height: 70px; } }

/* Menu un peu plus compact */
@media (min-width: 861px) {
  .top .nav > a, .top .nav-more > summary { padding: .5rem .5rem; font-size: .86rem; gap: .32rem; }
}

/* Observateur : consultation seulement */
.obs-banner { background: #3a3f46; color: #fff; text-align: center; font-size: .82rem; padding: 4px 8px; letter-spacing: .02em; }
body[data-obs] main form[method="post"], body[data-obs] main a[href$="/nouveau"], body[data-obs] main a[href$="/nouvelle"],
body[data-obs] main a[href*="/nouvelle?"], body[data-obs] main a[href*="/nouveau?"], body[data-obs] main a[href$="/modifier"], body[data-obs] .quick { display: none !important; }
body[data-obs] main form[action="/compte"] { display: block !important; }

/* Carburant : position obligatoire */
.geo-required { margin: 0 0 8px; padding: .45rem .7rem; border-radius: 8px; background: #fff3dd; color: #7a4d05; font-size: .88rem; font-weight: 600; }
#parc-geo.ok { color: var(--ok); font-weight: 600; } #parc-geo.err { color: var(--bad); font-weight: 600; }
.mod-gestion { --mod: var(--c-gestion); --mod-t: var(--t-gestion); }

/* ---------- v1.9.4 : WhatsApp et contacts des clients ---------- */
.btn.wa { display: inline-flex; align-items: center; gap: .5rem; background: #455a64; color: #fff; border: 1px solid #37474f;
  font-weight: 700; letter-spacing: .01em; padding: .5rem .95rem .5rem .6rem; border-radius: 999px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 6px rgba(0,0,0,.18); }
.btn.wa img { width: 22px; height: 22px; display: block; flex: none; }
.btn.wa:hover, .btn.wa:focus-visible { background: #37474f; color: #fff; border-color: #25d366; }
.btn.wa:active { transform: translateY(1px); }
.btn.wa.wa-mini { padding: .22rem; border-radius: 50%; gap: 0; vertical-align: middle; margin-inline-start: .3rem; }
.btn.wa.wa-mini img { width: 20px; height: 20px; }
.wa-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.wa-card { border-inline-start: 4px solid #25d366; }
.dem-box { border: 1px dashed var(--line, #c9d3dc); border-radius: 10px; padding: .6rem .75rem; }
.dem-box select { width: 100%; }
.dem-autre { margin-top: .5rem; }
.badge.b-principal { background: #fff4d6; color: #7a5600; border: 1px solid #e8c768; }
table.contacts .tel-cell { white-space: nowrap; }
details.inline-edit { display: inline-block; }
details.inline-edit[open] { display: block; margin: .4rem 0; }
.dem-autre[hidden] { display: none; }

/* ---------- v1.9.5 : signatures et fiche depuis un ticket ---------- */
[data-sig-box][hidden], [data-sig-client][hidden], [data-sig-motif][hidden] { display: none; }
.sig-box { border-inline-start: 4px solid #1f8a4c; }
.sig-pad { margin: .6rem 0; }
.sig-pad canvas { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 220; background: #fff;
  border: 2px dashed #9aa7b2; border-radius: 10px; touch-action: none; cursor: crosshair; margin: .35rem 0; }
.sig-pad.sig-missing canvas { border-color: #b41e1f; box-shadow: 0 0 0 3px rgba(180,30,31,.15); }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sig-img { display: block; max-width: 100%; width: 320px; background: #fff; border: 1px solid #d5dde3; border-radius: 8px; margin: .3rem 0; }
.ticket-prompt { border-inline-start: 4px solid #1f8a4c; }
.flash.info { background: #eef6ff; border: 1px solid #b9d4ef; color: #17344f; }

/* ---------- v1.9.6 : Espace client, demandes, GPS ---------- */
.dem-card { border: 1px solid var(--line, #dfe3e8); border-inline-start: 4px solid #b41e1f; border-radius: 10px; padding: .8rem 1rem; margin: .8rem 0; }
.dem-card header { margin-bottom: .5rem; }
.dem-photo { display: block; max-width: 320px; width: 100%; border-radius: 8px; border: 1px solid #d5dde3; margin: .5rem 0; }
.dem-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.badge.b-urgent { background: #fdecec; color: #a01616; border: 1px solid #f1b7b7; }
.badge.b-normale { background: #eef1f4; color: #39424c; }
.badge.b-sanspos { background: #fff4d6; color: #7a5600; border: 1px solid #e8c768; font-size: .72rem; }
.card.origine { border-inline-start: 4px solid #b41e1f; }
.card.origine.a-confirmer { background: #fff8f7; }
.qa.qa-alert { box-shadow: 0 0 0 2px #b41e1f inset; }
.nav-badge.nav-badge-new { background: #d97706; }
code.copy { user-select: all; word-break: break-all; background: #f3f4f6; padding: .15rem .4rem; border-radius: 6px; }

/* ---------- v1.9.7 : facturation et fiches à traiter ---------- */
[data-fact-box][hidden], [data-fact-motif][hidden], [data-fact-contrat][hidden], [data-fact-nocontrat][hidden] { display: none; }
.fact-box { border-inline-start: 4px solid #b26b00; }
.fact-opts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .6rem; }
.fact-opt { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid #cfd4da; border-radius: 10px; padding: .55rem .9rem; font-weight: 600; cursor: pointer; }
.fact-opt input { accent-color: #b41e1f; }
.badge.fact-b-facturer { background: #fff4d6; color: #7a5600; border: 1px solid #e8c768; }
.badge.fact-b-gratuit { background: #eef1f4; color: #39424c; }
.badge.fact-b-contrat { background: #e6f6ec; color: #13804a; border: 1px solid #a8dcbc; }
.badge.fact-b-aucun { background: #f3f4f6; color: #6b7280; }
.fact-card.fact-todo { border-inline-start: 4px solid #b41e1f; }
.fact-card.fact-ok { border-inline-start: 4px solid #13804a; }
.big-check { font-weight: 700; font-size: 1.05rem; }
.a-traiter { border: 2px solid #b41e1f; background: #fff8f7; }
.a-traiter .a-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.a-traiter tr.lvl-orange td { background: #fff4e0; }
.a-traiter tr.lvl-rouge td { background: #fde4e4; }
.a-traiter tr.lvl-rouge td:first-child { box-shadow: inset 4px 0 0 #b41e1f; }
.fact-none { color: #13804a; }
.a-traiter h2 .nav-badge { background: #b41e1f; color: #fff; padding: 1px 9px; border-radius: 999px; font-size: .85rem; }

/* ---------- v1.9.8 : type de plein ---------- */
.plein-choice { border: 0; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; }
.plein-choice legend { font-weight: 600; margin-bottom: .3rem; padding: 0; }
.plein-opt { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid #cfd4da; border-radius: 10px; padding: .55rem .9rem; cursor: pointer; }
.plein-opt input { accent-color: #b41e1f; }
.plein-choice[hidden] { display: none; }

/* ---------- v1.9.8 : double vérification ---------- */
.tf-page { justify-content: center; }
.tf-box { max-width: 460px; margin: 0 auto; }
.tf-logo { display: block; width: 110px; height: auto; margin: 0 auto 10px; }
.tf-code { font-size: 1.8rem !important; letter-spacing: .35em; text-align: center; font-weight: 700; }
.tf-qr { display: flex; justify-content: center; margin: .6rem 0; }
.tf-qr svg { width: 220px; height: 220px; border-radius: 10px; border: 1px solid #e3e6ea; }
.tf-steps { padding-inline-start: 1.3rem; margin: .5rem 0; }
.tf-steps li { margin: .3rem 0; }
.tf-codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .8rem 0; }
.tf-codes code { display: block; text-align: center; font-size: 1.1rem; padding: .5rem; background: #f3f4f6; border-radius: 8px; letter-spacing: .08em; }
.badge.b-tf { background: #e6f6ec; color: #13804a; }
.plein-choice .plein-opt { flex-direction: row !important; flex: 1 1 220px; align-items: center; gap: .6rem; font-weight: 400; }
.plein-choice .plein-opt input { width: 22px !important; height: 22px !important; min-height: 0 !important; padding: 0 !important; margin: 0; flex: none; }
.plein-choice .plein-opt small { display: block; font-weight: 400; }
.plein-choice .plein-opt b { white-space: nowrap; }
.tf-box code.copy { display: block; margin-top: .3rem; text-align: center; font-size: 1rem; letter-spacing: .06em; color: #111; }

/* ---------- v2.0.5 : menu administrateur regroupé, tableau de bord réorganisé ---------- */
.nav .m-terrain .ico { color: var(--n-tickets); } .nav .m-commercial .ico { color: var(--n-gestion); }
.nav-menu .nav-badge { position: static; margin-inline-start: .35rem; }
.dash-head { margin-bottom: 6px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.dash-actions .da { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .9rem; border: 1px solid var(--line); }
.dash-actions .da::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--mod); }
.dash-actions .da:hover { border-color: var(--mod); background: var(--mod-t); }
.dash-grid { margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 16px; align-items: start; }
.dash-main { display: grid; gap: 16px; min-width: 0; }
.dash-block { margin: 0; }
.dash-block > h2 { margin-bottom: 12px; }
.dash-more { margin-inline-start: auto; font-size: .82rem; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #f7f8fa; border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.kpi:hover { border-color: var(--mod); background: var(--mod-t); }
.kpi-l { font-size: .82rem; color: var(--slate); font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.kpi-v { font-family: var(--din); font-size: 1.55rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.kpi-v small { font-size: .95rem; color: var(--slate); font-weight: 500; }
.kpi-v .money { font-size: 1.08rem; }
.kpi > small { font-size: .8rem; color: var(--slate); line-height: 1.3; }
.kpi-alert { background: #fdf1f1; border-color: #efc9c9; }
.kpi-alert .kpi-v { color: var(--brand); }
.dash-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash-two h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); margin: 0 0 8px; }
.dash-todo { position: sticky; top: 12px; }
.dash-count { display: inline-flex; min-width: 1.5rem; justify-content: center; padding: 0 .4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .8rem; }
.dash-todo .digest { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.dash-todo .digest .hint { margin: 0 0 8px; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } .dash-todo { position: static; order: -1; } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-v { white-space: normal; } .dash-two { grid-template-columns: 1fr; } .kpi-v { font-size: 1.3rem; } }

/* ---------- v2.0.32 : listes compactes (tickets, fiches, articles) ---------- */
.list.lc td { padding: .38rem .6rem; font-size: .92rem; }
.list.lc th { padding: .45rem .6rem; }
@media (max-width: 860px) {
  .list.lc tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 12px; margin-bottom: 6px; }
  .list.lc td { display: inline-flex; width: auto; padding: 0; border: 0; text-align: left; justify-content: flex-start; font-size: .9rem; }
  .list.lc td[data-l]::before { display: none; }
  .list.lc td.m-hide { display: none; }
  .list.lc td.lc-main { flex: 1 1 100%; order: 2; font-weight: 600; }
  .list.lc td.lc-sub { color: var(--slate, #555); font-size: .82rem; order: 3; }
  .list.lc td.lc-st { margin-inline-start: auto; order: 1; }
  .list.lc td:first-child { order: 0; }
  .list.lc-art td.gc-photo-cell { order: 0; }
  .list.lc-art .gc-thumb { width: 38px; height: 38px; }
  /* barre du bas de l'administrateur (même design que celle des techniciens) */
  body[data-role="admin"] { padding-bottom: 84px; }
  .tabbar-admin .tb-panel { grid-template-columns: 1fr 1fr; min-width: 270px; }
  .tabbar-admin .tb-panel form { grid-column: 1 / -1; }
}

/* v2.0.49 : bouton Retour */
.back-btn { display: inline-flex; align-items: center; gap: .25rem; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: .3rem .65rem .3rem .45rem; font-weight: 600; font-size: .9rem; line-height: 1; min-height: 38px; flex-shrink: 0; }
.back-btn[hidden] { display: none; }
.back-btn:hover, .back-btn:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.back-ar { font-size: 1.6rem; line-height: .8; margin-top: -2px; }
[dir="rtl"] .back-ar { transform: scaleX(-1); }
@media (max-width: 600px) { .back-btn { padding: .3rem .5rem; } .back-txt { display: none; } .back-btn { min-width: 40px; justify-content: center; } }
@media print { .back-btn { display: none !important; } }

/* v2.0.50 : dossier du ticket */
.dossier .dos-bloc { border-top: 1px solid var(--line, #e3e5e8); padding-top: .7rem; margin-top: .7rem; }
.dossier .dos-bloc:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.dossier h3 { font-size: 1rem; margin: 0 0 .45rem; }
.dos-visites { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.dos-visites > li { border: 1px solid var(--line, #e3e5e8); border-left: 4px solid var(--brand, #c8161d); border-radius: 10px; padding: .55rem .7rem; background: var(--card2, #fafbfc); }
.dos-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.dos-l1 form { margin-left: auto; }
.dos-l2 { font-size: .9rem; margin-top: .2rem; overflow-wrap: anywhere; }
.dos-tot { margin: .5rem 0; }
.dossier .linkfiche { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.dossier .linkfiche select { flex: 1 1 220px; min-width: 0; }
.dossier td.num { text-align: right; white-space: nowrap; }
.suivi-tout summary { cursor: pointer; color: var(--muted, #667); margin: .4rem 0; }

/* v2.0.51 : Parc auto — barres d'échéance, graphiques, chronologie, trajets */
.pbar { display: block; width: 100%; height: 9px; }
.pb-bg { fill: #eceef1; } .pb-ok { fill: var(--ok, #1d8a4b); } .pb-warn { fill: var(--warn, #b87500); } .pb-bad { fill: var(--bad, #b32626); }
.ech-bars { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .55rem; }
.ech-bars li { display: grid; gap: .2rem; }
.eb-l { display: flex; gap: .5rem; font-size: .9rem; } .eb-l b { flex: 1; font-weight: 600; }
.eb-t { font-weight: 600; } .eb-ok .eb-t { color: var(--ok, #1d8a4b); } .eb-warn .eb-t { color: #8a5700; } .eb-bad .eb-t { color: var(--bad, #b32626); }
.eb-act { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; } .eb-act small { flex: 1 1 200px; }
.sec-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .4rem; } .sec-h h2 { flex: 1; margin: 0; }
.couts-chart, .ckm-chart { width: 100%; height: auto; display: block; }
.cg { stroke: #e3e6ea; stroke-width: 1; } .cg-t, .cg-x { fill: var(--slate, #5b636d); font-size: 11px; }
.c-carb { fill: #b41e1f; } .c-autres { fill: #17191c; } .c-fixe { fill: #8a929c; }
.c-carb-s { stroke: #b41e1f; } .c-autres-s { stroke: #17191c; } .c-fixe-s { stroke: #8a929c; } .an-bg { stroke: #eceef1; }
.legende { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; margin: .4rem 0 0; }
.legende span, .an-leg li { display: inline-flex; align-items: center; gap: .4rem; }
i.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; } i.lg.c-carb { background: #b41e1f; } i.lg.c-autres { background: #17191c; } i.lg.c-fixe { background: #8a929c; }
.anneau { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.anneau svg { width: 170px; height: 170px; } .an-v { font-size: 6px; font-weight: 700; fill: var(--ink, #1b1e22); } .an-u { font-size: 3.4px; fill: var(--slate, #5b636d); }
.an-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; min-width: 190px; } .an-leg span { flex: 1; } .an-leg li { display: flex; }
.ckm-l { stroke: #b41e1f; stroke-width: 3; stroke-linejoin: round; } .ckm-p { fill: #b41e1f; }
.veh-card .ech-bars { margin-top: .6rem; }
.chrono { list-style: none; margin: 0; padding: 0; }
.chrono li { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #eceef1; align-items: flex-start; }
.ch-ico { flex: 0 0 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eceef1; color: #353b43; }
.ch-plein .ch-ico { background: #f7e7e7; color: #b41e1f; } .ch-entretien .ch-ico { background: #17191c; color: #fff; } .ch-lavage .ch-ico { background: #e6f2ea; color: #1d6b3c; }
.ch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ch-txt small { color: var(--slate, #5b636d); overflow-wrap: anywhere; }
.ch-m { text-align: right; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; } .ch-m small { color: var(--slate, #5b636d); font-size: .8rem; }
.chips .chip.on, .modeles .chip.on { background: var(--graphite, #17191c); border-color: var(--graphite, #17191c); color: #fff; }
.modeles { display: flex; flex-wrap: wrap; gap: .45rem; } .modeles .chip { cursor: pointer; min-height: 40px; }
.motifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.motif { position: relative; } .motif input { position: absolute; opacity: 0; }
.motif span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: .3rem .5rem; border: 1px solid #c9ced5; border-radius: 12px; background: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.motif input:checked + span { background: #b41e1f; border-color: #b41e1f; color: #fff; } .motif input:focus-visible + span { outline: 2px solid var(--brand-hi, #e0403f); outline-offset: 2px; }
.tj-total { display: flex; gap: 1rem; background: #17191c; color: #fff; border-radius: 12px; padding: .7rem 1rem; margin: .6rem 0; }
.tj-total div { flex: 1; display: flex; flex-direction: column; } .tj-total small { color: #b7bdc5; } .tj-total b { font-family: var(--din); font-size: 1.5rem; }
.tj-total div + div { text-align: right; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hbars li { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto; align-items: center; gap: .6rem; font-size: .9rem; } .hbars svg { width: 100%; height: 12px; }
.hb-client { fill: #b41e1f; } .hb-achat { fill: #17191c; } .hb-livraison { fill: #5b636d; } .hb-admin { fill: #8a929c; } .hb-perso { fill: #d78a8a; } .hb-tech { fill: #17191c; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 10px; background: #eceef1; color: #353b43; } .tg-client { background: #f7e7e7; color: #8f1718; }
@media (max-width: 600px) { .hbars li { grid-template-columns: 1fr auto; } .hbars svg { grid-column: 1 / -1; grid-row: 2; } }

/* v2.0.51 : corrections de l'audit graphique */
:root { --ok-ink: #136534; --warn-ink: #855300; }
/* contraste des textes colorés (4,5:1 minimum) */
.b-en_cours, .p-moyenne, .tag2-soon { color: var(--warn-ink); }
.e-sent, .dl-ok, .eb-ok .eb-t, .tag2-ok { color: var(--ok-ink); }
.eb-warn .eb-t { color: var(--warn-ink); }
.tag2 { font-size: .78rem; } .badge.b-sanspos { font-size: .78rem; } small.muted { font-size: max(12px, .8em); }
/* numéros de pièces sur une seule ligne */
table.list td:first-child b, table.list td:first-child a b, .tk-num { white-space: nowrap; }
/* menu ☰ : cible tactile de 44 px */
@media (max-width: 860px) { .burger { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } }
/* barres d'échéance : libellé lisible */
.eb-l { align-items: baseline; } .eb-l b { flex: 1 1 auto; min-width: 0; } .eb-t { flex: 0 1 auto; text-align: right; }
/* téléphone : filtres repliables, actions secondaires dans « Plus », À traiter replié */
.flt-tog { display: none; }
@media (max-width: 700px) {
  .flt-tog { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 46px; margin: .2rem 0 .6rem; }
  .flt-tog b { background: var(--brand, #b41e1f); color: #fff; border-radius: 99px; padding: 0 .5rem; font-size: .8rem; }
  form.filters.flt-closed { display: none; }
  .more-act { position: relative; display: inline-block; }
  .more-act > summary { list-style: none; cursor: pointer; } .more-act > summary::-webkit-details-marker { display: none; }
  .more-menu { position: absolute; left: 0; right: auto; top: calc(100% + 6px); z-index: 30; min-width: 220px; max-width: calc(100vw - 16px); background: #fff; border: 1px solid #dde1e6; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: .4rem; display: grid; gap: .3rem; }
  .more-menu > *, .more-menu form, .more-menu .btn { width: 100%; } .more-menu .btn { justify-content: flex-start; text-align: left; }
  .todo2-tog { margin-left: auto; min-width: 44px; min-height: 36px; border: 1px solid #dde1e6; background: #fff; border-radius: 10px; font-size: 1rem; cursor: pointer; }
  .todo2-closed .todo2-lk, .todo2-closed small, .todo2-closed .todo2-more { display: none; }
  .todo2 > div { display: flex; flex-wrap: wrap; align-items: center; } .todo2 > div > .todo2-h { flex: 1 1 60%; } .todo2 > div > .todo2-lk, .todo2 > div > small, .todo2 > div > .todo2-more { flex: 1 1 100%; }
}
/* pointage : navigation de semaine sur une ligne (téléphone) */
@media (max-width: 700px) { .weeknav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; } .weeknav b { order: 2; text-align: center; font-size: .92rem; } .weeknav > a:first-child { order: 1; } .weeknav > a:nth-of-type(2) { order: 3; } .weeknav > a:nth-of-type(3) { order: 4; grid-column: 1 / -1; justify-self: center; } }
.chrono li.row-orange { background: #fff6e6; } .chrono li.row-rouge, .chrono li.row-suspect { background: #fdecec; }
.chrono li.row-orange, .chrono li.row-rouge, .chrono li.row-suspect { padding-left: .5rem; padding-right: .5rem; border-radius: 10px; }
/* v2.0.52 : écart fiche / devis, facturation du chantier */
.ecart-devis { margin-top: .4rem; padding: .5rem .7rem; border-radius: 10px; background: #fff6e6; border: 1px solid #f0d49a; color: #5c3b00; font-size: .9rem; }
.chantier-mode fieldset { border: 1px solid var(--line, #e3e6ea); border-radius: 12px; padding: .6rem .8rem; margin: 0 0 .8rem; }
/* v2.0.53 : accès à l'Espace client */
.badge.acc-complet { background: #e6f2ea; color: #136534; } .badge.acc-demandes { background: #eceef1; color: #353b43; } .badge.acc-aucun { background: #fdecec; color: #8f1718; }

/* v2.0.56 : annulées à part, versions du devis, marge, demande de modification */
.gc-annules { margin: .25rem 0 .75rem; }
.gc-annules-bloc { margin-top: .75rem; }
.gc-annules-bloc > summary { cursor: pointer; color: var(--muted, #5f6672); font-weight: 600; padding: .35rem 0; }
.gc-annules-bloc table { opacity: .8; }
.gc-version { border-left: 4px solid #b41e1f; }
.gc-version legend { font-weight: 700; }
.gc-version .hint.err { color: #b32626; }
.gc-marge-alerte { margin: .5rem 0; }
.gc-version-courante td { background: rgba(19, 101, 52, .06); }
.gc-modif-demande { border-left: 4px solid #d08a00; }
.gc-modif-list { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .5rem; }
.gc-modif-list li { background: #fff7e8; border-radius: 10px; padding: .55rem .75rem; white-space: pre-line; }

/* v2.0.57 : rappel WhatsApp avec choix du destinataire */
.rl-btns, .bl-comptant .btns { align-items: center; }
form.rl-wa { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; }
.rl-wa select { width: auto; max-width: 300px; min-height: 40px; margin: 0; }
.rl-wa .btn { white-space: nowrap; }
@media (max-width: 560px) { form.rl-wa { width: 100%; flex-wrap: wrap; } .rl-wa select { width: 100%; max-width: none; } }
.acc-autres { color: #7a4b00; font-size: 12px; }

/* v2.0.60 : facturation sur téléphone (le texte ne se coupait plus lettre par lettre) */
.fact-opt input[type=radio] { width: auto; min-width: 0; height: auto; flex: 0 0 auto; margin: 0; }
.fact-opt { flex: 1 1 140px; min-width: 0; white-space: normal; }

/* v2.0.60 : contrôle de position de la fiche + signature sur le téléphone du client */
form.geo-locked { display: none; }
.geo-gate { margin: 0 0 12px; }
.geo-wait-box { display: flex; align-items: center; gap: 10px; background: #fff7e8; color: #7a4b00; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.geo-dot { width: 12px; height: 12px; border-radius: 50%; background: #f0b400; display: inline-block; animation: geo-p 1.2s infinite; }
@keyframes geo-p { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .geo-dot { animation: none; } }
.geo-stop { background: #b41e1f; color: #fff; border-radius: 18px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.geo-stop > b { font-size: 26px; letter-spacing: .5px; }
.geo-stop small { opacity: .92; }
.geo-stop [data-geo-detail] { font-size: 15px; font-weight: 600; background: rgba(0,0,0,.18); border-radius: 10px; padding: 6px 10px; }
.geo-stop .btn { background: #15181c; color: #fff; border-color: #15181c; margin-top: 6px; }
.geo-okbar { background: #e3f3e8; color: #136534; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.geo-note { background: #fff7e8; border: 1px solid #f0cf8f; color: #4a3200; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.geo-sign { text-align: center; }
.geo-qr { display: inline-block; background: #fff; border: 1px solid #e3e6ea; border-radius: 14px; padding: 12px; margin: 8px auto; }
.geo-qr svg { width: 220px; height: 220px; display: block; }
.geo-wait { display: inline-flex; align-items: center; gap: 8px; background: #fff7e8; color: #7a4b00; border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.geo-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 6px; }
.geo-lien { word-break: break-all; }
.geo-resume-line { margin: 4px 0; color: #136534; font-weight: 600; font-size: 14px; }
.geo-box .inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.geo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; }
.geo-chk { display: flex; align-items: center; gap: 10px; font-weight: 600; flex: 1 1 320px; }
.geo-chk input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #b41e1f; }
.geo-form select { flex: 1 1 320px; width: auto; }
.geo-resume-line.geo-bureau { color: #4a5059; }
/* v2.0.63 : rubriques de l'Espace client par client */
.rub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 8px 0; }
.rub-l { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; margin: 0; border: 1px solid #e4e4e7; border-radius: 10px; background: #fff; font-weight: 500; }
.rub-l input[type=checkbox] { display: inline-block; width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; margin: 0; padding: 0; }
.rub-l span { flex: 1 1 auto; min-width: 0; white-space: normal; word-break: normal; overflow-wrap: break-word; line-height: 1.25; }
.rub-l input.rub-o { display: inline-block; width: 60px; flex: 0 0 60px; margin: 0; padding: .35rem .4rem; text-align: center; }
@media (max-width: 560px) { .rub-grid { grid-template-columns: 1fr; } }
/* v2.0.63 : page de connexion — lien vers l'Espace client */
.login-client { display: inline-block; align-self: flex-start; margin-top: 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid #f1c9c9; background: #fdf3f3; color: #8f1718; text-decoration: none; font-size: 14px; }
.login-client:hover, .login-client:focus-visible { background: #fbe5e5; }
@media (max-width: 760px) { .login-client { align-self: center; } }

/* ===== v3.2.16 : menu Carburant rapide ===== */
.pq-form { counter-reset: pq; min-width: 0; }
.pq-form .pq-sec, .pq-form .pq-lieu { min-width: 0; max-width: 100%; }
.pq-form .pq-sec > legend { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.pq-form .pq-sec .pq-num::before { counter-increment: pq; content: counter(pq); }
.pq-form .pq-num { width: 24px; height: 24px; border-radius: 12px; background: #17191c; color: #fff; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pq-form .pq-sub { margin: 0 0 .4rem; font-size: .85rem; color: #6b7280; }
.pq-form [hidden] { display: none !important; }
.pq-vrow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 8px; scrollbar-width: thin; }
.pq-form .pq-veh { flex: 0 0 230px; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 0; margin: 0; border: 2px solid #e4e4e7; border-radius: 16px; background: #fff; overflow: hidden; text-align: start; cursor: pointer; color: inherit; font: inherit; min-height: 0; box-shadow: none; }
.pq-form .pq-veh.on { border-color: #c8102e; box-shadow: 0 0 0 3px rgba(200,16,46,.15); }
.pq-veh img { width: 100%; height: auto; aspect-ratio: 600 / 340; object-fit: cover; display: block; background: #ededef; }
.pq-vb { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.pq-vn { font-size: 1rem; color: #17191c; }
.pq-vu { font-size: .78rem; color: #6b7280; }
.pq-vp { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.pq-carb { font-size: .72rem; font-weight: 700; color: #b41e1f; background: #fef2f2; border-radius: 6px; padding: 3px 6px; }
.pq-hab { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; background: #17191c; color: #fff; font-size: .72rem; font-weight: 700; border-radius: 8px; padding: 4px 8px; }
.pq-hab svg { width: 12px; height: 12px; }
.pq-ok { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 15px; background: #c8102e; color: #fff; display: none; align-items: center; justify-content: center; }
.pq-ok svg { width: 18px; height: 18px; }
.pq-veh.on .pq-ok { display: flex; }
.pq-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pq-tiles2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pq-tiles3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pq-form .pq-tile { position: relative; min-height: 80px; margin: 0; padding: 8px 4px; border: 2px solid #e4e4e7; border-radius: 14px; background: #fff; color: #3f3f46;
  display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: .8rem; font-weight: 600; text-align: center; cursor: pointer; box-shadow: none; line-height: 1.15; }
.pq-form .pq-tile span { font-size: .74rem; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.pq-form .pq-tiles2 .pq-tile span { font-size: .92rem; }
.pq-form .pq-tile svg { width: 28px; height: 28px; flex: none; }
.pq-form .pq-tile .pq-jauge { width: 56px; height: 34px; }
.pq-form .pq-tile.on { border-color: #c8102e !important; background: #c8102e !important; color: #fff !important; }
.pq-form .pq-radio input { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; pointer-events: none; }
.pq-form .pq-radio.focus, .pq-form .pq-tile:focus-visible, .pq-form .pq-veh:focus-visible { outline: 3px solid #17191c; outline-offset: 2px; }
.pq-form .pq-tiles2 .pq-tile { min-height: 96px; font-size: .92rem; }
.pq-quand { margin-top: 10px; }
.pq-quand > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: #3f3f46; list-style: none; padding: 6px 2px; }
.pq-quand > summary::-webkit-details-marker { display: none; }
.pq-quand > summary svg { width: 18px; height: 18px; }
.pq-quand > summary small { color: #b41e1f; font-weight: 600; text-decoration: underline; }
.pq-odo { background: #18181b; border-radius: 16px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pq-odo-row { display: flex; align-items: center; gap: 4px; }
.pq-roue { width: 40px; height: 76px; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; border-radius: 6px; overscroll-behavior: contain; cursor: ns-resize; touch-action: pan-y;
  background: linear-gradient(#050505, #2a2a2e 30%, #3a3a3f 50%, #2a2a2e 70%, #050505); }
.pq-roue::-webkit-scrollbar { display: none; }
.pq-roue:focus-visible { outline: 2px solid #c8102e; outline-offset: 2px; }
.pq-roue.pq-gap { margin-right: 8px; }
.pq-pad { height: 12px; }
.pq-dg { height: 52px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-family: var(--din, "Barlow Condensed", "Arial Narrow", sans-serif); font-weight: 600; font-size: 38px; color: #fff; user-select: none; font-variant-numeric: tabular-nums; }
.pq-unit { font-family: var(--din, "Arial Narrow", sans-serif); font-size: 1.1rem; color: #d4d4d8; margin-left: 6px; }
.pq-unit.pq-mil { font-size: 1.7rem; color: #fff; margin-left: 2px; }
.pq-odo-hint { font-size: .75rem; color: #a1a1aa; text-align: center; }
.pq-msg { margin: 8px 0 4px; border-radius: 12px; padding: 10px 12px; font-size: .85rem; font-weight: 600; }
.pq-msg.ok { background: #ecfdf3; color: #166534; }
.pq-msg.warn { background: #fef2f2; color: #b91c1c; }
.pq-msg.info { background: #f4f4f5; color: #3f3f46; }
.pq-form .pq-lien { background: none; border: 0; padding: 4px 0; margin: 2px 0 0; color: #b41e1f; font: inherit; font-size: .82rem; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 0; box-shadow: none; width: auto; }
.pq-clavier { margin-top: 6px; }
.pq-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.pq-form .pq-chip { height: 48px; min-height: 0; margin: 0; padding: 0; border: 2px solid #e4e4e7; border-radius: 12px; background: #fff; color: #17191c; font-family: var(--din, "Arial Narrow", sans-serif); font-size: 1.35rem; font-weight: 700; cursor: pointer; box-shadow: none; }
.pq-form .pq-chip.on { border-color: #c8102e; background: #fef2f2; color: #b41e1f; }
.pq-dash { margin-top: 10px; background: #18181b; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.pq-gauge { width: 120px; height: 72px; flex: none; }
.pq-dash-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pq-dash-t .lc-label { font-size: .75rem; color: #a1a1aa; font-weight: 600; }
.pq-dash-t b { font-family: var(--din, "Arial Narrow", sans-serif); font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1; }
.pq-dash-t .hint { color: #a1a1aa; margin: 0; }
.pq-dash-t .hint.err { color: #fca5a5; }
.pq-plus { margin-top: 8px; }
.pq-plus > summary { cursor: pointer; font-weight: 600; color: #3f3f46; padding: 6px 0; }
.pq-form .pq-bar { position: sticky; bottom: 0; z-index: 5; }
.pq-form .pq-save { width: 100%; min-height: 56px; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pq-form .pq-save svg { width: 22px; height: 22px; }
.pq-photo-edit { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.pq-photo-edit img { width: 240px; height: auto; aspect-ratio: 600 / 340; object-fit: cover; border-radius: 12px; background: #ededef; }
.pq-photo-edit > div { flex: 1 1 240px; }
@media (max-width: 380px) { .pq-roue { width: 34px; } .pq-dg { font-size: 32px; } .pq-form .pq-veh { flex-basis: 200px; } }

/* ===== v3.2.17 : menu principal façon iPad (ordinateur) / iPhone (téléphone) ===== */
.top .nav { display: none !important; }
.lz-ouvrir { display: none; }
@media (min-width: 701px) {
  .top .burger { display: none !important; }
  .lz-ouvrir { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; margin-left: 12px; border: 0; border-radius: 20px; background: #c8102e; color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
  .lz-ouvrir:hover { background: #a50d26; }
  .lz-ouvrir svg { width: 17px; height: 17px; }
}
@media (max-width: 700px) { .top .burger { display: inline-flex !important; } }
body.lz-ouvert { overflow: hidden; }
.lz { position: fixed; inset: 0; z-index: 2000; overflow-y: auto; overscroll-behavior: contain; color: #fff; font-family: inherit;
  background: radial-gradient(1100px 700px at 85% 10%, #7f1d1d, transparent 62%), radial-gradient(900px 600px at 5% 95%, #450a0a, transparent 62%), #0c0c0e;
  display: flex; flex-direction: column; padding: 14px 28px 130px; box-sizing: border-box; }
.lz[hidden] { display: none !important; }
.lz a { color: #fff; text-decoration: none; }
.lz-haut { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.85); }
.lz-marque { letter-spacing: 1px; font-weight: 800; }
.lz-moi { display: flex; align-items: center; gap: 10px; }
.lz-form { margin: 0; display: inline-flex; }
.lz-rond { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.lz-rond:hover { background: rgba(255,255,255,.28); }
.lz-rond svg { width: 19px; height: 19px; }
.lz-corps { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; margin-top: 18px; align-items: start; }
.lz-sans-w .lz-corps { grid-template-columns: minmax(0, 1fr); }
.lz-sans-w .lz-cote { display: none; }
.lz-cote { display: flex; flex-direction: column; gap: 14px; }
.lz-heure { display: flex; flex-direction: column; margin-bottom: 4px; }
.lz-heure b { font-size: 4.4rem; font-weight: 300; letter-spacing: -2px; line-height: 1; }
.lz-heure span { font-size: 1.3rem; font-weight: 500; }
.lz-widgets { display: flex; flex-direction: column; gap: 14px; }
.lz-w { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.12); }
.lz-w:hover { background: rgba(255,255,255,.2); }
.lz-wh { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: rgba(255,255,255,.78); }
.lz-wh svg { width: 15px; height: 15px; }
.lz-wv { font-size: 1.5rem; font-weight: 700; line-height: 1.15; }
.lz-wv.ok { color: #86efac; }
.lz-wv2 { font-weight: 700; }
.lz-w > span:not(.lz-wh) { font-size: .88rem; color: rgba(255,255,255,.85); }
.lz-centre { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lz-cherche { align-self: flex-end; display: flex; align-items: center; gap: 8px; width: min(340px, 100%); height: 42px; padding: 0 16px; border-radius: 21px; background: rgba(255,255,255,.16); color: rgba(255,255,255,.8); box-sizing: border-box; }
.lz-cherche svg { width: 17px; height: 17px; flex: none; }
.lz-cherche input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; color: #fff !important; font: inherit; font-size: .95rem; outline: none; box-shadow: none !important; padding: 0 !important; height: auto !important; min-height: 0 !important; }
.lz-cherche input::placeholder { color: rgba(255,255,255,.65); }
.lz-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); row-gap: 30px; column-gap: 8px; }
.lz-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 2px; border-radius: 16px; cursor: pointer; font: inherit; color: #fff; }
.lz-app[hidden] { display: none; }
.lz-app:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lz-i { width: 70px; height: 70px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .12s; }
.lz-app:hover .lz-i { transform: scale(1.06); }
.lz-app:active .lz-i { transform: scale(.94); }
.lz-i svg { width: 33px; height: 33px; }
.lz-app.on .lz-i { outline: 3px solid #fff; outline-offset: 3px; }
.lz-n { font-size: .82rem; font-weight: 500; text-align: center; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.6); max-width: 120px; }
.lz-b { position: absolute; top: -6px; left: calc(50% + 22px); min-width: 25px; height: 25px; border-radius: 13px; background: #ef4444; color: #fff; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 7px; box-sizing: border-box; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.lz-b[hidden] { display: none; }
.lz-vide { color: rgba(255,255,255,.8); text-align: center; }
.lz-dock { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2001; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 30px; background: rgba(40,40,44,.72); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); max-width: calc(100vw - 24px); box-sizing: border-box; }
.lz-dock .lz-n { display: none; }
.lz-dock .lz-i { width: 58px; height: 58px; border-radius: 15px; }
.lz-dock .lz-i svg { width: 28px; height: 28px; }
.lz-dock .lz-b { left: auto; right: -6px; top: -6px; }
.lz-i-menu { background: #f4f4f5 !important; color: #c8102e !important; }
.lz-sans-w .lz-i-menu { background: rgba(255,255,255,.25) !important; color: #fff !important; }
.lz-sep { width: 1px; height: 46px; background: rgba(255,255,255,.3); }
@media (max-width: 899px) {
  .lz { padding: 12px 16px 128px; }
  .lz-corps { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 12px; }
  .lz-heure { flex-direction: row; align-items: baseline; gap: 10px; }
  .lz-heure b { font-size: 2.8rem; }
  .lz-heure span { font-size: 1rem; }
  .lz-widgets { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .lz-widgets::-webkit-scrollbar { display: none; }
  .lz-w { flex: 0 0 82%; scroll-snap-align: start; padding: 14px 16px; }
  .lz-wv { font-size: 1.25rem; }
  .lz-cherche { align-self: stretch; width: 100%; order: 2; }
  .lz-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 20px; column-gap: 4px; order: 1; }
  .lz-i { width: 60px; height: 60px; border-radius: 15px; }
  .lz-i svg { width: 29px; height: 29px; }
  .lz-n { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 84px; }
  .lz-b { left: calc(50% + 18px); }
  .lz-dock { left: 12px; right: 12px; transform: none; bottom: 12px; justify-content: space-around; gap: 0; padding: 12px 8px; }
  .lz-dock .lz-mbtn, .lz-dock .lz-sep, .lz-fav .lz-app:nth-child(n+5), .lz-rec { display: none !important; }
  .lz-fav { flex: 1; justify-content: space-around; }
  .lz-grille .lz-surplus { display: flex; }
  .lz-edit .lz-fav .lz-app:nth-child(n+5) { display: flex !important; }
  .lz-moi > span { display: none; }
}
@media (max-width: 360px) { .lz-i { width: 54px; height: 54px; } .lz-dock .lz-i { width: 52px; height: 52px; } }
/* couleurs des icônes du menu (pas de style en ligne : politique de sécurité) */
.lz-c-rouge { background: linear-gradient(180deg, #f87171, #dc2626); }
.lz-c-rouge2 { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.lz-c-rose { background: linear-gradient(180deg, #fb7185, #e11d48); }
.lz-c-orange { background: linear-gradient(180deg, #fb923c, #ea580c); }
.lz-c-orange2 { background: linear-gradient(180deg, #fdba74, #ea580c); }
.lz-c-orange3 { background: linear-gradient(180deg, #fb923c, #c2410c); }
.lz-c-vert { background: linear-gradient(180deg, #4ade80, #16a34a); }
.lz-c-vert2 { background: linear-gradient(180deg, #22c55e, #15803d); }
.lz-c-emeraude { background: linear-gradient(180deg, #34d399, #059669); }
.lz-c-lime { background: linear-gradient(180deg, #a3e635, #65a30d); }
.lz-c-ambre { background: linear-gradient(180deg, #facc15, #ca8a04); }
.lz-c-ambre2 { background: linear-gradient(180deg, #eab308, #a16207); }
.lz-c-brun { background: linear-gradient(180deg, #d97706, #92400e); }
.lz-c-sarcelle { background: linear-gradient(180deg, #2dd4bf, #0f766e); }
.lz-c-violet { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.lz-c-fuchsia { background: linear-gradient(180deg, #f472b6, #be185d); }
.lz-c-pierre { background: linear-gradient(180deg, #a8a29e, #57534e); }
.lz-c-pierre2 { background: linear-gradient(180deg, #a8a29e, #78716c); }
.lz-c-gris { background: linear-gradient(180deg, #9ca3af, #4b5563); }
.lz-c-gris2 { background: linear-gradient(180deg, #71717a, #3f3f46); }
.lz-c-noir { background: linear-gradient(180deg, #71717a, #27272a); }
/* v3.2.17 : organiser les icônes */
.lz-fav, .lz-rec { display: flex; align-items: center; gap: 12px; }
.lz-fav { min-width: 60px; min-height: 58px; }
.lz-rec:empty { display: none; }
.lz-rec { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); }
.lz-surplus { display: none; }
.lz-edit .lz-surplus, .lz-edit .lz-rec, .lz-edit .lz-cherche, .lz-edit .lz-mbtn { display: none !important; }
.lz-org { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.lz-org[hidden] { display: none !important; }
.lz-org p { margin: 0; font-size: .9rem; }
.lz-org p.lz-err { color: #fecaca; font-weight: 700; }
.lz-org.lz-plein { background: rgba(239,68,68,.35); }
.lz-org-b { display: flex; gap: 8px; }
.lz-bt { height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.lz-bt-ok { background: #fff; color: #c8102e; border-color: #fff; font-weight: 800; }
.lz-x { display: none; }
.lz-edit .lz-x { position: absolute; top: -6px; left: calc(50% - 46px); width: 26px; height: 26px; border-radius: 13px; background: #f4f4f5; color: #18181b; font-size: 18px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.45); z-index: 2; }
.lz-edit .lz-dock .lz-x { left: -8px; top: -8px; }
.lz-edit .lz-b { display: none; }
.lz-edit .lz-app { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.lz-edit .lz-i { animation: lz-tremble .28s ease-in-out infinite alternate; }
.lz-edit .lz-app:nth-child(2n) .lz-i { animation-delay: -.14s; }
.lz-edit .lz-glisse { cursor: grabbing; opacity: .55; }
.lz-edit .lz-glisse .lz-i { animation: none; transform: scale(1.12); }
.lz-edit .lz-fav { outline: 2px dashed rgba(255,255,255,.35); outline-offset: 6px; border-radius: 16px; }
@keyframes lz-tremble { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .lz-edit .lz-i { animation: none; } }
@media (max-width: 899px) { .lz-edit .lz-x { left: calc(50% - 40px); } .lz-org p { font-size: .82rem; } }
/* v3.2.19 : écran d'accueil (vraie page) et choix des widgets */
.lz.lz-page { z-index: 1500; }
.lz-wedit { align-self: flex-start; margin-top: 2px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; border-radius: 18px; padding: 8px 14px; cursor: pointer; }
.lz-wedit:hover { background: rgba(255,255,255,.18); }
.lz-wedit[hidden], .lz-wpanel[hidden], .lz-widgets[hidden] { display: none !important; }
.lz-wpanel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 22px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.12); }
.lz-wl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lz-wl li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,.18); }
.lz-wl label { flex: 1; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; margin: 0; color: #fff; }
.lz-wl label svg { width: 17px; height: 17px; flex: none; }
.lz-wl input[type=checkbox] { width: 20px; height: 20px; accent-color: #16a34a; margin: 0; flex: none; }
.lz-wfl { display: flex; gap: 4px; }
.lz-wfl .lz-rond { width: 32px; height: 32px; font-size: .75rem; }
.lz-werr { margin: 0; color: #fecaca; font-weight: 700; font-size: .85rem; }
@media (max-width: 899px) { .lz-wedit { margin-top: 0; } .lz-cote { gap: 10px; } }
/* v3.2.22 : sans le mot « KMAR » (administration), les boutons du haut restent à droite */
.lz-moi { margin-left: auto; }
/* ===== v3.2.23 : écran d'accueil de l'administration façon iOS / iPadOS ===== */
.lz.lz-26 { background: #0a1424 url(/lanceur/fond) center / cover no-repeat; }
.lz-26 .lz-rond { background: rgba(20,20,26,.32); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
.lz-26 .lz-rond:hover { background: rgba(20,20,26,.48); }
.lz-26 .lz-cherche { background: rgba(20,20,26,.32); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
@media (min-width: 900px) { .lz-26 .lz-corps { grid-template-columns: 370px minmax(0, 1fr); } .lz-26.lz-sans-w .lz-corps { grid-template-columns: minmax(0, 1fr); } }
/* horloge à aiguilles */
.lz-26 .lz-heure { flex-direction: row; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 26px; background: rgba(20,20,26,.36); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 34px rgba(0,0,0,.22); }
.lz-hd { display: flex; flex-direction: column; min-width: 0; }
.lz-26 .lz-heure b { font-size: 3rem; letter-spacing: -1.5px; }
.lz-26 .lz-heure .lz-hd > span { font-size: 1.05rem; }
.lz-cad { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.lz-cad i { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; background: #111; border-radius: 2px; }
.lz-cad .lz-ah { width: 9%; height: 26%; margin-left: -4.5%; }
.lz-cad .lz-am { width: 6%; height: 38%; margin-left: -3%; }
.lz-cad .lz-as { width: 2%; height: 42%; margin-left: -1%; background: #e3262f; }
.lz-cad em { position: absolute; left: 50%; top: 50%; width: 11%; height: 11%; margin: -5.5% 0 0 -5.5%; border-radius: 50%; background: #e3262f; }
.lz-cad-g { width: 104px; height: 104px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
/* widgets en verre fumé, sur 2 colonnes */
.lz-26 .lz-w { background: rgba(20,20,26,.36); border: 1px solid rgba(255,255,255,.2); border-radius: 26px; -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 34px rgba(0,0,0,.22); }
.lz-26 .lz-w:hover { background: rgba(20,20,26,.5); }
.lz-26 .lz-w.lz-w-clair { background: rgba(255,255,255,.95); color: #1d1d1f; border-color: rgba(255,255,255,.6); }
.lz-26 .lz-w.lz-w-clair:hover { background: #fff; }
.lz-26 .lz-w.lz-w-clair .lz-wh { color: #e3262f; }
.lz-26 .lz-w.lz-w-clair > span:not(.lz-wh) { color: #48484a; }
.lz-26 .lz-wv { font-size: 1.6rem; letter-spacing: -.02em; }
.lz-rdv { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.lz-rdv li { display: flex; flex-direction: column; padding-left: 10px; border-left: 3px solid #ff453a; font-size: .86rem; line-height: 1.25; }
.lz-rdv li.lz-rdv1 { border-left-color: #ff9f0a; }
.lz-rdv li.lz-rdv2 { border-left-color: #30d158; }
.lz-rdv small { color: rgba(255,255,255,.65); font-size: .74rem; }
.lz-mini { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 8px; }
.lz-mini i { flex: 1; min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #fff, rgba(255,255,255,.45)); }
.lz-mini .h0 { height: 3px; opacity: .4; } .lz-mini .h1 { height: 10%; } .lz-mini .h2 { height: 20%; } .lz-mini .h3 { height: 30%; } .lz-mini .h4 { height: 40%; } .lz-mini .h5 { height: 50%; }
.lz-mini .h6 { height: 60%; } .lz-mini .h7 { height: 70%; } .lz-mini .h8 { height: 80%; } .lz-mini .h9 { height: 90%; } .lz-mini .h10 { height: 100%; }
@media (min-width: 900px) {
  .lz-26 .lz-widgets { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 14px; }
  .lz-26 .lz-w { grid-column: span 2; }
  .lz-26 .lz-w.lz-w-petit { grid-column: span 1; padding: 14px 15px; }
  .lz-26 .lz-w-petit .lz-wv { font-size: 1.22rem; overflow-wrap: anywhere; }
  .lz-26 .lz-w-petit > span:not(.lz-wh) { font-size: .8rem; }
}
/* icônes plates façon iOS : dégradé doux, pictogramme blanc plein, petite ombre */
.lz-26 .lz-i { border-radius: 22.5%; box-shadow: 0 3px 10px rgba(0,0,0,.28); position: relative; overflow: hidden; }
.lz-26 .lz-i svg { width: 58%; height: 58%; }
.lz-26 .lz-n { text-shadow: 0 1px 4px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.7); }
.lz-26 .lz-c-rouge { background: linear-gradient(180deg, #ff6b6b, #e3262f); }
.lz-26 .lz-c-rouge2 { background: linear-gradient(180deg, #ff5f57, #d70015); }
.lz-26 .lz-c-rose { background: linear-gradient(180deg, #ff7eb3, #f02e6e); }
.lz-26 .lz-c-orange { background: linear-gradient(180deg, #ffb347, #ff7a00); }
.lz-26 .lz-c-orange2 { background: linear-gradient(180deg, #ffc061, #ff8a00); }
.lz-26 .lz-c-orange3 { background: linear-gradient(180deg, #ff9a76, #ff5a1f); }
.lz-26 .lz-c-vert { background: linear-gradient(180deg, #86fc6f, #0cd318); }
.lz-26 .lz-c-vert2 { background: linear-gradient(180deg, #5fe385, #16b84a); }
.lz-26 .lz-c-emeraude { background: linear-gradient(180deg, #5af0b4, #10b981); }
.lz-26 .lz-c-lime { background: linear-gradient(180deg, #d4f55a, #7cc417); }
.lz-26 .lz-c-ambre { background: linear-gradient(180deg, #ffe066, #ffb300); }
.lz-26 .lz-c-ambre2 { background: linear-gradient(180deg, #ffd27a, #f59e0b); }
.lz-26 .lz-c-brun { background: linear-gradient(180deg, #e0a46a, #a8642a); }
.lz-26 .lz-c-sarcelle { background: linear-gradient(180deg, #5ee6d0, #10a593); }
.lz-26 .lz-c-violet { background: linear-gradient(180deg, #d68cff, #9b30ff); }
.lz-26 .lz-c-fuchsia { background: linear-gradient(180deg, #ff8ad8, #d92ca0); }
.lz-26 .lz-c-pierre, .lz-26 .lz-c-pierre2 { background: linear-gradient(180deg, #c9c3bd, #8a827b); }
.lz-26 .lz-c-gris { background: linear-gradient(180deg, #c6c6cc, #8e8e93); }
.lz-26 .lz-c-gris2 { background: linear-gradient(180deg, #8e8e93, #545458); }
.lz-26 .lz-c-noir { background: linear-gradient(180deg, #4a4a4f, #111113); }
.lz-26 .lz-c-blanc, .lz-26 .lz-i-menu { background: linear-gradient(180deg, #fff, #ececf0) !important; color: #e3262f !important; }
.lz-26.lz-sans-w .lz-i-menu { background: rgba(255,255,255,.3) !important; color: #fff !important; }
/* icône Agenda : jour et date */
.lz-26 .lz-cal { background: linear-gradient(180deg, #fff, #f2f2f5); color: #111; flex-direction: column; gap: 0; }
.lz-cal small { font-size: 11px; font-weight: 600; color: #e3262f; text-transform: capitalize; line-height: 1; margin-top: 2px; }
.lz-cal b { font-size: 34px; font-weight: 300; line-height: 1; letter-spacing: -1px; color: #111; }
/* icône Pointage : horloge */
.lz-26 .lz-mont { background: #111; }
.lz-mont .lz-cad { width: 80%; height: 80%; }
.lz-26 .lz-dock { background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 40px rgba(0,0,0,.25); border-radius: 32px; }
.lz-26 .lz-org, .lz-26 .lz-wpanel { background: rgba(20,20,26,.5); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); }
.lz-26 .lz-wedit { background: rgba(20,20,26,.36); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
@media (max-width: 899px) {
  .lz-26 .lz-heure { padding: 10px 14px; gap: 12px; }
  .lz-26 .lz-cad-g { width: 64px; height: 64px; }
  .lz-26 .lz-heure b { font-size: 2.2rem; }
  .lz-cal small { font-size: 9px; } .lz-cal b { font-size: 28px; }
}
