/* ============================================================================
   LA MIE DORÉE — Thème « clair »  ·  lamie-clair.css  (version partagée du hall)
   Charte choisie par Patrice : celle de la page des cartes de Retours
   (refonte du 17/10/2026, #560) — blanc, épuré, un seul accent bleu,
   cartes arrondies, police système. Appliquée à Passe-Plat le 14/11/2026.
   Se charge APRÈS lamie-ds.css : il ne fait que remplacer les jetons et
   adoucir les composants communs. lamie-ds.css reste inchangé (d'autres outils
   le chargent). Pour adopter la charte claire, un outil ajoute simplement :
     <link rel="stylesheet" href="https://accueil.lamiedoree.eu/shared/lamie-ds/lamie-clair.css">
   juste après la ligne qui charge lamie-ds.css.
   ============================================================================ */

:root {
  /* — Papier & surfaces : tout en blanc, gris très léger pour les zones — */
  --lm-paper:        #FFFFFF;
  --lm-paper-2:      #F3F4F6;
  --lm-surface:      #FFFFFF;
  --lm-surface-2:    #F9FAFB;

  /* — Encre — */
  --lm-ink:          #111111;
  --lm-ink-strong:   #111111;
  --lm-ink-soft:     #6B7280;
  --lm-ink-faint:    #6B7280;

  /* — « Or » → accent bleu des cartes (les noms restent pour ne rien casser) — */
  --lm-gold-deep:    #1A56DB;
  --lm-gold:         #1A56DB;
  --lm-gold-bright:  #1A56DB;
  --lm-gold-light:   #1A56DB;
  --lm-gold-pale:    #EAF1FE;
  --lm-gold-foil:    #1A56DB;

  /* — Barre latérale : claire elle aussi — */
  --lm-side:         #FFFFFF;
  --lm-side-2:       #F3F4F6;
  --lm-side-ink:     #374151;
  --lm-side-ink-soft:#6B7280;
  --lm-side-strong:  #111111;
  --lm-side-active:  #EAF1FE;
  --lm-side-rule:    #E5E7EB;

  /* — Lignes — */
  --lm-line:         #E5E7EB;
  --lm-line-strong:  #E5E7EB;
  --lm-rule:         #D1D5DB;

  /* — Sémantique (mêmes teintes que Retours) — */
  --lm-positive:     #065F46;  --lm-positive-bg: #ECFDF5;  --lm-positive-line: #A7F3D0;
  --lm-negative:     #9B1C1C;  --lm-negative-bg: #FDF2F2;  --lm-negative-line: #F8B4B4;
  --lm-info:         #1E3A8A;  --lm-info-bg:     #EAF1FE;  --lm-info-line:     #BFD3FB;

  /* — Typographie : police système partout, comme Retours — */
  --lm-font-display: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lm-font-serif:   -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lm-font-ui:      -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --lm-font-mono:    -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* — Rayons : arrondis doux — */
  --lm-radius-sm:    8px;
  --lm-radius:       12px;
  --lm-radius-lg:    20px;

  /* — Ombres : une seule, très légère — */
  --lm-shadow-sm:    none;
  --lm-shadow:       0 6px 24px rgba(17,17,17,.06);
  --lm-shadow-lg:    0 12px 40px rgba(17,17,17,.12);
}

/* ---------- Socle ---------- */
.lm-root, .lm-app { background: #fff; color: var(--lm-ink); letter-spacing: 0; }
/* Le corps de page n'avait pas de police : le navigateur prenait Times. */
body { margin: 0; background: #fff; color: var(--lm-ink); font-family: var(--lm-font-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }

/* Titres : gras sobre au lieu des serifs */
.lm-display, .lm-h1 { font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.lm-display { font-size: clamp(26px, 3.6vw, 34px); }
.lm-h1      { font-size: clamp(22px, 2.8vw, 28px); }
.lm-h2      { font-weight: 650; font-size: clamp(18px, 2vw, 21px); line-height: 1.25; }
.lm-h3      { font-weight: 650; font-size: 17px; line-height: 1.3; }

/* Étiquettes : plus de petites capitales espacées, juste du gris discret */
.lm-eyebrow, .lm-label, .lm-rule-label,
.lm-kpi .lm-kpi-label, .lm-page-head .lm-date, .lm-table thead th {
  letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 500; color: var(--lm-ink-soft);
}
.lm-eyebrow { color: var(--lm-gold); font-weight: 600; }
.lm-figure  { font-weight: 650; letter-spacing: -.01em; }
.lm-foil    { background: none; color: var(--lm-gold); -webkit-background-clip: border-box; background-clip: border-box; }

/* ---------- Gabarit ---------- */
.lm-shell { background: #fff; }
.lm-topbar { background: #fff; color: var(--lm-ink); border-bottom: 1px solid var(--lm-line); }
.lm-topbar .lm-burger { border-color: var(--lm-line); color: var(--lm-ink); border-radius: 999px; }
.lm-topbar .lm-topbar-title { font-weight: 650; font-size: 18px; color: var(--lm-ink); }

.lm-sidebar { background: #fff; border-right: 1px solid var(--lm-line); }
.lm-brand { border-bottom-color: var(--lm-line); }
.lm-brand img { width: 72px; height: 72px; filter: none; }
.lm-brand-name { font-weight: 700; font-size: 20px; }
.lm-brand-sub  { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--lm-ink-soft); }

.lm-nav-group { letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; color: var(--lm-ink-soft); }
.lm-nav-item, .lm-collapse > summary { border-radius: 999px; }
.lm-nav-item:hover, .lm-collapse > summary:hover { background: #F3F4F6; color: var(--lm-ink); }
.lm-nav-item.is-active { background: var(--lm-side-active); color: var(--lm-gold); box-shadow: none; font-weight: 600; }
.lm-nav-item.is-active svg { color: var(--lm-gold); }
.lm-collapse .lm-sub a { border-radius: 999px; border-left: none; }
.lm-collapse .lm-sub a:hover { background: #F3F4F6; }
.lm-collapse .lm-sub a.is-active { background: var(--lm-side-active); color: var(--lm-gold); font-weight: 600; }
.lm-side-foot .lm-u-name { font-weight: 650; }
.lm-side-foot .lm-u-link { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--lm-gold); }

.lm-page-head { border-bottom: 1px solid var(--lm-line); }

/* ---------- Cartes ---------- */
.lm-card { border: 1px solid var(--lm-line); border-radius: var(--lm-radius-lg); box-shadow: var(--lm-shadow); }
.lm-card.is-flat { box-shadow: none; }
.lm-card.accent::before { display: none; }
.lm-card.is-hero { background: #fff; border-color: var(--lm-line); }
.lm-card.is-dark { background: #F9FAFB; border-color: var(--lm-line); }
.lm-card.is-dark .lm-kpi-label, .lm-card.is-dark .lm-kpi-sub { color: var(--lm-ink-soft); }
.lm-card.is-dark .lm-figure, .lm-card.is-dark .lm-kpi-top svg { color: var(--lm-gold); }

/* ---------- Boutons (pilules, comme les cartes) ---------- */
.lm-btn { border-radius: 999px; letter-spacing: 0; font-weight: 600; }
.lm-btn-primary { background: var(--lm-gold); color: #fff; box-shadow: none; }
.lm-btn-primary:hover { filter: none; background: #1648B8; }
.lm-btn-secondary { background: #fff; border: 1.5px solid var(--lm-gold); color: var(--lm-gold); }
.lm-btn-secondary:hover { background: var(--lm-gold-pale); border-color: var(--lm-gold); }
.lm-btn-dark { background: #111; color: #fff; }
.lm-btn-dark:hover { filter: none; background: #333; }
.lm-btn-ghost { color: var(--lm-ink-soft); }
.lm-btn-ghost:hover { color: var(--lm-ink); }

/* ---------- Badges ---------- */
.lm-badge { letter-spacing: 0; text-transform: none; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; }
.lm-badge-neutral { background: #F3F4F6; border-color: transparent; }
.lm-badge-vente { background: #111; color: #fff; }
.lm-badge-boul  { background: #FEF3C7; color: #78350F; }
.lm-badge-snack { background: var(--lm-negative-bg); color: var(--lm-negative); }
.lm-badge-trans { background: var(--lm-info-bg); color: var(--lm-info); }

/* ---------- Alertes : fond teinté, plus de liseré gauche ---------- */
.lm-alert { border: none; border-radius: var(--lm-radius); background: var(--lm-negative-bg); }
.lm-alert.is-info { background: var(--lm-info-bg); }
.lm-alert.is-ok   { background: var(--lm-positive-bg); }
.lm-alert .lm-alert-title { font-weight: 650; font-size: 16px; }

/* ---------- Tableaux ---------- */
.lm-table-wrap { border-color: var(--lm-line); border-radius: var(--lm-radius); }
.lm-table thead th { background: #F9FAFB; border-bottom-color: var(--lm-line); }
.lm-table tbody tr:hover { background: #F9FAFB; }

/* Mobile : voile plus léger derrière le tiroir */
@media (max-width: 768px) {
  .lm-nav-toggle:checked ~ .lm-scrim { background: rgba(17,17,17,.3); }
}
