/* ══════════════════════════════════════════════════════════════
   Décroche Toujours — Espace client (V4 « Encre & Champagne »)
   Direction premium/luxe 2026 : dark-first, un seul accent (or
   champagne), typographie éditoriale, hairlines plutôt qu'ombres.
   Mêmes écrans, mêmes textes, même logique — seul le style change.
   ══════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* Fonds — jamais de noir pur */
  --bg-app:      #101113;
  --bg-sidebar:  #0d0e10;
  --bg-panel:    #16171a;
  --bg-elevated: #1c1d21;
  --bg-inset:    #111214;
  --bg-overlay:  #1a1b1e;

  /* Lignes — hairlines */
  --line:        #23252a;
  --line-faint:  #1b1d21;

  /* Encres */
  --ink:         #e6e7ea;
  --ink-2:       #8a8f98;
  --ink-3:       #8a8f98;
  /* V42 — --ink-3 aligné sur --ink-2 (contraste ≥4,5:1, audit mobile-a11y P3) */

  /* Accent unique — or champagne */
  --gold:        #c9a962;
  --gold-bright: #d4af37;
  --gold-weak:   rgba(201, 169, 98, 0.12);
  --gold-line:   rgba(201, 169, 98, 0.38);
  --gold-ink:    #141414;
  /* V117 — laiton encre pour texte sur fond clair (5,58:1 sur papier, AA) ;
     --gold reste décoratif + texte sur navy uniquement (6,33:1) */
  --brass-ink:   #7a5f28;

  /* ── Charte « La Plaque du patron » — tokens unifiés (2026-10-07) ──
     Règle : UN écran, UN laiton (bouton primaire). Navy pour en-têtes,
     jamais en fond de liste longue. Statuts = émail (jamais laitonnisés). */
  --navy-950:    #0f1830;
  --navy-900:    #1a2340;
  --navy-800:    #243156;
  --laiton:      #c7a059;   /* bouton primaire uniquement */
  --laiton-ink:  #7a5f28;   /* texte sur fond clair (5,58:1) */
  --laiton-line: #e4d5b3;   /* filets sur papier */
  --papier:      #faf6ef;   /* fond contenu long */
  --papier-2:    #f3eee2;   /* groupes, alternance */
  --card:        #fffdf8;   /* cartes sur papier */
  --doc:         #fffdf8;   /* documents (devis/factures) — neutre */
  --vert-email:  #2f7a55;   /* payé / succès */
  --rouge-email: #b23a2a;   /* en retard / urgence */
  --ambre-email: #9a6b1b;   /* en attente / avertissement */
  --neutre-email:#243156;   /* neutre / info */


  /* Motion — 2 easings (recherche premium 2026, 07/10) */
  --ease-tap:   cubic-bezier(0.16, 1, 0.3, 1);   /* ≤150ms : press, micro */
  --ease-glide: cubic-bezier(0.2, 0, 0, 1);      /* 250-350ms : glissés */
  --dur-tap:    120ms;
  --dur-micro:  200ms;
  --dur-panel:  300ms;

  /* États — désaturés, lisibles sur dark */
  --ok:          #4cb782;
  --ok-weak:     rgba(76, 183, 130, 0.12);
  --ok-line:     rgba(76, 183, 130, 0.38);
  --warn:        #d9a23b;
  --warn-weak:   rgba(217, 162, 59, 0.12);
  --warn-line:   rgba(217, 162, 59, 0.42);
  --danger:      #e0566a;
  --danger-weak: rgba(224, 86, 106, 0.12);
  --danger-line: rgba(224, 86, 106, 0.42);
  --info:        #5e9fe0;

  /* Papier — documents (devis, contrat) */
  --paper:       #f9f8f6;
  --paper-ink:   #1a1a1a;
  --paper-muted: #6c6863;
  --paper-line:  rgba(26, 26, 26, 0.14);

  /* Typographies */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-card: 20px;
  --r-s: 8px;
  --r-badge: 999px;
  /* V42 — radius 20px (design n°2 copié, DÉCISION 6) */
  --bronze:      #8a6d2f;
  /* V42 — bronze petits textes (4,8:1 sur blanc) */
  --champagne:   linear-gradient(135deg, #e0c069 0%, #c9a962 48%, #96702e 100%);
  /* V42 — dégradé carte héros Devis (DÉCISION 6) */
  --tap: 0.12s;
  --flow: 0.24s;
  --settle: 0.5s;
  /* V42 — grammaire motion « chantier » (DÉCISION 7) */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 68px;
}

/* ══════════════════════════════════════════════════════════════
   Thème « Ivoire » — réplique du site vitrine decroche-toujours.fr
   (papier ivoire · bleu nuit · or Newsreader). Activé via
   data-theme="light" sur <html>. Le thème sombre « Encre &
   Champagne » reste le défaut.
   ══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  color-scheme: light;

  /* Fonds — papier ivoire */
  --bg-app:      #F4F1E9;
  --bg-sidebar:  #ECE7DA;
  --bg-panel:    #FBF9F3;
  --bg-elevated: #FFFFFF;
  --bg-inset:    #ECE7DA;
  --bg-overlay:  #FBF9F3;

  /* Lignes */
  --line:        #E0D8C6;
  --line-faint:  #E7DFCE;

  /* Encres */
  --ink:         #1C1B17;
  --ink-2:       #5C584D;
  --ink-3:       #5C584D;
  /* V42 — --ink-3 aligné sur --ink-2 (5,81:1, audit mobile-a11y P3) */

  /* Accent — or de la vitrine */
  --gold:        #A9823F;
  --gold-bright: #7E5F2C;
  --gold-weak:   rgba(169, 130, 63, 0.12);
  --gold-line:   rgba(169, 130, 63, 0.42);
  --gold-ink:    #F2EEE3;

  /* Bleu nuit — boutons primaires, comme la vitrine */
  --navy:        #16223F;
  --navy-deep:   #0E1830;
  --on-navy:     #F2EEE3;

  /* États — teintes de la vitrine */
  --ok:          #3F7256;
  --ok-weak:     rgba(63, 114, 86, 0.12);
  --ok-line:     rgba(63, 114, 86, 0.42);
  --warn:        #A9762B;
  --warn-weak:   rgba(169, 118, 43, 0.12);
  --warn-line:   rgba(169, 118, 43, 0.45);
  --danger:      #B0443C;
  --danger-weak: rgba(176, 68, 60, 0.10);
  --danger-line: rgba(176, 68, 60, 0.42);
  --info:        #2F5DA3;

  /* Typographie — Newsreader, comme la vitrine */
  --font-display: "Newsreader", Georgia, serif;

  --shadow-card: 0 1px 3px rgba(22, 34, 63, 0.10);
}

/* ── Thème sombre : variantes charte « La Plaque du patron » (2026-10-07) ── */
[data-theme="dark"] {
  --papier:      #0f1830;
  --papier-2:    #1a2340;
  --card:        #1a2340;
  --doc:         #1a2340;
  --laiton-line: #3a4a6a;
  --laiton-ink:  #c7a059;
}


/* Bouton primaire = bleu nuit bordé d'or, comme sur la vitrine */
[data-theme="light"] .btn-primary {
  background: var(--navy);
  color: var(--on-navy);
  border: 1px solid rgba(199, 160, 89, 0.55);
}

/* Surfaces à fond codé en dur (sombre) → version ivoire */
[data-theme="light"] .topbar { background: rgba(244, 241, 233, 0.92); }
[data-theme="light"] .bottomnav { background: rgba(244, 241, 233, 0.94); }
[data-theme="light"] /* P1 baseline 2026-10-03 : action principale ≥ 56 px */
#q-save { min-height: 56px; }
.sticky-save { background: rgba(244, 241, 233, 0.94); }
[data-theme="light"] .icon-btn:hover { background: rgba(22, 34, 63, 0.07); }
[data-theme="light"] .skeleton-avatar,
[data-theme="light"] .skeleton-lines div,
[data-theme="light"] .skeleton-line {
  background: linear-gradient(90deg, #ECE7DA 25%, #E3DCCB 50%, #ECE7DA 75%);
  background-size: 200% 100%;
}
[data-theme="light"] ::selection { background: var(--navy); color: var(--paper); }
[data-theme="light"] .hero-glow {
  background: radial-gradient(420px 220px at 85% -10%, rgba(169, 130, 63, 0.14), transparent 70%);
}

/* Icônes du sélecteur de thème : soleil en mode sombre, lune en mode clair */
#theme-toggle .icon-moon, #theme-toggle-login .icon-moon { display: none; }
[data-theme="light"] #theme-toggle .icon-sun, [data-theme="light"] #theme-toggle-login .icon-sun { display: none; }
[data-theme="light"] #theme-toggle .icon-moon, [data-theme="light"] #theme-toggle-login .icon-moon { display: block; }

/* Sélecteur flottant sur l'écran de connexion */
.theme-float {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grain subtil — la « matière papier » */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
::selection { background: rgba(201, 169, 98, 0.30); color: #fff; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.muted-light { color: var(--ink-3); }
.error { color: var(--danger); font-size: 0.9rem; margin: 10px 0 0; font-weight: 500; }
.success { color: var(--ok); font-size: 0.9rem; margin: 10px 0 0; font-weight: 500; }
a { color: var(--gold-bright); }
h1, h2 { letter-spacing: 0; }
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.08;
  margin: 0 0 6px;
  font-variation-settings: "opsz" 40;
}
h2 {
  font-size: 1.02rem;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
}
button { font-family: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.screen { min-height: 100vh; min-height: 100dvh; }
.container { max-width: 760px; margin: 0 auto; padding: 24px 16px calc(var(--nav-h) + 44px); }

/* Chiffres tabulaires — partout où des nombres s'alignent */
.tnum, .call-dur, .player-time, .quote-amount strong,
.qtotal-row span:last-child, .qd-table .num {
  font-variant-numeric: tabular-nums;
}

/* ── Cartes ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  animation: rise 0.24s var(--ease) both;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { transform: scale(0.96); } 60% { transform: scale(1.015); } 100% { transform: scale(1); }
}
.pressable { transition: transform 0.12s var(--ease), box-shadow 0.24s var(--ease), border-color 0.24s var(--ease); }
.pressable:active { transform: scale(0.98); }

/* ── Logo ───────────────────────────────────────────────────── */
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: var(--gold-weak);
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.logo-word.small { font-size: 1.02rem; }

/* ── Login ──────────────────────────────────────────────────── */
#login-screen, #recovery-request-screen, #new-password-screen, #onboarding-screen {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(560px 340px at 15% 8%, rgba(201, 169, 98, 0.07), transparent 70%),
    radial-gradient(640px 420px at 90% 95%, rgba(201, 169, 98, 0.05), transparent 70%),
    var(--bg-app);
}
.login-wrap { width: 100%; max-width: 420px; animation: rise 0.55s var(--ease) both; }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.login-card { padding: 30px 28px; border-top: 3px solid var(--gold); }
.login-card h1 { font-size: 1.55rem; }
.login-card > .muted { margin: 2px 0 8px; font-size: 0.95rem; }
.login-foot { text-align: center; font-size: 0.85rem; margin-top: 20px; line-height: 1.6; color: var(--ink-3); }
.forgot-row { text-align: right; margin: -8px 0 2px; }
.oauth-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--ink-3); font-size: 0.85rem; }
.oauth-sep::before, .oauth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-btns { display: grid; gap: 10px; margin-top: 12px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--bg-elevated); cursor: pointer; font-size: 0.95rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-oauth:hover { border-color: var(--gold-line); background: #202227; }
.btn-oauth:active { transform: scale(0.96); filter: brightness(1.15); }
.btn-oauth svg { flex: none; }
.link-inline {
  background: none; border: 0; cursor: pointer; padding: 14px 0;
  min-height: 48px; display: inline-flex; align-items: center;
  color: var(--gold-bright); font-size: 0.95rem; font-weight: 500;
}
/* V42 — cible tactile 48px mini (audit mobile-a11y P1) */

/* ── Champs & boutons ───────────────────────────────────────── */
.field { display: block; margin: 0 0 15px; }
.field > span { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
/* V42 — labels 0.9rem mini (audit mobile-a11y P3) */
.field input, .input, select.input, textarea.input {
  width: 100%; padding: 13px 14px; font-size: 1rem; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bg-inset);
  transition: border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.field input::placeholder, .input::placeholder { color: var(--ink-3); }
.field input:focus, .input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-weak);
}
select.input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a8f98' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
select.input option { background: var(--bg-elevated); color: var(--ink); }
.field-hint { font-size: 0.83rem; color: var(--ink-3); margin: -8px 0 14px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-wrap .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  transition: background 0.24s var(--ease), color 0.24s var(--ease), transform 0.12s var(--ease);
}
/* V42 — 48px mini (audit mobile-a11y P2) */
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.small { width: 44px; height: 44px; border-radius: 8px; }
/* V42 — 44px mini absolu, jamais 30px (audit mobile-a11y P2) */
.icon-btn.copied { color: var(--ok); }

.btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--gold); color: var(--gold-ink);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  transition: filter 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-primary:hover { filter: brightness(1.08); }
a.btn-primary { text-decoration: none; }
.btn-primary:active { transform: scale(0.96); filter: brightness(1.15); }
/* V42 — feedback tactile visible (audit mobile-a11y P7) */
.btn-primary:disabled { opacity: 0.55; cursor: wait; }
.btn-compact { width: auto; padding: 11px 18px; font-size: 0.92rem; }
/* V103 — Parrainage : boutons partage 1-tap (WhatsApp / SMS). Même gabarit
   tactile que btn-primary (48px+), couleurs natives des canaux. */
.btn-whatsapp, .btn-sms {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px; border: 0; border-radius: 6px; cursor: pointer;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: filter 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.08); }
.btn-whatsapp:active { transform: scale(0.96); }
.btn-sms { background: var(--gold); color: var(--gold-ink); }
.btn-sms:hover { filter: brightness(1.08); }
.btn-sms:active { transform: scale(0.96); }
.btn-primary.loading .btn-label { visibility: hidden; }
.btn-primary.loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(20, 20, 20, 0.3); border-top-color: var(--gold-ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: transparent; color: var(--ink-2); font-size: 0.92rem; font-weight: 500; cursor: pointer;
  text-decoration: none; transition: border-color 0.24s var(--ease), color 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-bright); }
.btn-ghost:active { transform: scale(0.96); filter: brightness(1.15); }
.btn-danger-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border: 1px solid var(--danger-line); border-radius: 6px;
  background: transparent; color: var(--danger); font-size: 0.92rem; font-weight: 500; cursor: pointer;
  transition: background 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-danger-ghost:hover { background: var(--danger-weak); }
.btn-danger-ghost:active { transform: scale(0.98); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Barre du haut ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  /* V42 — safe-area haute (encoche iPhone, audit mobile-a11y P6) */
  background: rgba(13, 14, 16, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-faint);
}
.topbar-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.client-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex: none; overflow: hidden;
  background: var(--gold-weak); border: 1px solid var(--gold-line); color: var(--gold-bright);
}
.client-logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar-company { font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }

/* ── Navigation basse ───────────────────────────────────────── */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: stretch;
  height: var(--nav-h);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(13, 14, 16, 0.94);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-faint);
}
.nav-item {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; border: 0; background: none; cursor: pointer; color: var(--ink-2);
  font-size: 0.75rem; font-weight: 500; border-radius: 10px; padding: 6px 2px;
  transition: color var(--dur-tap) var(--ease-tap), transform var(--dur-tap) var(--ease-tap);
}
/* V117 — indicateur filet laiton (pas de pill) : 2px, transform-only, ≤120ms.
   Le filet apparaît sous l'onglet actif ; le libellé actif passe en #E7D2A1.
   Pas de vibration au changement d'onglet (haptique réservée aux validations). */
.nav-item::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--gold);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-tap) var(--ease-tap);
}
.nav-item.active::after { transform: translateX(-50%) scaleX(1); }
/* V117 — Headers « plaque » (charte étendue aux 5 sections).
   Oswald (maquette validée, pas Fraunces) ; eyebrow laiton en petites
   capitales ; hairline 2px. Le titre reste sobre : c'est un outil. */
.sec-head {
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 28px; line-height: 1.1; letter-spacing: 0.01em;
  color: var(--ink); margin: 0 0 4px;
}
.sec-eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-ink); margin: 0 0 2px;
}
[data-theme="dark"] .sec-eyebrow, :root:not([data-theme="light"]) .sec-eyebrow {
  color: var(--gold);
}
.sec-head-rule {
  height: 2px; width: 32px; margin: 8px 0 0;
  background: var(--gold); border-radius: 2px;
}

/* ── Vague A : Compte — charte plaque (2026-10-07) ──
   100% CSS scopé #compte-view. Fond papier, groupes papier-2,
   titres navy small-caps Oswald, chevrons laiton-ink. */
#compte-view { background: var(--papier); }
#compte-view .sec-head { color: var(--navy-900); }
#compte-view .opt-card, #compte-view .compte-group {
  background: var(--card);
  border: 1px solid var(--laiton-line);
  border-radius: 16px;
}
#compte-view .opt-title, #compte-view .compte-group-title {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-900);
}
#compte-view .chevron, #compte-view .opt-chevron { color: var(--laiton-ink); }
#compte-view .toggle.on, #compte-view [aria-checked="true"] { background: var(--navy-900); }

/* V117 — le bas du détail devis ne passe plus sous la nav (bouton Envoyer visible) */
#quote-view { padding-bottom: calc(var(--nav-h) + 24px); }

/* V42 — labels 12px + --ink-2 (5,81:1, audit mobile-a11y P3) */
.nav-item:active { transform: scale(0.96); }
/* V117 — l'indicateur filet laiton remplace le fond gold-weak (plus franc, plus "gravé") */
.nav-item.active { color: #e7d2a1; background: none; }
.nav-item.active::before { display: none; }
.nav-badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-badge);
  background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ── Hero + jauge de conso ──────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 26px 22px 20px; margin-bottom: 16px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
  animation: rise 0.55s var(--ease) both;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 220px at 85% -10%, rgba(201, 169, 98, 0.08), transparent 70%);
}
.hero-top { position: relative; margin-bottom: 6px; }
.hero-kicker {
  margin: 0 0 6px; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.hero h1 { font-size: 1.9rem; font-weight: 500; }
.hero-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 0.93rem; }
#hero-agent { font-family: var(--font-display); font-style: italic; color: var(--gold-bright); }
.gauge-wrap { position: relative; width: 172px; margin: 12px auto 2px; }
.gauge { width: 100%; height: auto; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--line); stroke-width: 10; }
.gauge-fill {
  fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 377; stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.2s var(--ease), stroke 0.24s var(--ease);
}
.gauge.warn .gauge-fill { stroke: var(--warn); }
.gauge.danger .gauge-fill { stroke: var(--danger); }
/* Repère « minutes incluses » sur la jauge (payés : 150/210) — petit cran, pas de refonte. */
.gauge-mark {
  fill: none; stroke: var(--ink-3); stroke-width: 10;
  stroke-dasharray: 3 374; stroke-dashoffset: 377;
}
/* Badge « appel coupé par le plafond » (calls.cut_by_limit) — V22 */
.cut-badge {
  margin: 10px auto 0; max-width: 360px; text-align: center;
  background: var(--danger-weak); border: 1px solid var(--danger-line); color: var(--ink);
  border-radius: var(--r-card); padding: 9px 14px;
  font-size: 0.85rem; font-weight: 600; line-height: 1.45;
}
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2.1rem; letter-spacing: 0; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.gauge-value small { font-family: var(--font-ui); font-size: 0.95rem; font-weight: 500; color: var(--ink-3); }
.gauge-label { font-size: 0.72rem; color: var(--ink-3); margin-top: 4px; }
.gauge-foot { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); }
.gauge-dot { width: 8px; height: 8px; border-radius: var(--r-badge); background: var(--ok); }
.gauge-dot.warn { background: var(--warn); }
.gauge-dot.danger { background: var(--danger); }
.conso-alert {
  position: relative; margin-top: 14px; padding: 13px 15px; border-radius: var(--r-s);
  font-size: 0.88rem; font-weight: 500; line-height: 1.5;
  animation: rise 0.24s var(--ease) both;
}
.conso-alert.warn { background: var(--warn-weak); border: 1px solid var(--warn-line); color: var(--ink); }
.conso-alert.danger { background: var(--danger-weak); border: 1px solid var(--danger-line); color: var(--ink); }

/* Bannière d'essai « semaine preuve » (14 jours) — annonce le rapport hebdo */
.trial-banner {
  margin: 0 0 14px; padding: 13px 15px; border-radius: var(--r-s);
  font-size: 0.88rem; line-height: 1.55; color: var(--ink);
  background: var(--gold-weak); border: 1px solid var(--gold-line);
  animation: rise 0.24s var(--ease) both;
}
.trial-banner strong { color: var(--gold-bright); }

/* ── KPIs ───────────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
/* North-star : la première carte domine la vue */
.kpi-grid .kpi-card:first-child { grid-column: 1 / -1; }
.kpi-grid .kpi-card:first-child .kpi-value { font-size: 2.9rem; }
.kpi-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px; box-shadow: var(--shadow-card);
  animation: rise 0.24s var(--ease) both;
  transition: transform 0.12s var(--ease), border-color 0.24s var(--ease);
}
.kpi-card:hover { border-color: #2e3138; }
.kpi-card:active { transform: scale(0.97); }
.kpi-card:nth-child(2) { animation-delay: 0.06s; }
.kpi-card:nth-child(3) { animation-delay: 0.12s; }
.kpi-card:nth-child(4) { animation-delay: 0.18s; }
.kpi-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 12px;
  border: 1px solid var(--line); color: var(--ink-2);
}
.kpi-card.alert .kpi-icon { border-color: var(--danger-line); color: var(--danger); background: var(--danger-weak); }
.kpi-card.alert .kpi-value { color: var(--danger); }
.kpi-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: 2rem; letter-spacing: 0; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3); font-weight: 500; margin-top: 6px;
}

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 12px; }
.section-head h2 { margin: 0; font-size: 1.05rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin-bottom: 4px; }
.page-head .muted { font-size: 0.9rem; }

/* ── Notifications push ─────────────────────────────────────── */
.push-card { display: flex; align-items: center; gap: 14px; }
.push-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--bg-inset); color: var(--ink-3); border: 1px solid var(--line);
}
.push-icon.on { background: var(--gold-weak); color: var(--gold-bright); border-color: var(--gold-line); }
.push-text { flex: 1; min-width: 0; }
.push-text strong { display: block; font-size: 0.93rem; font-weight: 500; }
.push-text .muted { font-size: 0.83rem; }

/* ── Appels : filtres + liste ────────────────────────────────── */
.chips { display: flex; gap: 8px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--r-badge); border: 1px solid var(--line);
  background: transparent; color: var(--ink-2); font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: all 0.24s var(--ease);
}
/* FIX 2026-10-07 16h50 : pastille active = navy (charte plaque) */
.chip.active { background: var(--navy-900) !important; border-color: var(--navy-900) !important; color: var(--papier) !important; }
.chip:active { transform: scale(0.96); }
.dot-urgent { width: 8px; height: 8px; border-radius: var(--r-badge); background: var(--danger); }

.call-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 15px 14px; margin-bottom: 10px; text-align: left; cursor: pointer;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); color: var(--ink);
  animation: rise 0.24s var(--ease) both;
  transition: transform 0.12s var(--ease), border-color 0.24s var(--ease);
}
.call-row:hover { border-color: var(--gold-line); }
.call-row:active { transform: scale(0.985); }
.call-row.is-urgent { border-left: 3px solid var(--danger); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: 1.05rem;
}
.avatar-urgent { background: var(--danger-weak); border-color: var(--danger-line); color: var(--danger); }
.call-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.call-title { font-weight: 500; font-size: 0.97rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.call-sub { color: var(--ink-3); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.call-date { font-size: 0.78rem; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.call-dur { font-size: 0.78rem; color: var(--ink-3); }
.chev { flex: none; color: var(--ink-3); }
.badge-urgent {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--danger-weak); color: var(--danger);
  border: 1px solid var(--danger-line);
  padding: 3px 9px; border-radius: var(--r-badge);
}

.empty { text-align: center; padding: 48px 20px; }
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 24px; margin-bottom: 16px;
  background: var(--bg-panel); border: 1px solid var(--line); color: var(--ink-3);
}
.empty-icon.small { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 10px; }
.empty h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin-bottom: 6px; }
.app-legal-foot { text-align: center; margin-top: 26px; }

/* ── Squelettes ─────────────────────────────────────────────── */
.skeleton-row { display: flex; gap: 13px; align-items: center; padding: 15px 14px; margin-bottom: 10px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.skeleton-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(90deg, #1c1d21 25%, #24262b 50%, #1c1d21 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; flex: none; }
.skeleton-lines { flex: 1; display: grid; gap: 8px; }
.skeleton-lines div, .skeleton-line { height: 13px; border-radius: 7px; background: linear-gradient(90deg, #1c1d21 25%, #24262b 50%, #1c1d21 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-line { margin-bottom: 10px; }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.error-box { background: var(--danger-weak); border: 1px solid var(--danger-line); color: var(--ink); padding: 16px; border-radius: var(--r-s); font-size: 0.92rem; font-weight: 500; }

/* ── Détail d'appel ─────────────────────────────────────────── */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 8px 0; margin-bottom: 12px;
  color: var(--gold-bright); font-size: 0.93rem; font-weight: 500;
  transition: transform 0.12s var(--ease);
}
.back-btn:active { transform: translateX(-3px); }
.detail-head h1 { font-size: 1.4rem; }
.detail-sub { font-size: 0.88rem; margin-top: 4px; color: var(--ink-3); }
.urgent-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  background: var(--danger-weak); border: 1px solid var(--danger-line); color: var(--danger);
  font-weight: 500; font-size: 0.92rem; padding: 13px 16px; border-radius: var(--r-s);
  animation: rise 0.24s var(--ease) both;
}
.pulse { width: 9px; height: 9px; border-radius: var(--r-badge); background: var(--danger); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
.lead-card { border-left: 3px solid var(--gold); }
.lead-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-faint); font-size: 0.94rem; }
.lead-row:last-of-type { border-bottom: 0; }
.lead-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-2); }
.lead-label { color: var(--ink-3); font-size: 0.82rem; font-weight: 500; width: 118px; flex: none; }
.lead-value { flex: 1; min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
.lead-value-inline { display: inline-flex; align-items: center; gap: 6px; }
.tel-link { font-weight: 600; color: var(--gold-bright); text-decoration: none; font-variant-numeric: tabular-nums; }
.btn-call {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding: 14px; border-radius: 6px; text-decoration: none;
  background: var(--gold); color: var(--gold-ink);
  font-weight: 600; font-size: 0.98rem;
  transition: filter 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-call:active { transform: scale(0.98); }
.btn-call:hover { filter: brightness(1.08); }
.summary-text { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--ink); }
.pill { font-size: 0.75rem; font-weight: 500; padding: 4px 11px; border-radius: var(--r-badge); border: 1px solid transparent; }
.pill-positive { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }
.pill-neutral { background: var(--bg-elevated); color: var(--ink-2); border-color: var(--line); }
.pill-negative { background: var(--danger-weak); color: var(--danger); border-color: var(--danger-line); }
.pill-warning { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-ink); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }

/* Parrainage — héro + historique V105 */
.ref-hero-top { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.ref-hero-emoji { font-size: 2rem; line-height: 1; }
.ref-hero-titre { font-size: 1.15rem; font-weight: 700; }
.ref-hero-facture { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-card);
  background: var(--ok-weak); border: 1px solid var(--ok-line); }

/* Lecteur audio */
.player { display: flex; align-items: center; gap: 12px; }
.player-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: var(--gold-ink);
  transition: filter 0.24s var(--ease), transform 0.12s var(--ease);
}
.player-btn:hover { filter: brightness(1.08); }
.player-btn:active { transform: scale(0.92); }
.player-track { position: relative; flex: 1; height: 26px; cursor: pointer; }
.player-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: var(--r-badge); background: var(--line);
}
.player-fill {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 5px; border-radius: var(--r-badge); width: 0; pointer-events: none;
  background: var(--gold);
}
.player-time { font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; font-family: var(--font-mono); }

/* Transcription */
.transcript { display: grid; gap: 12px; }
.bubble { max-width: 92%; }
.bubble-agent { justify-self: start; }
.bubble-caller { justify-self: end; }
.bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.bubble-caller .bubble-head { flex-direction: row-reverse; }
.bubble-avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.72rem; font-weight: 600; flex: none; }
.ba-agent { background: var(--gold-weak); border: 1px solid var(--gold-line); color: var(--gold-bright); }
.ba-caller { background: var(--bg-elevated); border: 1px solid var(--line); color: var(--ink-2); }
.bubble-role { font-size: 0.76rem; font-weight: 500; color: var(--ink-3); }
.bubble-text { padding: 12px 15px; border-radius: 14px; font-size: 0.92rem; line-height: 1.6; }
.bubble-agent .bubble-text { background: var(--bg-elevated); border: 1px solid var(--line-faint); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble-caller .bubble-text { background: var(--gold-weak); border: 1px solid var(--gold-line); color: var(--ink); border-bottom-right-radius: 5px; }

/* ── Devis ──────────────────────────────────────────────────── */
.quote-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; margin-bottom: 8px; text-align: left; cursor: pointer;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card); color: var(--ink);
  animation: rise 0.24s var(--ease) both;
  transition: transform 0.12s var(--ease), border-color 0.24s var(--ease);
}
.quote-row:hover { border-color: var(--gold-line); }
.quote-row:active { transform: scale(0.985); }
.quote-num { font-weight: 600; font-size: 0.95rem; }
.quote-client { font-size: 0.8rem; color: var(--ink-3); }
.quote-vu { font-size: 0.78rem; color: var(--ink-3); }
.qd-vu { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.25rem; }
.quote-amount { margin-left: auto; text-align: right; flex: none; }
.quote-amount strong { font-family: var(--font-mono); font-weight: 500; font-size: 0.98rem; letter-spacing: -0.01em; }

/* ── Barre recherche / filtre / tri ── */
.list-tools { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.list-tools .search-input { flex: 1; min-width: 140px; }
.list-tools select {
  padding: 10px 12px; font-size: 0.88rem; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink);
  cursor: pointer; max-width: 150px;
}
.search-input {
  padding: 10px 14px; font-size: 0.9rem; border-radius: var(--r-s);
  border: 1px solid var(--line); background: var(--bg-panel); color: var(--ink);
  width: 100%;
}
.search-input::placeholder { color: var(--ink-3); }
.status-pill { display: inline-block; margin-top: 5px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 11px; border-radius: var(--r-badge); border: 1px solid transparent; }
.status-brouillon { background: var(--bg-elevated); color: var(--ink-3); border-color: var(--line); }
.status-envoyé { background: var(--warn-weak); color: var(--warn); border-color: var(--warn-line); }
.status-accepté { background: var(--ok-weak); color: var(--ok); border-color: var(--ok-line); }

/* Lignes du devis */
.qlines { display: grid; gap: 10px; margin-bottom: 6px; }
.qline {
  display: flex; flex-direction: column;
  gap: 10px; padding: 12px; background: var(--bg-inset); border: 1px solid var(--line-faint); border-radius: var(--r-s);
  animation: rise 0.4s var(--ease) both;
}
.qline-row2 { display: grid; grid-template-columns: 70px 1fr 92px; gap: 10px; align-items: end; }
.qline-row3 { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.qline .fld-tva select { padding: 10px 6px; font-size: 0.9rem; }
.qline .field { margin: 0; }
.qline .field > span { font-size: 0.72rem; margin-bottom: 4px; }
.qline input { padding: 10px 9px; font-size: 0.9rem; }
.qline-del { width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: none; color: var(--ink-3); cursor: pointer; font-size: 1.3rem; transition: color 0.24s var(--ease), background 0.24s var(--ease); }
.qline-del:hover { color: var(--danger); background: var(--danger-weak); }
.qline-opt { min-height: 44px; padding: 0 14px; border: 2px solid #ddd; border-radius: 999px;
  background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.qline-opt.on { border-color: var(--champagne); background: #fdf6e8; color: #8a6d2f; }
.qline.is-option { background: #fdf9f0; border-radius: 10px; }
.qtotal-max { font-size: 0.85rem; color: var(--ink-3); font-style: italic; }
.qtotals { margin: 16px 0; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.qtotal-row { display: flex; justify-content: space-between; font-size: 0.93rem; padding: 4px 0; color: var(--ink-2); }
.qtotal-row.grand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); padding-top: 10px; }
.qtotal-row.small { font-size: 0.82rem; color: var(--ink-3); padding: 2px 0 2px 12px; }
.qtotal-row.small em { font-style: normal; color: var(--paper-muted); font-size: 0.78rem; white-space: nowrap; }
.qtotal-row.small > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Mentions légales personnalisables (éditeur devis) */
.card-mentions { padding: 6px 14px; }
.mentions-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  min-height: 48px; border: 0; background: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 600; color: var(--ink-2); padding: 0;
}
.mentions-chevron { font-size: 1.3rem; color: var(--ink-3); transition: transform 0.24s var(--ease); }
.mentions-toggle[aria-expanded="true"] .mentions-chevron { transform: rotate(90deg); }
.mentions-body { padding-bottom: 12px; }
.mentions-body textarea { min-height: 96px; resize: vertical; font-size: 0.88rem; line-height: 1.6; }

/* Aperçu devis — métaphore papier ivoire sur fond encre */
.quote-doc {
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px; margin-bottom: 16px; box-shadow: var(--shadow-card);
  animation: rise 0.24s var(--ease) both;
  display: flex; flex-direction: column; min-height: 72vh;
}
.qd-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.qd-logo { max-width: 130px; max-height: 70px; object-fit: contain; }
.qd-company { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.qd-forme { font-size: 0.85rem; color: var(--paper-muted); font-weight: 400; }
.qd-meta { font-size: 0.8rem; color: var(--paper-muted); line-height: 1.6; }
.qd-title { text-align: right; }
.qd-title h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; margin: 0; color: var(--paper-ink); }
.qd-title p { margin: 6px 0 0; font-size: 0.85rem; color: var(--paper-muted); }
.qd-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.qd-party { background: rgba(26, 26, 26, 0.04); border-radius: var(--r-s); padding: 12px 14px; font-size: 0.85rem; line-height: 1.6; }
.qd-party strong { display: block; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--paper-muted); margin-bottom: 4px; }
.qd-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 8px; color: var(--paper-ink); }
.qd-table th { text-align: left; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper-muted); padding: 8px 6px; border-bottom: 1px solid var(--paper-ink); }
.qd-table td { padding: 9px 6px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.qd-table .num { text-align: right; font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }
.qd-totals { margin-left: auto; width: 250px; max-width: 100%; }
.qd-totals .qtotal-row { color: var(--paper-muted); border: 0; padding: 3px 0; }
.qd-totals .qtotal-row span:last-child { font-family: var(--font-mono); }
.qd-totals .qtotal-row.grand { color: var(--paper-ink); border-top: 1px solid var(--paper-ink); margin-top: 6px; padding-top: 8px; }
.qd-legal { margin-top: auto; padding-top: 24px; font-size: 0.74rem; color: var(--paper-muted); line-height: 1.65; border-top: 1px solid var(--paper-line); }
.qd-sign { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.qd-sign-box { width: 250px; max-width: 46%; font-size: 0.82rem; color: var(--paper-ink); }
.qd-sign-box p { margin: 0 0 8px; }
.qd-sign-line { border: 1px solid var(--paper-line); border-radius: 6px; height: 70px; margin-bottom: 6px; }
.qd-sign-proof { border: 2px solid var(--ok); border-radius: 10px; padding: 12px 16px; background: #f6fbf6; }
.qd-sign-proof p { margin: 0; }
.opt-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; background: #fdf6e8; color: #8a6d2f; border: 1px solid #e8d9a8; vertical-align: middle; }
.opt-badge.ok { background: #eaf7ea; color: #2e7d32; border-color: #bfe3bf; }
.opt-badge.no { background: #f5f5f5; color: var(--ink-3); border-color: #ddd; }
.opt-not-chosen td { opacity: 0.55; }
.abo-row { display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 16px; border:1px solid var(--paper-line); border-radius:12px; margin-bottom:8px; background:#fff; }
#abonnements-section { margin-bottom:16px; }
#abonnements-section .section-title { font-size:1rem; margin:0 0 8px; }
.qd-sign-box .qd-sign-hint { font-size: 0.72rem; color: var(--paper-muted); }
.qd-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ── Fiche entreprise ───────────────────────────────────────── */
.siren-row { display: flex; gap: 10px; }
.siren-row .input { flex: 1; }
.siren-result { margin-top: 14px; padding: 15px; border-radius: var(--r-s); background: var(--gold-weak); border: 1px solid var(--gold-line); animation: rise 0.24s var(--ease) both; }
.siren-result strong { display: block; margin-bottom: 2px; font-weight: 600; }
.siren-result p { margin: 2px 0; font-size: 0.88rem; color: var(--ink-2); }
.siren-result .row-btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.logo-drop {
  border: 1px dashed var(--line); border-radius: var(--r-card); padding: 24px;
  text-align: center; cursor: pointer; transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
  background: var(--bg-inset);
}
.logo-drop:hover, .logo-drop.dragover { border-color: var(--gold-line); background: rgba(201, 169, 98, 0.05); }
.logo-preview { max-width: 180px; max-height: 120px; object-fit: contain; border-radius: 10px; }
#logo-empty p { margin: 0; }
.sub-h { font-size: 0.95rem; font-weight: 600; margin: 18px 0 10px; color: var(--ink-2); }
.sub-h:first-of-type { margin-top: 4px; }
.sigpad { width: 100%; height: 170px; border: 1px dashed var(--line); border-radius: var(--r-card);
  background: var(--bg-inset); touch-action: none; cursor: crosshair; display: block; }
.sigpad-actions { display: flex; gap: 8px; margin-top: 10px; }
.qd-stamp { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qd-stamp img { max-height: 84px; max-width: 46%; object-fit: contain; }
.horaires { display: grid; gap: 10px; }
.hday { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg-inset); border: 1px solid var(--line-faint); border-radius: var(--r-s); }
.hday-name { font-weight: 500; font-size: 0.85rem; text-transform: capitalize; color: var(--ink-2); }
.hday-inputs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hday-inputs input[type="time"] { width: auto; padding: 8px 6px; font-size: 0.85rem; border: 1px solid var(--line); border-radius: 7px; font-family: inherit; background: var(--bg-elevated); color: var(--ink); }
.hday-inputs input[type="time"]:focus { border-color: var(--gold); outline: none; }
.hday-sep { color: var(--ink-3); font-size: 0.8rem; }
/* V115 : plus de grisé quand "Fermé" est coché — l'artisan doit toujours voir et pouvoir modifier ses horaires */
/* ── Mes absences (V112, V115) ── */
.absences-list { display: grid; gap: 8px; margin: 12px 0; }
.absence-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--bg-inset); border: 1px solid var(--line-faint); border-radius: var(--r-s); }
.absence-info { flex: 1; }
.absence-dates { font-weight: 600; font-size: 0.9rem; }
.absence-motif { font-size: 0.8rem; color: var(--ink-2); }
.absence-ferie { border-color: var(--gold); }
.absence-actions { display: flex; gap: 6px; }
.absence-actions button { padding: 6px 10px; font-size: 0.8rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink); cursor: pointer; }
.absence-actions button:hover { border-color: var(--gold); }
.absence-empty { color: var(--ink-3); font-size: 0.85rem; text-align: center; padding: 12px; }
.btn-absent { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; }
.btn-absent:hover { background: #15803d; border-color: #15803d; }
.btn-travaille { margin-top: 6px; padding: 8px 14px; font-size: 0.85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-elevated); color: var(--ink); cursor: pointer; font-weight: 600; }
.btn-travaille:hover { border-color: #16a34a; color: #16a34a; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 16px; font-size: 0.9rem; border-radius: 20px; border: 2px solid var(--line); background: var(--bg-elevated); color: var(--ink); cursor: pointer; }
.chip-active { border-color: var(--green, #22c55e); background: color-mix(in srgb, var(--green, #22c55e) 10%, var(--bg-elevated)); font-weight: 600; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.input-large { width: 100%; padding: 12px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-elevated); color: var(--ink); font-family: inherit; }
.sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-radius: 16px 16px 0 0; padding: 20px; z-index: 1001; max-height: 90vh; overflow-y: auto; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions button { flex: 1; padding: 14px; font-size: 1rem; border-radius: 10px; cursor: pointer; }
.hday-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--ink-3); cursor: pointer; margin-left: auto; }
.hday-toggle input { accent-color: var(--gold); width: 17px; height: 17px; }
.sticky-save {
  position: sticky; bottom: calc(var(--nav-h) + 12px); z-index: 30;
  background: rgba(13, 14, 16, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px; margin-top: 8px; box-shadow: var(--shadow-card);
  display: grid; gap: 8px; text-align: center;
}
.sticky-save p { margin: 0; font-size: 0.85rem; }

/* ── Assistant / réglages ───────────────────────────────────── */
.settings-card .field { margin-bottom: 8px; }
.settings-actions { margin: 12px 0 4px; }
.agent-status { min-height: 1.4em; }
.small-note { font-size: 0.82rem; margin-top: 12px; color: var(--ink-3); }

/* ── DPA ────────────────────────────────────────────────────── */
.dpa-doc { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--line); }
.dpa-doc h1 { font-size: 1.35rem; margin-bottom: 12px; color: var(--paper-ink); }
.dpa-doc h2 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--paper-ink); font-weight: 600; }
.dpa-doc p, .dpa-doc li { font-size: 0.93rem; }
.dpa-doc ul { padding-left: 20px; }
.dpa-note { background: rgba(26, 26, 26, 0.04); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.dpa-kicker { font-weight: 600; color: var(--paper-ink); }

/* ── V5 : la barre basse compte désormais 6 onglets ────────────── */
@media (max-width: 400px) {
  .bottomnav a { gap: 2px; padding: 6px 2px 7px; }
  .bottomnav a span { font-size: 0.58rem; line-height: 1.15; }
  .bottomnav a svg { width: 19px; height: 19px; }
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px); z-index: 100;
  max-width: 480px; margin: 0 auto; padding: 14px 18px; border-radius: 12px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  box-shadow: var(--shadow-card); text-align: center;
  animation: toast-in 0.24s var(--ease) both;
}
.toast.ok { border-color: var(--ok-line); }
.toast.err { border-color: var(--danger-line); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Impression (devis A4 / contrat) ────────────────────────── */
@page {
  size: A4;
  margin: 0;
}
@media print {
  body { background: #fff; font-size: 12px; color: #1a1a1a; }
  body::after { display: none; }
  .topbar, .bottomnav, .back-btn, #toast, .sticky-save, #dpa-actions,
  .qd-actions, .no-print, .page-head .btn-primary { display: none !important; }
  .container { max-width: none; padding: 0; }
  #app-screen { display: block !important; }
  body.print-quote #overview-view, body.print-quote #list-view,
  body.print-quote #detail-view, body.print-quote #quotes-view,
  body.print-quote #compte-view, body.print-quote #compte-view,
  body.print-quote #dpa-view { display: none !important; }
  body.print-quote #quote-view { display: block !important; }
  body.print-dpa #overview-view, body.print-dpa #list-view,
  body.print-dpa #detail-view, body.print-dpa #quotes-view,
  body.print-dpa #quote-view, body.print-dpa #compte-view,
  body.print-dpa #compte-view { display: none !important; }
  body.print-dpa #dpa-view { display: block !important; }
  .quote-doc, .dpa-doc { border: 0; box-shadow: none; border-radius: 0; padding: 18mm 15mm; margin: 0; animation: none; min-height: 95vh; }
  .card { box-shadow: none; animation: none; }
  /* Correctifs PDF devis : le letter-spacing s'exagère à l'impression */
  .qd-party strong { letter-spacing: 0.06em; }
  .qd-table th { letter-spacing: 0.05em; }
  .qd-title .status-pill { letter-spacing: normal; display: inline-block; margin-top: 4px; }
}

@media (min-width: 720px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-grid .kpi-card:first-child { grid-column: span 2; }
  .bottomnav { max-width: 560px; left: 50%; transform: translateX(-50%); border-radius: 14px 14px 0 0; border-left: 1px solid var(--line-faint); border-right: 1px solid var(--line-faint); }
  .hero { padding: 32px 34px 24px; }
  .hero h1 { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── V117 — Feedback tactile franc (gants de chantier : la couleur prime) ──
   touch-action: manipulation supprime le délai 300ms ; le press combine
   scale 0.96 + assombrissement franc (visible avec des gants). */
button, .verb, .nav-item, [data-nav] { touch-action: manipulation; }
.verb, .btn-xl, .btn-l, .btn-primary {
  transition: transform var(--dur-tap) var(--ease-tap), filter var(--dur-tap) var(--ease-tap);
}
.verb:active, .btn-xl:active, .btn-l:active, .btn-primary:active {
  transform: scale(0.96);
  filter: brightness(0.92);
}

/* ══════════════════════════════════════════════════════════════
   V5 « Options » — Voix, QR codes, Parrainage, Avis Google
   ══════════════════════════════════════════════════════════════ */

/* ── Hub Options ────────────────────────────────────────────── */
.opt-list { display: grid; gap: 12px; }
.opt-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 18px 16px; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  animation: rise 0.24s var(--ease) both;
  transition: transform 0.12s var(--ease), border-color 0.24s var(--ease);
}
.opt-card:nth-child(2) { animation-delay: 0.06s; }
.opt-card:nth-child(3) { animation-delay: 0.12s; }
.opt-card:nth-child(4) { animation-delay: 0.18s; }
.opt-card:hover { border-color: var(--gold-line); }
.opt-card:active { transform: scale(0.985); }
.opt-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gold-weak); border: 1px solid var(--gold-line); color: var(--gold-bright);
}
.opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.opt-title { font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-price {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--gold-bright); background: var(--gold-weak);
  border: 1px solid var(--gold-line); padding: 3px 10px; border-radius: var(--r-badge);
}
.opt-sub { font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; }

/* ── Consentement écrit (clonage voix) ──────────────────────── */
.consent-box {
  border: 1px solid var(--gold-line); background: var(--gold-weak);
  border-radius: var(--r-s); padding: 15px 16px; margin: 14px 0;
}
.consent-row { display: flex; gap: 12px; cursor: pointer; font-size: 0.9rem; line-height: 1.6; color: var(--ink); }
.consent-row input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--gold); cursor: pointer; }
.tips { margin: 0 0 14px; padding-left: 20px; }
.tips li { margin-bottom: 8px; font-size: 0.93rem; color: var(--ink); }
.status-refuse { background: var(--danger-weak); color: var(--danger); border-color: var(--danger-line); }

/* ── QR codes ───────────────────────────────────────────────── */
.qr-card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 22px; margin-bottom: 16px; text-align: center;
  box-shadow: var(--shadow-card);
  animation: rise 0.24s var(--ease) both;
}
.qr-card:nth-child(2) { animation-delay: 0.06s; }
.qr-svg { max-width: 250px; margin: 0 auto 18px; }
.qr-large .qr-svg { max-width: 330px; }
.qr-svg svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.qr-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin: 0 0 6px; }
.qr-card > .muted { margin: 0; }
.qr-url { font-size: 0.74rem; overflow-wrap: anywhere; margin: 12px 0 0; }
.qr-card .row-btns { justify-content: center; }
.link-row { display: flex; gap: 8px; align-items: center; }
.link-display {
  flex: 1; min-width: 0; display: block; padding: 12px 14px;
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--r-s);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); overflow-wrap: anywhere;
}
.slug-edit { display: flex; gap: 10px; align-items: flex-end; margin-top: 16px; }
.slug-edit .field { flex: 1; margin: 0; }
.row-btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ── Parrainage ─────────────────────────────────────────────── */
.code-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code-display {
  font-family: var(--font-mono); font-weight: 600; font-size: 1.55rem; letter-spacing: 0.16em;
  color: var(--gold-bright); background: var(--gold-weak);
  border: 1px dashed var(--gold-line); border-radius: var(--r-s); padding: 10px 18px 10px 22px;
}
.count-badge {
  min-width: 28px; height: 28px; padding: 0 9px; border-radius: var(--r-badge);
  background: var(--gold-weak); border: 1px solid var(--gold-line); color: var(--gold-bright);
  font-weight: 600; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.ref-list { display: grid; gap: 10px; }
.ref-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; background: var(--bg-inset);
  border: 1px solid var(--line-faint); border-radius: var(--r-card);
  animation: rise 0.24s var(--ease) both;
}
.ref-row .pill { margin-left: auto; flex: none; }

/* ── Interrupteur (alerte avis) ─────────────────────────────── */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 6px; cursor: pointer; }
.switch-text { flex: 1; min-width: 0; font-size: 0.93rem; }
.switch-text .muted { font-size: 0.83rem; }
.switch { position: relative; flex: none; width: 54px; height: 31px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold); outline-offset: 3px; }
.slider {
  position: absolute; inset: 0; cursor: pointer; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.slider::before {
  content: ""; position: absolute; width: 23px; height: 23px; border-radius: 50%;
  left: 3px; top: 3px; background: var(--ink-3);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.switch input:checked + .slider { background: var(--ok-weak); border-color: var(--ok-line); }
.switch input:checked + .slider::before { transform: translateX(23px); background: var(--ok); }

/* ── Impression des QR codes ────────────────────────────────── */
@media print {
  body.print-qr #overview-view, body.print-qr #list-view,
  body.print-qr #detail-view, body.print-qr #quotes-view,
  body.print-qr #quote-view, body.print-qr #compte-view,
  body.print-qr #compte-view, body.print-qr #dpa-view,
  body.print-qr #compte-view, body.print-qr #voice-view,
  body.print-qr #referrals-view, body.print-qr #reviews-view { display: none !important; }
  body.print-qr #qr-view { display: block !important; }
  body.print-reviews #overview-view, body.print-reviews #list-view,
  body.print-reviews #detail-view, body.print-reviews #quotes-view,
  body.print-reviews #quote-view, body.print-reviews #compte-view,
  body.print-reviews #compte-view, body.print-reviews #dpa-view,
  body.print-reviews #compte-view, body.print-reviews #voice-view,
  body.print-reviews #qr-view, body.print-reviews #referrals-view { display: none !important; }
  body.print-reviews #reviews-view { display: block !important; }
  /* QR imprimés : carte blanche pour un scan fiable, un QR par page max */
  body.print-qr .qr-card, body.print-reviews .qr-card {
    background: #fff; color: #1a1a1a; border: 1px solid #ddd;
    box-shadow: none; animation: none; break-inside: avoid; page-break-inside: avoid;
  }
  body.print-qr .qr-card h2, body.print-reviews .qr-card h2 { color: #1a1a1a; }
  body.print-qr .qr-card .muted, body.print-qr .qr-card .muted-light,
  body.print-reviews .qr-card .muted, body.print-reviews .qr-card .muted-light { color: #555; }
}

/* ══════════ Onboarding « 10 secondes » (V9) ══════════ */
.ob-alt { text-align: center; margin: 14px 0 0; }
.ob-company {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 18px 0 6px;
  color: var(--ink);
}
.ob-details { font-size: 0.92rem; line-height: 1.7; margin: 0 0 4px; }
.ob-metiers-label { font-size: 0.85rem; margin: 14px 0 8px; }
#ob-metiers { flex-wrap: wrap; margin-bottom: 20px; }
#ob-metiers .chip { min-height: 48px; font-size: 0.95rem; }
.btn-big { min-height: 56px; font-size: 1.05rem; margin-top: 4px; }
.ob-candidate {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  margin: 0 0 10px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.ob-candidate:active { transform: scale(0.98); }
.ob-candidate strong { display: block; font-size: 1rem; }
.ob-candidate span { font-size: 0.85rem; color: var(--ink-3); }
.ob-loading { text-align: center; padding: 24px 0; color: var(--ink-3); }

/* ── Onboarding V25 : progression + voix + activation ──────────
   1 action par écran, boutons ≥ 48 px, vocabulaire chantier. */
.ob-progress { display: flex; gap: 8px; justify-content: center; margin: 0 0 10px; }
.ob-dot { width: 34px; height: 6px; border-radius: 999px; background: var(--line); }
.ob-dot.on { background: var(--gold); }
.ob-step-label { text-align: center; font-size: 0.82rem; color: var(--ink-3); margin: 0 0 6px; }
.ob-alt-sep { color: var(--ink-3); margin: 0 6px; }
.ob-center { text-align: center; }
.ob-read-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem; line-height: 1.65;
  background: var(--bg-inset);
  border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 18px; margin: 14px 0 18px; color: var(--ink);
}
.ob-read-text span { color: var(--gold-bright); font-weight: 600; }
.ob-rec-timer {
  text-align: center; font-size: 1.6rem; font-variant-numeric: tabular-nums;
  color: var(--gold-bright); margin: 14px 0;
}
#ob-rec-playback { width: 100%; margin: 14px 0 4px; }
#ob-rec-consent-block { margin-top: 16px; }
#ob-rec-consent-block .btn-primary { margin-top: 14px; }
.ob-ia-number {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem; letter-spacing: 0.04em; text-align: center;
  color: var(--gold-bright); margin: 6px 0 16px;
}
.ob-ussd-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.ob-ussd-card {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-line); border-radius: var(--r-s);
  color: var(--ink); text-decoration: none; cursor: pointer;
}
.ob-ussd-card:active { transform: scale(0.98); background: var(--gold-weak); }
.ob-ussd-emoji { font-size: 1.5rem; flex: none; }
.ob-ussd-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ob-ussd-text strong { font-size: 0.98rem; }
.ob-ussd-code { font-size: 0.85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ob-ussd-call { font-size: 1.4rem; flex: none; }
/* ── Mon numéro (onglet Assistant) ── */
.std-number { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; margin: 8px 0 12px; }
.ussd-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 8px; }
.ussd-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.ussd-code { font-size: 0.85rem; opacity: 0.85; font-variant-numeric: tabular-nums; }
.ussd-phone-icon { width: 22px; height: 22px; flex-shrink: 0; color: #22c55e; }
/* ── Devis dicté ── */
#q-dictate.recording { background: #b3261e; color: #fff; border-color: #b3261e; animation: pulse-rec 1.2s infinite; }
@keyframes pulse-rec { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.ob-test-box {
  background: var(--ok-weak);
  border: 1px solid var(--ok-line); border-radius: var(--r-s);
  padding: 12px 16px; margin: 0 0 18px;
}
.ob-test-box p { margin: 0; font-size: 0.92rem; line-height: 1.55; }

/* ══════════════════════════════════════════════════════════════
   Planning — écran d'accueil (Phase 2)
   Principe : « d'un coup d'œil, je sais où je dois être ».
   Boutons ≥ 48 px, actions critiques ≥ 56 px (gants, une main).
   ══════════════════════════════════════════════════════════════ */
.plan-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin: 4px 0 14px;
}
.plan-head h1 { margin: 0; font-size: 1.7rem; }
.conso-pill {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 14px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-badge); color: var(--ink);
  font-family: var(--font-ui); font-size: 0.92rem; cursor: pointer;
}
.conso-pill:active { transform: scale(0.97); }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.conso-pill.warn .cp-dot { background: var(--warn); }
.conso-pill.danger .cp-dot { background: var(--danger); }
.conso-pill.warn { border-color: var(--warn-line); }
.conso-pill.danger { border-color: var(--danger-line); }

/* — Strip semaine — */
.week-nav { display: flex; align-items: stretch; gap: 6px; margin-bottom: 16px; }
.week-arrow {
  flex: none; width: 44px; min-height: 64px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-s); color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.week-arrow:active { transform: scale(0.95); }
.week-strip {
  flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 8px 6px;
}
.week-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 60px; padding: 8px 2px 6px;
  background: transparent; border: 0; border-radius: var(--r-s);
  color: var(--ink-2); font-family: var(--font-ui); cursor: pointer;
}
.week-day:active { transform: scale(0.95); }
.wd-name { font-size: 0.72rem; text-transform: capitalize; }
.wd-num { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.week-day.today .wd-num { color: var(--gold-bright); }
.wd-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
.wd-dot.on { background: var(--gold); }
.week-day.active { background: var(--gold-weak); box-shadow: inset 0 0 0 1px var(--gold-line); }
.week-day.active .wd-num { color: var(--gold-bright); }

/* — Carte chantier — */
.job-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-card); margin-bottom: 12px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.job-card.st-annule { opacity: 0.62; }
.job-card.st-propose { border-color: var(--gold-line); }
.job-main { display: block; padding: 16px 16px 12px; cursor: pointer; }
.job-main:active { background: var(--bg-inset); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.job-heure { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.pill {
  font-size: 0.75rem; font-weight: 600; padding: 5px 10px;
  border-radius: var(--r-badge); white-space: nowrap;
}
.pill.st-propose { background: var(--gold-weak); color: var(--gold-bright); box-shadow: inset 0 0 0 1px var(--gold-line); }
.pill.st-a_faire { background: rgba(94, 159, 224, 0.12); color: var(--info); box-shadow: inset 0 0 0 1px rgba(94, 159, 224, 0.4); }
.pill.st-en_route { background: var(--warn-weak); color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn-line); }
.pill.st-termine { background: var(--ok-weak); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok-line); }
.pill.st-annule { background: var(--bg-inset); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.job-client { font-size: 1.12rem; font-weight: 650; color: var(--ink); margin-bottom: 2px; }
.job-sub { font-size: 0.92rem; color: var(--ink-2); }
.job-adr { font-size: 0.88rem; color: var(--ink-3); margin-top: 2px; }
.job-lea {
  margin-top: 8px; font-size: 0.85rem; color: var(--gold-bright);
  background: var(--gold-weak); border-radius: var(--r-s); padding: 8px 10px;
}
.job-flag {
  margin-top: 8px; font-size: 0.85rem; color: var(--ink-2);
  background: var(--bg-inset); border-radius: var(--r-s); padding: 8px 10px;
}
.job-flag em, .job-fiche-row em { font-style: normal; text-decoration: underline dotted; }

/* — Carte tâche « pense-bête » (V90) : un rappel programmé, PAS un chantier.
   Visuellement distincte : bordure bleue, pastille « Rappel ». */
.task-section { margin-bottom: 14px; }
.task-section-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin: 2px 2px 8px;
}
.task-card {
  background: var(--bg-panel); border: 1px solid rgba(94, 159, 224, 0.45);
  border-left: 4px solid var(--info);
  border-radius: var(--r-card); margin-bottom: 10px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.task-main { display: block; padding: 14px 16px 10px; cursor: pointer; }
.task-main:active { background: var(--bg-inset); }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.task-heure { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); font-weight: 600; }
.pill.task-pill { background: rgba(94, 159, 224, 0.12); color: var(--info); box-shadow: inset 0 0 0 1px rgba(94, 159, 224, 0.4); }
.task-client { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; font-weight: 650; color: var(--ink); margin-bottom: 2px; }
.task-client svg { color: var(--info); flex: none; }
.task-sub { font-size: 0.9rem; color: var(--ink-2); }
.task-actions { display: flex; flex-direction: column; gap: 8px; padding: 2px 16px 14px; }
.task-actions:empty { display: none; }
.task-actions .btn-call { min-height: 52px; margin-top: 0; }

/* — Actions 1-tap — */
.job-actions { display: flex; flex-direction: column; gap: 8px; padding: 4px 16px 16px; }
.job-actions-row { display: flex; gap: 8px; }
.job-actions-row .btn-job { flex: 1; }
.btn-job {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 18px;
  border-radius: var(--r-s); font-family: var(--font-ui);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  background: var(--bg-elevated); color: var(--ink);
  border: 1px solid var(--line); text-decoration: none;
}
.btn-job:active { transform: scale(0.98); }
.btn-job.primary {
  min-height: 58px; font-size: 1.06rem;
  background: var(--gold); border-color: var(--gold); color: var(--gold-ink);
}
.btn-job.primary:active { filter: brightness(1.06); }
.btn-job.ghost { background: transparent; }
.btn-job.danger { border-color: var(--danger-line); color: var(--danger); }

/* — FAB — */
.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + 20px);
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--gold); color: var(--gold-ink); border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); cursor: pointer; z-index: 40;
}
.fab:active { transform: scale(0.93); }

/* — Tiroirs (bottom sheets) — */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 60;
}
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 88vh; overflow-y: auto;
  background: var(--bg-panel); border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up 0.22s var(--ease);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.sheet-handle {
  width: 44px; height: 5px; border-radius: 999px;
  background: var(--line); margin: 4px auto 12px;
}
.sheet h2 { margin: 0 0 14px; font-size: 1.25rem; }
.sheet .btn-primary { width: 100%; margin-top: 14px; }
.sheet .btn-ghost { width: 100%; margin-top: 8px; min-height: 52px; }

/* — Carnet de contacts : feuille au-dessus de #plan-sheet (z 61) —
   z-index explicites et propres : le backdrop du carnet doit couvrir
   la feuille RDV, jamais l'inverse. */
.carnet-backdrop { z-index: 1100; }
.carnet-sheet { z-index: 1101; }
.carnet-row { min-height: 56px; cursor: pointer; }

/* — Champs — */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field input[type="datetime-local"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--r-s); color: var(--ink);
  font-family: var(--font-ui); font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--gold-line); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  min-height: 48px; padding: 10px 16px;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--r-badge); color: var(--ink-2);
  font-family: var(--font-ui); font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.seg-btn.active { background: var(--gold-weak); border-color: var(--gold-line); color: var(--gold-bright); }
.seg-btn:active { transform: scale(0.96); }
.preset-list { display: flex; flex-direction: column; gap: 8px; }
.preset-btn {
  min-height: 54px; padding: 12px 16px; text-align: left;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: var(--r-s); color: var(--ink);
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.preset-btn:active { transform: scale(0.98); border-color: var(--gold-line); }
.preset-btn.ghost { color: var(--ink-2); font-weight: 500; }
.form-error {
  background: var(--danger-weak); border: 1px solid var(--danger-line);
  color: var(--danger); border-radius: var(--r-s);
  padding: 10px 14px; font-size: 0.92rem; margin: 0 0 12px;
}

/* — Fiche chantier — */
.job-fiche-rows { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.job-fiche-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink); }
.job-fiche-row a { color: var(--gold-bright); }
.danger-zone { margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-zone .btn-danger-ghost { width: 100%; min-height: 52px; }

/* — File « À rappeler » : appels urgents + sans créneau, non rappelés — */
.recall-card {
  background: var(--danger-weak); border: 1px solid var(--danger-line);
  border-radius: var(--r-card); margin-bottom: 16px; padding: 12px 14px;
}
.recall-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 1rem; }
.recall-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--danger-line);
}
.recall-row:first-of-type { border-top: 0; }
.recall-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); flex: none; }
.recall-dot.urgent { background: var(--danger); animation: pulse 1.6s infinite; }
.recall-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.recall-info strong { font-size: 0.95rem; }
.recall-info .muted { font-size: 0.85rem; }
.btn-recall {
  flex: none; min-height: 48px; padding: 10px 16px;
  border-radius: var(--r-s); font-family: var(--font-ui);
  font-size: 0.95rem; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); border: 1px solid var(--danger); color: #fff;
}
.btn-recall.ghost { background: transparent; border-color: var(--danger-line); color: var(--danger); }
.btn-recall:disabled { opacity: 0.5; }

/* — Carte héro : le prochain chantier, une seule action géante — */
.hero-card {
  background: var(--bg-panel); border: 2px solid var(--gold-line);
  border-radius: var(--r-card); margin-bottom: 16px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-card.st-propose { border-color: var(--gold); }
.hero-main { display: block; padding: 18px 18px 14px; cursor: pointer; }
.hero-greet { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 8px; }
.hero-heure { font-family: var(--font-mono); font-size: 1.15rem; color: var(--gold-bright); font-weight: 700; margin-bottom: 4px; }
.hero-client { font-size: 1.45rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.hero-sub { font-size: 1rem; color: var(--ink-2); }
.hero-adr { font-size: 0.92rem; color: var(--ink-3); margin-top: 4px; }
.hero-lea {
  margin-top: 10px; font-size: 0.9rem; color: var(--gold-bright);
  background: var(--gold-weak); border-radius: var(--r-s); padding: 10px 12px;
}
.hero-flag {
  margin-top: 10px; font-size: 0.9rem; color: var(--ink-2);
  background: var(--bg-inset); border-radius: var(--r-s); padding: 10px 12px;
}
.hero-flag.ok { color: var(--ok); background: var(--ok-weak); }
.btn-hero {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 68px; padding: 16px;
  border: 0; border-radius: 0; cursor: pointer;
  background: var(--gold); color: var(--gold-ink);
  font-family: var(--font-ui); font-size: 1.2rem; font-weight: 700;
}
.btn-hero:active { filter: brightness(1.08); }
.btn-hero.ghost {
  min-height: 56px; font-size: 1rem;
  background: transparent; color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold-line); border-radius: var(--r-s);
  margin: 0 14px 14px; width: calc(100% - 28px);
}

/* — Pastille « confirmé » — */
.job-flag.ok { color: var(--ok); background: var(--ok-weak); }

/* — Tiroir express : précisions repliées — */
#job-more-toggle { margin-bottom: 14px; }
#job-more-fields { margin-bottom: 4px; }

/* — Petit écran : strip semaine compacte — */
@media (max-width: 380px) {
  .wd-name { font-size: 0.66rem; }
  .wd-num { font-size: 0.95rem; }
  .week-arrow { width: 36px; }
}

/* ══════════════════════════════════════════════════════════════
   V20 « Phase 3 — Factures » : segment, impayés, éditeur, relances
   ══════════════════════════════════════════════════════════════ */

/* ── Segment Devis / Factures ── */
.segment { display: flex; gap: 4px; background: var(--bg-soft, #f4f1ea); border-radius: 14px; padding: 4px; margin: 0 0 14px; }
.segment-btn { flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: transparent;
  font-size: 1rem; font-weight: 600; color: var(--ink-soft, #6b6259); cursor: pointer; }
.segment-btn.active { background: #fff; color: var(--ink, #2a241d); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.card .segment { margin-bottom: 8px; }

/* ── Filtres factures ── */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; -webkit-overflow-scrolling: touch; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line, #e5ded2); background: #fff; font-size: .95rem; font-weight: 600;
  color: var(--ink-soft, #6b6259); cursor: pointer; }
.chip.active { background: var(--ink, #2a241d); border-color: var(--ink, #2a241d); color: #fff; }

/* ── Impayés : héros + bandeau accueil ── */
.impayes-hero { border-left: 5px solid #b3261e; background: #fdf3f2; }
.impayes-hero-top { display: flex; align-items: center; gap: 12px; }
.impayes-icon { font-size: 1.8rem; }
.impayes-amount { font-size: 1.7rem; font-weight: 800; color: #b3261e; }
.impayes-label { font-weight: 600; }
.impayes-banner { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: #fdf3f2; border: 1px solid #f0c6c2; border-radius: 14px; padding: 12px 14px;
  margin: 0 0 12px; cursor: pointer; min-height: 56px; font-size: 1rem; color: inherit; }
.impayes-banner .ib-icon { font-size: 1.4rem; }
.impayes-banner .ib-text { flex: 1; }
.impayes-banner .ib-cta { font-weight: 700; color: #b3261e; white-space: nowrap; }

/* ── Éditeur : lignes ── */
.inv-line { border: 1px solid var(--line, #e5ded2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.inv-line-grid { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
.inv-line-grid .field { margin: 0; }
.btn-icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line, #e5ded2);
  background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: #b3261e; }
.btn-icon:disabled { opacity: .3; cursor: default; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; font-size: 1rem; }
.check-row input { width: 24px; height: 24px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent, #b98a2f); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.qtotal-row.small { font-size: .92rem; }
.qtotal-row.reste span:last-child { color: #b3261e; font-weight: 800; }

/* ── Relances ── */
.relance-list { display: grid; gap: 10px; margin-top: 10px; }
.relance-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line, #e5ded2); border-radius: 12px; background: #fff; }
.relance-badge { flex: 0 0 auto; min-width: 52px; text-align: center; font-weight: 800; font-size: .85rem;
  background: var(--bg-soft, #f4f1ea); border-radius: 8px; padding: 6px 8px; }
.relance-titre { flex: 1; font-weight: 600; }
.relance-etat .btn-ghost { min-height: 44px; }

/* ── Paiement TEST ── */
.test-banner { border: 2px dashed #b3261e; background: #fdf3f2; }
.test-badge { display: inline-block; background: #b3261e; color: #fff; font-weight: 800;
  border-radius: 8px; padding: 4px 12px; margin-bottom: 8px; letter-spacing: 1px; }

/* ── Divers ── */
.brouillon-watermark { text-align: center; font-weight: 800; letter-spacing: 2px; color: #b3261e;
  border: 2px dashed #b3261e; border-radius: 10px; padding: 8px; margin: 12px 0; }
.btn-ghost.danger { color: #b3261e; border-color: #f0c6c2; }
.pill.warn { background: #fdeceb; color: #b3261e; }
.small { font-size: .88rem; }

/* ── Impression facture ── */
@media print {
  body.print-invoice #overview-view, body.print-invoice #list-view,
  body.print-invoice #detail-view, body.print-invoice #quotes-view,
  body.print-invoice #quote-view, body.print-invoice #compte-view,
  body.print-invoice #compte-view, body.print-invoice #dpa-view { display: none !important; }
  body.print-invoice #invoice-view { display: block !important; }
}

/* ── Reprise concierge (V21) ── */
.reprise-card h2 { margin-bottom: 6px; }
.reprise-card .format-list { font-size: .9rem; margin: 10px 0 4px; }
.reprise-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 6px; }
.reprise-actions .btn-primary, .reprise-card .btn-primary.btn-big { min-height: 56px; width: 100%; }
.reprise-actions .btn-ghost { min-height: 48px; }
.reprise-sla { margin-top: 12px; font-size: 1rem; }
#reprise-upload-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.upload-row { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--card-alt, #f7f5ef); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.upload-row .ok { color: var(--ok, #1b7a3d); font-weight: 700; white-space: nowrap; }
.upload-row .err { color: #b3261e; font-weight: 700; white-space: nowrap; }
.reprise-status { border-left: 6px solid var(--accent, #c9a227); margin-bottom: 14px; }
.reprise-status-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.reprise-prete { border-left-color: var(--ok, #1b7a3d); }
.reprise-en_cours { border-left-color: #2b6cb0; }
#reprise-contacts-result { margin-top: 10px; font-weight: 600; }

/* ── Onboarding : écran « wow » voix → test Léa (V25.1) ── */
.ob-spinner {
  width: 56px; height: 56px; margin: 30px auto 18px;
  border-radius: 50%; border: 4px solid var(--line);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
}
#ob-wow-learning, #ob-wow-screen, #ob-wow-call { text-align: center; }
#ob-wow-learning-text { margin: 0 0 8px; }
#ob-wow-preview-btn { width: 100%; min-height: 48px; margin: 6px 0 12px; }
.btn-danger {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 15px 20px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--danger); color: #fff;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  transition: filter 0.24s var(--ease), transform 0.12s var(--ease);
}
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger:active { transform: scale(0.98); }
.btn-danger:disabled { opacity: 0.55; cursor: wait; }
.ob-wow-callview {
  background: #101418; color: #f2f3f5;
  border-radius: 16px; padding: 28px 20px; margin: 18px 0 6px;
}
.ob-wow-pulse {
  width: 18px; height: 18px; margin: 6px auto 14px; border-radius: 50%;
  background: #4cb782;
  animation: ob-wow-ping 1.6s ease-out infinite;
}
@keyframes ob-wow-ping {
  0% { box-shadow: 0 0 0 0 rgba(76, 183, 130, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(76, 183, 130, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 183, 130, 0); }
}
.ob-wow-status { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.ob-wow-talking { font-size: 1rem; color: #cfd4da; min-height: 1.5em; margin: 0 0 10px; }
.ob-wow-timer { font-size: 0.9rem; color: #9aa1aa; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.ob-wow-callview .btn-danger { min-height: 56px; font-size: 1.1rem; }

/* ── Modale fiche entreprise incomplète ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 10, 12, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.25s ease both;
}
.modal-card {
  background: var(--bg-panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px;
  max-width: 420px; width: 100%; padding: 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.35s var(--ease) both;
}
.modal-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin: 0 0 10px; }
.modal-card p { font-size: 0.93rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 12px; }
.modal-missing { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.modal-missing li {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-inset); border: 1px solid var(--line-faint);
  border-radius: 10px; padding: 10px 14px; font-size: 0.9rem; font-weight: 500;
}
.modal-missing li::before { content: "⚠️"; flex: none; }
.modal-actions { display: grid; gap: 10px; }
.modal-actions .btn-primary, .modal-actions .btn-ghost { min-height: 52px; width: 100%; }

/* Panneau d'envoi devis : « l'envol du devis » — bottom sheet premium */
.send-overlay { align-items: flex-end; }
.send-sheet {
  background: var(--bg-panel); color: var(--ink);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 22px 22px 0 0;
  width: 100%; max-width: 520px; margin: 0 auto;
  padding: 12px 22px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.3);
  animation: sheetUp 0.4s var(--ease) both;
  max-height: 92dvh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.send-handle {
  width: 44px; height: 5px; border-radius: 3px;
  background: var(--line); margin: 2px auto 16px;
}
.send-head { margin-bottom: 16px; }
.send-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.35rem; margin-bottom: 4px;
}
.send-sub { font-size: 0.9rem; color: var(--ink-2); }
.send-sub strong { color: var(--ink); }
.send-preview { margin-bottom: 18px; }
.send-preview-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--paper-muted); margin-bottom: 8px;
}
.send-bubble {
  background: #dcf8c6; color: #111;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 14px; font-size: 0.88rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-height: 180px; overflow-y: auto;
}
@media (prefers-color-scheme: dark) {
  .send-bubble { background: #005c4b; color: #fff; }
}
.send-channels { display: grid; gap: 10px; margin-bottom: 14px; }
.btn-channel {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 12px 18px;
  background: var(--bg-inset); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 16px;
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
  transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s;
  text-align: left; width: 100%;
}
.btn-channel:active { transform: scale(0.98); }
.btn-channel:disabled { opacity: 0.5; cursor: wait; transform: none; }
.send-contact { width: 100%; margin: 0 0 12px; justify-content: center; }
/* Options repliables (facture) — sobre, 48px+ */
.inv-options { margin-top: 14px; border-top: 1px solid var(--line, #e8e0d0); padding-top: 10px; }
.inv-options summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; padding: 12px 4px; min-height: 48px; display: flex; align-items: center; color: var(--ink-soft, #6b6257); }
.inv-options summary::marker { color: var(--gold, #b98a2f); }
.btn-channel.wa { border-color: #25d366; }
.btn-channel.wa:active { box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15); }
.btn-channel.sms { border-color: #34aadc; }
.btn-channel.sms:active { box-shadow: 0 0 0 4px rgba(52, 170, 220, 0.15); }
.btn-channel.mail { border-color: var(--accent); }
.send-channel-text { display: grid; gap: 2px; }
.send-channel-text em { font-style: normal; font-size: 0.78rem; font-weight: 400; color: var(--ink-2); }
.send-emoji { font-size: 1.7rem; flex: none; }
.send-cancel { width: 100%; min-height: 52px; }
/* Formulaire e-mail intégré à la feuille d'envoi */
.send-mailform { display: grid; gap: 12px; margin-bottom: 14px; }
.send-mailform .btn-primary { min-height: 52px; }
.send-mailform .field { margin: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Bouton suppression (danger) */
.btn-ghost.danger { color: var(--danger); border-color: var(--danger-line); }
.btn-ghost.danger:hover { background: var(--danger-weak); }

/* ══════════════════════════════════════════════════════════════
   V42 — Composants « design n°2 copié » (DÉCISIONS 1, 6, 7, 8)
   ══════════════════════════════════════════════════════════════ */

/* ── Nombre-héros (1 par écran) ── */
.v42-hero {
  background: var(--bg-elevated, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(22, 34, 63, 0.06);
  animation: rise var(--flow) var(--ease) both;
}
.v42-greeting {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.v42-hero-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem; /* 48px — DÉCISION 6 */
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.v42-hero-label {
  margin: 8px 0 0;
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  font-weight: 500;
}
.v42-hero-sub {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ── Grille stats 2×2 ── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--bg-elevated, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(22, 34, 63, 0.06);
  animation: rise var(--flow) var(--ease) both;
  transition: transform var(--tap) var(--ease), border-color var(--flow) var(--ease);
  min-height: 48px;
}
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }
button.stat-card { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; }
button.stat-card:active { transform: scale(0.96); }
.stat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 12px;
  font-size: 1.4rem;
}
.stat-icon.gold { background: #FAF3E3; color: #8a6d2f; }
.stat-icon.red { background: #FDECEA; color: #B0443C; }
.stat-icon.blue { background: #E8F1FD; color: #2E6CB5; }
.stat-icon.green { background: #E6F4EC; color: #3F7256; }
.stat-value {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.875rem; /* 30px — DÉCISION 6 */
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin: 6px 0 0;
  font-size: 0.75rem; /* 12px */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.5;
}
.stat-card.alert .stat-value { color: var(--danger); }
.stat-card.ok .stat-value { color: var(--ok); }

/* ── Carte héros champagne (Devis — emprunt design n°5) ── */
.champagne-card {
  background: var(--champagne);
  border-radius: var(--r-card);
  padding: 24px 22px;
  margin-bottom: 16px;
  color: #141414; /* contraste 8,2:1 — DÉCISION 6 */
  box-shadow: 0 4px 20px rgba(150, 112, 46, 0.25);
  animation: rise var(--flow) var(--ease) both;
}
.champagne-card .v42-hero-label { color: rgba(20, 20, 20, 0.72); }
.champagne-card .v42-hero-sub { color: rgba(20, 20, 20, 0.8); }
.champagne-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(20, 20, 20, 0.72);
}

/* ── Navigation : 6 onglets (maquette « La Plaque du patron », 07/10) ── */
.bottomnav { height: 72px; }
.nav-item.active { color: var(--bronze, #8a6d2f); }
[data-theme="light"] .nav-item.active { color: #8a6d2f; }
/* V42 — actif en bronze (4,8:1) */

/* ── Bottom sheet d'actions (+) ── */
.action-sheet { z-index: 120; }
.action-sheet h2 { margin: 4px 0 16px; font-size: 1.15rem; }
.action-list { display: grid; gap: 12px; padding-bottom: 8px; }
.action-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 64px; padding: 14px 16px;
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--r-card); cursor: pointer;
  font: inherit; color: var(--ink); text-align: left;
  transition: transform var(--tap) var(--ease), border-color var(--flow) var(--ease);
}
.action-btn:active { transform: scale(0.97); border-color: var(--gold-line); }
.action-btn .stat-icon { margin: 0; flex: none; }
.action-btn strong { display: block; font-size: 1rem; }
.action-btn small { display: block; font-size: 0.82rem; color: var(--ink-2); margin-top: 2px; }

/* ── Timeline planning (emprunt design n°3) ── */
.tl { position: relative; margin: 0 0 16px; padding-left: 26px; }
.tl::before {
  content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line); border-radius: 2px;
}
.tl-item {
  position: relative;
  background: var(--bg-elevated, #FFFFFF);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(22, 34, 63, 0.06);
  animation: rise var(--flow) var(--ease) both;
}
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 20px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg-app);
  box-shadow: 0 0 0 2px var(--gold-line);
}
.tl-time {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem;
  color: var(--bronze, #8a6d2f);
}
[data-theme="light"] .tl-time { color: #8a6d2f; }
.tl-client { font-weight: 600; font-size: 1.05rem; margin: 4px 0 2px; }
.tl-detail { font-size: 0.88rem; color: var(--ink-2); }
.tl-actions { display: flex; gap: 10px; margin-top: 12px; }
.tl-actions .btn-ghost, .tl-actions .btn-primary { min-height: 48px; }

/* ── Carte « Prochain chantier » (Accueil) ── */
.next-job {
  display: block; width: 100%;
  background: var(--bg-elevated, #FFFFFF);
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px; margin-bottom: 16px; text-align: left;
  box-shadow: 0 2px 12px rgba(22, 34, 63, 0.06);
  font: inherit; color: inherit; cursor: pointer;
  transition: transform var(--tap) var(--ease), border-color var(--flow) var(--ease);
  animation: rise var(--flow) var(--ease) both;
}
.next-job:active { transform: scale(0.98); }
.next-job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-job h3 { margin: 0 0 2px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-2); font-weight: 600; }

/* ── Jauge minutes (carte, jamais héros) ── */
.min-gauge { height: 8px; border-radius: 999px; background: var(--bg-inset); margin-top: 12px; overflow: hidden; }
.min-gauge > span { display: block; height: 100%; border-radius: 999px; background: var(--champagne); transition: width var(--settle) var(--ease); }

/* ── États vides encourageants ── */
.empty h2 { font-size: 1.2rem; }
.empty .empty-cta { margin-top: 14px; }

/* ── Haptique : rien en CSS — géré en JS (navigator.vibrate guardé) ── */

@media (max-width: 380px) {
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px 12px; }
  .stat-value { font-size: 1.6rem; }
  .v42-hero-num { font-size: 2.6rem; }
}

/* ── V42 — Carte d'appel avec actions 1-tap (DÉCISION 2) ── */
.call-card {
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--r-card); margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  animation: rise var(--flow) var(--ease) both;
}
.call-card.is-urgent { border-left: 3px solid var(--danger); }
.call-card .call-row {
  border: 0; border-radius: var(--r-card) var(--r-card) 0 0;
  margin-bottom: 0; box-shadow: none; animation: none;
  background: transparent;
}
.call-quick {
  display: flex; gap: 10px; padding: 0 14px 14px;
}
.qa-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-elevated); color: var(--ink);
  font: inherit; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: transform var(--tap) var(--ease), border-color var(--flow) var(--ease);
}
.qa-btn:active { transform: scale(0.96); }
.qa-btn.playing { border-color: var(--gold-line); background: var(--gold-weak); color: var(--gold-bright); }
a.qa-btn { color: var(--ink); }

/* ── V42 — Timeline planning sur cartes existantes (emprunt design n°3) ── */
#plan-list .tl { padding-left: 26px; }
#plan-list .tl::before { left: 8px; }
#plan-list .job-card { position: relative; }
#plan-list .job-card::before {
  content: ""; position: absolute; left: -24px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg-app);
  box-shadow: 0 0 0 2px var(--gold-line);
}
#plan-list .job-card.st-termine::before { background: var(--ok); box-shadow: 0 0 0 2px var(--ok-line); }
#plan-list .job-card.st-annule::before { background: var(--ink-3); box-shadow: none; }

/* ═══ V98 — Compte : 5 sous-sections avec icônes (DÉCISION Daniel 04/10) ═══ */
.csec{background:var(--bg-elevated);border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow-card);margin-bottom:12px;overflow:hidden}
.csec-head{width:100%;display:flex;align-items:center;gap:12px;padding:14px;min-height:64px;
  background:none;border:0;cursor:pointer;text-align:left;color:var(--ink)}
.csec-ico{width:44px;height:44px;border-radius:13px;display:flex;align-items:center;
  justify-content:center;flex:none}
.csec-txt{flex:1;min-width:0}
.csec-txt b{display:block;font-size:.98rem}
.csec-txt span{font-size:.78rem;color:var(--ink-2)}
.csec-chev{flex:none;color:var(--ink-3);transition:transform .2s}
.csec.open .csec-chev{transform:rotate(90deg)}
.csec-rows{display:none;border-top:1px solid var(--line-faint)}
.csec.open .csec-rows{display:block}
:root{
  --tint-blue-bg:rgba(110,150,230,.16);--tint-blue-fg:#9db9e8;
  --tint-gold-bg:rgba(201,169,98,.14);--tint-gold-fg:#c9a962;
  --tint-green-bg:rgba(76,183,130,.14);--tint-green-fg:#4cb782;
  --tint-bronze-bg:rgba(176,141,79,.16);--tint-bronze-fg:#c79c5a;
  --tint-slate-bg:rgba(130,140,155,.16);--tint-slate-fg:#9aa5b1;
}
[data-theme="light"]{
  --tint-blue-bg:rgba(47,93,163,.10);--tint-blue-fg:#2F5DA3;
  --tint-gold-bg:rgba(169,130,63,.12);--tint-gold-fg:#A9823F;
  --tint-green-bg:rgba(63,114,86,.12);--tint-green-fg:#3F7256;
  --tint-bronze-bg:rgba(126,95,44,.12);--tint-bronze-fg:#7E5F2C;
  --tint-slate-bg:rgba(74,90,106,.10);--tint-slate-fg:#4a5a6a;
}
.tint-blue{background:var(--tint-blue-bg);color:var(--tint-blue-fg)}
.tint-gold{background:var(--tint-gold-bg);color:var(--tint-gold-fg)}
.tint-green{background:var(--tint-green-bg);color:var(--tint-green-fg)}
.tint-bronze{background:var(--tint-bronze-bg);color:var(--tint-bronze-fg)}
.tint-slate{background:var(--tint-slate-bg);color:var(--tint-slate-fg)}
.crow{width:100%;display:flex;align-items:center;gap:12px;padding:13px 14px;min-height:56px;
  background:none;border:0;border-bottom:1px solid var(--line-faint);cursor:pointer;
  text-align:left;color:var(--ink);font-size:.92rem}
.crow:last-child{border-bottom:0}
.crow-ico{width:34px;height:34px;border-radius:10px;background:var(--bg-inset);
  display:flex;align-items:center;justify-content:center;flex:none;color:var(--ink-2)}
.crow-txt{flex:1;min-width:0}
.crow-txt b{display:block;font-weight:500;font-size:.92rem}
.crow-txt span{display:block;font-size:.76rem;color:var(--ink-2);margin-top:1px}
.cbadge{font-size:.7rem;font-weight:600;padding:3px 9px;border-radius:99px;flex:none;
  background:var(--bg-inset);color:var(--ink-2)}
.cbadge-ok{background:var(--ok-weak,#e6f2ec);color:var(--ok)}
.crow-detail{padding:4px 14px 14px 60px;border-bottom:1px solid var(--line-faint)}
.crow-detail .muted{margin:6px 0}
/* Statut de sauvegarde auto (V98 — remplace le bouton sticky) */
.save-status{min-height:1.2em;font-size:.82rem;margin:2px 4px 10px}
.save-err{color:var(--danger,#B0443C)}
/* Carte d'état — Accueil V98 */
.status-card{display:block;width:100%;text-align:left;background:var(--bg-elevated);
  border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-card);
  padding:14px 16px;margin:0 0 14px;cursor:pointer;color:var(--ink)}
.sc-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.sc-top b{font-family:Georgia,"Newsreader",serif;font-size:1.02rem}
.sc-meter{display:block;margin-top:10px}
.sc-meter-lbl{display:flex;justify-content:space-between;font-size:.82rem;color:var(--ink-2);margin-bottom:6px}
.sc-meter-lbl b{color:var(--ink)}
.sc-bar{height:10px;border-radius:99px;background:var(--bg-inset);overflow:hidden}
.sc-bar i{display:block;height:100%;width:0;border-radius:99px;
  background:linear-gradient(90deg,var(--gold),var(--ok));transition:width .4s}
.sc-bar i.warn{background:linear-gradient(90deg,var(--gold),var(--warn,#A9762B))}
.sc-verdict{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:.85rem}
.sc-verdict:empty{display:none}
.sc-foot{display:block;font-size:.82rem;color:var(--ink-3);margin-top:8px}
.sc-foot:empty{display:none}
.sc-dot{width:10px;height:10px;border-radius:50%;background:var(--ok);flex:none}
/* Divers V98 */
.plan-line{font-size:1rem;margin:4px 0 8px}
.aide-card{display:flex;flex-direction:column;gap:10px}

/* ══════════════════════════════════════════════════════════════
   V99 — Facturation Stripe (2026-10-04)
   Choix pack/sheet, reçus, transition paiement, boutons de choix.
   Réutilise les tokens existants (--bg-panel, --line, --ink…).
   ══════════════════════════════════════════════════════════════ */
.choice-btn{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;
  min-height:64px;padding:12px 14px;margin:0 0 10px;background:var(--bg-inset);
  border:1.5px solid var(--line);border-radius:var(--r-s);color:var(--ink);
  cursor:pointer;font-size:1rem;font-family:var(--font-ui)}
.choice-btn b{font-size:1.02rem}
.choice-btn span{font-size:.88rem;color:var(--ink-2)}
.choice-btn[aria-pressed="true"]{border-color:var(--gold-line);background:rgba(185,138,47,.08)}
.pack-opt{display:flex;justify-content:space-between;align-items:center;gap:10px;
  width:100%;min-height:60px;padding:12px 16px;margin:0 0 10px;background:var(--bg-inset);
  border:1.5px solid var(--line);border-radius:var(--r-s);color:var(--ink);
  cursor:pointer;font-size:1rem;text-align:left;font-family:var(--font-ui)}
.pack-opt .pack-txt{display:flex;flex-direction:column;gap:2px}
.pack-opt .pack-txt small{color:var(--ink-2);font-size:.85rem}
.pack-opt .pack-price{font-weight:700;color:var(--gold-bright);white-space:nowrap}
.pack-opt[disabled]{opacity:.55;cursor:not-allowed}
.pack-note{font-size:.85rem;color:var(--ink-2);margin:2px 0 12px}
.bill-transition{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.55);
  display:flex;align-items:center;justify-content:center;padding:24px}
.bill-transition-card{background:var(--bg-panel);border:1px solid var(--line);
  border-radius:18px;padding:28px 24px;max-width:340px;width:100%;text-align:center}
.bill-transition-card p{margin:8px 0}
.bill-transition-card .btn-ghost{width:100%;margin-top:16px}
.spinner{width:34px;height:34px;margin:0 auto 6px;border-radius:50%;
  border:3px solid var(--line);border-top-color:var(--gold-bright,#b98a2f);
  animation:bill-spin .8s linear infinite}
@keyframes bill-spin{to{transform:rotate(360deg)}}
.recus-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  min-height:64px;padding:12px 4px;background:none;border:0;
  border-bottom:1px solid var(--line-faint);color:var(--ink);cursor:pointer;
  font-size:1rem;font-family:var(--font-ui)}
.recus-row:last-child{border-bottom:0}
.recus-main{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.recus-period{font-weight:600}
.recus-total{color:var(--ink-2);font-size:.92rem}
.recus-badge{font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:99px;flex:none}
.recus-badge.ok{background:var(--ok-weak,#e6f2ec);color:var(--ok)}
.recus-badge.due{background:#fdf0e4;color:#9a5b13}
#abo-actions-card .btn-primary,#abo-actions-card .btn-ghost{width:100%;margin:0 0 10px}
#abo-upcoming-row{margin-top:10px}

/* ═══ V123 — Aperçu devis temps réel ═══ */
.doc-preview-card { margin-bottom: 16px; }
.doc-preview {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; margin-top: 12px; font-size: 0.82rem; color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.dp-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.dp-logo {
  width: 64px; height: 64px; flex: none; border-radius: 8px;
  background: var(--bg-inset); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 0.65rem; color: var(--ink-2); text-align: center;
}
.dp-logo img { width: 100%; height: 100%; object-fit: contain; }
.dp-logo.empty::after { content: "Logo"; }
.dp-company { flex: 1; min-width: 0; }
.dp-company-name { font-weight: 700; font-size: 0.95rem; }
.dp-company-meta { color: #666; font-size: 0.72rem; margin-top: 2px; }
.dp-title { text-align: right; font-weight: 700; font-size: 0.9rem; }
.dp-num { font-weight: 400; font-size: 0.72rem; color: #666; }
.dp-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.75rem; }
.dp-table th { text-align: left; padding: 6px 4px; border-bottom: 2px solid #1a1a1a; font-size: 0.7rem; }
.dp-table td { padding: 6px 4px; border-bottom: 1px solid #eee; }
.dp-totals { text-align: right; margin: 8px 0; font-size: 0.78rem; }
.dp-totals > div { display: flex; justify-content: flex-end; gap: 16px; padding: 2px 0; }
.dp-grand { font-weight: 700; font-size: 0.9rem; }
.dp-sign { display: flex; gap: 12px; margin-top: 12px; }
.dp-sign-box { flex: 1; border: 1px solid #ddd; border-radius: 8px; padding: 8px; font-size: 0.72rem; }
.dp-sign-box p { margin: 0 0 6px; }
.dp-sign-line { border-bottom: 1px solid #999; height: 24px; }
.dp-stamp {
  min-height: 72px; border: 1px solid #ddd; border-radius: 8px;
  display: flex; align-items: center; justify-content: space-around; gap: 12px;
  background: #fff; overflow: hidden; padding: 8px;
}
.dp-stamp img { max-height: 56px; max-width: 40%; object-fit: contain; }
.dp-stamp.empty { border-style: dashed; background: var(--bg-inset); }
.dp-stamp.empty::after { content: "Cachet + signature"; font-size: 0.65rem; color: var(--ink-2); }
/* ═══════════════════════════════════════════════════════════════════
   V115 — Refonte Accueil (07/10/2026) : le verdict, pas le compteur
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tailles tactiles doctrine : 72 px primaire / 60 px actions ── */
.btn-xl {
  min-height: 72px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  text-decoration: none;
}
.btn-xl small { display: block; font-size: 0.85rem; font-weight: 500; opacity: 0.85; }
a.btn-xl { text-decoration: none; }
.btn-l {
  min-height: 60px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
}
a.btn-l { text-decoration: none; }
.btn-rappeler {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--gold-line); border-radius: 8px;
  background: transparent; color: var(--gold-bright);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 0 18px;
}

/* ── 1.1 Carte Verdict ── */
.verdict-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.verdict-phrase {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.verdict-sub { margin: 0; font-size: 1rem; line-height: 1.5; }
.verdict-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 4px;
}

/* ── 1.2 À faire ── */
.afaire-block { margin-bottom: 16px; }
.afaire-block .section-head { margin-bottom: 10px; }
.afaire-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.afaire-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.afaire-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
}
.afaire-dot.urgent { background: var(--danger); }
.afaire-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.afaire-info strong { font-size: 1rem; color: var(--ink); }
.afaire-info .muted { font-size: 0.95rem; }
.afaire-actions {
  grid-column: 1 / -1;
  display: flex; gap: 8px;
}
.afaire-actions .btn-l { flex: 1; }

/* ── 1.3 À valider ── */
#accueil-avalider { margin-bottom: 16px; }
#accueil-avalider .section-head { margin-bottom: 10px; }
.avalider-list { display: flex; flex-direction: column; gap: 10px; }
.avalider-row {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.avalider-info { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.avalider-info strong { font-size: 1rem; color: var(--ink); }
.avalider-info .muted { font-size: 0.95rem; }
.avalider-actions { display: flex; gap: 8px; }
.avalider-actions .btn-l { flex: 1; }

/* ── 1.4 Aujourd'hui ── */
.today-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 8px;
}
.today-info { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.today-info strong { font-size: 1.05rem; color: var(--ink); }
.today-info .muted { font-size: 0.95rem; }
.today-actions { display: flex; flex-direction: column; gap: 8px; }
.today-empty { font-size: 1rem; margin: 0 0 16px; }

/* ── 1.5 Preuve du soir ── */
.preuve-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.preuve-card p { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.preuve-card p:last-child { margin-bottom: 0; }
.preuve-title { font-weight: 700; font-size: 1.05rem; }

/* ── 1.7 Fiche de paie ── */
.fichepaie-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.fichepaie-card p { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.fichepaie-card p:last-child { margin-bottom: 0; }
.fichepaie-title { font-weight: 700; font-size: 1.05rem; }

/* ── 1.8 Upsell relance ── */
.upsell-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.upsell-card p { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.upsell-title { font-weight: 700; font-size: 1.05rem; }
.upsell-card .btn-l { width: 100%; }
.sheet-info {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.sheet-info p { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.sheet-info p:last-child { margin-bottom: 0; }

/* ── 1.10 Briefing opt-in ── */
.briefing-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.briefing-card p { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; color: var(--ink); }
.briefing-title { font-weight: 700; font-size: 1.05rem; }
.briefing-actions { display: flex; gap: 8px; }
.briefing-actions .btn-l { flex: 1; }

/* ── Bottom sheet Accueil : actions empilées ── */
.sheet-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sheet-actions .btn-ghost { width: 100%; min-height: 48px; }

/* ── Toast « Annuler » 6 s ── */
.toast-undo {
  margin-left: 12px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.small-note { font-size: 0.9rem; }

/* ── Bouton soleil actif ── */
#soleil-toggle.active {
  color: var(--gold-bright);
  border-color: var(--gold-line);
  background: var(--gold-weak, transparent);
}

/* ── V115 T2 — Mode plein soleil : contraste ≥ 7:1 ──
   Fonds #FFFFFF, encres #000/#1a1a1a/#333 → ratios 21:1 / 17:1 / 12.6:1.
   Bouton or : encre #141414 sur #C7A059 → ~8:1. */
[data-theme="soleil"] {
  --bg-app:      #ffffff;
  --bg-card:     #ffffff;
  --bg-elevated: #f5f5f5;
  --ink:         #000000;
  --ink-2:       #1a1a1a;
  --ink-3:       #333333;
  --line:        #8a8a8a;
  /* Charte plaque en mode soleil : blanc pur, noir pur */
  --papier:      #ffffff;
  --papier-2:    #f5f5f5;
  --card:        #ffffff;
  --doc:         #ffffff;
  --laiton-line: #8a6d2f;
  --laiton-ink:  #7a5f24;
  --gold:        #c7a059;
  --gold-ink:    #141414;
  --gold-line:   #8a6d2f;
  --gold-bright: #7a5f24;
  --gold-weak:   #faf3e3;
  --ok:          #0a5222;
  --ok-line:     #0a5222;
  --ok-weak:     #e6f2e9;
  --danger:      #b00020;
  --danger-line: #b00020;
  --danger-weak: #fbe7ea;
}
[data-theme="soleil"] body { background: #ffffff; color: #000000; }
[data-theme="soleil"] .card,
[data-theme="soleil"] .verdict-card,
[data-theme="soleil"] .afaire-row,
[data-theme="soleil"] .avalider-row,
[data-theme="soleil"] .today-card,
[data-theme="soleil"] .preuve-card,
[data-theme="soleil"] .fichepaie-card,
[data-theme="soleil"] .upsell-card,
[data-theme="soleil"] .briefing-card,
[data-theme="soleil"] .sheet { background: #ffffff; }
[data-theme="soleil"] .muted { color: #1a1a1a; }
[data-theme="soleil"] .muted-light { color: #333333; }
[data-theme="soleil"] .btn-primary { background: #c7a059; color: #141414; }
[data-theme="soleil"] .btn-ghost { color: #1a1a1a; border-color: #8a8a8a; }
[data-theme="soleil"] .btn-rappeler { color: #5c4a1c; border-color: #8a6d2f; }
[data-theme="soleil"] .link-inline { color: #5c4a1c; }
[data-theme="soleil"] a { color: #5c4a1c; }
/* D3 corrigé (V115, 07/10) : #b00020 sur #fbe7ea = 6,18:1 < 7:1.
   #8f0018 sur #fbe7ea = 8,12:1 — encre texte uniquement, les bordures
   (--danger-line) n'ont pas d'exigence de contraste texte. */
[data-theme="soleil"] .badge-urgent,
[data-theme="soleil"] .avatar-urgent,
[data-theme="soleil"] .urgent-banner { color: #8f0018; }


/* ══ V116 « La Plaque du patron » — validée par Daniel le 07/10/2026 ══
   Premium d'atelier : émail navy #1a2340, laiton gold #C7A059 gravé
   (filets, jamais d'aplats), papier #faf6ef. Hiérarchie par la matière
   et l'échelle, jamais par la couleur → survit au plein soleil.
   Typo : Oswald (capitales, plaques d'atelier), Archivo (courant),
   chiffres toujours tabulaires, graisse 600 (des chiffres qui dansent
   = amateurisme). */

/* ── LA PLAQUE : plein-bleed, sort du container ── */
.plaque{
  margin:-24px -16px 0;
  background:linear-gradient(178deg,#1a2340 0%,#121a30 100%);
  color:#faf6ef;
  padding:18px 20px 26px;
  position:relative;
  border-bottom:5px solid #C7A059; /* couture matière */
}
.plaque::before{ /* cadre gold fin en retrait, comme une gravure */
  content:"";position:absolute;inset:10px;
  border:1px solid rgba(199,160,89,.55);
  pointer-events:none;
}
.plaque-kicker{
  font-family:'Oswald',sans-serif;
  font-size:14px;letter-spacing:.3em;
  color:#e3c98f;text-align:center;
  margin-top:14px;
  font-variant-numeric:tabular-nums;
}
.plaque-hero{
  display:flex;align-items:center;justify-content:center;gap:18px;
  margin:6px 0 4px;min-height:80px;
}
.plaque-num{
  font-family:'Oswald',sans-serif;font-weight:600;
  font-size:112px;line-height:.95;
  color:#e3c98f;font-variant-numeric:tabular-nums;
}
.plaque-words{
  font-family:'Oswald',sans-serif;
  font-size:26px;letter-spacing:.14em;line-height:1.3;
  color:#faf6ef;
}
.plaque-calm{
  font-family:'Oswald',sans-serif;font-weight:500;
  font-size:30px;letter-spacing:.1em;line-height:1.35;
  color:#e3c98f;text-align:center;
}
.plaque-cta{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin:16px 8px 0;padding:14px 16px;
  min-height:72px;
  background:#faf6ef;color:#1a2340;
  border:none;border-radius:10px;
  font-family:'Archivo',sans-serif;font-weight:700;font-size:17px;line-height:1.3;
  text-decoration:none;text-align:center;
  cursor:pointer;
  box-shadow:0 4px 18px rgba(0,0,0,.35);
  width:calc(100% - 16px);
}
button.plaque-cta{width:calc(100% - 16px)}
.plaque-cta:active{transform:scale(.985)}
.plaque-note{
  text-align:center;font-style:italic;font-size:14.5px;
  color:#d8d2c2;margin:12px 26px 0;line-height:1.45;
}
.plaque-note strong{color:#e3c98f;font-style:normal}
.plaque-sub{
  text-align:center;font-size:13.5px;
  color:#b9b2a0;margin:10px 20px 0;line-height:1.5;
}
.plaque-sub .plaque-cta{margin:8px auto 0;max-width:320px}

/* ── Corps : fil à plomb + sections ouvertes ── */
.accueil-body{position:relative;padding:0 4px 0 22px}
.plumb{
  position:absolute;left:2px;top:0;bottom:0;width:3px;
  background:#C7A059;
}
.acc-sec{position:relative;padding:26px 0 6px}
.acc-sec:empty{display:none}
.acc-sec::before{ /* losange repère accroché au fil */
  content:"";position:absolute;left:-26px;top:34px;
  width:13px;height:13px;background:#C7A059;
  transform:rotate(45deg);
}
.sec-title{
  font-family:'Oswald',sans-serif;font-size:14px;font-weight:500;
  letter-spacing:.26em;color:#1a2340;
  padding-bottom:10px;margin-bottom:4px;
  border-bottom:1px solid #e2d8c2;
}

/* ── Bon de commande ── */
.order-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:12px 0;border-bottom:1px solid #e2d8c2;
  font-size:16px;
}
.order-num{
  font-family:'Oswald',sans-serif;font-weight:600;font-size:18px;
  color:#C7A059;font-variant-numeric:tabular-nums;min-width:30px;
}
.order-label{flex:1;min-width:140px;line-height:1.4}
/* Libellé tappable → la conversation (transcription + enregistrement).
   Reset bouton + chevron gold discret : on devine que ça s'ouvre. */
.order-label-btn{background:none;border:0;padding:0;font:inherit;color:inherit;
  text-align:left;cursor:pointer;min-height:48px;display:flex;align-items:center}
.order-label-btn::after{content:"›";color:var(--gold);font-weight:700;
  font-size:20px;margin-left:8px;flex:none}
.order-actions{display:flex;gap:8px;margin-left:auto}
.verb{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:0 18px;
  border:2px solid #1a2340;border-radius:24px;
  background:none;color:#1a2340;
  font-family:'Archivo',sans-serif;font-weight:700;font-size:15px;
  cursor:pointer;white-space:nowrap;text-decoration:none;
}
.verb:active{background:#1a2340;color:#faf6ef}
.verb-ghost{border-color:#b9ac8d;color:#4a5060}

/* ── Aujourd'hui : heure héros ── */
.today-time{
  font-family:'Oswald',sans-serif;font-weight:600;
  font-size:52px;line-height:1.1;color:#1a2340;
  font-variant-numeric:tabular-nums;
}
.today-label{font-size:16px;margin:2px 0 12px;line-height:1.45}
.today-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:6px}

/* ── Compte rendu : document relié, tranche navy ── */
#accueil-report::before{display:none} /* la tranche EST le repère */
.report{
  border-left:4px solid #1a2340;
  padding:4px 0 4px 14px;margin-top:6px;
}
.report-sum{
  font-family:'Oswald',sans-serif;font-size:14px;font-weight:500;
  letter-spacing:.18em;color:#1a2340;line-height:1.7;
  padding:8px 0;
}
.report-sum strong{font-weight:600}
.report-detail{font-size:15.5px;line-height:1.55;margin:2px 0 4px}
.report-sign{
  text-align:right;font-style:italic;font-size:15px;
  color:#4a5060;padding:8px 0 2px;
}

/* ── Réassurance de fin ── */
.reassure{
  text-align:center;padding:28px 10px 36px;
  font-family:'Oswald',sans-serif;font-size:19px;letter-spacing:.06em;
  color:#1a2340;line-height:1.5;
}
.reassure small{
  display:block;margin-top:6px;
  font-family:'Archivo',sans-serif;font-size:14px;letter-spacing:0;
  color:#4a5060;
}

/* ── Mode plein soleil : la justesse ne craint pas le soleil ──
   Plaque blanche, cadre noir 2 px, chiffre noir massif, filet bronze. */
[data-theme="soleil"] .plaque{background:#ffffff;color:#000000;border-bottom:5px solid #8a6d2f}
[data-theme="soleil"] .plaque::before{border:2px solid #000000}
[data-theme="soleil"] .plaque-kicker,
[data-theme="soleil"] .plaque-num,
[data-theme="soleil"] .plaque-calm{color:#000000}
[data-theme="soleil"] .plaque-words{color:#000000}
[data-theme="soleil"] .plaque-cta{background:#000000;color:#ffffff;box-shadow:none}
[data-theme="soleil"] .plaque-note{color:#1a1a1a}
[data-theme="soleil"] .plaque-note strong{color:#000000}
[data-theme="soleil"] .plaque-sub{color:#333333}
[data-theme="soleil"] .plumb{background:#8a6d2f}
[data-theme="soleil"] .acc-sec::before{background:#8a6d2f}
[data-theme="soleil"] .sec-title{color:#000000;border-color:#8a8a8a}
[data-theme="soleil"] .order-row{border-color:#8a8a8a}
[data-theme="soleil"] .order-num{color:#5c4a1c}
[data-theme="soleil"] .verb{color:#000000;border-color:#000000}
[data-theme="soleil"] .verb-ghost{color:#1a1a1a;border-color:#8a8a8a}
[data-theme="soleil"] .today-time{color:#000000}
[data-theme="soleil"] .report{border-color:#000000}
[data-theme="soleil"] .report-sum{color:#000000}
[data-theme="soleil"] .report-sign{color:#1a1a1a}
[data-theme="soleil"] .reassure{color:#000000}
[data-theme="soleil"] .reassure small{color:#1a1a1a}

/* FIX 2026-10-07 16h50 : titre Vos appels en navy */
#list-view .sec-head { color: var(--navy-900); }

/* Voix du standard Grok (19/10/2026) — choix Celeste / Rex, vue Léa */
.voix-opt{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #E7E2D9;border-radius:14px;background:#fff;text-align:left;transition:border-color .15s,background .15s,transform .1s;cursor:pointer}
.voix-opt:active{transform:scale(.99)}
.voix-opt-active{border-color:#C7A059;background:rgba(199,160,89,.08)}
.voix-dot{width:18px;height:18px;border-radius:9999px;border:2px solid #CBD5E1;flex-shrink:0;box-sizing:border-box}
.voix-dot-on{border-color:#C7A059;background:#C7A059;box-shadow:inset 0 0 0 3px #fff}
.voix-ecouter{font-size:11px;font-weight:700;color:#A8823D;background:rgba(199,160,89,.14);padding:5px 10px;border-radius:8px;flex-shrink:0}

/* ══════════════════════════════════════════════════════════════
   V198 — Écran de connexion « Glassy Liquid » (20/10/2026, demande
   Daniel : maquette glassy validée « excellent, tu peux déployer »).
   Périmètre STRICT : #login-screen uniquement. Aucun autre écran,
   aucune ligne JS, aucune logique d'auth touchée. Le liquide du
   bouton est branché sur l'état RÉEL .loading posé par app.js
   pendant signInWithPassword — pas de fausse progression.
   Style nommé : Liquid Glass (verre : blur 24px + saturate 180 %,
   bordure translucide, sheen) ; orbes chaudes derrière le verre.
   ══════════════════════════════════════════════════════════════ */
#login-screen {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(199, 160, 89, 0.20), transparent 55%),
    radial-gradient(100% 80% at -10% 100%, rgba(122, 141, 105, 0.16), transparent 55%),
    linear-gradient(165deg, #f7f2e7 0%, #f4f1e9 48%, #ede6d6 100%);
}
[data-theme="dark"] #login-screen {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(199, 160, 89, 0.13), transparent 55%),
    radial-gradient(100% 80% at -10% 100%, rgba(122, 141, 105, 0.10), transparent 55%),
    linear-gradient(165deg, #17171a 0%, #101113 55%, #131109 100%);
}
.glassy-orbes { position: absolute; inset: 0; pointer-events: none; }
.glassy-orbes span {
  position: absolute; border-radius: 50%;
  filter: blur(46px); opacity: 0.55; will-change: transform;
}
.glassy-orbes .orbe-1 {
  width: 340px; height: 340px; left: -90px; top: -70px;
  background: radial-gradient(circle at 35% 35%, rgba(212, 175, 105, 0.85), rgba(199, 160, 89, 0.25) 70%);
  animation: orbe-drift-1 26s ease-in-out infinite alternate;
}
.glassy-orbes .orbe-2 {
  width: 280px; height: 280px; right: -70px; top: 32%;
  background: radial-gradient(circle at 40% 40%, rgba(146, 164, 128, 0.75), rgba(122, 141, 105, 0.22) 70%);
  animation: orbe-drift-2 32s ease-in-out infinite alternate;
}
.glassy-orbes .orbe-3 {
  width: 240px; height: 240px; left: 38%; bottom: -110px;
  background: radial-gradient(circle at 40% 35%, rgba(196, 132, 94, 0.65), rgba(178, 106, 74, 0.20) 70%);
  animation: orbe-drift-1 38s ease-in-out infinite alternate-reverse;
}
@keyframes orbe-drift-1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(46px, 30px, 0) scale(1.08); } }
@keyframes orbe-drift-2 { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-38px, -26px, 0) scale(0.97); } }

#login-screen .login-wrap { position: relative; z-index: 1; }
#login-screen .login-brand .logo-mark {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 18px rgba(60, 48, 20, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] #login-screen .login-brand .logo-mark {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
#login-screen .login-card {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42) 55%, rgba(255, 255, 255, 0.50));
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 60px rgba(60, 48, 20, 0.16), 0 4px 16px rgba(60, 48, 20, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#login-screen .login-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 55% at 18% -6%, rgba(255, 255, 255, 0.55), transparent 60%);
}
[data-theme="dark"] #login-screen .login-card {
  background: linear-gradient(155deg, rgba(30, 31, 36, 0.72), rgba(18, 19, 22, 0.55) 55%, rgba(24, 25, 29, 0.62));
  border-top-color: rgba(255, 255, 255, 0.18); border-left-color: rgba(255, 255, 255, 0.13);
  border-right-color: rgba(255, 255, 255, 0.10); border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
[data-theme="dark"] #login-screen .login-card::before {
  background: radial-gradient(120% 55% at 18% -6%, rgba(255, 255, 255, 0.13), transparent 60%);
}
#login-screen .field input {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(120, 104, 62, 0.22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background 0.25s var(--ease-tap), border-color 0.25s var(--ease-tap), box-shadow 0.25s var(--ease-tap);
}
#login-screen .field input:focus {
  background: rgba(255, 255, 255, 0.82); border-color: rgba(169, 130, 63, 0.55);
  box-shadow: 0 0 0 3px rgba(199, 160, 89, 0.22); outline: none;
}
[data-theme="dark"] #login-screen .field input { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] #login-screen .field input:focus { background: rgba(255, 255, 255, 0.12); border-color: rgba(201, 169, 98, 0.6); box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.20); }
#login-screen .btn-oauth {
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(120, 104, 62, 0.20); border-radius: 14px;
  transition: transform 0.18s var(--ease-tap), box-shadow 0.18s var(--ease-tap), background 0.18s var(--ease-tap);
}
#login-screen .btn-oauth:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.85); box-shadow: 0 8px 20px rgba(60, 48, 20, 0.12); }
#login-screen .btn-oauth:active { transform: scale(0.98); }
[data-theme="dark"] #login-screen .btn-oauth { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); }
[data-theme="dark"] #login-screen .btn-oauth:hover { background: rgba(255, 255, 255, 0.12); }

/* ── Bouton liquide — repos : pill navy, reflet qui ondule ── */
#login-screen #login-submit {
  position: relative; overflow: visible; isolation: isolate;
  border-radius: 999px; min-height: 54px;
  background: linear-gradient(150deg, #243156 0%, #16213c 55%, #101a30 100%);
  color: #f7f2e7; letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(16, 26, 48, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.14s var(--ease-tap), filter 0.24s var(--ease), border-radius 0.45s var(--ease-glide), width 0.45s var(--ease-glide), height 0.45s var(--ease-glide);
}
#login-screen #login-submit::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(90% 160% at 18% -30%, rgba(255, 255, 255, 0.38), transparent 55%),
              radial-gradient(70% 130% at 85% 130%, rgba(199, 160, 89, 0.35), transparent 60%);
  animation: liquid-sheen 5.5s ease-in-out infinite alternate;
}
@keyframes liquid-sheen { from { opacity: 0.75; transform: translateX(-4%); } to { opacity: 1; transform: translateX(4%); } }
#login-screen #login-submit:hover { filter: brightness(1.14); }
#login-screen #login-submit:active { transform: scale(0.97); }

/* ── Bouton liquide — chargement RÉEL (.loading posé par app.js) :
      le pill se contracte en goutte organique qui pulse, anneau
      d'ondulation en box-shadow dans les mêmes keyframes. ── */
#login-screen #login-submit.loading {
  width: 64px; height: 64px; min-height: 64px; margin-inline: auto;
  display: flex; opacity: 1;
  border-radius: 58% 42% 55% 45% / 52% 55% 45% 48%;
  animation: liquid-drop 0.95s ease-in-out infinite;
  cursor: wait;
}
#login-screen #login-submit.loading::before { animation: none; opacity: 0.9; }
#login-screen #login-submit.loading::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 2.5px solid rgba(247, 242, 231, 0.35); border-top-color: #f7f2e7;
  animation: spin 0.7s linear infinite;
}
@keyframes liquid-drop {
  0%, 100% { transform: scale(1, 1); box-shadow: 0 12px 28px rgba(16, 26, 48, 0.32), 0 0 0 0 rgba(36, 49, 86, 0.30); border-radius: 58% 42% 55% 45% / 52% 55% 45% 48%; }
  50% { transform: scale(0.965, 1.045); box-shadow: 0 12px 28px rgba(16, 26, 48, 0.32), 0 0 0 16px rgba(36, 49, 86, 0); border-radius: 45% 55% 48% 52% / 58% 44% 56% 42%; }
}

/* ── Erreur d'auth : secousse douce + liseré terracotta ── */
#login-screen .login-card:has(#login-error:not(.hidden)) { animation: login-shake 0.4s var(--ease-tap); }
#login-screen #login-form:has(#login-error:not(.hidden)) input {
  border-color: rgba(178, 58, 42, 0.65);
}
@keyframes login-shake {
  0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .glassy-orbes span, #login-screen #login-submit::before { animation: none !important; }
  #login-screen #login-submit.loading { animation: none !important; border-radius: 999px; }
  #login-screen .login-card:has(#login-error:not(.hidden)) { animation: none !important; }
  #login-screen .btn-oauth, #login-screen #login-submit { transition: none; }
}

/* V206 — impression du panneau aperçu (devis test PDF) : seul le document
   s'imprime, pas l'application ni les boutons du panneau. */
@media print {
  body.print-apercu #app-screen { display: none !important; }
  body.print-apercu #apercu-docs-overlay { position: static !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
  body.print-apercu #apercu-docs-overlay button { display: none !important; }
}
