/* ============================================================
   Loba — Design System
   Concept: « la parole qui porte » — le message qui arrive.
   Signature: le rail de livraison (accepté → envoyé → livré → lu).
   ============================================================ */

:root {
  /* Surfaces */
  --ink: #0A1C15;          /* forêt profonde, texte & surfaces sombres */
  --bg: #F5F7F4;           /* menthe papier */
  --bg-sunk: #EDF1EC;
  --card: #FFFFFF;
  --line: #E1E7E1;
  --line-strong: #CBD5CC;

  /* Marque */
  --green: #0B7A50;        /* primaire */
  --green2: #12B981;       /* accent vivant / live (compat ancien nom) */
  --green-bright: #12B981;
  --green-ink: #063B28;
  --green-wash: #E7F5EE;
  --gold: #E0A43B;         /* accent chaud, statut « lu » */
  --gold-wash: #FBF1DD;
  --gold-vif: #F5C800;     /* accent de marque (identité TOYOKA) — réservé aux CTA principaux */
  --red-brand: #DC241F;    /* rouge tricolore Congo */

  /* Texte */
  --text: #14261D;
  --muted: #61726A;
  --faint: #93A199;

  /* Statuts */
  --sent: #6B7B8C;
  --delivered: #0E9F6E;
  --read: #0B7A50;
  --failed: #C0392B;
  --danger: #C0392B;       /* compat ancien nom */
  --failed-wash: #FBE8E6;

  /* Rayons & ombres */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10,28,21,.05), 0 1px 3px rgba(10,28,21,.04);
  --shadow: 0 10px 30px rgba(10,28,21,.07);
  --shadow-lg: 0 24px 60px rgba(10,28,21,.12);

  /* Type */
  --display: "Bricolage Grotesque", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --tap: 44px; /* cible tactile min */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E8F0EB; --bg: #0B1712; --bg-sunk: #0F1E18; --card: #13241D;
    --line: #21362C; --line-strong: #2E4A3C;
    --text: #E6EEE9; --muted: #9BB0A6; --faint: #6E857B;
    --green-wash: #12291F; --gold-wash: #2A2312; --failed-wash: #2C1614;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow: 0 12px 34px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --ink: #E8F0EB; --bg: #0B1712; --bg-sunk: #0F1E18; --card: #13241D;
  --line: #21362C; --line-strong: #2E4A3C;
  --text: #E6EEE9; --muted: #9BB0A6; --faint: #6E857B;
  --green-wash: #12291F; --gold-wash: #2A2312; --failed-wash: #2C1614;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 12px 34px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; border-radius: 4px; }

/* ---------- Topbar ---------- */
.topbar {
  height: 68px; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 clamp(16px, 4vw, 40px); gap: 30px;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: radial-gradient(120% 120% at 30% 20%, var(--green-bright), var(--green) 70%);
  display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 19px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(11,122,80,.35);
}
.topbar nav { display: flex; gap: 6px; flex: 1; }
.topbar nav a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: var(--r-sm); line-height: 1; }
.topbar nav a:hover { color: var(--text); background: var(--bg-sunk); text-decoration: none; }
.topbar nav a[aria-current="page"] { color: var(--green-ink); background: var(--green-wash); }
.userbox { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.userbox > span { font-weight: 600; color: var(--text); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-button { border: 0; background: none; color: var(--green); cursor: pointer; font-weight: 700; font-size: 13px; padding: 6px 4px; font-family: inherit; }
.link-button:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 24px) 72px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin: 4px 0 6px; font-size: clamp(26px, 4vw, 34px); }
.page-head p, .muted { color: var(--muted); }
.page-head p { margin: 0; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; color: var(--green); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); border: 0; border-radius: var(--r-sm);
  background: var(--green); color: #fff; padding: 11px 18px; font: inherit; font-weight: 650; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px rgba(11,122,80,.20);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button:hover { background: var(--green-ink); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(11,122,80,.26); }
.button:active { transform: translateY(0); }
.button.secondary { background: var(--card); color: var(--text); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.button.secondary:hover { background: var(--bg-sunk); }
.button.danger { background: var(--card); color: var(--failed); border: 1px solid color-mix(in srgb, var(--failed) 35%, var(--line)); box-shadow: none; }
.button.danger:hover { background: var(--failed-wash); }
.button.gold { background: var(--gold-vif); color: #1A1305; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px rgba(245,200,0,.28); }
.button.gold:hover { background: #FFD41F; box-shadow: 0 10px 22px rgba(245,200,0,.36); }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.button svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards / panels ---------- */
.panel, .status-card, .kpis article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.panel { padding: clamp(18px, 3vw, 26px); margin-bottom: 22px; }
.panel h2 { margin: 0 0 16px; font-size: 18px; }
.panel-title, .connection-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.panel-title h2 { margin: 0; }
.panel-title span { color: var(--muted); font-size: 13px; }

/* ---------- Status card (connexion) ---------- */
.status-card { padding: 20px 24px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-card strong { font-family: var(--display); font-size: 17px; }
.status-card p { margin: 4px 0 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); margin-right: 9px; vertical-align: middle; }
.status-card.online { border-color: color-mix(in srgb, var(--green-bright) 40%, var(--line)); }
.status-card.online .status-dot { background: var(--green-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-bright) 18%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-bright) 18%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--green-bright) 6%, transparent); } }
.meta-mini { display: flex; gap: 14px; color: var(--muted); font-size: 13px; font-family: var(--mono); flex-wrap: wrap; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpis article { padding: 20px; position: relative; overflow: hidden; }
.kpi-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--green-wash); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.kpi-ico svg { width: 19px; height: 19px; }
.kpis span { display: block; color: var(--muted); font-size: 13px; }
.kpis strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.kpi-sub { margin-top: 8px; font-size: 12px; color: var(--faint); }

/* ---------- Signature: rail de livraison ---------- */
.rail { display: flex; align-items: flex-start; gap: 0; margin: 6px 0; }
.rail-step { flex: 1; text-align: center; position: relative; padding-top: 26px; min-width: 0; }
.rail-step::before { content: ""; position: absolute; top: 8px; left: 50%; width: 100%; height: 3px; background: var(--line); }
.rail-step:first-child::before { left: 50%; width: 50%; }
.rail-step:last-child::before { width: 50%; }
.rail-node { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); z-index: 1; }
.rail-step.reached .rail-node { border-color: var(--green); background: var(--green); }
.rail-step.reached::before { background: var(--green); }
.rail-step.read .rail-node { border-color: var(--gold); background: var(--gold); }
.rail-step.read::before { background: linear-gradient(90deg, var(--green), var(--gold)); }
.rail-label { display: block; font-size: 12px; font-weight: 650; color: var(--muted); }
.rail-step.reached .rail-label { color: var(--text); }
.rail-count { display: block; font-family: var(--display); font-size: 20px; margin-top: 2px; letter-spacing: -.02em; }

/* ---------- Activity chart (barres CSS, sans dépendance) ---------- */
.chart { display: flex; align-items: flex-end; gap: clamp(4px, 1.4vw, 12px); height: 150px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; height: 100%; }
.chart-bar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--green-bright), var(--green)); min-height: 4px; transition: height .6s cubic-bezier(.2,.7,.2,1); position: relative; }
.chart-bar.empty { background: var(--bg-sunk); }
.chart-bar b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--muted); opacity: 0; transition: opacity .15s; }
.chart-col:hover .chart-bar b { opacity: 1; }
.chart-x { font-size: 11px; color: var(--faint); white-space: nowrap; }

/* ---------- Steps (checklist) ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.steps li { padding: 10px 10px 10px 34px; color: var(--muted); position: relative; border-radius: var(--r-sm); }
.steps li::before { content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); }
.steps li.done { color: var(--text); font-weight: 600; }
.steps li.done::before { border-color: var(--green); background: var(--green); }
.steps li.done::after { content: ""; position: absolute; left: 15px; top: 50%; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }

/* ---------- Grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.grid-2 .panel { margin-bottom: 0; }

/* ---------- Connexion vide ---------- */
.connect-panel { text-align: center; padding: clamp(32px, 6vw, 54px); }
.connect-icon { width: 68px; height: 68px; border-radius: 20px; background: var(--green-wash); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.connect-icon svg { width: 34px; height: 34px; }
.connect-panel h2 { margin: 0 0 8px; }
.connect-panel p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }
.activation-panel, .configuration-panel { max-width: 820px; }
.activation-panel__head, .configuration-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.activation-panel__head h2, .configuration-panel__head h2 { margin-bottom: 5px; }
.activation-panel__head p { margin: 0; max-width: 58ch; }
.activation-form { max-width: 480px; }
.button-loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; }
.button.is-loading .button-loader { display: inline-block; animation: spin .7s linear infinite; }
.async-feedback {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 12px;
  max-width: 620px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-sunk); animation: feedback-in .2s ease-out both;
}
.async-feedback[hidden] { display: none; }
.async-feedback__visual { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.async-feedback__spinner { display: none; width: 22px; height: 22px; border: 2px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; }
.async-feedback__icon { display: none; width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.async-feedback__content { display: grid; gap: 3px; min-width: 0; }
.async-feedback__content strong { color: var(--text); }
.async-feedback__content > span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.async-feedback__retry { justify-self: start; padding: 4px 0; margin-top: 3px; }
.async-feedback[data-state="loading"] { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); }
.async-feedback[data-state="loading"] .async-feedback__spinner { display: block; animation: spin .75s linear infinite; }
.async-feedback[data-state="success"] { background: var(--green-wash); border-color: color-mix(in srgb, var(--green) 36%, var(--line)); color: var(--green-ink); }
.async-feedback[data-state="success"] .async-feedback__icon--success { display: block; animation: status-pop .22s ease-out both; }
.async-feedback[data-state="error"] { background: var(--failed-wash); border-color: color-mix(in srgb, var(--failed) 38%, var(--line)); color: var(--failed); }
.async-feedback[data-state="error"] .async-feedback__icon--error { display: block; animation: status-pop .22s ease-out both; }
.configuration-panel__head .eyebrow { margin-bottom: 5px; }
.configuration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.configuration-grid > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-sunk); }
.configuration-grid dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.configuration-grid dd { margin: 6px 0 0; overflow: hidden; color: var(--text); font-family: var(--mono); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes feedback-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes status-pop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }

/* ---------- Details (dl) ---------- */
.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 0; }
.details > div { background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.details dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.details dd { margin: 6px 0 0; word-break: break-all; font-size: 14px; font-family: var(--mono); }

/* ---------- Code list (config) ---------- */
.code-list { display: grid; gap: 8px; }
.code-list code { background: var(--ink); color: #CFFCE6; padding: 11px 14px; border-radius: var(--r-sm); overflow-x: auto; font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 16px; color: var(--text); }
input, textarea, select {
  display: block; width: 100%; margin-top: 7px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 13px; min-height: var(--tap); background: var(--card); font: inherit; color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input[readonly] { background: var(--bg-sunk); color: var(--muted); cursor: not-allowed; }
label span, .hint { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 6px; }
.secret-field { width: 100%; }
.secret-field--compact { max-width: 280px; }
.secret-field__label { color: var(--text); font-weight: 650; font-size: 13px; margin: 0; }
.secret-control { display: block; position: relative; margin-top: 7px; }
.secret-control input { margin-top: 0; padding-right: 54px; }
.secret-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.secret-toggle:hover { background: var(--green-wash); }
.secret-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--green) 28%, transparent); outline-offset: 2px; }
.secret-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.secret-toggle::after {
  content: ""; position: absolute; width: 23px; height: 2px; border-radius: 2px;
  background: currentColor; box-shadow: 0 0 0 2px var(--card);
  transform: rotate(-45deg) scaleX(0); transition: transform .12s ease;
}
.secret-toggle[aria-pressed="true"]::after { transform: rotate(-45deg) scaleX(1); }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.check input { width: auto; min-height: 0; margin: 0; accent-color: var(--green); }
.form-panel { max-width: 640px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-sunk); }
td .msg-text { white-space: normal; color: var(--muted); max-width: 320px; }

/* ---------- Badges & statuts ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: var(--r-pill); background: var(--bg-sunk); color: var(--muted); padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: capitalize; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }
.badge.green { background: var(--green-wash); color: var(--green-ink); }
.badge.dir-outbound { background: var(--green-wash); color: var(--green-ink); }
.badge.dir-inbound { background: #EAF0FB; color: #2E5AAC; }
.status-accepted, .status-pending, .status-sent { background: var(--bg-sunk); color: var(--sent); }
.status-delivered { background: #E4F5EE; color: var(--delivered); }
.status-read { background: var(--gold-wash); color: var(--gold); }
.status-approved { background: var(--green-wash); color: var(--read); }
.status-failed, .status-rejected { background: var(--failed-wash); color: var(--failed); }
.history-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.history-sync { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.history-sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.history-sync[data-state="loading"] i { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
.history-sync[data-state="success"] i { background: var(--green-bright); }
.history-sync[data-state="error"] { color: var(--failed); }
.history-sync[data-state="error"] i { background: var(--failed); }
.message-status-cell { min-width: 210px; }
.message-failure { display: block; max-width: 330px; margin-top: 6px; color: var(--failed); font-size: 11px; line-height: 1.4; }
.message-failure[hidden] { display: none; }
.badge.is-updated { animation: status-pop .35s ease both; }
.compact-empty { min-height: 220px; }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--r); padding: 13px 16px; margin-bottom: 20px; font-size: 14px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; animation: slidein .3s cubic-bezier(.2,.8,.2,1); }
.alert.success { background: var(--green-wash); border-color: color-mix(in srgb, var(--green) 30%, var(--line)); color: var(--green-ink); }
.alert.danger { background: var(--failed-wash); border-color: color-mix(in srgb, var(--failed) 28%, var(--line)); color: #8A241A; }
.alert.review-notice { background: #EEF4FF; border-color: #C8D8F2; color: #244A78; }
.alert.review-notice span { line-height: 1.45; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert strong { font-family: var(--display); }
@keyframes slidein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Empty states ---------- */
.empty { text-align: center; color: var(--muted); padding: 34px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--bg-sunk); }
.empty strong { display: block; font-family: var(--display); color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ---------- Footer ---------- */
footer { max-width: 1180px; margin: 0 auto; padding: 26px clamp(16px,4vw,24px) 40px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* ============================================================
   Guest (auth + accueil)
   ============================================================ */
body.guest {
  background:
    radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--green-bright) 14%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
.auth-shell { max-width: 460px; margin: 0 auto; padding: clamp(40px, 8vh, 88px) 20px; display: flex; flex-direction: column; gap: 22px; }
.brand.centered { justify-content: center; align-self: center; font-size: 24px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 36px); }
.auth-card h1 { font-size: 25px; margin: 0 0 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 22px; }
.auth-card form { margin: 0; }
.auth-card .muted { margin: 18px 0 0; text-align: center; font-size: 14px; }

/* Accueil */
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(28px, 6vw, 48px); }
.hero-card h1 { font-size: clamp(30px, 6vw, 46px); margin: 12px 0 14px; }
.hero-card > p { color: var(--muted); font-size: 17px; max-width: 52ch; margin: 0 0 26px; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.hero-grid > div { background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.hero-grid strong { display: block; font-family: var(--display); font-size: 15px; }
.hero-grid span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- Pages légales ---------- */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 40px); max-width: 820px; margin: 0 auto; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 30px; font-size: 19px; }
.legal p, .legal li { color: var(--muted); }
.warning { background: var(--gold-wash); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); padding: 14px 16px; border-radius: var(--r); color: #7A5A15; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .topbar { gap: 14px; overflow-x: auto; }
  .topbar nav { gap: 2px; }
  .topbar nav a { padding: 8px 9px; font-size: 13px; white-space: nowrap; }
  .userbox > span { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .configuration-grid { grid-template-columns: 1fr; }
  .activation-panel, .configuration-panel { max-width: none; }
  .rail-count { font-size: 17px; }
}
@media (max-width: 620px) {
  .message-history-table { min-width: 0; }
  .message-history-table thead { display: none; }
  .message-history-table tbody, .message-history-table tr, .message-history-table td { display: block; width: 100%; }
  .message-history-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .message-history-table tr:last-child { border-bottom: 0; }
  .message-history-table td { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 0; border-bottom: 0; white-space: normal; }
  .message-history-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .message-history-table .message-status-cell { min-width: 0; }
  .message-history-table .message-failure { grid-column: 2; max-width: none; margin-top: 2px; }
  .message-history-table .msg-text { white-space: normal; }
  .history-meta { align-items: flex-end; flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  body { font-size: 14.5px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpis strong { font-size: 25px; }
  .page-head .button { width: 100%; }
  .rail-label { font-size: 11px; }
  .secret-field--compact { max-width: 100%; }
  .activation-panel__head, .configuration-panel__head { align-items: flex-start; flex-direction: column; }
  .async-feedback { grid-template-columns: 32px minmax(0, 1fr); padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}



/* ============================================================
   Landing (.lp-*) — recette TOYOKA : titres sans lourd,
   prose serif, jaune vif, ink sombre, tricolore Congo, photos.
   ============================================================ */
body.lp {
  --ink2: #0C1219;          /* ink TOYOKA */
  --ink3: #111C16;
  --cream: #F5F7F9;         /* clair TOYOKA */
  --cream2: #E6EBEF;
  --gold2: #F5C800;         /* jaune vif TOYOKA */
  --gold-soft: #C9A400;
  --red: #DC241F;           /* rouge Congo exact */
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --prose: "Newsreader", Georgia, serif;
  background: var(--cream); color: #17212A;
  font-family: var(--prose); line-height: 1.7;
}
body.lp h1, body.lp h2, body.lp h3, body.lp .lp-kicker, body.lp .lp-eyebrow,
body.lp .lp-btn, body.lp .lp-nav-links a, body.lp .lp-brand, body.lp .pill,
body.lp .lp-foot-h, body.lp .lp-feat-n, body.lp .lp-compare-h, body.lp .lp-triple-h,
body.lp .rail-label, body.lp .lp-rail-title, body.lp .chart-x { font-family: var(--sans); }
body.lp ::selection { background: var(--gold2); color: #17212A; }

.c-gold { color: var(--gold-soft); } .c-green { color: var(--green); }
.c-red { color: var(--red); } .c-gold-soft { color: #E3C766; }

.lp-wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* Boutons */
.lp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 13px 26px; border-radius: 5px; font-weight: 800; font-size: 14.5px; letter-spacing: -.01em; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; }
.lp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.lp-btn-gold { background: var(--gold2); color: #17212A; box-shadow: 0 8px 22px rgba(245,200,0,.26); }
.lp-btn-gold:hover { background: #FFD41F; box-shadow: 0 12px 28px rgba(245,200,0,.36); }
.lp-btn-ghost { background: transparent; color: #EAF1EC; border-color: rgba(255,255,255,.24); }
.lp-btn-ghost:hover { background: rgba(255,255,255,.07); }

/* Tricolore */
.lp-tricolor, .lp-hero-bar { display: flex; height: 4px; }
.lp-tricolor span, .lp-hero-bar span { flex: 1; }
.lp-tricolor .g, .lp-hero-bar .g { background: var(--green); }
.lp-tricolor .y, .lp-hero-bar .y { background: var(--gold2); }
.lp-tricolor .r, .lp-hero-bar .r { background: var(--red); }

/* Nav */
.lp-nav-wrap { position: sticky; top: 0; z-index: 30; background: rgba(12,18,25,.97); backdrop-filter: blur(8px); }
.lp-nav { max-width: 1680px; margin: 0 auto; padding: 15px clamp(18px, 4vw, 32px); display: flex; align-items: center; gap: 24px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.lp-brand:hover { text-decoration: none; }
.lp-brand-mark { width: 34px; height: 34px; border-radius: 8px; background: radial-gradient(120% 120% at 30% 20%, var(--green-bright), var(--green) 70%); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; }
.lp-brand sup { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8496A5; }
.lp-nav-links { display: flex; gap: 24px; margin-left: auto; }
.lp-nav-links a { color: #A9BAC7; font-weight: 600; font-size: 13.5px; padding: 6px 2px; }
.lp-nav-links a:hover { color: #fff; text-decoration: none; }
/* Bouton menu mobile (hamburger) — masqué sur desktop */
.lp-nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 11px; margin-left: auto; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
.lp-nav-toggle span { display: block; height: 2px; width: 100%; background: #EAF1EC; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.lp-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Les images héros / bande remplissent leur conteneur même via <picture> */
.lp-hero-photo picture, .lp-band picture { display: block; width: 100%; height: 100%; }

/* HERO split */
.lp-hero { background: var(--ink2); color: #EAF1EC; position: relative; }
.lp-hero-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.lp-hero-split { max-width: 1840px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; min-height: 88vh; }
.lp-hero-text { padding: clamp(48px,6vw,90px) clamp(20px,4vw,56px) clamp(48px,6vw,80px); align-self: center; }
.lp-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,200,0,.7); margin-bottom: 26px; }
.lp-hero h1 { font-weight: 900; font-size: clamp(38px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 26px; color: #fff; }
.lp-hero h1 em { font-style: normal; color: var(--gold2); }
.lp-lead { font-family: var(--prose); font-size: clamp(16px, 2vw, 19px); line-height: 1.75; color: rgba(234,241,236,.82); max-width: 46ch; margin: 0 0 34px; border-left: 2px solid rgba(245,200,0,.35); padding-left: 18px; }
.lp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.lp-stats { display: grid; grid-template-columns: repeat(2, auto); gap: 26px 48px; justify-content: start; }
.lp-stats strong { display: block; font-family: var(--sans); font-weight: 900; font-size: clamp(30px, 4vw, 44px); line-height: 1; letter-spacing: -.03em; }
.lp-stats span { display: block; font-family: var(--sans); font-size: 12px; color: #8496A5; margin-top: 7px; max-width: 20ch; line-height: 1.35; }
.lp-hero-photo { position: relative; overflow: hidden; min-height: 88vh; }
.lp-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.lp-hero-photo-ov { position: absolute; inset: 0; background: linear-gradient(to right, var(--ink2) 0%, transparent 34%), linear-gradient(to top, rgba(12,18,25,.55), transparent 46%); }

/* Titres section */
.lp-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.lp-h2 { font-family: var(--sans); font-weight: 900; font-size: clamp(27px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 20px; color: #101A22; }
.lp-h2.on-dark { color: #fff; }
.lp-h2 em { font-style: normal; color: var(--gold-soft); }
.lp-h2.on-dark em { color: var(--gold2); }
.lp-prose { font-family: var(--prose); font-size: clamp(16px,1.8vw,19px); line-height: 1.72; color: #46555F; max-width: 62ch; margin: 0 0 30px; }
.lp-prose.on-dark { color: #AEBFC9; }

/* Éditorial clair */
.lp-editorial { background: var(--cream); padding: clamp(56px,8vw,108px) 0; }
.lp-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 44px; }
.pill { font-size: 12.5px; font-weight: 600; padding: 7px 15px; border-radius: 999px; border: 1px solid; }
.p-green { color: #0A7C55; border-color: #0A7C5533; background: #0A7C550D; }
.p-teal { color: #0E9F6E; border-color: #0E9F6E33; background: #0E9F6E0D; }
.p-blue { color: #2E5AAC; border-color: #2E5AAC33; background: #2E5AAC0D; }
.p-gold { color: #A8830B; border-color: #C9A40055; background: #F5C80012; }
.p-red { color: #C0392B; border-color: #C0392B33; background: #C0392B0D; }
.p-violet { color: #6A4BAF; border-color: #6A4BAF33; background: #6A4BAF0D; }
.p-ghost { color: #61726A; border-color: var(--line-strong); background: transparent; }
.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-compare-card { padding: 26px; border-radius: 12px; border: 1px solid var(--cream2); background: #fff; }
.lp-compare-card.is-new { border-color: #0A7C5533; box-shadow: 0 14px 34px rgba(10,124,85,.08); }
.lp-compare-h { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.lp-compare-q { font-family: var(--prose); font-style: italic; font-size: 19px; color: #14231C; margin: 0 0 12px; line-height: 1.4; }
.lp-compare-card p:last-child { font-family: var(--prose); font-size: 15px; color: #55655C; margin: 0; line-height: 1.6; }

/* Sombre produit */
.lp-dark { background: var(--ink3); color: #D6E2DA; padding: clamp(56px,8vw,108px) 0; }
.lp-product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); align-items: center; }
.lp-triple { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; }
.lp-triple-h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.lp-triple p:last-child { font-family: var(--prose); font-size: 15px; line-height: 1.6; color: #A5B7AC; margin: 0; }

/* Chat mock */
.lp-hero-visual { position: relative; }
.lp-chat { background: #14231A; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.45); padding: 18px; display: grid; gap: 10px; }
.lp-chat-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lp-chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(120% 120% at 30% 20%, var(--green-bright), var(--green) 70%); color: #fff; display: grid; place-items: center; font-family: var(--sans); font-weight: 800; font-size: 17px; }
.lp-chat-head strong { display: block; font-family: var(--sans); font-size: 15px; color: #fff; }
.lp-chat-status { display: flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; color: #8CA79A; }
.lp-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); animation: pulse 2.4s ease-in-out infinite; }
.lp-chat .lp-bubble { background: #1D3527; color: #DDEAE2; border-radius: 13px 13px 13px 4px; padding: 10px 13px; font-size: 14px; max-width: 84%; line-height: 1.45; }
.lp-chat .lp-bubble-out { background: var(--gold2); color: #2A2000; margin-left: auto; border-radius: 13px 13px 4px 13px; font-weight: 500; }
.lp-rail-card { background: #fff; border-radius: 14px; box-shadow: 0 24px 50px rgba(0,0,0,.4); padding: 16px 20px 20px; margin: -6px 16px 0; position: relative; }
.lp-rail-title { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }

/* Fonctions */
.lp-features-sec { background: var(--cream); padding: clamp(56px,8vw,108px) 0; }
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 12px; }
.lp-feat { background: #fff; border: 1px solid var(--cream2); border-top: 3px solid var(--accent); border-radius: 10px; padding: 26px 22px 24px; transition: transform .15s, box-shadow .15s; }
.lp-feat:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20,35,28,.09); }
.lp-feat-n { font-weight: 900; font-size: 15px; color: var(--accent); margin: 0 0 14px; letter-spacing: .02em; }
.lp-feat h3 { font-family: var(--sans); font-weight: 800; font-size: 18px; margin: 0 0 8px; color: #101A22; letter-spacing: -.02em; }
.lp-feat p { font-family: var(--prose); font-size: 14.5px; color: #55655C; margin: 0; line-height: 1.6; }

/* Bande photo pleine largeur */
.lp-band { position: relative; height: clamp(340px, 46vw, 520px); overflow: hidden; }
.lp-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.lp-band-ov { position: absolute; inset: 0; background: linear-gradient(to right, rgba(12,18,25,.92) 0%, rgba(12,18,25,.6) 42%, rgba(12,18,25,.15) 100%); }
.lp-band-quote { position: absolute; inset: 0; max-width: 1680px; margin: 0 auto; padding: 0 clamp(18px,4vw,32px); display: flex; flex-direction: column; justify-content: center; }
.lp-band-quote p { font-family: var(--prose); font-style: italic; font-size: clamp(19px, 2.8vw, 30px); line-height: 1.4; color: #fff; max-width: 20ch; margin: 0 0 14px; }
.lp-band-quote span { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); }

/* Étapes vert */
.lp-steps-sec { background: linear-gradient(160deg, #0B5A3D, #063B28); color: #E4F1EA; padding: clamp(56px,8vw,108px) 0; }
.lp-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lp-steps li { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.lp-step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--gold2); color: var(--gold2); font-family: var(--sans); font-weight: 900; font-size: 19px; margin-bottom: 16px; }
.lp-steps h3 { font-family: var(--sans); font-weight: 800; font-size: 19px; margin: 0 0 8px; color: #fff; letter-spacing: -.02em; }
.lp-steps p { font-family: var(--prose); font-size: 15.5px; color: #B7D3C5; margin: 0; line-height: 1.6; }

/* CTA */
.lp-cta { background: var(--cream); padding: clamp(48px,7vw,90px) 0 clamp(60px,9vw,120px); }
.lp-cta-card { background: radial-gradient(130% 150% at 12% 8%, #0E5A3E, var(--ink2) 72%); border-radius: 18px; padding: clamp(40px,7vw,72px); text-align: center; position: relative; overflow: hidden; }
.lp-cta-card::after { content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(245,200,0,.4); filter: blur(80px); }
.lp-cta-card > * { position: relative; }
.lp-cta-card .lp-h2 { margin-bottom: 26px; }

/* Footer */
.lp-foot { background: var(--ink2); color: #A5B7AC; max-width: none; margin: 0; padding: 0; display: block; border-top: 0; font-size: inherit; }
.lp-foot-main { max-width: 1680px; margin: 0 auto; padding: clamp(40px,6vw,64px) clamp(18px,4vw,32px) 30px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.lp-foot-brand .lp-brand { margin-bottom: 12px; }
.lp-foot-tag { font-family: var(--prose); font-size: 15px; color: #C4D3CB; margin: 0 0 14px; }
.lp-foot-attr { font-family: var(--prose); font-size: 14px; color: #8496A5; margin: 0; max-width: 38ch; }
.lp-foot-attr strong { color: #D9E4DD; }
.lp-foot-links { display: flex; flex-direction: column; gap: 11px; }
.lp-foot-h { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6E857B; margin-bottom: 3px; }
.lp-foot-links a { color: #A9BAC7; font-family: var(--sans); font-size: 14px; }
.lp-foot-links a:hover { color: #fff; }
.lp-foot-bottom { border-top: 1px solid rgba(255,255,255,.08); max-width: 1680px; margin: 0 auto; padding: 18px clamp(18px,4vw,32px); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--sans); font-size: 12.5px; color: #6E857B; }

/* Responsive */
@media (max-width: 920px) {
  .lp-hero-split { grid-template-columns: 1fr; min-height: 0; }
  .lp-hero-photo { min-height: 340px; order: -1; }
  .lp-hero-photo-ov { background: linear-gradient(to bottom, transparent 30%, var(--ink2)); }
  .lp-product { grid-template-columns: 1fr; }
  .lp-compare, .lp-features, .lp-steps { grid-template-columns: 1fr; }
  .lp-features { grid-template-columns: 1fr 1fr; }
  .lp-foot-main { grid-template-columns: 1fr 1fr; }
  .lp-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .lp-nav { gap: 12px; position: relative; }
  .lp-nav-toggle { display: inline-flex; }
  .lp-nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: rgba(12,18,25,.99); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.4);
    padding: 4px 0;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility .25s ease;
  }
  .lp-nav-links.is-open { max-height: 70vh; visibility: visible; }
  .lp-nav-links a {
    display: flex; align-items: center; min-height: 48px;
    padding: 12px clamp(18px, 4vw, 32px); font-size: 15px;
  }
  .lp-nav-links a:hover, .lp-nav-links a:focus-visible { color: #fff; background: rgba(255,255,255,.06); }
  .lp-brand sup { display: none; }
  .lp-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .lp-triple, .lp-features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { body.lp * { animation: none !important; } }

/* ============================================================
   Auth (login / register) — split éditorial marque Loba/TopCenter
   ============================================================ */
body.auth {
  --ink2: #0C1219; --gold2: #F5C800; --red: #DC241F;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --prose: "Newsreader", Georgia, serif;
  margin: 0; background: #F5F7F9; color: #17212A; font-family: var(--sans);
}
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.auth-aside { position: relative; overflow: hidden; background: var(--ink2); display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(28px,4vw,56px); }
.auth-aside-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.auth-aside-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,25,.7) 0%, rgba(12,18,25,.55) 40%, rgba(12,18,25,.92) 100%); }
.auth-tricolor { position: absolute; top: 0; left: 0; right: 0; display: flex; height: 4px; z-index: 2; }
.auth-tricolor span { flex: 1; }
.auth-tricolor .g { background: var(--green); } .auth-tricolor .y { background: var(--gold2); } .auth-tricolor .r { background: var(--red); }
.auth-aside-body, .auth-aside-foot { position: relative; z-index: 2; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; letter-spacing: -.02em; color: #fff; }
.auth-brand:hover { text-decoration: none; }
.auth-brand-mark { width: 36px; height: 36px; border-radius: 8px; background: radial-gradient(120% 120% at 30% 20%, var(--green-bright), var(--green) 70%); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 19px; }
.auth-brand sup { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8496A5; }
.auth-quote { margin: 0; max-width: 30ch; }
.auth-quote p { font-family: var(--prose); font-style: italic; font-size: clamp(19px,2.4vw,27px); line-height: 1.45; color: #fff; margin: 0 0 14px; }
.auth-quote cite { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); }
.auth-aside-foot { font-size: 13px; color: #A9BAC7; margin: 0; }
.auth-aside-foot strong { color: #fff; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px clamp(20px,4vw,40px); }
.auth-brand-mobile { display: none; color: #17212A; margin-bottom: 28px; }
.auth-brand-mobile .auth-brand-mark { font-size: 18px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.auth-form h1 { font-family: var(--sans); font-weight: 900; font-size: clamp(28px,4vw,36px); letter-spacing: -.03em; margin: 0 0 8px; color: #101A22; }
.auth-sub { font-family: var(--prose); font-size: 16px; color: #55655C; margin: 0 0 28px; }
.auth-form form { margin: 0; }
.auth-form label:not(.secret-field) { display: block; font-family: var(--sans); font-weight: 600; font-size: 13px; margin-bottom: 16px; color: #24313A; }
.auth-form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 7px; border: 1px solid #CBD5CC; border-radius: 8px; padding: 12px 14px; min-height: 46px; background: #fff; font: inherit; font-family: var(--sans); color: #17212A; transition: border-color .12s, box-shadow .12s; }
.auth-form input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,122,80,.14); }
.auth-form .secret-control input { padding-right: 54px; margin-top: 0; }
.auth-form .secret-field { margin-bottom: 16px; }
.auth-form .secret-field__label { font-family: var(--sans); font-weight: 600; font-size: 13px; color: #24313A; }
.auth-form .check { display: flex; align-items: center; gap: 9px; font-weight: 500; margin-bottom: 16px; }
.auth-form .check input { width: auto; margin: 0; accent-color: var(--green); min-height: 0; }
.auth-btn { width: 100%; min-height: 50px; border: 0; border-radius: 8px; background: var(--gold2); color: #17212A; font-family: var(--sans); font-weight: 800; font-size: 15px; cursor: pointer; margin-top: 6px; transition: background .12s, transform .12s, box-shadow .12s; box-shadow: 0 8px 20px rgba(245,200,0,.24); }
.auth-btn:hover { background: #FFD41F; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(245,200,0,.34); }
.auth-alt { font-family: var(--prose); font-size: 14.5px; color: #55655C; margin: 20px 0 0; text-align: center; }
body.auth .alert { width: 100%; max-width: 380px; border-radius: 10px; padding: 12px 15px; margin-bottom: 20px; font-family: var(--sans); font-size: 14px; }
body.auth .alert.danger { background: #FBE8E6; border: 1px solid #DC241F33; color: #8A241A; }
.auth-main .public-footer { width: 100%; max-width: 380px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #E6EBEF; font-family: var(--sans); font-size: 12px; color: #8496A5; text-align: center; }
.auth-main .public-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-bottom: 10px; }
.auth-main .public-footer nav a { color: #55655C; }
.auth-main .public-footer nav a:hover { color: #17212A; }
.auth-main .public-footer p { margin: 3px 0; }
@media (max-width: 820px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-brand-mobile { display: inline-flex; }
  .auth-main { justify-content: flex-start; padding-top: clamp(40px,10vh,90px); }
}

/* Marque : filet tricolore sous la topbar (pages internes) */
.topbar { position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(to right, var(--green) 0 33.33%, #F5C800 33.33% 66.66%, #DC241F 66.66% 100%); opacity: .9; }
