/* ─────────────────────────────────────────────────────────
   Météo edv.fr — refonte UI (Cloud Design)
   Sky + amber, mobile-first, light/dark, OKLCH
   ───────────────────────────────────────────────────────── */

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text",
                 system-ui, "Helvetica Neue", sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                    system-ui, "Helvetica Neue", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Menlo", "Roboto Mono", "Consolas", monospace;

    /* Échelle ciel */
    --sky-50:  oklch(98%   0.010 230);
    --sky-100: oklch(95%   0.020 230);
    --sky-200: oklch(88%   0.050 230);
    --sky-300: oklch(78%   0.090 230);
    --sky-400: oklch(68%   0.120 235);
    --sky-500: oklch(58%   0.140 240);
    --sky-600: oklch(48%   0.130 245);
    --sky-700: oklch(36%   0.110 250);
    --sky-800: oklch(24%   0.075 255);
    --sky-900: oklch(15%   0.050 260);

    /* Ambre chaud */
    --amber-200: oklch(92% 0.060 75);
    --amber-300: oklch(85% 0.110 70);
    --amber-400: oklch(78% 0.150 65);
    --amber-500: oklch(72% 0.170 60);
    --amber-600: oklch(60% 0.160 55);
    --amber-700: oklch(45% 0.120 50);

    --cream-50:  oklch(99%   0.005 80);
    --cream-100: oklch(97%   0.010 80);
    --cream-200: oklch(94%   0.015 75);
    --cream-300: oklch(88%   0.020 75);

    --ink-900: oklch(20% 0.020 250);
    --ink-800: oklch(28% 0.020 250);
    --ink-700: oklch(40% 0.020 250);
    --ink-600: oklch(50% 0.020 250);
    --ink-500: oklch(58% 0.015 250);
    --ink-400: oklch(68% 0.012 250);
    --ink-300: oklch(80% 0.010 250);
    --ink-200: oklch(90% 0.008 250);

    /* Sémantique — clair par défaut */
    --bg:        var(--cream-50);
    --bg-tinted: oklch(98% 0.012 230);
    --text:      var(--ink-900);
    --text-soft: var(--ink-700);
    --text-mute: var(--ink-500);
    --muted:     var(--text-mute); /* alias rétrocompat */
    --border:    oklch(92% 0.012 250);
    --border-strong: oklch(85% 0.015 250);
    --card:      #ffffff;
    --card-soft: oklch(98% 0.008 230);
    --soft:      var(--card-soft);
    --soft-2:    oklch(96% 0.012 230);
    --primary:   var(--sky-500);
    --primary-ink: oklch(35% 0.10 245);
    --accent:    var(--amber-500);
    --warn:      var(--amber-500);
    --warn-bg:   oklch(95% 0.06 75);
    --error:     oklch(60% 0.20 25);
    --error-bg:  oklch(96% 0.04 25);
    --ok:        oklch(58% 0.13 150);
    --ok-bg:     oklch(95% 0.05 150);

    /* Ombres atmosphériques */
    --shadow-sm: 0 1px 2px oklch(40% 0.05 250 / .06),
                 0 0.5px 0 oklch(40% 0.05 250 / .04);
    --shadow:    var(--shadow-sm);
    --shadow-md: 0 1px 2px oklch(40% 0.05 250 / .04),
                 0 8px 24px -8px oklch(40% 0.05 250 / .12);
    --shadow-lg: 0 1px 2px oklch(40% 0.05 250 / .04),
                 0 24px 48px -16px oklch(40% 0.05 250 / .18);
    --shadow-glow-sky:   0 8px 32px -8px oklch(58% 0.14 240 / .35);
    --shadow-glow-amber: 0 8px 32px -8px oklch(72% 0.17 60 / .35);

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 28px;
}

:root[data-theme="dark"] {
    --bg:        var(--sky-900);
    --bg-tinted: oklch(18% 0.04 255);
    --text:      var(--cream-100);
    --text-soft: oklch(82% 0.015 240);
    --text-mute: oklch(65% 0.02 250);
    --muted:     var(--text-mute);
    --border:    oklch(28% 0.04 255);
    --border-strong: oklch(38% 0.05 255);
    --card:      oklch(22% 0.04 255);
    --card-soft: oklch(20% 0.04 255);
    --soft:      var(--card-soft);
    --soft-2:    oklch(24% 0.04 255);
    --primary:   var(--sky-400);
    --primary-ink: oklch(85% 0.08 240);
    --warn-bg:   oklch(28% 0.06 60);
    --error-bg:  oklch(28% 0.10 25);
    --ok-bg:     oklch(28% 0.08 150);

    --shadow-sm: 0 1px 0 oklch(100% 0 0 / .03);
    --shadow-md: 0 1px 0 oklch(100% 0 0 / .03),
                 0 8px 24px -8px #000;
    --shadow-lg: 0 1px 0 oklch(100% 0 0 / .04),
                 0 24px 48px -16px #000;
}
:root[data-theme="dark"] body { color-scheme: dark; }

/* Verdict — couleurs d'ambiance */
:root {
    --v-no-from:    oklch(88% 0.090 75);
    --v-no-to:      oklch(96% 0.030 85);
    --v-no-ink:     oklch(32% 0.090 55);
    --v-no-glyph:   oklch(70% 0.180 65);

    --v-maybe-from: oklch(78% 0.040 230);
    --v-maybe-to:   oklch(94% 0.015 230);
    --v-maybe-ink:  oklch(28% 0.040 245);
    --v-maybe-glyph: oklch(55% 0.060 245);

    --v-yes-from:   oklch(54% 0.140 240);
    --v-yes-to:     oklch(76% 0.080 230);
    --v-yes-ink:    oklch(98% 0.010 230);
    --v-yes-glyph:  oklch(98% 0.010 230);

    --v-soaked-from: oklch(26% 0.080 265);
    --v-soaked-to:   oklch(42% 0.130 280);
    --v-soaked-ink:  oklch(98% 0.010 230);
    --v-soaked-glyph: oklch(85% 0.150 80);
}

/* ──────────────────────────────────────────
   BASE
   ────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    padding: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; }

a { color: var(--primary-ink); }
a:hover { text-decoration: underline; }

/* ──────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────── */
.wrap { max-width: 720px; margin: 0 auto; }

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}
.topbar h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.topbar-right {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 18px;
    line-height: 1;
}
.topbar-right .btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 120ms;
}
.topbar-right .btn-link:hover {
    background: var(--soft, rgba(0,0,0,0.06));
    text-decoration: none;
}
.topbar-right .muted {
    font-size: 12px;
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid var(--border, rgba(0,0,0,0.12));
}

.card {
    max-width: 480px;
    margin: 36px auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
}
.wrap .card {
    max-width: none;
    margin: 0 0 14px 0;
    padding: 22px;
}

/* Page d'inscription : 2 colonnes pitch (gauche) + formulaire (droite). */
body.register-page { padding: 24px 16px; }
.register-wrap {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    align-items: start;
}
@media (max-width: 820px) {
    .register-wrap { grid-template-columns: 1fr; gap: 22px; }
}
.register-pitch {
    padding-top: 12px;
}
.register-pitch-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 14px;
}
.register-pitch h1 {
    font-family: var(--font-display);
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 14px;
    text-wrap: balance;
}
@media (max-width: 820px) {
    .register-pitch h1 { font-size: 28px; }
}
.register-pitch-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-soft);
    max-width: 52ch;
    margin: 0 0 22px;
}
.register-pitch-points {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.register-pitch-points li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-soft);
}
.register-pitch-points .pp-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--soft);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}
.register-pitch-points strong { color: var(--text); }
.register-pitch-why {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 8px;
}
.register-pitch-why > summary {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    list-style: none;
}
.register-pitch-why > summary::-webkit-details-marker { display: none; }
.register-pitch-why > summary::marker { content: ''; }
.register-pitch-why > summary::before { content: '▸ '; }
.register-pitch-why[open] > summary::before { content: '▾ '; }
.register-pitch-why p { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); margin: 10px 0 0; max-width: 52ch; }

.register-form-card {
    max-width: none;
    margin: 0;
    position: sticky;
    top: 24px;
}
@media (max-width: 820px) {
    .register-form-card { position: static; }
}
.register-trust {
    margin: 14px 0 0;
    font-size: 11.5px;
    color: var(--text-mute);
    line-height: 1.5;
    text-align: center;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

h1 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    color: var(--text);
    font-size: 24px;
    letter-spacing: -0.025em;
}
h2 {
    margin: 0 0 14px;
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-family: var(--font-mono);
    font-weight: 600;
}
.lead { color: var(--text-soft); margin: 0 0 18px; line-height: 1.55; }
.muted, .text-mute { color: var(--text-mute); }

.btn-link {
    color: var(--primary-ink);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
}
.btn-link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────
   FORM
   ────────────────────────────────────────── */
label {
    display: block;
    font-size: 11px;
    color: var(--text-mute);
    margin: 12px 0 6px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
label.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
    font-weight: normal;
}

input[type=email],
input[type=password],
input[type=text],
input[type=number],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--card);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px oklch(58% 0.14 240 / .15);
}
:root[data-theme="dark"] select option {
    background: var(--card);
    color: var(--text);
}

button, .btn {
    appearance: none;
    background: linear-gradient(180deg, oklch(62% 0.14 240), oklch(50% 0.13 245));
    color: #fff;
    border: 0;
    border-radius: var(--r-sm);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    transition: filter .15s ease, transform .1s ease;
}
button:hover, .btn:hover { filter: brightness(1.05); }
button:active, .btn:active { transform: translateY(1px); }

.btn-warn {
    background: linear-gradient(180deg, var(--amber-500), var(--amber-600));
}
.btn-mini {
    background: var(--soft);
    color: var(--text-soft);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--r-sm);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    display: inline-block;
    line-height: 1.3;
}
.btn-mini:hover { background: var(--soft-2); }
.btn-mini.btn-danger { background: var(--error-bg); color: var(--error); border-color: oklch(85% 0.08 25); }

/* ──────────────────────────────────────────
   FLASH / ERROR
   ────────────────────────────────────────── */
.error {
    background: var(--error-bg);
    color: var(--error);
    padding: 10px 14px;
    border-radius: var(--r-sm);
    margin: 12px 0;
    border: 1px solid oklch(85% 0.10 25);
    font-size: 14px;
}
.flash {
    background: var(--ok-bg);
    color: var(--ok);
    padding: 10px 14px;
    border-radius: var(--r-sm);
    margin: 12px 0;
    border: 1px solid oklch(85% 0.10 150);
    font-size: 14px;
}

/* ──────────────────────────────────────────
   VERDICT — composant central
   ────────────────────────────────────────── */
.verdict {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    padding: 36px 22px;
    color: var(--ink-900);
    background: linear-gradient(165deg, var(--v-no-from) 0%, var(--v-no-to) 100%);
    box-shadow: var(--shadow-md);
    user-select: none;
}
.verdict-no     { color: var(--v-no-ink);     background: linear-gradient(165deg, var(--v-no-from) 0%, var(--v-no-to) 100%); }
.verdict-maybe  { color: var(--v-maybe-ink);  background: linear-gradient(165deg, var(--v-maybe-from) 0%, var(--v-maybe-to) 100%); }
.verdict-yes    { color: var(--v-yes-ink);    background: linear-gradient(165deg, var(--v-yes-from) 0%, var(--v-yes-to) 100%); box-shadow: var(--shadow-glow-sky); }
.verdict-soaked { color: var(--v-soaked-ink); background: linear-gradient(165deg, var(--v-soaked-from) 0%, var(--v-soaked-to) 100%); box-shadow: var(--shadow-md); }

.verdict-lg { padding: 56px 28px; }
.verdict-md { padding: 36px 22px; }
.verdict-sm { padding: 24px 18px; }

.verdict-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}
.verdict-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 128px;
    letter-spacing: -0.04em;
    line-height: 0.92;
    margin: 0 0 14px;
    text-wrap: balance;
    position: relative;
    z-index: 2;
}
.verdict-md .verdict-word { font-size: 88px; }
.verdict-sm .verdict-word { font-size: 56px; margin-bottom: 6px; }
.verdict-sub {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.92;
    margin: 0 0 10px;
    text-wrap: balance;
    position: relative;
    z-index: 2;
}
.verdict-md .verdict-sub { font-size: 17px; }
.verdict-sm .verdict-sub { font-size: 14px; margin-bottom: 6px; }
.verdict-helper {
    font-size: 14px;
    opacity: 0.72;
    text-wrap: pretty;
    max-width: 32ch;
    position: relative;
    z-index: 2;
}
.verdict-sm .verdict-helper { font-size: 12px; }
.verdict-glyph {
    position: absolute;
    top: 28px; right: 28px;
    font-size: 80px;
    line-height: 1;
    z-index: 2;
}
.verdict-md .verdict-glyph { font-size: 56px; top: 20px; right: 22px; }
.verdict-sm .verdict-glyph { font-size: 36px; top: 14px; right: 18px; }
.verdict-yes .verdict-glyph,
.verdict-soaked .verdict-glyph { filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.verdict-pill {
    position: absolute;
    bottom: 22px; right: 28px;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    opacity: 0.72;
}

/* Sun halo (verdict NO) */
.verdict-sun-halo {
    position: absolute;
    top: -30%; right: -15%;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle,
        oklch(85% 0.18 75 / .7) 0%,
        oklch(80% 0.16 70 / .25) 40%,
        transparent 70%);
    filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

/* Rain curtain — gouttes animées CSS-only */
.verdict-rain {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.verdict-rain span {
    position: absolute;
    top: -20px;
    width: 1.2px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.55));
    transform: skewX(-12deg);
    animation: meteo-rain linear infinite;
}
.verdict-soaked .verdict-rain span {
    background: linear-gradient(180deg, transparent, rgba(150,170,210,.6));
}
@keyframes meteo-rain {
    0%   { transform: translateY(-30px) skewX(-12deg); }
    100% { transform: translateY(120vh) skewX(-12deg); }
}

/* ──────────────────────────────────────────
   TIMELINE 24h
   ────────────────────────────────────────── */
.timeline {
    user-select: none;
}
.timeline-bars {
    position: relative;
    height: 96px;
    background: linear-gradient(180deg, oklch(98% 0.005 230) 0%, oklch(95% 0.012 230) 100%);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 10px 8px 18px;
    overflow: hidden;
}
:root[data-theme="dark"] .timeline-bars {
    background: linear-gradient(180deg, oklch(22% 0.04 255), oklch(18% 0.04 255));
}
.timeline-grid {
    position: absolute;
    inset: 10px 8px 18px;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    align-items: end;
}
.timeline-bar {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.timeline-bar > i {
    display: block;
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height .3s ease;
}
.timeline-bar.is-current::after {
    content: "";
    position: absolute;
    bottom: -16px; left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 100%;
    background: var(--primary-ink);
    opacity: 0.4;
}
.timeline-now-pill {
    position: absolute;
    bottom: 4px;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-ink);
    background: var(--card);
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid oklch(80% 0.06 240);
    white-space: nowrap;
    z-index: 3;
}
.timeline-axis {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
}
.timeline-axis div { text-align: center; }
.timeline-axis div:first-child { text-align: left; }
.timeline-windows {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.timeline-window-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--card-soft);
    border: 1px solid oklch(88% 0.04 235);
    font-size: 12px;
    color: var(--text-soft);
    font-family: var(--font-mono);
}
:root[data-theme="dark"] .timeline-window-chip {
    background: var(--card);
    border-color: var(--border);
}
.timeline-window-chip i {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    display: inline-block;
}

/* ──────────────────────────────────────────
   ALERT CHIPS
   ────────────────────────────────────────── */
.alert-list {
    list-style: none;
    padding: 0; margin: 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alert-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, oklch(96% 0.06 80) 0%, oklch(94% 0.04 75) 100%);
    border: 1px solid oklch(85% 0.10 65);
    border-radius: var(--r-md);
    box-shadow: 0 1px 0 oklch(100% 0 0 / .5) inset;
}
:root[data-theme="dark"] .alert-chip {
    background: linear-gradient(180deg, oklch(28% 0.06 60), oklch(24% 0.05 55));
    border-color: oklch(40% 0.08 60);
}
.alert-chip-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: oklch(98% 0.04 80);
    border: 1px solid oklch(88% 0.08 70);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
:root[data-theme="dark"] .alert-chip-icon {
    background: oklch(32% 0.05 60);
    border-color: oklch(45% 0.08 65);
}
.alert-chip-label {
    font-weight: 600;
    font-size: 14px;
    color: oklch(35% 0.10 50);
    letter-spacing: -0.01em;
}
:root[data-theme="dark"] .alert-chip-label { color: oklch(85% 0.10 70); }
.alert-chip-detail {
    font-size: 12px;
    color: oklch(45% 0.07 55);
    margin-top: 1px;
}
:root[data-theme="dark"] .alert-chip-detail { color: oklch(75% 0.06 70); }
.alert-chip-body { flex: 1; min-width: 0; }

/* ──────────────────────────────────────────
   STAT GRID
   ────────────────────────────────────────── */
.stat-grid {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}
.stat-grid > div {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
.stat-grid > div:nth-child(2n+1) { border-right: 1px solid var(--border); }
.stat-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.stat-grid .k {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 5px;
    display: block;
}
.stat-grid .v {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    display: block;
}
.stat-grid .sub {
    font-size: 11px;
    color: var(--text-mute);
    margin-top: 2px;
    display: block;
}

/* ──────────────────────────────────────────
   TOMORROW CARD
   ────────────────────────────────────────── */
.tomorrow-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.tomorrow-glyph {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(160deg, oklch(96% 0.012 230), oklch(98% 0.005 230));
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
:root[data-theme="dark"] .tomorrow-glyph {
    background: linear-gradient(160deg, oklch(24% 0.04 255), oklch(20% 0.04 255));
}
.tomorrow-body { flex: 1; min-width: 0; }
.tomorrow-tag {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.tomorrow-line { font-size: 16px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.tomorrow-line .tomorrow-word-no     { color: oklch(70% 0.14 70); }
.tomorrow-line .tomorrow-word-maybe  { color: oklch(60% 0.10 235); }
.tomorrow-line .tomorrow-word-yes    { color: oklch(58% 0.14 240); }
.tomorrow-line .tomorrow-word-soaked { color: oklch(48% 0.13 270); }
.tomorrow-line .tomorrow-sub { color: var(--text-mute); font-weight: 400; }
.tomorrow-tmp {
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
}

/* ──────────────────────────────────────────
   SECTION LABEL
   ────────────────────────────────────────── */
.section-label {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 18px 0 8px;
}

/* ──────────────────────────────────────────
   FORECAST PAGE
   ────────────────────────────────────────── */
.forecast-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 4px 18px;
    user-select: none;
}
.forecast-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.forecast-tag .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
}
.forecast-tag .label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--text-mute);
    text-transform: uppercase;
    font-weight: 600;
}
.forecast-city { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.forecast-meta { font-size: 13px; color: var(--text-mute); margin-top: 2px; }
.forecast-refresh {
    appearance: none;
    border: 1px solid var(--border-strong);
    background: var(--card);
    border-radius: 999px;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--text-soft);
    font-size: 16px;
    margin: 0;
}
.forecast-footer {
    margin-top: auto;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-mute);
    letter-spacing: 0.06em;
    display: flex;
    justify-content: space-between;
}

/* ──────────────────────────────────────────
   LANDING
   ────────────────────────────────────────── */
body.landing { padding: 0; background: var(--bg); }
.landing-hero {
    position: relative;
    padding: 48px 24px 56px;
    overflow: hidden;
    background: linear-gradient(165deg, var(--v-yes-from) 0%, var(--v-yes-to) 100%);
    color: var(--v-yes-ink);
}
.hero-controls {
    position: absolute;
    top: 18px; right: 18px;
    z-index: 4;
    display: flex;
    gap: 8px;
    align-items: center;
}
.hero-controls .lang-flag {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.hero-controls .lang-flag:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-1px);
    text-decoration: none;
}
.landing-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 0 auto;
}
.landing-hero-inner.has-widget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
}
@media (max-width: 820px) {
    .landing-hero-inner.has-widget {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
.landing-hero-text { min-width: 0; }

/* Widget géoloc IP en haut à droite du hero (carte légèrement décollée du fond bleu). */
.hero-geo-widget {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-self: end;
    width: 100%;
    max-width: 280px;
}
.hero-geo-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 8px;
}
.hero-geo-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-mute);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.hero-geo-meta span:first-child {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-sans, system-ui);
}
@media (max-width: 820px) {
    .hero-geo-widget {
        justify-self: stretch;
        max-width: none;
    }
}
.landing-hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 600;
    margin-bottom: 18px;
}
.landing-hero-tag .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; opacity: 0.7;
}
.landing-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    color: inherit;
    font-size: 56px; font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
    max-width: 22ch;
}
.landing-hero p.lead {
    margin: 14px 0 0;
    max-width: 62ch;
    font-size: 18px;
    opacity: 0.92;
    line-height: 1.45;
    color: inherit;
}
.landing-hero-cta {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.landing-hero-cta .btn-primary {
    appearance: none;
    border: 0;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    background: #fff;
    color: var(--primary-ink);
    cursor: pointer;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,.25);
    margin: 0;
    text-decoration: none;
    display: inline-block;
}
.landing-hero-cta .btn-ghost {
    appearance: none;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255,255,255,.5);
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0;
}
.landing-hero-features {
    margin-top: 28px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    opacity: 0.78;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.landing-main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 40px 24px 0;
}
.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 32px;
}
@media (max-width: 720px) {
    .landing-feature-grid { grid-template-columns: 1fr; }
    .landing-hero h1 { font-size: 40px; }
    .landing-hero { padding: 36px 20px 44px; }
}
.feature {
    padding: 20px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: left;
}
.feature-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: oklch(96% 0.02 230);
    border: 1px solid oklch(88% 0.04 235);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
:root[data-theme="dark"] .feature-icon { background: var(--soft); border-color: var(--border); }
.feature h3 {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin: 0 0 4px;
}
.feature p { font-size: 14px; color: var(--text-soft); line-height: 1.5; margin: 0; }

.landing-channels {
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}
.landing-channels-head {
    margin: 0 0 18px;
    text-align: left;
}
.landing-channels-head .label-stamp {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 8px;
}
.landing-channels-head h2 {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 6px;
    text-transform: none;
}
.landing-channels-head p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
    max-width: 56ch;
    margin: 0;
}

.landing-sample {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: center;
    padding: 32px 0;
}
@media (max-width: 720px) {
    .landing-sample { grid-template-columns: 1fr; gap: 22px; }
}
.landing-sample-text h2 {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
    line-height: 1.05;
    text-transform: none;
    margin: 0 0 12px;
}
.landing-sample-text p { font-size: 15px; color: var(--text-soft); line-height: 1.55; max-width: 50ch; margin: 0 0 12px; }
.landing-sample-mock {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-md);
    transform: rotate(.4deg);
}
.landing-sample-mock .mock-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.landing-login-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px 0 40px;
}
@media (max-width: 720px) {
    .landing-login-row { grid-template-columns: 1fr; }
}
.landing-login-card {
    background: linear-gradient(165deg, oklch(22% 0.05 250), oklch(15% 0.04 255));
    color: #fff;
    padding: 24px 22px;
    border-radius: var(--r-md);
}
.landing-login-card label {
    color: rgba(255,255,255,0.7);
}
.landing-login-card input {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,.15);
}
.landing-login-card input:focus {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,.1);
}
.landing-login-card .label-stamp {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.65);
}
.landing-signup-card {
    background: oklch(96% 0.02 230);
    border: 1px solid oklch(88% 0.04 235);
    padding: 24px 22px;
    border-radius: var(--r-md);
}
:root[data-theme="dark"] .landing-signup-card {
    background: var(--card);
    border-color: var(--border);
}
.landing-signup-card .label-stamp {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: oklch(45% 0.08 245);
    margin-bottom: 14px;
}
:root[data-theme="dark"] .landing-signup-card .label-stamp { color: var(--primary-ink); }

.landing-footer {
    margin-top: 24px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.04em;
}

/* ──────────────────────────────────────────
   ADMIN / TABLES
   ────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}
.stat {
    background: var(--soft);
    border-radius: var(--r-sm);
    padding: 14px 12px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-top: 4px;
}

.table-wrap { overflow-x: auto; }
.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.users-table th, .users-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.users-table thead th {
    background: var(--soft);
    color: var(--text-mute);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: var(--font-mono);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}
.users-table tbody tr:hover { background: var(--soft); }
.users-table small.muted { font-size: 11px; }

/* Sous 720px : tables en cartes empilées (pas de scroll horizontal). */
@media (max-width: 720px) {
    .table-wrap { overflow-x: visible; }
    .users-table,
    .users-table thead,
    .users-table tbody,
    .users-table tr,
    .users-table th,
    .users-table td { display: block; width: 100%; }
    .users-table thead { display: none; }
    .users-table tbody tr {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--r-sm, 10px);
        margin-bottom: 10px;
        padding: 10px 12px;
    }
    .users-table tbody tr:hover { background: var(--card); }
    .users-table td {
        border: none;
        padding: 4px 0;
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 10px;
        align-items: baseline;
    }
    .users-table td::before {
        content: attr(data-label);
        font-family: var(--font-mono);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        color: var(--text-mute);
    }
    .users-table td.actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
    .users-table td.actions::before { display: none; }
}

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 4px;
    font-weight: 600;
}
.tag-super { background: oklch(92% 0.06 340); color: oklch(38% 0.15 340); }
.tag-admin { background: oklch(92% 0.06 290); color: oklch(40% 0.15 290); }
.tag-ok    { background: var(--ok-bg); color: var(--ok); }
.tag-warn  { background: var(--warn-bg); color: var(--amber-700); }
.tag-off   { background: var(--error-bg); color: var(--error); }

.actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-start; }
form.inline { display: inline-block; margin: 0; padding: 0; }

.edit-card hr { margin: 24px 0 16px; border: 0; border-top: 1px solid var(--border); }
.edit-form .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

/* ──────────────────────────────────────────
   DASHBOARD spécifiques
   ────────────────────────────────────────── */
.search { display: flex; gap: 8px; margin: 12px 0; }
.search input { flex: 1; }
.search button { margin: 0; }
.results { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.result-pick {
    width: 100%;
    text-align: left;
    background: var(--soft);
    color: var(--text);
    border: 1px solid var(--border);
    margin-top: 0;
}
.result-pick:hover { background: var(--soft-2); filter: none; }
.schedule { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.schedule label { margin: 0; flex: 0 0 auto; }
.schedule label.checkbox { flex: 1 1 100%; margin-top: 6px; }
.schedule button { margin: 0; }
.current-city {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 10px 12px;
    margin: 0 0 12px;
    font-size: 15px;
}
.kvs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}
.kvs > div { background: var(--soft); border-radius: var(--r-sm); padding: 8px 10px; }
.kvs .k { display: block; font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.kvs .v { font-weight: bold; }
.alerts {
    background: var(--warn-bg);
    border-left: 4px solid var(--warn);
    padding: 10px 14px 10px 32px;
    border-radius: var(--r-sm);
    margin: 10px 0;
    color: var(--amber-700);
}
:root[data-theme="dark"] .alerts { color: oklch(85% 0.10 70); }

.links-list { padding: 0; margin: 0; list-style: none; }
.links-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.links-list li:last-child { border-bottom: 0; }

/* ──────────────────────────────────────────
   DASHBOARD — sticky topbar + section cards
   ────────────────────────────────────────── */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: oklch(99% 0.008 230 / .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 5;
    margin: -16px -16px 16px;
}
:root[data-theme="dark"] .dash-topbar { background: oklch(15% 0.04 260 / .85); }

.dash-topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}
.dash-topbar-brand .logo {
    width: 26px; height: 26px;
    border-radius: 8px;
    background: linear-gradient(160deg, oklch(58% 0.14 240), oklch(48% 0.13 245));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}
.dash-topbar-brand .name {
    font-weight: 700; font-size: 15px;
    letter-spacing: -0.01em;
}
.dash-topbar-brand .name span { color: var(--text-mute); font-weight: 400; }

.dash-topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 999px;
    width: 30px; height: 30px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-soft);
    margin: 0;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
    padding: 0;
}
.icon-btn:hover { background: var(--soft); }

.email-pill {
    font-size: 11px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    padding: 4px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Topbar dashboard : sur petit écran, masquer l'email (redondant pour l'utilisateur). */
@media (max-width: 600px) {
    .email-pill { display: none; }
    .dash-topbar { padding: 10px 14px; }
    .dash-topbar-brand .name span { display: none; } /* masque ".edv.fr" */
}

/* Topbar admin : sur petit écran, autoriser le wrap et alléger les libellés. */
@media (max-width: 720px) {
    .topbar { flex-wrap: wrap; gap: 8px; row-gap: 10px; }
    .topbar h1 { font-size: 18px; flex: 1 1 auto; }
    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px 14px;
        font-size: 13px;
        justify-content: flex-end;
    }
    .topbar-right .muted { display: none; } /* email redondant */
}

.section-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}
.section-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

/* Carte météo en haut du dashboard : accent léger pour bien la repérer. */
.forecast-card {
    background: linear-gradient(180deg, var(--card) 0%, oklch(98% 0.012 235) 100%);
    border-color: oklch(85% 0.05 235);
}
:root[data-theme="dark"] .forecast-card {
    background: linear-gradient(180deg, var(--card) 0%, oklch(18% 0.04 250) 100%);
    border-color: oklch(35% 0.06 245);
}
.forecast-card .section-num {
    background: linear-gradient(160deg, oklch(70% 0.14 240), oklch(58% 0.13 245));
    color: #fff;
    border-color: oklch(60% 0.13 245);
    font-size: 14px;
}

/* Sections pliables (details / summary) — apparence identique à .section-card. */
details.section-toggle { padding: 0; }
details.section-toggle > summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    margin-bottom: 0;
    border-radius: var(--r-md);
    user-select: none;
}
details.section-toggle > summary::-webkit-details-marker { display: none; }
details.section-toggle > summary::marker { content: ''; }
details.section-toggle > summary:hover { background: var(--soft); }
details.section-toggle[open] > summary { border-bottom: 1px solid var(--border); border-radius: var(--r-md) var(--r-md) 0 0; }
details.section-toggle .section-toggle-body {
    padding: 16px 18px 20px;
}
.section-summary-value {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}
.section-chevron {
    color: var(--text-mute);
    font-size: 12px;
    transition: transform 0.18s ease;
    margin-left: 6px;
}
details.section-toggle[open] > summary .section-chevron { transform: rotate(180deg); }
@media (max-width: 480px) {
    .section-summary-value { display: none; }
}
.section-num {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: linear-gradient(160deg, oklch(94% 0.05 230), oklch(88% 0.08 235));
    color: var(--primary-ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 700;
    border: 1px solid oklch(85% 0.06 235);
    flex-shrink: 0;
}
:root[data-theme="dark"] .section-num {
    background: linear-gradient(160deg, oklch(28% 0.06 245), oklch(24% 0.06 250));
    color: oklch(85% 0.10 240);
    border-color: oklch(38% 0.07 245);
}
.section-num.amber {
    background: linear-gradient(160deg, oklch(94% 0.10 75), oklch(88% 0.13 70));
    color: oklch(35% 0.12 55);
    border-color: oklch(85% 0.10 65);
}
:root[data-theme="dark"] .section-num.amber {
    background: linear-gradient(160deg, oklch(38% 0.08 60), oklch(32% 0.08 55));
    color: oklch(85% 0.12 70);
    border-color: oklch(48% 0.09 60);
}
.section-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-family: var(--font-mono);
}
.section-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-mute);
    text-wrap: pretty;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 6px;
}

.help-text {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 4px;
}

/* Pretty radio chips for threshold */
.radio-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.radio-chips label {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-soft);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    background: var(--card);
}
.radio-chips label:has(input:checked) {
    background: var(--primary-ink);
    color: #fff;
    border-color: var(--primary-ink);
}
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }

/* Toggle switch (checkbox stylé) */
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
    font-weight: normal;
    font-size: 14px;
    color: var(--text);
    margin: 8px 0;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track {
    width: 38px; height: 22px;
    background: var(--border-strong);
    border-radius: 999px;
    position: relative;
    transition: background .15s ease;
    flex-shrink: 0;
}
.toggle .track::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .15s ease;
}
.toggle input:checked + .track { background: var(--primary); }
.toggle input:checked + .track::after { transform: translateX(16px); }

/* ──────────────────────────────────────────
   ADMIN SUBSCRIBERS — cards (remplace l'ancien tableau 9 colonnes)
   ────────────────────────────────────────── */
.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-top: 12px;
}
.sub-card {
    background: var(--card, #fff);
    border: 1px solid var(--border, rgba(0,0,0,0.12));
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.sub-card__id { min-width: 0; flex: 1; }
.sub-card__email {
    display: block;
    font-size: 14px;
    word-break: break-all;
    line-height: 1.3;
}
.sub-card__name { font-size: 12px; color: var(--text-mute); }
.sub-card__where {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
    align-items: baseline;
}
.sub-card__tz { font-size: 11px; }
.sub-card__channels {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sub-card__channels li {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: default;
}
.sub-card__channels li.on {
    background: rgba(34,197,94,0.10);
    color: var(--ok, #16a34a);
    border-color: rgba(34,197,94,0.25);
}
.sub-card__channels li.off {
    background: var(--soft, rgba(0,0,0,0.04));
    color: var(--text-mute, #888);
    opacity: 0.7;
}
.sub-card__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    font-size: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--border, rgba(0,0,0,0.10));
}
.sub-card__stat {
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--soft, rgba(0,0,0,0.04));
}
.sub-card__stat.badge-ok   { background: rgba(34,197,94,0.10);  color: var(--ok, #16a34a); }
.sub-card__stat.badge-warn { background: rgba(234,179,8,0.12);  color: #b45309; }
.sub-card__stat.badge-err  { background: rgba(239,68,68,0.12);  color: var(--error, #dc2626); }
.sub-card__meta { margin-left: auto; color: var(--text-mute); font-size: 11px; }

/* Badges du header (statut compte) */
.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
}
.badge-ok   { background: rgba(34,197,94,0.12); color: var(--ok, #16a34a); }
.badge-warn { background: rgba(234,179,8,0.14); color: #b45309; }
.badge-off  { background: var(--soft, rgba(0,0,0,0.05)); color: var(--text-mute); }
.badge-err  { background: rgba(239,68,68,0.12); color: var(--error, #dc2626); }

@media (max-width: 420px) {
    .subs-grid { grid-template-columns: 1fr; }
    .sub-card__meta { margin-left: 0; width: 100%; }
}
