/* Pitachap — système de design commun, conforme à la charte graphique v1.0 (clair / sombre, mobile d'abord)
   Couleurs : bleu nuit #0D2B4E (confiance : textes, fonds), jaune soleil #FFB627 (énergie : actions),
   turquoise #0E9488 (liens, statuts), gris ardoise #4A6178, gris clair #F3F7F9.
   Typographie : Inter (proche de Roboto, très lisible sur téléphone), police variable auto-hébergée (~48 Ko),
   téléchargée au déploiement (scripts/fetch-fonts.js) ; à défaut : Roboto (Android) / police du système. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/shared/fonts/inter-latin.woff2") format("woff2"); }
:root {
  --navy: #0D2B4E; --sun: #FFB627; --sun-600: #F2A300; --teal: #0E9488; --slate: #4A6178; --mist: #F3F7F9;
  --on-sun: #0D2B4E; --on-brand: #ffffff; --bubble-me: #0D2B4E;
  --brand: #0D2B4E;
  --brand-600: #0A2240;
  --brand-50: #E7EEF7;
  --brand-100: #CFDCEC;
  --accent: #1F5A96;
  --accent-50: #E7EEF7;
  --link: #1F5A96;
  --warn: #A86400;
  --warn-50: #FFF4DC;
  --danger: #C8372B;
  --danger-50: #FDECEA;
  --ok: #0B7A70;
  --ok-50: #E3F4F2;
  --bg: #EEF3F9;
  --surface: #ffffff;
  --surface-2: #EDF2F8;
  --border: #DCE5EF;
  --text: #0D2B4E;
  --text-2: #4A6178;
  --text-3: #5E7389;
  --shadow: 0 1px 2px rgba(13, 43, 78, .05), 0 4px 14px rgba(13, 43, 78, .06);
  --shadow-lg: 0 14px 36px rgba(13, 43, 78, .18);
  --radius: 16px;
  --radius-sm: 12px;
  --tap: 50px;
  /* Hiérarchie de la charte (adaptée au mobile) : titres Bold, sous-titres Medium, corps 16 px / 1,5, légendes 13 px Medium. */
  --font: "Inter", Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --fs-hero: 32px; --fs-page: 28px; --fs-section: 24px; --fs-sub: 20px; --fs-title: 17px; --fs-title-sm: 15px;
  --fs-body: 15px; --fs-small: 13px; --fs-micro: 12px; --fs-price: 26px; --fs-btn: 16px; --fs-btn-sm: 14px;
  --lh-body: 1.5; --lh-small: 1.4;
  --mono: var(--font); /* v1.6 : une seule typographie (Inter) partout, chiffres à chasse fixe pour les codes */
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  /* Dégradés : bleu nuit dominant (en-têtes, cartes clés), fond très légèrement teinté. */
  --grad-brand: linear-gradient(135deg, #0D2B4E 0%, #163F6C 55%, #1F5A96 100%);
  --grad-page: linear-gradient(180deg, #E3EBF6 0px, #EEF3F9 260px);
  --grad-card: linear-gradient(180deg, #FFFFFF 0%, #F6F9FD 100%);
  --nav-pill: #E7EEF7; --ink: #0D2B4E;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --on-brand: #0D2B4E; --bubble-me: #1E4573;
    --brand: #FFB627; --brand-600: #FFC650; --brand-50: #12345B; --brand-100: #1A426F;
    --accent: #8FB4E3; --accent-50: #12345B; --link: #8FB4E3; --warn: #FFC650; --warn-50: #3A2C0B; --danger: #FF7A6E; --danger-50: #3D1A1A;
    --ok: #4FD1C5; --ok-50: #0C3A47; --bg: #061629; --surface: #0D2B4E; --surface-2: #133761; --border: #1E4573;
    --text: #F3F7F9; --text-2: #B8C7D6; --text-3: #93A7BC; --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lg: 0 14px 36px rgba(0,0,0,.5);
    --grad-brand: linear-gradient(135deg, #0D2B4E 0%, #1B4A7E 100%); --grad-page: linear-gradient(180deg, #0A2140 0px, #061629 300px);
    --grad-card: linear-gradient(180deg, #0F3157 0%, #0D2B4E 100%); --nav-pill: #1A426F; --ink: #DCE7F3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grad-brand: linear-gradient(135deg, #0D2B4E 0%, #1B4A7E 100%); --grad-page: linear-gradient(180deg, #0A2140 0px, #061629 300px);
  --grad-card: linear-gradient(180deg, #0F3157 0%, #0D2B4E 100%); --nav-pill: #1A426F; --ink: #DCE7F3;
  --on-brand: #0D2B4E; --bubble-me: #1E4573;
  --brand: #FFB627; --brand-600: #FFC650; --brand-50: #12345B; --brand-100: #1A426F;
  --accent: #8FB4E3; --accent-50: #12345B; --link: #8FB4E3; --warn: #FFC650; --warn-50: #3A2C0B; --danger: #FF7A6E; --danger-50: #3D1A1A;
  --ok: #4FD1C5; --ok-50: #0C3A47; --bg: #061629; --surface: #0D2B4E; --surface-2: #133761; --border: #1E4573;
  --text: #F3F7F9; --text-2: #B8C7D6; --text-3: #93A7BC; --shadow: 0 1px 2px rgba(0,0,0,.35); --shadow-lg: 0 14px 36px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a.btn:hover, a.card:hover, a.item:hover, a.service:hover, .bottomnav a:hover, .side nav a:hover, .tabs a:hover, a.chip:hover, a.stat:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; }
h1 { font-size: var(--fs-page); line-height: 1.14; letter-spacing: -.25px; }
h2 { font-size: var(--fs-sub); line-height: 1.2; }
h3 { font-size: var(--fs-title); line-height: 1.3; font-weight: 600; }
h4 { font-size: var(--fs-title-sm); line-height: 1.29; }
.t-hero { font-size: var(--fs-hero); font-weight: 700; line-height: 1.13; letter-spacing: -.5px; }
.t-section { font-size: var(--fs-section); font-weight: 700; line-height: 1.17; }
.t-sub { font-size: var(--fs-sub); font-weight: 700; line-height: 1.2; }
.t-title { font-size: var(--fs-title); font-weight: 700; line-height: 1.25; }
.t-price { font-size: var(--fs-price); font-weight: 700; line-height: 1; letter-spacing: -.25px; font-variant-numeric: tabular-nums; }
p { margin: 0; }
.muted { color: var(--text-2); } .dim { color: var(--text-3); } .small { font-size: var(--fs-small); line-height: var(--lh-small); } .tiny { font-size: var(--fs-micro); line-height: 1.27; }
.mono { font-family: var(--font); font-variant-numeric: tabular-nums slashed-zero; letter-spacing: .02em; font-weight: 600; } .strong { font-weight: 700; } .center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden, [hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabnum { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Mise en page */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-top { display: flex; align-items: flex-start; gap: 10px; }
.between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.page { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(96px + var(--safe-bottom)); }
.page-wide { max-width: 1280px; margin: 0 auto; padding: 20px 24px 48px; }
.section-title { font-size: var(--fs-title); font-weight: 700; line-height: 1.25; color: var(--text); margin: 8px 2px 2px; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* Barre du haut */
.appbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.appbar.scrolled { border-bottom-color: var(--border); }
.appbar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; }
.appbar h1 { font-size: var(--fs-title); line-height: 1.25; letter-spacing: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sub); letter-spacing: -.25px; color: var(--text); }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; }

/* Navigation du bas */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border); padding-bottom: var(--safe-bottom); }
.bottomnav-in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; color: var(--text-3); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; position: relative; }
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a.active { color: var(--brand); }
.bottomnav .dot { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--sun); color: var(--navy); font-size: var(--fs-micro); font-weight: 700; display: grid; place-items: center; }

/* Cartes */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tight { padding: 12px; }
.card.link { display: block; color: inherit; transition: transform .08s ease, border-color .15s; }
.card.link:active { transform: scale(.99); }
.card.link:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hero { background: var(--navy); color: #fff; border: 0; }
.hero b, .hero h1, .hero h2 { color: #fff; }
.card.link.row { display: flex; }
.hero .muted { color: rgba(255,255,255,.85); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-size: var(--fs-btn); line-height: 1.25; font-weight: 600; cursor: pointer; transition: background .15s, transform .06s, opacity .15s; text-align: center; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--sun); color: var(--on-sun); }
.btn.primary:hover { background: var(--sun-600); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: #0A2240; }
.btn.accent { background: var(--accent); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.outline { background: transparent; border: 1.5px solid currentColor; color: var(--text); }
.btn.ghost { background: transparent; }
.btn.soft { background: var(--brand-50); color: var(--brand); }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: var(--fs-btn); font-weight: 700; border-radius: 14px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-btn-sm); line-height: 1.29; border-radius: 10px; }
.btn.icon { width: var(--tap); padding: 0; }
.btn.icon.sm { width: 36px; }
.btn .spinner { width: 18px; height: 18px; border-width: 2px; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: var(--fs-title-sm); line-height: 1.29; font-weight: 500; color: var(--text); }
.input, select.input, textarea.input { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 88px; resize: vertical; }
.input { font-size: 16px; line-height: 1.25; }
@media (min-width: 768px) { .input, select.input, textarea.input { font-size: var(--fs-body); } }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.input.invalid { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: var(--fs-small); }
.input-group { display: flex; align-items: stretch; }
.input-group .prefix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-2); color: var(--text-2); font-weight: 500; }
.input-group .input { border-radius: 0 12px 12px 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 14px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* Choix (segments, pastilles, options) */
.segmented { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-size: var(--fs-btn-sm); font-weight: 500; color: var(--text-2); cursor: pointer; padding: 0 8px; }
.segmented button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--border); background: var(--surface); font-weight: 500; font-size: var(--fs-btn-sm); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip svg { width: 16px; height: 16px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: left; width: 100%; }
.option.on { border-color: var(--brand); background: var(--brand-50); }
.option .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand); flex: none; }
.option.on .ic { background: var(--sun); color: var(--navy); }
.option .ic svg { width: 22px; height: 22px; }
.option:disabled { opacity: .5; cursor: not-allowed; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.blue { background: var(--brand-50); color: var(--brand); }
.badge.green { background: var(--ok-50); color: var(--ok); }
.badge.orange { background: var(--warn-50); color: var(--warn); }
.badge.red { background: var(--danger-50); color: var(--danger); }
.badge.teal { background: var(--accent-50); color: var(--accent); }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Listes */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list > .item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--border); color: inherit; min-height: 56px; }
.list > .item:first-child { border-top: 0; }
.list > a.item:active, .list > button.item:active { background: var(--surface-2); }
.list > button.item { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: transparent; text-align: left; cursor: pointer; }
.item .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.item .ic svg { width: 20px; height: 20px; }
.item .chev, .chev { color: var(--text-3); width: 18px; height: 18px; flex: none; }
.hero svg { width: 26px; height: 26px; }

/* Stepper de quantités */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 22px; font-weight: 700; color: var(--brand); cursor: pointer; }
.stepper button:disabled { color: var(--text-3); }
.stepper output { min-width: 34px; text-align: center; font-size: var(--fs-title); font-weight: 700; font-variant-numeric: tabular-nums; }
.garment { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.garment.on { border-color: var(--brand); background: var(--brand-50); }
.garment .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--brand); flex: none; }
.garment.on .ic { background: var(--surface); }

/* Chronologie */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 28px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: -2px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 3px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); }
.timeline li.warn::after { border-color: var(--warn); }
.timeline li.bad::after { border-color: var(--danger); }
.timeline li.done::after { background: var(--accent); }

/* Progression d'étapes */
.progress-steps { display: flex; gap: 4px; }
.progress-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.progress-steps span.on { background: var(--brand); }

/* Carte géographique */
.map { position: relative; overflow: hidden; background: #dfe6e9; border-radius: var(--radius); touch-action: none; user-select: none; -webkit-user-select: none; min-height: 200px; }
:root[data-theme="dark"] .map, .map.dark { background: #1b2229; }
.map .tiles, .map .overlay, .map .markers { position: absolute; inset: 0; }
.map .tiles img { position: absolute; width: 256px; height: 256px; max-width: none; pointer-events: none; user-select: none; }
.map .overlay svg { position: absolute; overflow: visible; pointer-events: none; }
.map .marker { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; cursor: pointer; }
.map .marker.center { transform: translate(-50%, -50%); }
.map .attrib { position: absolute; right: 4px; bottom: 4px; font-size: 10px; background: rgba(255,255,255,.8); color: #333; padding: 1px 5px; border-radius: 4px; z-index: 3; }
.map .zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.map .zoom button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--text); }
.map .zoom button svg { width: 18px; height: 18px; }
.map .crosshair { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); pointer-events: none; z-index: 4; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }
.map .crosshair.lift { transform: translate(-50%, calc(-100% - 10px)); transition: transform .15s; }
.pin { width: 34px; height: 44px; }
.dot-marker { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.agent-marker { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: grid; place-items: center; color: #fff; }
.agent-marker svg { width: 20px; height: 20px; }
.map-label { background: var(--surface); color: var(--text); padding: 3px 8px; border-radius: 8px; font-size: var(--fs-small); font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; }

/* Feuilles modales et boîtes de dialogue */
.backdrop { position: fixed; inset: 0; background: rgba(10, 14, 20, .45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--surface); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 8px 16px calc(20px + var(--safe-bottom)); animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 12px; }
@media (min-width: 720px) { .backdrop.dialog { align-items: center; } .backdrop.dialog .sheet { border-radius: 20px; max-width: 520px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }

/* Notifications éphémères */
.toasts { position: fixed; left: 50%; bottom: calc(88px + var(--safe-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: #0D2B4E; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: var(--fs-body); animation: drop .2s ease-out; pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; }
.toast.err { background: var(--danger); } .toast.ok { background: var(--ok); }
.toast b { display: block; }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }

/* Chargement */
.spinner { width: 28px; height: 28px; border: 3px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--brand); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
.empty svg { width: 48px; height: 48px; margin: 0 auto 10px; color: var(--text-3); }

/* Bandeaux */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); color: var(--text); font-size: var(--fs-body); }
.banner svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 1px; }
.banner.warn { background: var(--warn-50); } .banner.warn svg { color: var(--warn); }
.banner.err { background: var(--danger-50); } .banner.err svg { color: var(--danger); }
.banner.ok { background: var(--ok-50); } .banner.ok svg { color: var(--ok); }
.testmode { background: repeating-linear-gradient(45deg, #FFD27A, #FFD27A 10px, #FFB627 10px, #FFB627 20px); color: #0D2B4E; text-align: center; font-size: var(--fs-small); font-weight: 700; padding: 3px; }

/* Montants et récapitulatif */
.amount { font-size: var(--fs-hero); font-weight: 700; line-height: 1.13; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.amount.md { font-size: var(--fs-price); line-height: 1; letter-spacing: -.25px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-variant-numeric: tabular-nums; }
.kv.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: var(--fs-sub); line-height: 1.2; }
.stars { display: flex; gap: 4px; }
.stars button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--border); }
.stars button.on { color: #f5b301; }
.stars svg { width: 34px; height: 34px; }
.stars.sm svg { width: 18px; height: 18px; }

/* QR */
.qr-box { background: #fff; padding: 14px; border-radius: 16px; width: min(260px, 70vw); margin: 0 auto; }
.pin-code { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: var(--fs-page); letter-spacing: .3em; font-weight: 700; text-align: center; }

/* Scanner */
.scanner { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; max-height: 60vh; }
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

/* Tableaux (administration) */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.table th { text-align: left; font-weight: 700; color: var(--text); font-size: var(--fs-small); line-height: var(--lh-small); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Indicateurs */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .v { font-size: var(--fs-price); font-weight: 700; line-height: 1.17; letter-spacing: -.25px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.stat .l { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); font-weight: 500; }
.stat .s { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-3); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

/* Administration : barre latérale */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--border); padding: 14px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 10px 16px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: var(--fs-body); }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.side nav a svg { width: 19px; height: 19px; flex: none; }
.side nav .grp { font-size: var(--fs-small); font-weight: 700; color: var(--text-3); padding: 14px 12px 4px; }
.side nav a .count { margin-left: auto; background: var(--danger); color: #fff; border-radius: 9px; font-size: var(--fs-micro); font-weight: 700; padding: 1px 6px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: var(--fs-sub); line-height: 1.2; letter-spacing: 0; flex: 1; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 90; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .page-wide { padding: 16px 14px 40px; }
  .topbar { padding: 10px 14px; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .input, .toolbar select { min-height: 40px; width: auto; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 14px; font-size: var(--fs-body); font-weight: 500; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs .on { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .cols-2 { grid-template-columns: 1fr; } }

/* Graphiques SVG */
.chart { width: 100%; }
.chart text { fill: var(--text-3); font-size: 11px; font-family: var(--font); }
.chart .grid line { stroke: var(--border); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: var(--fs-small); color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-tip { position: fixed; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: 10px; padding: 8px 10px; font-size: var(--fs-small); z-index: 120; }

/* Écran d'accueil / connexion */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px calc(24px + var(--safe-bottom)); max-width: 440px; margin: 0 auto; gap: 22px; }
.auth .logo-big { width: 64px; height: 64px; border-radius: 18px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.auth .logo-big svg { width: 36px; height: 36px; }

/* Services (accueil client) */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 22px 12px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: center; cursor: pointer; min-height: 160px; box-shadow: var(--shadow); }
.service .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; margin: 0 auto 4px; background: var(--sun); color: var(--navy); }
.service .ic svg { width: 28px; height: 28px; display: block; }
.service b { font-size: var(--fs-title-sm); font-weight: 650; line-height: 1.25; }
.service span:not(.ic) { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--text-2); }
.service:active { transform: scale(.98); }
.service.alt .ic { background: var(--sun); color: var(--navy); }

/* Barre d'action collante */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 16px calc(10px + var(--safe-bottom)); }
.actionbar-in { max-width: 608px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }

/* Hors connexion */
.offline-bar { position: fixed; top: 0; left: 0; right: 0; background: var(--warn); color: #fff; text-align: center; font-size: var(--fs-small); font-weight: 700; padding: 4px; z-index: 110; }

@media print {
  .side, .topbar, .bottomnav, .actionbar, .toolbar .btn, .no-print { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card, .stat, .table-wrap { box-shadow: none; break-inside: avoid; }
}

/* Tuiles de carte atténuées en thème sombre */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map .tiles { filter: brightness(.72) contrast(1.08) saturate(.85); } }
:root[data-theme="dark"] .map .tiles { filter: brightness(.72) contrast(1.08) saturate(.85); }

/* Palette des graphiques (validée pour le daltonisme, clair et sombre) */
:root { --series-1: #0D2B4E; --series-2: #4F86C6; --series-3: #E59E00; --series-4: #9AAEC3; } /* camaïeu de bleu nuit + jaune (peu de couleurs) */
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --series-1: #8FB4E3; --series-2: #4F86C6; --series-3: #FFB627; --series-4: #B8C7D6; } }
:root[data-theme="dark"] { --series-1: #8FB4E3; --series-2: #4F86C6; --series-3: #FFB627; --series-4: #B8C7D6; }

/* ───────── v1.1 : photo de profil ───────── */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.avatar.ph { display: inline-grid; place-items: center; font-weight: 700; color: var(--brand); background: var(--brand-50); }
.avatar-edit { position: relative; display: inline-block; }
.avatar-edit .btn { position: absolute; right: -4px; bottom: -4px; min-height: 34px; width: 34px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); }

/* ───────── v1.1 : assistance (chat) ───────── */
.chat-page { display: flex; flex-direction: column; min-height: calc(100dvh - 56px); max-width: 640px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 56px; z-index: 5; }
.chat-head .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.chat-head .ic svg { width: 20px; height: 20px; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: var(--lh-body); }
.msg .meta { display: block; margin-top: 3px; font-size: var(--fs-micro); opacity: .7; }
.msg.client { align-self: flex-end; background: var(--bubble-me); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot, .msg.staff { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.staff { border-color: var(--accent); background: var(--accent-50); }
.msg .who { display: block; font-size: var(--fs-micro); font-weight: 700; color: var(--text-2); margin-bottom: 2px; }
.msg.sys { align-self: center; background: transparent; color: var(--text-3); font-size: var(--fs-small); text-align: center; max-width: 92%; padding: 4px 8px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.offer { align-self: stretch; border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-foot { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 8px 12px calc(8px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 8px; }
.chat-foot form { display: flex; gap: 8px; align-items: flex-end; }
.chat-foot textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; border-radius: 22px; padding: 11px 16px; line-height: 1.4; }
.chat-foot .btn.icon { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; flex: none; }
.support-split { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.support-split .chat-log { max-height: 60vh; overflow-y: auto; background: var(--bg); border-radius: var(--radius-sm); }
.ticket-row { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ticket-row.active { background: var(--brand-50) !important; }
@media (max-width: 860px) { .support-split { grid-template-columns: 1fr; } }

/* ───────── v1.1 : installation de l'application ───────── */
.install-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; }
.install-hero img { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-lg); }
.steps-list { counter-reset: s; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps-list li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.steps-list li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--navy); font-weight: 700; font-size: var(--fs-small); display: grid; place-items: center; }
.photo-thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); cursor: zoom-in; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── Logo Pitachap (clair / sombre) ───────── */
.brand-logo { display: block; max-width: 100%; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.brand-mark { display: block; flex: none; border-radius: 25%; }
a.brand { text-decoration: none; }
.auth .brand-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.auth .brand-head .tag { font-size: var(--fs-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }

/* ───────── Accroche marketing à l'ouverture (app Client) ───────── */
.promo { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.promo.on { opacity: 1; transform: none; }
/* Photo verticale plein écran (format téléphone) ; sur grand écran, colonne centrée de la largeur d'un téléphone. */
.promo-frame { position: relative; width: 100%; max-width: 480px; height: 100%; margin: 0 auto; overflow: hidden; }
.promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.promo.illus .promo-bg { object-fit: contain; object-position: center top; padding: calc(80px + var(--safe-top, 0px)) 24px 0; height: 70%; }
.promo-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 43, 78, .55) 0%, rgba(13, 43, 78, 0) 18%, rgba(13, 43, 78, 0) 42%, rgba(13, 43, 78, .82) 66%, var(--navy) 88%); }
.promo-in { position: relative; height: 100%; padding: calc(12px + var(--safe-top, 0px)) 20px calc(18px + var(--safe-bottom)); display: flex; flex-direction: column; overflow-y: auto; }
.promo-top { display: flex; align-items: center; justify-content: space-between; }
.promo-top .btn { color: #fff; background: rgba(13, 43, 78, .4); border-radius: 50%; width: 44px; height: 44px; min-height: 44px; }
.promo .logo-light { display: none !important; } .promo .logo-dark { display: block !important; }
.promo-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.promo-txt h1 { color: #fff; font-size: 28px; line-height: 1.18; text-shadow: 0 1px 12px rgba(13, 43, 78, .45); }
.promo-txt p { margin-top: 10px; color: #E3EBF3; font-size: 16px; line-height: 1.5; }
.promo-act { display: flex; flex-direction: column; gap: 8px; }
.promo-act .btn svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .promo { transition: none; } }
.auth .hint { display: block; margin-top: 4px; font-size: var(--fs-micro); color: var(--text-3); }
.auth .err { color: var(--danger); min-height: 1em; }
.or { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: var(--fs-small); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.google-btn { background: var(--surface); }
/* Notifications regroupées par commande */
.notif.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-right: 6px; vertical-align: middle; }
.notif-link { color: inherit; display: block; padding: 8px 0; border-top: 1px solid var(--border); }
.notif-link:first-of-type { border-top: 0; }
.notif-group details summary { cursor: pointer; color: var(--link); font-weight: 500; }
.ic-sq { width: 30px; height: 30px; border-radius: 9px; background: var(--sun); color: var(--navy); display: grid; place-items: center; }
.ic-sq svg { width: 18px; height: 18px; }
.ref-code { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed rgba(255, 182, 39, .7); background: rgba(255, 255, 255, .06); }
.ref-code b { font-size: 22px; letter-spacing: .08em; color: var(--sun); }
/* Accueil client : bandeau bleu nuit avec le motif « itinéraire » (charte) */
.home-hero { background: var(--navy) url("/brand/motif-itineraire.svg") right -56px bottom -46px / 190px auto no-repeat; color: #fff; border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.home-hero h1 { color: #fff; font-size: 26px; }
.home-hero p { color: #D6E1EC; font-size: var(--fs-body); max-width: 34ch; }
.home .services { gap: 12px; }
:root[data-theme="dark"] .home-hero { border: 1px solid var(--border); }
.promo-card img, .promo-edit-img img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--surface-2); }
.promo-card.off { opacity: .6; }
.promo-noimg { aspect-ratio: 9 / 16; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; align-content: center; gap: 6px; color: var(--text-3); text-align: center; padding: 12px; }
.promo-noimg svg { width: 32px; height: 32px; margin: 0 auto; }
.promo-edit-img img, .promo-edit-img .promo-noimg { height: 280px; width: auto; aspect-ratio: 9 / 16; margin: 0 auto; }
/* Administration : interface dense (tableaux), codes sur une ligne */
.shell { font-size: 14px; }
.shell .table { font-size: 13.5px; }
.table .mono, .table b.mono { white-space: nowrap; }

/* ───────── v1.4 : répartition des couleurs ─────────
   Une couleur dominante (bleu nuit, en dégradé) pour les en-têtes, les cartes clés et les sélections ;
   le jaune soleil est réservé au bouton d'action principal et aux pictogrammes ; fonds teintés de bleu ;
   vert / orange / rouge uniquement pour les statuts. */
body { background: var(--bg) var(--grad-page) no-repeat; background-size: 100% 320px; }
.appbar { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.card, .list, .stat, .table-wrap { border-color: var(--border); box-shadow: var(--shadow); }
.hero, .card.hero, .home-hero { background: var(--grad-brand); color: #fff; border: 0; box-shadow: 0 10px 28px rgba(13, 43, 78, .22); }
.home-hero { position: relative; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 182, 39, .28) 0%, rgba(255, 182, 39, 0) 70%); pointer-events: none; }
.btn.dark { background: var(--grad-brand); }
.btn.soft { background: var(--brand-50); color: var(--brand); }
.btn.primary { box-shadow: 0 6px 16px rgba(242, 163, 0, .28); }
.btn.primary:disabled { box-shadow: none; }
.segmented { background: var(--surface-2); }
.segmented button.on { background: var(--grad-brand); color: #fff; box-shadow: 0 4px 10px rgba(13, 43, 78, .2); }
.chip.on { background: var(--grad-brand); border-color: transparent; color: #fff; }
.option.on { border-color: var(--ink); background: var(--brand-50); }
.switch input:checked + span { background: var(--ink); }
.timeline li::after { border-color: var(--ink); }
.timeline li.done::after { background: var(--ink); }
.badge.teal { background: var(--brand-50); color: var(--accent); }
.service { background: var(--grad-card); border-color: var(--border); }
.service:hover { border-color: var(--brand-100); }
.bottomnav { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -4px 18px rgba(13, 43, 78, .06); }
.bottomnav a svg { padding: 3px 14px; width: 52px; height: 30px; border-radius: 15px; box-sizing: border-box; transition: background .15s; }
.bottomnav a.active svg { background: var(--nav-pill); }
.bottomnav a.active { color: var(--ink); font-weight: 700; }
.bottomnav .dot { top: 2px; left: calc(50% + 12px); }
.section-title { color: var(--ink); }
.toast { background: var(--grad-brand); }
.item .ic { background: var(--brand-50); color: var(--ink); }
.chat-head .ic, .avatar.ph { background: var(--brand-50); color: var(--ink); }
.msg.client { background: var(--grad-brand); }
.msg.staff { border-color: var(--brand-100); background: var(--brand-50); }
.tabs .on { color: var(--ink); border-bottom-color: var(--ink); }

/* Écran de connexion : bandeau bleu nuit en dégradé, arrondi en bas, logo clair */
.auth { justify-content: flex-start; padding-top: 0; }
.auth .brand-head { margin: 0 -20px 4px; padding: calc(40px + var(--safe-top)) 24px 34px; background: var(--grad-brand); color: #fff; border-radius: 0 0 32px 32px; position: relative; overflow: hidden; box-shadow: 0 12px 30px rgba(13, 43, 78, .2); }
.auth .brand-head::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 182, 39, .3) 0%, rgba(255, 182, 39, 0) 70%); }
.auth .brand-head .muted, .auth .brand-head p { color: #D6E1EC; }
.auth .brand-head .tag { color: #FFB627; }
.auth .brand-head h1, .auth .brand-head h2 { color: #fff; }
@media (min-width: 520px) { .auth .brand-head { margin: 24px 0 4px; border-radius: 28px; } }

/* Administration et portail pressing : barre latérale bleu nuit */
.side { background: var(--grad-brand); border-right: 0; color: #fff; }
.side .brand, .side .brand + .tag, .side .tag { color: #fff; }
.side nav a { color: #C9D7E6; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side nav a.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--sun); }
.side nav .grp { color: #8FA8C2; }
.side .muted, .side .small, .side .dim { color: #B8C7D6; }
.side .btn.ghost, .side .btn.outline { color: #fff; }
.topbar { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.side .card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: none; color: #fff; }
.side .brand .dim { color: #FFB627; }

/* Sélecteur de langue FR | EN */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); flex: none; }
.lang-switch button { border: 0; background: transparent; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: var(--text-2); cursor: pointer; }
.lang-switch button.on { background: var(--grad-brand); color: #fff; }
.auth .brand-head .lang-switch { position: absolute; top: calc(16px + var(--safe-top)); right: 16px; z-index: 1; background: rgba(255, 255, 255, .14); }
.auth .brand-head .lang-switch button { color: #D6E1EC; }
.auth .brand-head .lang-switch button.on { background: #fff; color: var(--navy); }
.side .lang-switch { background: rgba(255, 255, 255, .12); }
.side .lang-switch button { color: #C9D7E6; }
.side .lang-switch button.on { background: #fff; color: var(--navy); }

/* Accueil : salutation en texte simple (hors bandeau) */
.home-greet { padding: 6px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.home-greet h1 { font-size: 26px; color: var(--ink); }
.home-greet p { font-size: var(--fs-body); }

/* Choix du moment (récapitulatif de commande) : 3 pastilles côte à côte */
.tchips { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tchip { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); cursor: pointer; text-align: center; min-height: 92px; }
.tchip span svg { width: 22px; height: 22px; color: var(--ink); }
.tchip b { font-size: var(--fs-btn-sm); }
.tchip small { font-size: var(--fs-micro); color: var(--text-2); line-height: 1.3; }
.tchip.on { border-color: var(--ink); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--ink); }
.tchip:disabled { opacity: .45; cursor: not-allowed; }
.field label svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 4px; }
.open-card { border-left: 4px solid var(--sun); }
.open-card.express { border-left-color: var(--warn); }

/* v1.6 : WhatsApp, détail des frais, gains des agents, choix du pressing */
.btn.wa, a.wa { color: #128C4A; }
.btn.soft.wa { background: rgba(37, 211, 102, .14); }
.btn.wa-solid { background: #1FA855; color: #fff; }
.fees { display: grid; gap: 2px; }
.fees .grp { font-size: var(--fs-small); font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.fees .kv.sub { padding: 3px 0 3px 12px; font-size: var(--fs-small); color: var(--text-2); }
.fees .kv.disc { color: var(--ok); }
.fees .kv.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: var(--fs-title); }
.hint-pill { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: var(--fs-small); }
.hint-pill svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.lock-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: var(--fs-small); }
.lock-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.progress-dots { display: flex; gap: 4px; margin-top: 6px; }
.progress-dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--border); }
.progress-dots i.on { background: var(--accent); }
.press-pick { display: grid; gap: 10px; }
.press-pick .card { display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%; cursor: pointer; }
.press-pick .card.on { outline: 2px solid var(--accent); }
.press-pick .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-small); color: var(--text-2); }
.earn-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.earn-card .v { font-size: var(--fs-price); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-grid .kv { border-bottom: 1px dashed var(--border); }
.pay-toggle { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.pay-toggle .grow b { display: block; }
.unit-price { font-size: var(--fs-small); color: var(--text-2); font-variant-numeric: tabular-nums; }
.press-pick .meta svg { width: 14px; height: 14px; vertical-align: -2px; }
svg.inl { width: 14px; height: 14px; vertical-align: -2px; } svg.wa-ic { color: #1FA855; }
svg.inl { display: inline-block; margin-right: 2px; }
.press-pick .meta > span { display: inline-flex; align-items: center; gap: 3px; }
.fees .grp { display: flex; align-items: center; gap: 6px; }
.fees .grp svg { width: 14px; height: 14px; }

/* v1.7 : carte en direct sur écran séparé (salle de contrôle, télévision) — lisible de loin */
body.wall-body { background: #061629; overflow: hidden; }
.wall { --w-bg: #061629; --w-panel: #0B2242; --w-card: #10294D; --w-line: rgba(255,255,255,.08); --w-dim: #93A7C0;
  position: fixed; inset: 0; display: grid; grid-template-rows: auto auto 1fr; background: var(--w-bg); color: #EAF1F9; font-size: clamp(14px, .78vw, 20px); }
.wall-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .7em 1.2em; background: linear-gradient(90deg, #0D2B4E, #12345F); }
.wall-brand { display: flex; align-items: center; gap: .8em; min-width: 0; }
.wall-brand .logo-light { display: none !important; } .wall-brand .logo-dark { display: inline-block !important; }
.wall-sep { width: 1px; height: 1.6em; background: rgba(255,255,255,.2); }
.wall-title { font-size: 1.3em; font-weight: 700; white-space: nowrap; }
.wall-live { display: inline-flex; align-items: center; gap: .45em; font-size: .8em; font-weight: 700; color: #7BE0B6; text-transform: uppercase; letter-spacing: .06em; }
.wall-live small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--w-dim); }
.wall-live i { width: .6em; height: .6em; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 0 rgba(34,176,125,.6); animation: wallpulse 1.8s infinite; }
.wall.offline .wall-live { color: #FF8A8E; } .wall.offline .wall-live i { background: #E5484D; animation: none; }
@keyframes wallpulse { 70% { box-shadow: 0 0 0 .55em rgba(34,176,125,0); } 100% { box-shadow: 0 0 0 0 rgba(34,176,125,0); } }
.wall-actions { display: flex; align-items: center; gap: .5em; transition: opacity .4s; }
.wall-tool { display: inline-flex; align-items: center; gap: .45em; padding: .5em .85em; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #CFDBEA; font: inherit; font-size: .85em; font-weight: 600; cursor: pointer; }
.wall-tool svg { width: 1.15em; height: 1.15em; }
.wall-tool.on { background: #FFB627; border-color: #FFB627; color: #0D2B4E; }
.wall-tool:hover { border-color: rgba(255,255,255,.4); }
.wall-clock { font-size: 1.9em; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: .4em; letter-spacing: -.02em; }
.wall-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7em; padding: .8em 1.2em; background: var(--w-bg); }
.wall-kpi { display: flex; align-items: center; gap: .8em; background: var(--w-card); border: 1px solid var(--w-line); border-radius: 1em; padding: .7em 1em; }
.wall-kpi .k-ic { width: 2.4em; height: 2.4em; border-radius: .8em; display: grid; place-items: center; background: rgba(76,141,255,.16); color: #8DB6FF; flex: none; }
.wall-kpi .k-ic svg { width: 1.3em; height: 1.3em; }
.wall-kpi b { display: block; font-size: 2em; line-height: 1; font-variant-numeric: tabular-nums; }
.wall-kpi div span { font-size: .8em; color: var(--w-dim); }
.wall-kpi.busy .k-ic { background: rgba(245,165,36,.16); color: #F5A524; }
.wall-kpi.move .k-ic { background: rgba(76,141,255,.2); color: #8DB6FF; }
.wall-kpi.ok .k-ic { background: rgba(34,176,125,.16); color: #4ED3A0; }
.wall-kpi.warn { border-color: rgba(255,182,39,.55); background: rgba(255,182,39,.1); }
.wall-kpi.warn .k-ic { background: #FFB627; color: #0D2B4E; } .wall-kpi.warn b { color: #FFB627; }
.wall-main { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 520px); min-height: 0; gap: 0; }
.wall-map { position: relative; height: 100%; border-radius: 0; }
.wall.dark-map .wall-map .tiles { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.7); }
.wall-legend { position: absolute; left: .8em; bottom: .8em; z-index: 5; display: flex; flex-wrap: wrap; gap: .4em .9em; max-width: 70%; padding: .5em .8em; border-radius: .8em; background: rgba(6,22,41,.82); backdrop-filter: blur(6px); font-size: .8em; color: #CFDBEA; }
.wall-legend i { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: .4em; vertical-align: -.05em; } .wall-legend i.sq { border-radius: .2em; }
.wall-side { background: var(--w-panel); display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--w-line); }
.wall-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3em; padding: .8em .8em .4em; }
.wall-tabs button { font: inherit; font-weight: 700; padding: .55em; border-radius: .7em; border: 0; background: transparent; color: var(--w-dim); cursor: pointer; }
.wall-tabs button b { display: inline-block; min-width: 1.6em; padding: 0 .4em; margin-left: .3em; border-radius: 999px; background: rgba(255,255,255,.1); font-size: .85em; }
.wall-tabs button.on { background: var(--w-card); color: #fff; }
.wall-list { flex: 1; overflow-y: auto; padding: .4em .8em 1em; display: flex; flex-direction: column; gap: .9em; scrollbar-width: thin; }
.wall-group { display: flex; flex-direction: column; gap: .5em; }
.wg-head { display: flex; justify-content: space-between; align-items: center; font-size: .78em; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--w-dim); padding: 0 .2em; }
.wall-group.warn .wg-head { color: #FFB627; } .wall-group.move .wg-head { color: #8DB6FF; }
.wall-item { position: relative; display: grid; gap: .35em; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--w-card); border: 1px solid var(--w-line); border-left: .3em solid #4C8DFF; border-radius: .9em; padding: .75em .9em; transition: background .2s, transform .2s; }
.wall-item.k-deliver { border-left-color: #FFB627; }
.wall-item.alert { border-left-color: #E5484D; background: rgba(229,72,77,.1); }
.wall-item:hover, .wall-item.sel { background: #17386A; } .wall-item.sel { outline: 2px solid #fff; }
.wi-top, .wi-mid, .wi-bot { display: flex; justify-content: space-between; align-items: center; gap: .6em; }
.wi-top .mono { font-size: 1.05em; }
.wi-status { font-size: .95em; }
.wi-eta { font-size: 1.25em; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.wi-agent { display: inline-flex; align-items: center; gap: .45em; font-size: .85em; font-weight: 600; }
.wi-agent i { width: 1.7em; height: 1.7em; border-radius: 50%; background: #F5A524; color: #0D2B4E; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85em; }
.wi-noagent { font-size: .85em; color: #FF8A8E; font-weight: 600; }
.wi-press { font-size: .8em; color: var(--w-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.wi-addr { font-size: .8em; color: var(--w-dim); }
.wi-open { position: absolute; right: .4em; top: 50%; transform: translateY(-50%); color: var(--w-dim); opacity: 0; transition: opacity .2s; }
.wall-item:hover .wi-open { opacity: 1; } .wall-item:hover .wi-eta { margin-right: 1.4em; }
.wall-badge { font-size: .72em; font-weight: 800; padding: .2em .7em; border-radius: 999px; background: rgba(76,141,255,.2); color: #A9C8FF; white-space: nowrap; }
.wall-badge.deliver { background: rgba(255,182,39,.18); color: #FFCF6B; }
.wall-agent-row { display: flex; align-items: center; gap: .7em; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--w-card); border: 1px solid var(--w-line); border-radius: .8em; padding: .6em .8em; cursor: pointer; }
.wall-agent-row.sel, .wall-agent-row:hover { background: #17386A; }
.wall-agent-row .dot { width: .8em; height: .8em; border-radius: 50%; flex: none; }
.wall-agent-row small { display: block; color: var(--w-dim); font-size: .8em; }
.wall-count { min-width: 1.8em; height: 1.8em; border-radius: 999px; background: #F5A524; color: #0D2B4E; font-weight: 800; display: grid; place-items: center; font-size: .85em; }
.wall-empty { display: grid; justify-items: center; gap: .4em; text-align: center; color: var(--w-dim); padding: 3em 1em; }
.wall-empty svg { width: 2.4em; height: 2.4em; color: #4ED3A0; } .wall-empty p { margin: 0; color: #EAF1F9; font-weight: 600; }
.wall .wall-agent { width: 2.9em; height: 2.9em; transition: transform .3s; } .wall .wall-agent svg { width: 1.3em; height: 1.3em; }
.wall .wall-agent.focus { transform: scale(1.3); box-shadow: 0 0 0 .35em rgba(255,255,255,.35); }
.wall .wall-label { position: absolute; left: 50%; top: 3.2em; transform: translateX(-50%); background: #0D2B4E; color: #fff; font-size: .8em; }
.wall .wall-label b { display: inline-block; margin-left: .3em; padding: 0 .4em; border-radius: 999px; background: #F5A524; color: #0D2B4E; }
.wall .map .zoom { transition: opacity .4s; }
.wall.idle { cursor: none; } .wall.idle .wall-actions, .wall.idle .map .zoom { opacity: 0; }
.wall-msg { display: grid; place-items: center; text-align: center; }
@media (max-width: 1100px) { .wall-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wall-tool span { display: none; } }
@media (max-width: 760px) {
  body.wall-body { overflow: auto; } .wall { position: static; min-height: 100vh; display: flex; flex-direction: column; font-size: 14px; }
  .wall-top { flex-wrap: wrap; } .wall-sep, .wall-title { display: none; } .wall-clock { font-size: 1.4em; }
  .wall-kpis { display: flex; overflow-x: auto; } .wall-kpi { flex: none; min-width: 150px; }
  .wall-main { grid-template-columns: 1fr; } .wall-map { height: 58vh; } .wall-list { max-height: none; overflow: visible; }
}

/* v1.8 : ergonomie générale — fluidité, retours visuels, lisibilité, confort */
@media (min-width: 900px) { .toasts { left: auto; right: 24px; bottom: 24px; transform: none; } }
.toast { align-items: center; animation: toastin .22s cubic-bezier(.2,.8,.2,1); cursor: pointer; line-height: 1.35; }
.toast .t-ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; opacity: .9; }
.toast .t-ic svg { width: 20px; height: 20px; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
/* Transition entre écrans */
.route-enter main > *, .route-enter #content > * { animation: pagein .22s ease-out both; }
@keyframes pagein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Chargement : la roue n'apparaît que si l'attente dure (pas de clignotement) */
.loading { animation: loadin .2s .25s both; }
@keyframes loadin { from { opacity: 0; } to { opacity: 1; } }
/* Retours au toucher */
a.card.link, button.card, .option, .item, a.item, .service, .chip, .garment, .tchip, .wall-item { -webkit-tap-highlight-color: transparent; transition: transform .08s ease, background .15s, border-color .15s, box-shadow .15s; }
a.card.link:active, button.card:active, .option:active, a.item:active, button.item:active, .service:active, .chip:active, .tchip:active { transform: scale(.985); }
.service:hover, a.card.link:hover { box-shadow: var(--shadow-lg, 0 8px 24px rgba(13,43,78,.12)); }
/* Focus clavier visible et net (accessibilité) */
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sun) 70%, transparent); outline-offset: 2px; border-radius: 10px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
/* Vêtements : ligne entière cliquable, plus compacte */
.garment { padding: 8px 10px; cursor: pointer; user-select: none; }
.garment .ic { width: 36px; height: 36px; }
.garment b { font-size: var(--fs-body); }
.stepper button { width: 44px; height: 40px; }
.stepper button:active:not(:disabled) { background: var(--brand-50); }
/* Lecture confortable : lignes moins longues sur grand écran */
.page p, .card p { max-width: 72ch; }
/* Tableaux de l'administration en cartes sur téléphone */
@media (max-width: 760px) {
  .table-wrap.cards { border: 0; background: transparent; overflow: visible; }
  .table-wrap.cards .table, .table-wrap.cards tbody, .table-wrap.cards tr, .table-wrap.cards td { display: block; width: 100%; }
  .table-wrap.cards thead { display: none; }
  .table-wrap.cards tr { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding: 8px 12px; box-shadow: var(--shadow); }
  .table-wrap.cards td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table-wrap.cards td::before { content: attr(data-label); color: var(--text-2); font-size: var(--fs-small); font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  .table-wrap.cards td:first-child { font-size: var(--fs-title); text-align: left; justify-content: flex-start; }
  .table-wrap.cards td:first-child::before, .table-wrap.cards td[data-label=""]::before { display: none; }
  .table-wrap.cards td[data-label=""] { justify-content: flex-end; }
  .table-wrap.cards .num { text-align: right; }
  .table-wrap.cards td .cv { min-width: 0; overflow-wrap: anywhere; }
  .table-wrap.cards td:first-child .cv { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar > .input:first-child, .toolbar > input[type="search"], .toolbar > [data-q] { grid-column: 1 / -1; }
  .toolbar .input, .toolbar select { width: 100%; min-width: 0 !important; }
}
/* Pressing : action directe sur chaque carte */
.quick-act { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.kbd-btn { margin-left: auto; color: var(--text-2); }
.kbd { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); }
@media (max-width: 760px) { .kbd { display: none; } }
.palette { min-width: min(560px, 86vw); }
.palette-list { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.palette-item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.palette-item small { display: block; color: var(--text-2); font-size: var(--fs-small); }
.palette-item.on, .palette-item:hover { background: var(--brand-50); }
/* v1.9 : assistant des écrans de connexion, saisie du code */
.help-fab { align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; box-shadow: var(--shadow); cursor: pointer; }
.help-fab small { color: var(--text-2); font-weight: 500; }
.help-fab svg { width: 20px; height: 20px; color: var(--sun); }
.help-fab:active { transform: scale(.97); }
.help-chat { display: flex; flex-direction: column; gap: 12px; min-height: min(70vh, 560px); }
.help-bot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--navy); }
.help-bot svg { width: 20px; height: 20px; }
.help-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; max-height: 48vh; padding: 4px 2px; }
.help-msg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.help-msg.me { align-items: flex-end; }
.help-msg .bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); white-space: pre-line; line-height: 1.45; }
.help-msg.me .bubble { background: var(--navy); color: #fff; border-radius: 16px 16px 4px 16px; }
.help-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: typing 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .3; transform: translateY(-2px); } }
.otp-input { font-size: 26px !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.auth .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
@media (max-width: 600px) { .appbar .btn .lbl { display: none; } .appbar .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }


/* ════════ v1.10 : thème épuré — clair : fond blanc, texte noir et gris ; sombre : style WhatsApp (noir, texte blanc et gris).
   La couleur de la marque (jaune soleil, texte bleu nuit) est réservée aux boutons de confirmation (.btn.primary) ;
   vert / orange / rouge restent discrets pour les statuts. L'écran mural (/admin/ecran) garde son propre thème sombre. ════════ */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F0F2F5; --border: #E4E7EB;
  --text: #111B21; --text-2: #54656F; --text-3: #667781;
  --brand: #111B21; --brand-600: #000000; --brand-50: #F0F2F5; --brand-100: #E4E7EB;
  --accent: #3B4A54; --accent-50: #F0F2F5; --link: #111B21; --ink: #111B21; --nav-pill: #E9EDEF;
  --on-brand: #FFFFFF; --bubble-me: #F0F2F5;
  --ok: #0A7A55; --ok-50: #E7F5EE; --warn: #9A5B00; --warn-50: #FFF4DC; --danger: #C8372B; --danger-50: #FDECEA;
  --grad-brand: none; --grad-page: none; --grad-card: none;
  --shadow: 0 1px 2px rgba(17, 27, 33, .06); --shadow-lg: 0 12px 32px rgba(17, 27, 33, .16);
  --confirm: #FFB627; --confirm-600: #F2A300; --on-confirm: #0D2B4E;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B141A; --surface: #111B21; --surface-2: #202C33; --border: #222D34;
    --text: #E9EDEF; --text-2: #8696A0; --text-3: #8696A0;
    --brand: #E9EDEF; --brand-600: #FFFFFF; --brand-50: #202C33; --brand-100: #2A3942;
    --accent: #AEBAC1; --accent-50: #202C33; --link: #E9EDEF; --ink: #E9EDEF; --nav-pill: #2A3942;
    --on-brand: #111B21; --bubble-me: #202C33;
    --ok: #4ADE9B; --ok-50: #0F2A20; --warn: #FFC650; --warn-50: #33270C; --danger: #FF7A6E; --danger-50: #3A1A18;
    --grad-brand: none; --grad-page: none; --grad-card: none;
    --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  --bg: #0B141A; --surface: #111B21; --surface-2: #202C33; --border: #222D34;
  --text: #E9EDEF; --text-2: #8696A0; --text-3: #8696A0;
  --brand: #E9EDEF; --brand-600: #FFFFFF; --brand-50: #202C33; --brand-100: #2A3942;
  --accent: #AEBAC1; --accent-50: #202C33; --link: #E9EDEF; --ink: #E9EDEF; --nav-pill: #2A3942;
  --on-brand: #111B21; --bubble-me: #202C33;
  --ok: #4ADE9B; --ok-50: #0F2A20; --warn: #FFC650; --warn-50: #33270C; --danger: #FF7A6E; --danger-50: #3A1A18;
  --grad-brand: none; --grad-page: none; --grad-card: none;
  --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
}
body:not(.wall-body) { background: var(--bg); }
a { font-weight: 600; }
.appbar { background: var(--surface); border-bottom: 1px solid var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar { background: var(--surface); }
.card, .list, .stat, .table-wrap { box-shadow: var(--shadow); }
/* Bouton de confirmation : la seule couleur vive */
.btn.primary { background: var(--confirm); color: var(--on-confirm); box-shadow: none; }
.btn.primary:hover { background: var(--confirm-600); }
.btn.primary svg { color: var(--on-confirm); }
.btn.dark, .btn.accent { background: var(--text); color: var(--bg); }
.btn.dark:hover { background: var(--text); opacity: .9; }
.btn.soft { background: var(--surface-2); color: var(--text); }
.btn.outline { border: 1px solid var(--border); }
/* Sélections : neutres (contour et fond gris), sans bleu */
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .segmented button.on { background: #2A3942; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .segmented button.on { background: #2A3942; } }
.chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.option.on, .tchip.on { border-color: var(--text); background: var(--surface-2); box-shadow: none; }
.option .ic, .option.on .ic { background: var(--surface-2); color: var(--text); }
.tchip span svg { color: var(--text-2); }
.switch input:checked + span { background: #25D366; }
.timeline li::after { border-color: var(--text-2); } .timeline li.done::after { background: var(--text-2); }
.badge.blue, .badge.teal { background: var(--surface-2); color: var(--text-2); }
.input:focus { border-color: var(--text-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-2) 18%, transparent); }
.check input { accent-color: var(--text); }
:focus-visible { outline: 2px solid var(--text-2); }
.input:focus-visible { outline: none; }
/* Cartes de mise en avant : surfaces sobres au lieu des dégradés bleu nuit */
.hero, .card.hero, .home-hero { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.home-hero { background-image: none; }
.home-hero::after, .auth .brand-head::after { display: none; }
.hero b, .hero h1, .hero h2, .home-hero b, .home-hero h1, .home-hero h2 { color: var(--text); }
.hero .muted, .home-hero .muted, .home-hero p { color: var(--text-2); }
.service, .service:hover { background: var(--surface); border-color: var(--border); }
.service .ic, .service.alt .ic, .ic-sq, .item .ic, .chat-head .ic, .avatar.ph, .help-bot { background: var(--surface-2); color: var(--text); }
.steps-list li::before { background: var(--surface-2); color: var(--text); }
.ref-code b { color: var(--text); }
.open-card { border-left-color: var(--text-3); }
.notif.unread b::before, .bottomnav .dot { background: #25D366; color: #fff; }
/* Navigation */
.bottomnav { background: var(--surface); border-top: 1px solid var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.bottomnav a { color: var(--text-2); }
.bottomnav a.active { color: var(--text); }
.bottomnav a.active svg { background: var(--nav-pill); }
.tabs .on { color: var(--text); border-bottom-color: var(--text); }
.section-title, .home-greet h1 { color: var(--text); }
/* Messages */
.msg.client, .help-msg.me .bubble { background: var(--bubble-me); color: var(--text); }
.msg.staff { background: var(--surface); border-color: var(--border); }
.toast { background: #202C33; color: #E9EDEF; }
/* Écran de connexion : fond du thème, logo officiel dans la version du thème */
.auth .brand-head { background: transparent; color: var(--text); box-shadow: none; border-radius: 0; padding-bottom: 12px; }
.auth .brand-head .muted, .auth .brand-head p { color: var(--text-2); }
.auth .brand-head h1, .auth .brand-head h2 { color: var(--text); }
.auth .brand-head .tag { color: var(--text-2); }
.auth .brand-head .lang-switch { background: var(--surface-2); }
.auth .brand-head .lang-switch button { color: var(--text-2); }
.auth .brand-head .lang-switch button.on, .lang-switch button.on, .side .lang-switch button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
/* Administration et portail pressing : barre latérale du thème */
.side { background: var(--surface); border-right: 1px solid var(--border); color: var(--text); }
.side .brand, .side .brand + .tag, .side .tag { color: var(--text); }
.side .brand .dim { color: var(--text-2); }
.side nav a { color: var(--text-2); }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a.active { background: var(--surface-2); color: var(--text); box-shadow: none; }
.side nav .grp, .side .muted, .side .small, .side .dim { color: var(--text-3); }
.side .btn.ghost, .side .btn.outline { color: var(--text); }
.side .card { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.side .lang-switch { background: var(--surface-2); }
.side .lang-switch button { color: var(--text-2); }
/* Aides repliables (paramètres de messagerie) */
details.help { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; }
details.help summary { cursor: pointer; font-weight: 600; }
details.help ol { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 4px; }
.route-error .card { text-align: center; }

/* v1.11 : icônes des commandes du client en bleu, en mode clair comme en mode sombre */
:root { --order-ic: #1F5A96; --order-ic-bg: #E7EEF7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --order-ic: #6EA8E8; --order-ic-bg: rgba(110, 168, 232, .15); } }
:root[data-theme="dark"] { --order-ic: #6EA8E8; --order-ic-bg: rgba(110, 168, 232, .15); }
.app-client .service .ic, .app-client .service.alt .ic, .app-client .garment .ic, .app-client .garment.on .ic, .app-client .option .ic, .app-client .option.on .ic,
.app-client .item .ic, .app-client .ic-sq, .app-client .chat-head .ic { background: var(--order-ic-bg); color: var(--order-ic); }
.app-client .oic, .app-client .tchip span svg, .app-client .tchip.on span svg { color: var(--order-ic); }
.app-client .oic svg { color: inherit; }
/* Liste des articles : recherche et catégories */
.garment-tools { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 6px 0; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search-box .input { padding-left: 38px; }
.garment-cat { margin-top: 10px; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.empty-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 2px; }
.req { color: var(--danger); font-weight: 700; }
.field .err, p.err { color: var(--danger); }
/* Import d'une liste de prix */
.import-drop { border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--surface-2); }
.import-table td, .import-table th { padding: 6px 8px; font-size: var(--fs-small); }
.import-table tr.bad td { color: var(--danger); }
.import-table tr.dup td { color: var(--text-3); text-decoration: line-through; }
@media (min-width: 720px) { .backdrop.dialog .sheet.wide { max-width: 900px; } }
.sheet.wide .import-table .input { font-size: var(--fs-small); }

/* v1.12 : prix par zone affiché sur chaque moment (tournée / hors tournée / urgent) */
.tchip .tprice { font-style: normal; font-weight: 700; font-size: var(--fs-small); color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; }
button.hint-pill { border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; color: inherit; margin-top: 8px; }
.zones-editor td, .zones-editor th { padding: 6px 8px; }
.zones-editor .input { min-height: 38px; }

/* v1.13 : barre de zoom (zoom progressif) et itinéraire avec les minutes de trajet */
.map .zoom { align-items: center; }
.map .zoom button:disabled { opacity: .45; cursor: default; }
.map .zoom-bar { position: relative; width: 38px; height: 112px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); cursor: ns-resize; touch-action: none; --zf: .5; }
.map .zoom-bar::before { content: ""; position: absolute; left: 50%; top: 12px; bottom: 12px; width: 4px; transform: translateX(-50%); border-radius: 2px; background: var(--surface-2); }
.map .zoom-fill { position: absolute; left: 50%; bottom: 12px; width: 4px; transform: translateX(-50%); border-radius: 2px; background: #1F5A96; height: calc((100% - 24px) * var(--zf)); }
.map .zoom-thumb { position: absolute; left: 50%; bottom: calc(12px + (100% - 24px) * var(--zf)); width: 20px; height: 20px; transform: translate(-50%, 50%); border-radius: 50%; background: var(--surface); border: 3px solid #1F5A96; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .12s; }
.map .zoom-bar.active .zoom-thumb, .map .zoom-bar:focus-visible .zoom-thumb { transform: translate(-50%, 50%) scale(1.15); }
.map .zoom-bar:focus-visible { outline: 2px solid #1F5A96; outline-offset: 2px; }
.map.map-compact .zoom-bar { height: 72px; }
.map.map-tiny .zoom-bar { display: none; }
.route-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #1F5A96; color: #fff; font-size: 12.5px; line-height: 1.2; box-shadow: 0 2px 8px rgba(0,0,0,.28); white-space: nowrap; border: 2px solid #fff; }
.route-label svg { width: 14px; height: 14px; }
.route-label span { opacity: .85; font-weight: 500; }
.route-label.est { background: #54656F; }

/* v1.15 : accueil client façon application de course (carte en haut, panneau arrondi, 4 options en cadres gris) */
:root { --tile-bg: #F1F2F4; --me-blue: #2F6BFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tile-bg: #1E2A31; } }
:root[data-theme="dark"] { --tile-bg: #1E2A31; }
.home-v2 { max-width: 640px; margin: 0 auto; padding-bottom: calc(24px + var(--safe-bottom)); }
.home-v2 .home-map { position: relative; height: clamp(250px, 44vh, 420px); }
.home-v2 .home-map-box { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.home-v2 .map .attrib { bottom: 30px; }
.here-chip { position: absolute; top: 12px; left: 12px; right: 76px; z-index: 6; display: flex; align-items: center; gap: 8px; pointer-events: none; color: #111; }
.here-chip svg { width: 20px; height: 20px; flex: none; }
.here-chip div { display: flex; flex-direction: column; min-width: 0; text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.here-chip b { font-size: 16px; }
.here-chip span { font-size: 12px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-fab { position: absolute; right: 14px; bottom: 44px; z-index: 6; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 3px 12px rgba(0,0,0,.18); cursor: pointer; }
.map-fab svg { width: 24px; height: 24px; }
.map-fab:active { transform: scale(.95); }
.me-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--me-blue); border: 4px solid #fff; box-shadow: 0 0 0 0 rgba(47,107,255,.45), 0 2px 6px rgba(0,0,0,.25); animation: mepulse 2s infinite; }
@keyframes mepulse { 70% { box-shadow: 0 0 0 14px rgba(47,107,255,0), 0 2px 6px rgba(0,0,0,.25); } 100% { box-shadow: 0 0 0 0 rgba(47,107,255,0), 0 2px 6px rgba(0,0,0,.25); } }
@media (prefers-reduced-motion: reduce) { .me-dot { animation: none; } }
.eta-pin { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; margin-bottom: 30px; border-radius: 999px; background: #fff; color: #111; box-shadow: 0 3px 12px rgba(0,0,0,.2); white-space: nowrap; position: relative; }
.eta-pin::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 3px; height: 24px; transform: translateX(-50%); background: #222; border-radius: 2px; }
.eta-pin .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--me-blue); color: #fff; display: grid; place-items: center; }
.eta-pin .ic svg { width: 20px; height: 20px; }
.eta-pin div { display: flex; flex-direction: column; line-height: 1.15; }
.eta-pin span { font-size: 12px; color: #444; }
.eta-pin b { font-size: 15px; }
.home-sheet { position: relative; z-index: 7; margin-top: -24px; background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.home-sheet .grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto; }
.home-sheet .home-greet { padding: 2px 4px 0; gap: 2px; }
.home-sheet .home-greet h1 { font-size: 22px; }
.app-client .home-sheet .services { gap: 10px; }
.app-client .home-sheet .service { background: var(--tile-bg); border: 0; box-shadow: none; border-radius: 20px; align-items: flex-start; text-align: left; padding: 16px 14px; min-height: 150px; gap: 6px; }
.app-client .home-sheet .service:hover { box-shadow: none; filter: brightness(.98); }
.app-client .home-sheet .service .ic { margin: 0 0 6px; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); }
.app-client .home-sheet .service b { font-size: 17px; }
@media (max-width: 360px) { .app-client .home-sheet .service { min-height: 140px; padding: 14px 12px; } .app-client .home-sheet .service b { font-size: 15.5px; } }

/* v1.15 : menu latéral (remplace la barre de navigation du bas) */
.menu-btn { position: relative; margin-left: auto; }
.menu-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: #25D366; border: 2px solid var(--surface); }
.drawer-bd { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0); transition: background .2s; }
.drawer-bd.on { background: rgba(0,0,0,.4); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 330px); background: var(--surface); box-shadow: -8px 0 28px rgba(0,0,0,.22); display: flex; flex-direction: column; padding: calc(12px + var(--safe-top, 0px)) 12px calc(14px + var(--safe-bottom)); transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; }
.drawer-bd.on .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.drawer-head .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.drawer-head .avatar svg { width: 22px; height: 22px; }
.drawer-head b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer nav { display: flex; flex-direction: column; gap: 2px; }
.drawer nav a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: var(--text); font-weight: 600; min-height: 48px; }
.drawer nav a:hover { background: var(--surface-2); text-decoration: none; }
.drawer nav a.active { background: var(--surface-2); }
.drawer nav a svg { width: 22px; height: 22px; flex: none; color: var(--order-ic); }
.drawer nav .dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #25D366; color: #fff; font-size: var(--fs-micro); font-weight: 700; display: grid; place-items: center; }
.drawer-out { margin-top: auto; justify-content: flex-start; color: var(--text-2); }
body.noscroll { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-bd { transition: none; } }

/* Commande créée par l'équipe support pour un client */
.done-ic { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #E7F7EE; color: #1FA855; }
.done-ic svg { width: 36px; height: 36px; }
.share-msg { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: var(--fs-small); line-height: 1.5; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--text); }
/* v1.16 : espace Équipe support (commande créée pour un client, adresse géolocalisée, publication dans le fil) */
.support-order, .support-done { max-width: 1100px; }
.support-done { max-width: 720px; }
.so-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.so-where { position: sticky; top: 72px; }
.so-map { height: 380px; }
.so-search { position: relative; }
.so-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; max-height: 260px; overflow: auto; box-shadow: var(--shadow-lg); }
.so-results .item { width: 100%; text-align: left; border: 0; background: var(--surface); cursor: pointer; }
.so-step { display: flex; gap: 12px; align-items: flex-start; }
.so-step .n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; }
.so-step .n.ok { background: #1FA855; color: #fff; }
.so-step .n svg { width: 18px; height: 18px; }
.so-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.so-card.todo { border-left: 4px solid var(--warn); }
@media (max-width: 900px) { .so-grid { grid-template-columns: 1fr; } .so-where { position: static; } .so-map { height: 300px; } .so-list { grid-template-columns: 1fr; } }

/* Accueil client : « Vous êtes ici » en bas de la carte */
.home-v2 .here-chip { top: auto; bottom: 40px; right: auto; max-width: calc(100% - 100px); padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.16); pointer-events: none; }
.home-v2 .here-chip div { text-shadow: none; }

/* v1.17 : accueil client allégé (carte plus grande, 4 types de commande sans icônes, pressing le plus proche) */
.home-v2 .home-map { height: clamp(300px, 54vh, 520px); }
.home-v2 .home-sheet { gap: 12px; padding: 8px 14px 6px; }
.home-title { font-size: 20px; padding: 2px 4px 0; color: var(--ink, var(--text)); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 30px 14px 14px; min-height: 92px; border-radius: 18px; background: var(--tile-bg); color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .08s ease, filter .15s; }
.svc:hover { text-decoration: none; filter: brightness(.98); }
.svc:active { transform: scale(.98); }
.svc b { font-size: 16px; line-height: 1.22; font-weight: 700; }
.svc span { font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.svc i { position: absolute; right: 10px; bottom: 12px; color: var(--text-3); display: flex; }
.svc i svg { width: 16px; height: 16px; }
.near-chip { position: absolute; left: 12px; bottom: 40px; max-width: calc(100% - 100px); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #fff; color: #111; box-shadow: 0 3px 12px rgba(0,0,0,.16); pointer-events: none; }
.near-chip svg { width: 20px; height: 20px; flex: none; color: var(--order-ic); }
.near-chip div { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.near-chip span { font-size: 11.5px; color: #555; }
.near-chip b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near-chip.hidden { display: none; }
/* Fond de carte « sketch » : couleurs douces et claires (parcs verts, rues blanches), comme les applications de course */
.app-client.map-sketch .map .tiles img { filter: saturate(.5) sepia(.08) brightness(1.08) contrast(.9); }
.app-client.map-sketch .map { background: #f2efe9; }
@media (max-width: 360px) { .svc { min-height: 84px; padding: 12px 26px 12px 12px; } .svc b { font-size: 15px; } }
/* v1.17 : paiement Mobile Money simplifié (numéro du compte, autre numéro) */
.momo-box { padding: 12px; border-radius: 14px; background: var(--surface-2); margin: -2px 0 6px; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--order-ic); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; }
.other-place { margin-top: 8px; }
.momo-box .segmented, .sheet .segmented { flex: none; } .momo-box .segmented button, .sheet .segmented button { white-space: nowrap; padding-left: 12px; padding-right: 12px; }

/* v1.18 : 3 types de commande, en bleu (couleur du repère de position), texte blanc */
.svc-grid.three { grid-template-columns: 1fr 1fr; }
.svc-grid.three .svc:first-child { grid-column: 1 / -1; min-height: 76px; }
.svc-grid.three .svc { background: var(--me-blue); color: #fff; min-height: 88px; box-shadow: 0 4px 14px rgba(47,107,255,.22); }
.svc-grid.three .svc span { color: rgba(255,255,255,.86); }
.svc-grid.three .svc i { color: rgba(255,255,255,.9); }
.svc-grid.three .svc:hover { filter: brightness(1.06); }
.tchips.two { grid-template-columns: 1fr 1fr; }
.quick-order .card .btn.block + .btn.block { margin-top: 0; }
.items-check { border: 2px solid var(--me-blue); }
/* v1.19 : ticket de dépôt du pressing (QR Code) */
.ticket-qr { width: 220px; max-width: 70vw; margin: 0 auto; padding: 10px; background: #fff; border-radius: 12px; }
.ticket-qr svg { width: 100%; height: auto; display: block; }

/* v1.19 : palette bleue de l'application client — bleu vif pour les actions et les repères de carte,
   bleu marine pour les titres, bleu clair en fond léger */
.app-client { --confirm: #0066FF; --confirm-600: #0052D9; --on-confirm: #fff; --me-blue: #0066FF; --order-ic: #0066FF; --order-ic-bg: #E8F0FF; --navy-ui: #111184; --blue-soft: #EEF4FF; }
:root[data-theme="dark"] .app-client { --order-ic: #5C9DFF; --order-ic-bg: rgba(92,157,255,.15); --navy-ui: #B7C6FF; --blue-soft: rgba(92,157,255,.10); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-client { --order-ic: #5C9DFF; --order-ic-bg: rgba(92,157,255,.15); --navy-ui: #B7C6FF; --blue-soft: rgba(92,157,255,.10); } }
.app-client .btn.primary { background: var(--confirm); color: var(--on-confirm); }
.app-client .btn.primary:hover { background: var(--confirm-600); }
.app-client .btn.primary:disabled { background: var(--confirm); opacity: .45; }
.app-client h1, .app-client h2, .app-client .home-title, .app-client .appbar h1, .app-client .section-title { color: var(--navy-ui); }
.app-client .momo-box, .app-client .ticket-card { background: var(--blue-soft); }
.app-client .option.on, .app-client .tchip.on { border-color: var(--confirm); background: var(--blue-soft); }
.app-client .link-btn { color: var(--confirm); }
.app-client .promo .btn.primary { background: var(--confirm); color: #fff; }
.app-client .promo-txt h1 { color: #fff; }
.app-client .drawer nav a.active { background: var(--blue-soft); color: var(--navy-ui); }
