/* ==========================================================================
   Thème clair partagé — admin & crédits
   Garde la grille de points animée (#gridCanvas, base.html) en points sombres :
   la page doit définir window.GRID_DOT_RGB = '15, 23, 42'.
   ========================================================================== */

:root {
    --l-bg: #f6f6f4;
    --l-surface: #ffffff;
    --l-border: #e4e4e0;
    --l-border-strong: #cfcfc9;
    --l-text: #16181d;
    --l-muted: #5f6470;
    --l-faint: #8a8f99;
    --l-accent: #0d6bc9;
    --l-orange: #ec6a11;
    --l-ok: #15803d;
    --l-ok-bg: #ecfdf3;
    --l-warn: #b45309;
    --l-warn-bg: #fff7e6;
    --l-bad: #b91c1c;
    --l-bad-bg: #fef2f2;
    --l-mono: 'JetBrains Mono', ui-monospace, monospace;
    --l-radius: 12px;
}

body {
    background: var(--l-bg) !important;
    color: var(--l-text) !important;
}

.bg-orb { display: none !important; }

#gridCanvas {
    border-color: rgba(15, 23, 42, 0.06) !important;
    opacity: 0.35 !important;
}

.l-wrap {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 6rem;
}

.l-h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--l-text);
}

.l-h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 3.5rem 0 1.25rem;
    color: var(--l-text);
}

.l-h2:first-child { margin-top: 0; }

.l-sub {
    color: var(--l-muted);
    font-size: 0.95rem;
    margin: 0 0 2.5rem;
}

.l-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.l-grid-wide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.l-card {
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    padding: 1.75rem;
}

.l-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--l-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.l-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--l-text);
}

.l-value small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--l-muted);
}

.l-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--l-muted);
    line-height: 1.5;
}

.l-bar {
    height: 6px;
    background: #ececea;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.l-bar > div {
    height: 100%;
    background: var(--l-accent);
    transition: width 0.5s ease;
}

.l-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--l-border);
    border-radius: var(--l-radius);
    background: var(--l-surface);
}

.l-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.l-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--l-muted);
    background: #fafaf8;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--l-border);
    white-space: nowrap;
}

.l-table td {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid #f0f0ec;
    vertical-align: top;
    color: var(--l-text);
}

.l-table tr:last-child td { border-bottom: none; }

.l-mono {
    font-family: var(--l-mono);
    font-size: 0.82em;
}

.l-muted { color: var(--l-muted); }
.l-faint { color: var(--l-faint); }

.l-tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    background: #f0f0ec;
    color: var(--l-muted);
}

.l-tag.ok { background: var(--l-ok-bg); color: var(--l-ok); }
.l-tag.warn { background: var(--l-warn-bg); color: var(--l-warn); }
.l-tag.bad { background: var(--l-bad-bg); color: var(--l-bad); }
.l-tag.info { background: #eaf2fb; color: var(--l-accent); }

.l-link {
    color: var(--l-accent);
    text-decoration: none;
    font-weight: 600;
}

.l-link:hover { text-decoration: underline; }

.l-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--l-border-strong);
    border-radius: 10px;
    background: var(--l-surface);
    color: var(--l-text);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.l-btn:hover {
    border-color: var(--l-accent);
    background: #f5f9fe;
}

.l-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--l-muted);
}
