/* =====================================================================
   ReservChap Vote — styles de l'espace organisateur et du super-admin
   ===================================================================== */
:root {
    color-scheme: light;
    --page: #f3f4f8;
    --panel: #ffffff;
    --panel-head: #fafbfd;
    --line: #e6e8f0;
    --grid: #eceef4;
    --axis: #c9ccd8;
    --field: #f3f5fb;
    --ink: #12163a;
    --ink-2: #4c5170;
    --muted: #868aa3;
    --brand: #0a1172;
    --brand-light: #1d2a9e;
    --brand-ink: #ffffff;
    --accent: #f8c80a;
    --s1: #2a78d6;
    --s2: #eb6834;
    --good: #0ca30c; --good-ink: #006300; --good-bg: #e8f6e8;
    --warn: #fab219; --warn-ink: #8a5a00; --warn-bg: #fff5dc;
    --crit: #d03b3b; --crit-ink: #b42318; --crit-bg: #fdecec;
    --gold: #e0a800; --silver: #9aa1b5; --bronze: #c2702e;
    --shadow: 0 1px 2px rgba(16, 20, 60, .04), 0 8px 24px -16px rgba(16, 20, 60, .25);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --page: #0f111a; --panel: #181b27; --panel-head: #1c2030; --line: #262a3b; --grid: #232738; --axis: #3a3f55; --field: #12141e;
        --ink: #eef0f8; --ink-2: #b8bccf; --muted: #8a8fa6; --brand: #9fb0ff; --brand-light: #b9c5ff; --brand-ink: #0f111a;
        --s1: #3987e5; --s2: #d95926;
        --good-ink: #39c339; --good-bg: rgba(12,163,12,.14); --warn-ink: #fab219; --warn-bg: rgba(250,178,25,.13);
        --crit-ink: #ff7b7b; --crit-bg: rgba(208,59,59,.16);
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.8);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #0f111a; --panel: #181b27; --panel-head: #1c2030; --line: #262a3b; --grid: #232738; --axis: #3a3f55; --field: #12141e;
    --ink: #eef0f8; --ink-2: #b8bccf; --muted: #8a8fa6; --brand: #9fb0ff; --brand-light: #b9c5ff; --brand-ink: #0f111a;
    --s1: #3987e5; --s2: #d95926;
    --good-ink: #39c339; --good-bg: rgba(12,163,12,.14); --warn-ink: #fab219; --warn-bg: rgba(250,178,25,.13);
    --crit-ink: #ff7b7b; --crit-bg: rgba(208,59,59,.16);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1480px; margin: 0 auto; padding: 24px 24px 48px; }
.wrap.narrow { max-width: 980px; }

/* ---------- En-tête de page ---------- */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.head h1 { margin: 0; font: 800 26px/1.2 'Raleway', system-ui, sans-serif; color: var(--ink); letter-spacing: -.01em; }
.head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Grille et panneaux ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel-head); border-radius: 14px 14px 0 0; flex-wrap: wrap; }
.panel-h h2 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.panel-h h2 i { color: var(--muted); font-size: 13px; }
.panel-h .sub { font-size: 12px; color: var(--muted); }
.panel-b { padding: 16px; flex: 1; min-width: 0; }
.panel-b.flush { padding: 0; }
.panel-f { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- Tuiles chiffrées ---------- */
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi .lbl { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 13px; font-weight: 600; gap: 8px; }
.kpi .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--s1) 12%, transparent); color: var(--s1); font-size: 13px; flex-shrink: 0; }
.kpi .ico.gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.kpi .ico.good { background: var(--good-bg); color: var(--good-ink); }
.kpi .ico.crit { background: var(--crit-bg); color: var(--crit-ink); }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; margin-top: 6px; }
.kpi .meta { font-size: 12px; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font: 600 13.5px 'Inter', sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s, transform .15s; }
.btn:focus-visible { outline: 2px solid var(--s1); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.15); }
.btn-accent { background: var(--accent); color: #12163a; }
.btn-accent:hover { filter: brightness(.95); }
.btn-ghost { background: var(--panel); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--axis); }
.btn-danger { background: var(--crit-bg); color: var(--crit-ink); }
.btn-danger:hover { filter: brightness(.96); }
.btn-block { width: 100%; height: 44px; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; font-size: 14px; text-decoration: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--axis); }
.icon-btn.danger:hover { color: var(--crit-ink); border-color: var(--crit); background: var(--crit-bg); }
.icon-btn:focus-visible { outline: 2px solid var(--s1); outline-offset: 1px; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea {
    width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 11px;
    background: var(--field); color: var(--ink); font: 500 14px 'Inter', sans-serif; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-light); background: var(--panel); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-light) 14%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
input[type="datetime-local"].input { font-variant-numeric: tabular-nums; }

.field label.dropzone, .dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 22px; border: 2px dashed var(--axis); border-radius: 14px; background: var(--field); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand-light); background: color-mix(in srgb, var(--brand-light) 6%, var(--field)); }
.dropzone i { font-size: 28px; color: var(--brand-light); }
.dropzone b { color: var(--ink); font-size: 14px; }
.dropzone span { color: var(--muted); font-size: 12px; }
.dropzone img { width: 140px; height: 140px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

/* ---------- Alertes & toasts ---------- */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 13.5px; margin-bottom: 16px; }
.alert.good { background: var(--good-bg); color: var(--good-ink); }
.alert.crit { background: var(--crit-bg); color: var(--crit-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: 380px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.45); animation: toastIn .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Puces ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.chip.good { background: var(--good-bg); color: var(--good-ink); border-color: transparent; }
.chip.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.chip.crit { background: var(--crit-bg); color: var(--crit-ink); border-color: transparent; }
a.chip:hover { border-color: var(--axis); color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--grid); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good-ink); }
.pill.brand { background: color-mix(in srgb, var(--s1) 12%, transparent); color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- Tableaux ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel-head); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.tbl td b, .tbl td strong { color: var(--ink); }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--s1) 4%, transparent); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl td.num { white-space: nowrap; }
@media (min-width: 901px) { .side4 { grid-column: span 4 !important; } }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }

.avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--grid); display: grid; place-items: center; color: var(--muted); }
.avatar.lg { width: 56px; height: 56px; border-radius: 14px; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who b { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 12px; }

.bar { height: 6px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--s1); transition: width .8s cubic-bezier(.2,.8,.2,1); }

.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.leaders a { text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; transition: border-color .15s; }
.leaders a:hover { border-color: var(--axis); }

.empty { color: var(--muted); text-align: center; padding: 36px 16px; font-size: 13.5px; }
.empty i { display: block; font-size: 26px; margin-bottom: 10px; opacity: .6; }

/* ---------- Barre de recherche / filtres ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .input-icon { flex: 1 1 240px; }
.filters .select { flex: 0 1 220px; width: auto; }

/* ---------- Fenêtre modale ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; background: rgba(5, 10, 40, .5); backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 520px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); animation: toastIn .25s cubic-bezier(.2,.8,.2,1) both; }
.modal-card .panel-h { border-radius: 18px 18px 0 0; padding: 14px 18px; }
.modal-card .panel-h h2 { font-size: 15px; }
.modal-card .panel-b { padding: 18px; }

/* ---------- Classement ---------- */
.rank { display: grid; grid-template-columns: 34px auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rank:last-child { border-bottom: 0; }
.rank .pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--grid); color: var(--ink-2); }
.rank .pos.p1 { background: var(--gold); color: #fff; }
.rank .pos.p2 { background: var(--silver); color: #fff; }
.rank .pos.p3 { background: var(--bronze); color: #fff; }
.rank .info { min-width: 0; }
.rank .info b { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .info .bar { margin-top: 7px; }
.rank .score { text-align: right; white-space: nowrap; }
.rank .score b { display: block; color: var(--ink); font-size: 15px; }
.rank .score small { color: var(--muted); font-size: 12px; }
.rank.lead .bar > span { background: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .c3 { grid-column: span 6; }
    .c5, .c7 { grid-column: span 12; }
    .c4 { grid-column: span 6; }
}
@media (max-width: 900px) {
    .c4, .c6, .c8 { grid-column: span 12; }
}
@media (max-width: 640px) {
    .wrap { padding: 16px 12px 40px; }
    .grid { gap: 12px; }
    .c3 { grid-column: span 6; }
    .head h1 { font-size: 22px; }
    .kpi { padding: 12px; }
    .kpi .val { font-size: 20px; }
    .kpi .ico { width: 28px; height: 28px; font-size: 12px; }
    .tbl th, .tbl td { padding: 10px 12px; }
    .hide-sm { display: none !important; }
    .rank { grid-template-columns: 30px auto 1fr; padding: 12px; }
    .rank .score { grid-column: 3; text-align: left; }
    .rank .score b, .rank .score small { display: inline; margin-right: 6px; }
    .filters .select { flex: 1 1 100%; }
    .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
:root {
    --la-side-w: 268px;
    --la-brand: #0a1172;
    --la-brand-dark: #050a4f;
    --la-brand-light: #1d2a9e;
    --la-accent: #f8c80a;
}

@media (min-width: 1024px) {
    body.with-side { padding-left: var(--la-side-w) !important; }
}

@media (max-width: 1023.98px) {
    body.with-side { padding-top: 60px !important; }
}

.la-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--la-side-w);
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: linear-gradient(175deg, var(--la-brand-light) 0%, var(--la-brand) 38%, var(--la-brand-dark) 100%);
    color: #fff;
    font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    box-shadow: 8px 0 30px -18px rgba(5, 10, 79, .6);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    overflow: hidden;
}

.la-side::after {
    content: "";
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 2px solid rgba(248, 200, 10, .14);
    right: -120px; top: -90px;
    pointer-events: none;
}

.la-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    text-decoration: none;
    color: #fff;
}

.la-brand .la-logo {
    background: #fff;
    border-radius: 12px;
    padding: 6px 9px;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .45);
    flex-shrink: 0;
}

.la-brand .la-logo img { display: block; width: 74px; height: auto; }
.la-brand b { display: block; font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.la-brand small { display: block; font-size: 11px; opacity: .65; letter-spacing: .08em; text-transform: uppercase; }

.la-scroll { flex: 1; overflow-y: auto; padding: 6px 14px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }

.la-group {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin: 18px 10px 8px;
}

.la-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 3px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .18s, color .18s;
}

.la-link i { width: 20px; text-align: center; font-size: 15px; opacity: .9; }
.la-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.la-link:focus-visible { outline: 2px solid var(--la-accent); outline-offset: 2px; }

.la-link.is-active {
    background: #fff;
    color: var(--la-brand);
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55);
}

.la-link.is-active i { color: var(--la-brand); opacity: 1; }

.la-link.is-active::before {
    content: "";
    position: absolute;
    left: -14px; top: 9px; bottom: 9px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--la-accent);
}

.la-bottom { padding: 12px 14px 16px; border-top: 1px solid rgba(255, 255, 255, .1); }

button.la-link { width: 100%; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.la-link.la-out { color: #ffc9c9; }
.la-link.la-out:hover { background: rgba(255, 90, 90, .14); color: #fff; }

.la-powered {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .7);
    font-size: 11px;
    line-height: 1.35;
    text-decoration: none;
}

.la-powered:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.la-powered .la-rc { background: #fff; border-radius: 8px; padding: 3px 5px; flex-shrink: 0; }
.la-powered .la-rc img { display: block; width: 34px; height: auto; }
.la-powered strong { color: #fff; }

/* Barre supérieure mobile/tablette */
.la-top {
    display: none;
    position: fixed;
    inset: 0 0 auto 0;
    height: 60px;
    z-index: 55;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    background: linear-gradient(90deg, var(--la-brand) 0%, var(--la-brand-dark) 100%);
    color: #fff;
    font-family: 'Raleway', system-ui, sans-serif;
    box-shadow: 0 6px 20px -12px rgba(5, 10, 79, .7);
}

.la-top .la-burger {
    width: 42px; height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.la-top .la-burger:focus-visible { outline: 2px solid var(--la-accent); }
.la-top .la-t { font-weight: 700; font-size: 16px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-top .la-logo { background: #fff; border-radius: 9px; padding: 4px 7px; }
.la-top .la-logo img { display: block; width: 52px; height: auto; }

.la-backdrop {
    position: fixed;
    inset: 0;
    z-index: 58;
    background: rgba(5, 10, 40, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

@media (max-width: 1023.98px) {
    .la-top { display: flex; }
    .la-side { transform: translateX(-102%); }
    body.la-open .la-side { transform: none; }
    body.la-open .la-backdrop { opacity: 1; pointer-events: auto; }
    body.la-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .la-side, .la-backdrop { transition: none; }
}

/* =====================================================================
   Ajouts plateforme
   ===================================================================== */
.la-side.is-admin { --la-brand: #3a0c0c; --la-brand-dark: #1e0505; --la-brand-light: #6b1a1a; }
.la-ev { margin: 4px 6px 4px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.07); display: flex; gap: 10px; align-items: center; text-decoration: none; color: #fff; }
.la-ev img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; flex-shrink: 0; }
.la-ev .ini { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--la-accent); color: var(--la-brand-dark); font-weight: 800; flex-shrink: 0; }
.la-ev b { display: block; font-size: 13px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la-ev small { display: block; font-size: 11px; opacity: .7; }
.la-ev > span:last-child { min-width: 0; }

/* Pages de connexion / inscription (toujours en clair) */
body.auth-page { background: #fbfaf7; }
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 36px 44px;
    color: #fff; background: #111183 center/cover no-repeat; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,92,.15) 30%, rgba(11,11,92,.88)); pointer-events: none; }
.auth-side:not(.has-photo) { background: radial-gradient(circle at 80% 15%, rgba(254,102,51,.35), transparent 45%), #111183; }
.auth-side:not(.has-photo)::after { display: none; }
.auth-side > * { position: relative; z-index: 1; }
.auth-brand img { height: 42px; background: #fff; border-radius: 12px; padding: 5px 10px; }
.auth-phone { align-self: center; width: min(250px, 60%); padding: 9px; border-radius: 34px; background: #0a0a0a; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); transform: rotate(-3deg); }
.auth-phone img { width: 100%; border-radius: 26px; display: block; }
.auth-quote b { display: block; font: 800 clamp(22px, 2.4vw, 30px)/1.15 'Bricolage Grotesque', 'Inter', sans-serif; letter-spacing: -.02em; max-width: 440px; }
.auth-quote span { display: block; margin-top: 10px; color: rgba(255,255,255,.78); font-size: 15px; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 24px; position: relative; }
.auth-back { position: absolute; top: 24px; left: 24px; font-size: 14px; font-weight: 600; color: #4a4a68; text-decoration: none; }
.auth-back:hover { color: #14142b; }
.auth-card { width: 100%; max-width: 440px; background: transparent; }
.auth-card.wide { max-width: 560px; }
.auth-top { padding: 0 0 6px; text-align: left; }
.auth-top img { display: none; }
.auth-top h1 { margin: 0 0 6px; font: 800 32px/1.1 'Bricolage Grotesque', 'Inter', sans-serif; letter-spacing: -.02em; color: #14142b; }
.auth-top p { margin: 0; color: #4a4a68; font-size: 15px; }
.auth-body { padding: 22px 0 8px; }
.auth-foot { padding: 18px 0 0; border-top: 1px solid #e7e5df; text-align: left; font-size: 14.5px; color: #4a4a68; background: none; margin-top: 18px; }
.auth-foot a, .auth-body a { color: #111183; font-weight: 700; }
.auth-page .input { background: #fff; border-color: #dedbd2; }
.auth-page .input:focus { border-color: #111183; box-shadow: 0 0 0 4px rgba(17,17,131,.1); }
.auth-page .btn-primary { background: #fe6633; color: #fff; border-radius: 999px; height: 50px; font-size: 15px; }
.auth-page .btn-primary:hover { filter: none; background: #e5531f; }
.auth-page .btn-ghost { border-radius: 999px; }
@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-side { flex-direction: row; align-items: center; padding: 14px 18px; min-height: 0; }
    .auth-side .auth-phone, .auth-side .auth-quote { display: none; }
    .auth-side::after { background: rgba(11,11,92,.7); }
    .auth-main { justify-content: flex-start; padding: 28px 18px 40px; }
    .auth-back { display: none; }
    .auth-top h1 { font-size: 27px; }
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .auth-body, .auth-top { padding-left: 18px; padding-right: 18px; } }

/* Étapes / liste de contrôle */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ok { color: var(--good-ink); } .checklist .ko { color: var(--muted); }
.checklist a { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--brand-light); text-decoration: none; white-space: nowrap; }

/* Cartes d'événements */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ev-card { text-decoration: none; overflow: hidden; }
.ev-card .ev-band { height: 74px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: #fff; }
.ev-card .ev-band img { width: 50px; height: 50px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; }
.ev-card .ev-band b { font-size: 15.5px; line-height: 1.25; }
.ev-card .panel-b { display: flex; flex-direction: column; gap: 10px; }
.ev-card .ev-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; }
.ev-card:hover { border-color: var(--axis); }

/* Couleurs */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch:hover { box-shadow: 0 0 0 2px var(--axis); }
.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] { width: 54px; height: 44px; border: 1.5px solid var(--line); border-radius: 11px; padding: 3px; background: var(--field); cursor: pointer; flex-shrink: 0; }
.preview-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.preview-card .pv-head { padding: 20px; text-align: center; color: #fff; }
.preview-card .pv-head img { max-height: 54px; max-width: 160px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.preview-card .pv-head b { display: block; margin-top: 10px; font-size: 16px; }
.preview-card .pv-body { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--panel); }
.preview-card .pv-btn { height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; }

.packs-tbl input.input { min-height: 38px; padding: 6px 10px; }
.copy { display: flex; gap: 8px; align-items: center; }
.copy .input { font-family: ui-monospace, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.mt0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); } .pill.crit { background: var(--crit-bg); color: var(--crit-ink); } .pill i { font-size: 11px; }
