/* =====================================================
   A12 FINANCE — Thème VIP / Premium (navy & or)
   Mobile first
   ===================================================== */
:root {
    --navy-950: #050a1c;
    --navy-900: #081029;
    --navy-800: #0c1838;
    --navy-700: #12234d;
    --navy-600: #1b305f;
    --gold-300: #ecd490;
    --gold-400: #dcb964;
    --gold-500: #c9a24b;
    --gold-600: #a98233;
    --ivory: #f6f1e4;
    --ivory-dim: #c9c4b6;
    --muted: #8d97b3;
    --line: rgba(201, 162, 75, .22);
    --line-soft: rgba(255, 255, 255, .07);
    --danger: #e0645f;
    --success: #5ec29a;
    --warning: #e5b659;
    --radius: 14px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --gold-grad: linear-gradient(135deg, #ecd490 0%, #c9a24b 48%, #a98233 100%);
    --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--navy-950);
    color: var(--ivory);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 75, .10), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(27, 48, 95, .55), transparent 60%);
    background-attachment: fixed;
}
a { color: var(--gold-400); text-decoration: none; }
a:hover { color: var(--gold-300); }
img, video { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.35rem; }
p { margin-bottom: .8em; }
.muted { color: var(--muted); }
.gold { color: var(--gold-400); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.wrap { flex-wrap: wrap; } .gap { gap: .75rem; } .gap-lg { gap: 1.25rem; }
.hidden { display: none !important; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; user-select: none; }
.logo-mark { position: relative; display: inline-block; font-family: var(--font-serif); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark .la { color: var(--ivory); }
.logo-mark .l12 { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark svg { position: absolute; left: 8%; right: -14%; bottom: -22%; width: 108%; height: 46%; overflow: visible; }
.logo-word { display: block; margin-top: .55em; font-family: var(--font-sans); font-weight: 500; letter-spacing: .55em; color: var(--ivory); padding-left: .55em; }
.logo-sm .logo-mark { font-size: 30px; } .logo-sm .logo-word { font-size: 8px; }
.logo-md .logo-mark { font-size: 54px; } .logo-md .logo-word { font-size: 12px; }
.logo-lg .logo-mark { font-size: 92px; } .logo-lg .logo-word { font-size: 19px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    font-family: var(--font-sans); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-grad); color: #20180a; box-shadow: 0 8px 24px rgba(201, 162, 75, .28); }
.btn-gold:hover { color: #20180a; box-shadow: 0 12px 30px rgba(201, 162, 75, .4); }
.btn-ghost { background: transparent; color: var(--gold-300); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-300); background: rgba(201, 162, 75, .08); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(224, 100, 95, .4); }
.btn-danger:hover { background: rgba(224, 100, 95, .1); color: var(--danger); }
.btn-sm { padding: .5rem 1rem; font-size: .68rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 1.15rem; }
.field label, .label { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: .45rem; }
.input, .select, .textarea {
    width: 100%; background: rgba(255, 255, 255, .035); border: 1px solid var(--line-soft); color: var(--ivory);
    border-radius: 10px; padding: .85rem 1rem; font: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: #5f6a8a; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201, 162, 75, .15); background: rgba(255, 255, 255, .06); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-400) 50%), linear-gradient(135deg, var(--gold-400) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.select option { background: var(--navy-800); color: var(--ivory); }
.textarea { min-height: 130px; resize: vertical; }
.hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.field-error { font-size: .78rem; color: var(--danger); margin-top: .35rem; }
.input.invalid { border-color: var(--danger); }
.grid-2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
.input-wrap { position: relative; }
.input-wrap .toggle-pass { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.05rem; }
.input-wrap .input { padding-right: 2.8rem; }

.check { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(255, 255, 255, .025); cursor: pointer; font-size: .85rem; color: var(--ivory-dim); }
.check input { appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border: 1.5px solid var(--gold-600); border-radius: 5px; background: transparent; display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ''; width: 10px; height: 10px; transform: scale(0); transition: transform .12s; background: var(--gold-grad); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
.check input:checked::before { transform: scale(1); }
.check:has(input:checked) { border-color: var(--gold-500); background: rgba(201, 162, 75, .07); }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .85rem; color: var(--ivory-dim); }
.switch input { accent-color: var(--gold-500); width: 18px; height: 18px; }

/* ---------- Alertes ---------- */
.alert { padding: .9rem 1.1rem; border-radius: 10px; border: 1px solid; font-size: .88rem; margin-bottom: 1.25rem; display: flex; gap: .7rem; align-items: flex-start; }
.alert i { margin-top: 2px; }
.alert-success { background: rgba(94, 194, 154, .09); border-color: rgba(94, 194, 154, .4); color: #9fe0c3; }
.alert-error { background: rgba(224, 100, 95, .09); border-color: rgba(224, 100, 95, .4); color: #f0a09c; }
.alert-info { background: rgba(201, 162, 75, .08); border-color: var(--line); color: var(--gold-300); }
.alert-warning { background: rgba(229, 182, 89, .09); border-color: rgba(229, 182, 89, .4); color: #f0cf8a; }

/* ---------- Cartes / badges ---------- */
.card {
    background: linear-gradient(160deg, rgba(18, 35, 77, .72), rgba(8, 16, 41, .86));
    border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.5rem; position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.card.gold-edge { border-color: var(--line); }
.card.gold-edge::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 2px; background: var(--gold-grad); border-radius: 2px; }
.card-title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 1rem; }
.card-title i { color: var(--gold-400); font-size: 1.1rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); color: var(--gold-300); background: rgba(201, 162, 75, .08); }
.badge-success { color: var(--success); border-color: rgba(94, 194, 154, .4); background: rgba(94, 194, 154, .08); }
.badge-danger { color: var(--danger); border-color: rgba(224, 100, 95, .4); background: rgba(224, 100, 95, .08); }
.badge-warning { color: var(--warning); border-color: rgba(229, 182, 89, .4); background: rgba(229, 182, 89, .08); }
.badge-muted { color: var(--muted); border-color: var(--line-soft); background: rgba(255, 255, 255, .03); }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 1.5rem 0; border: 0; }
.eyebrow { font-size: .7rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-500); }
.gold-line { width: 56px; height: 2px; background: var(--gold-grad); margin: .9rem 0 1.2rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* Statistiques */
.stat { text-align: left; }
.stat .v { font-family: var(--font-serif); font-size: 2.3rem; font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.stat .l { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }

/* ---------- Licences (places) ---------- */
.seats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.seat { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gold-600); display: grid; place-items: center; font-size: .62rem; color: var(--gold-400); opacity: .9; }
.seat.taken { background: var(--gold-grad); color: #20180a; border-color: transparent; }
.seat.pending { background: repeating-linear-gradient(45deg, rgba(201, 162, 75, .35), rgba(201, 162, 75, .35) 4px, rgba(201, 162, 75, .12) 4px, rgba(201, 162, 75, .12) 8px); border-color: var(--gold-600); color: var(--ivory); }
.seat.free { border-style: dashed; color: var(--muted); border-color: rgba(201, 162, 75, .45); }
.seat-count { font-family: var(--font-serif); font-size: 3.4rem; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seat-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.seat-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; border: 1.5px solid var(--gold-600); vertical-align: -1px; }
.seat-legend .l-taken::before { background: var(--gold-500); border-color: transparent; }
.seat-legend .l-free::before { border-style: dashed; }

/* ---------- Tarifs ---------- */
.plans { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.plan { text-align: center; padding: 2rem 1.5rem; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold-500); box-shadow: 0 0 0 1px rgba(201, 162, 75, .25), 0 20px 60px rgba(201, 162, 75, .12); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold-grad); color: #20180a; font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan .duration { font-family: var(--font-serif); font-size: 1.9rem; }
.plan .price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: .6rem 0 .2rem; line-height: 1.1; }
.plan ul { list-style: none; text-align: left; margin: 1.25rem 0 1.5rem; font-size: .88rem; color: var(--ivory-dim); flex: 1; }
.plan li { padding: .4rem 0 .4rem 1.6rem; position: relative; }
.plan li::before { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; left: 0; color: var(--gold-400); }
.plan label.pick { cursor: pointer; display: block; }
.plan input[type=radio] { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--gold-400); background: linear-gradient(160deg, rgba(201, 162, 75, .16), rgba(8, 16, 41, .9)); }
.plan:has(input:checked)::after { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; top: 14px; right: 16px; color: var(--gold-300); font-size: 1.4rem; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.table { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 620px; }
.table th { text-align: left; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); padding: .9rem 1rem; background: rgba(201, 162, 75, .06); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .02); }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.actions form { display: inline; }

/* ---------- Shell de l'application ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    position: fixed; z-index: 60; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .28s ease;
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; overflow-y: auto;
}
.sidebar.open { transform: none; box-shadow: var(--shadow); }
.sidebar .brand { padding: 1.75rem 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--line-soft); }
.nav { list-style: none; padding: 1rem .75rem; flex: 1; }
.nav-title { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-600); padding: 1rem .9rem .4rem; }
.nav a { display: flex; align-items: center; gap: .85rem; padding: .78rem .9rem; border-radius: 10px; color: var(--ivory-dim); font-size: .86rem; margin-bottom: 2px; transition: background .15s, color .15s; }
.nav a i { font-size: 1.05rem; width: 20px; text-align: center; color: var(--gold-500); }
.nav a:hover { background: rgba(201, 162, 75, .08); color: var(--ivory); }
.nav a.active { background: linear-gradient(90deg, rgba(201, 162, 75, .2), rgba(201, 162, 75, .03)); color: var(--gold-300); box-shadow: inset 2px 0 0 var(--gold-500); }
.sidebar-foot { padding: 1rem; border-top: 1px solid var(--line-soft); font-size: .8rem; }
.sidebar-foot .who { color: var(--ivory); font-weight: 600; word-break: break-word; }
.scrim { position: fixed; inset: 0; background: rgba(2, 5, 15, .65); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.scrim.show { opacity: 1; pointer-events: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: rgba(5, 10, 28, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.burger { background: none; border: 1px solid var(--line); color: var(--gold-300); width: 42px; height: 42px; border-radius: 10px; font-size: 1.25rem; cursor: pointer; }
.topbar .logo { display: none; }
.content { padding: 1.5rem 1rem 3rem; width: 100%; max-width: 1180px; margin: 0 auto; flex: 1; }
.page-head { margin-bottom: 1.75rem; }
.page-head p { color: var(--muted); max-width: 680px; }
.footer { padding: 1.5rem 1rem; text-align: center; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line-soft); }
.footer a { color: var(--gold-500); }

/* ---------- Auth / pages publiques ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-brand { display: none; position: relative; padding: 3rem; background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%); border-right: 1px solid var(--line); overflow: hidden; }
.auth-brand::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 40px rgba(201, 162, 75, .03), 0 0 0 90px rgba(201, 162, 75, .02); }
.auth-brand-inner { position: relative; max-width: 460px; margin: auto; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.tagline { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); margin-top: 2.2rem; }
.tagline span + span::before { content: '•'; color: var(--gold-500); margin-right: .9rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-box { width: 100%; max-width: 460px; }
.auth-box .logo { display: flex; margin: 0 auto 1.8rem; }
.auth-box h1 { font-size: 2rem; text-align: center; }
.auth-box .sub { text-align: center; color: var(--muted); margin: .5rem 0 1.8rem; font-size: .9rem; }
.code-input { text-align: center; font-size: 1.6rem; letter-spacing: .55em; padding-left: 1.4rem; font-variant-numeric: tabular-nums; }
.code-help { margin-top: 1.25rem; font-size: .85rem; }
.code-help summary { cursor: pointer; color: var(--muted); text-align: center; margin-bottom: 1rem; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; margin-top: 1.25rem; }
.pwd-rules { font-size: .76rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .45rem; }
.pwd-rules span.ok { color: var(--success); }

/* Landing */
.pub-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem; max-width: 1180px; margin: 0 auto; gap: 1rem; }
.pub-nav .links { display: flex; gap: .6rem; align-items: center; }
.hero { text-align: center; padding: 3rem 1rem 3.5rem; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: 1rem 0; }
.hero p.lead { font-size: 1.05rem; color: var(--ivory-dim); max-width: 640px; margin: 0 auto 2rem; }
.section { max-width: 1180px; margin: 0 auto; padding: 2.5rem 1rem; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head .gold-line { margin: .9rem auto 0; }
.feature i { font-size: 1.7rem; color: var(--gold-400); display: block; margin-bottom: .8rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Informations ---------- */
.info-card { display: block; color: inherit; transition: transform .2s, border-color .2s; }
.info-card:hover { transform: translateY(-3px); border-color: var(--line); color: inherit; }
.info-card h3 { margin: .6rem 0 .4rem; color: var(--ivory); }
.info-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.info-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .74rem; color: var(--muted); }
.prose { font-size: 1rem; line-height: 1.85; color: var(--ivory-dim); }
.prose p { margin-bottom: 1.1em; }
.prose a { text-decoration: underline; }
.locked { text-align: center; padding: 2.5rem 1.5rem; }
.locked i { font-size: 2.4rem; color: var(--gold-500); }

/* ---------- Support ---------- */
.cat-card { display: flex; gap: 1rem; align-items: flex-start; color: inherit; transition: transform .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); border-color: var(--line); color: inherit; }
.cat-icon { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(201, 162, 75, .1); border: 1px solid var(--line); color: var(--gold-400); font-size: 1.4rem; }
.cat-card h3 { color: var(--ivory); margin-bottom: .25rem; }
.cat-card p { color: var(--muted); font-size: .85rem; margin: 0 0 .4rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--gold-400); }
.crumbs span.sep { color: var(--gold-600); }
.chapter-row { display: flex; align-items: center; gap: 1rem; color: inherit; padding: 1.1rem 1.25rem; }
.chapter-row:hover { color: inherit; border-color: var(--line); }
.chapter-no { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.3rem; color: #20180a; background: var(--gold-grad); }
.content-block { margin-bottom: 1.5rem; }
.content-block h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.content-block h3 i { color: var(--gold-400); font-size: 1.1rem; }
.media { width: 100%; border-radius: 12px; background: #000; border: 1px solid var(--line-soft); display: block; }
audio.media { background: transparent; height: 48px; }
.embed { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Conditions ---------- */
.terms { max-width: 860px; margin: 0 auto; }
.terms h2 { font-size: 1.45rem; margin: 2rem 0 .6rem; color: var(--gold-300); }
.terms h2 .n { color: var(--gold-500); margin-right: .4rem; }
.terms p, .terms li { color: var(--ivory-dim); font-size: .95rem; }
.terms ul { margin: .5rem 0 1rem 1.3rem; }
.terms .legal-box { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; background: rgba(201, 162, 75, .05); }
.terms .legal-box dl { display: grid; grid-template-columns: 1fr; gap: .15rem 1rem; }
.terms .legal-box dt { color: var(--gold-400); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .6rem; }
.terms .legal-box dd { color: var(--ivory); }
.terms-scroll { max-height: 300px; overflow-y: auto; padding: 1rem 1.25rem; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0, 0, 0, .2); font-size: .85rem; }
.terms-scroll::-webkit-scrollbar, .sidebar::-webkit-scrollbar { width: 8px; }
.terms-scroll::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 8px; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tab { padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--ivory-dim); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.tab.active, .tab:hover { border-color: var(--gold-500); color: var(--gold-300); background: rgba(201, 162, 75, .08); }
.admin-list { list-style: none; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.admin-list li:last-child { border-bottom: 0; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; background: rgba(2, 5, 15, .8); backdrop-filter: blur(4px); }
.modal.show { display: flex; }
.modal-box { width: 100%; max-width: 640px; margin: 3vh auto; background: var(--navy-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.modal-box h3 { margin-bottom: 1.2rem; }

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .plans { grid-template-columns: 1fr 1fr; }
    .terms .legal-box dl { grid-template-columns: 220px 1fr; }
    .terms .legal-box dt { margin-top: 0; padding-top: .15rem; }
    .content { padding: 2rem 1.75rem 3rem; }
}
@media (min-width: 1024px) {
    .sidebar { transform: none; position: sticky; top: 0; height: 100vh; flex: 0 0 280px; }
    .scrim, .burger { display: none; }
    .topbar { justify-content: flex-end; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .auth { grid-template-columns: 1.05fr 1fr; }
    .auth-brand { display: flex; }
    .auth-box .logo { display: none; }
}
@media print { .sidebar, .topbar, .footer, .no-print { display: none !important; } body { background: #fff; color: #000; } .terms p, .terms li, .terms h2 { color: #000; } }

/* ---------- Téléphone avec indicatif ---------- */
.phone-group { display: flex; gap: .5rem; }
.phone-group .phone-code { flex: 0 0 92px; width: 92px; text-align: center; font-weight: 600; color: var(--gold-300); cursor: default; padding-left: .5rem; padding-right: .5rem; }
.phone-group .input:not(.phone-code) { flex: 1; min-width: 0; }

/* ---------- Critères dynamiques du mot de passe ---------- */
.pwd-criteria { margin-top: .75rem; padding: 1rem; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255, 255, 255, .03); font-size: .82rem; }
.pwd-criteria .pc-title { font-weight: 600; color: var(--ivory-dim); margin-bottom: .6rem; }
.pwd-criteria .pc-title i { color: var(--gold-400); margin-right: .35rem; }
.pc-strength { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; margin-bottom: .8rem; }
.pc-strength-bar { height: 100%; width: 0; border-radius: 6px; transition: width .3s ease, background .3s ease; background: var(--danger); }
.pc-list { list-style: none; }
.pc-list li { display: flex; align-items: center; gap: .55rem; padding: .22rem 0; color: var(--muted); transition: color .2s; }
.pc-list li i { font-size: .45rem; width: 14px; text-align: center; }
.pc-list li.valid { color: var(--success); }
.pc-list li.valid i::before { content: '\F26A'; font-size: .85rem; }
.pc-list li.invalid { color: var(--danger); }
.pc-list li.invalid i::before { content: '\F62A'; font-size: .85rem; }
.pc-match { margin-top: .5rem; font-size: .8rem; font-weight: 500; }
.pc-match.ok { color: var(--success); }
.pc-match.ko { color: var(--danger); }

/* ---------- Supervision : barre de charge et graphiques ---------- */
.progress { height: 24px; background: rgba(255, 255, 255, .08); border-radius: 12px; overflow: hidden; }
.progress-bar { height: 100%; min-width: 2.4rem; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #0b1020; transition: width .4s ease, background .3s; }
.progress-bar.bar-ok { background: linear-gradient(90deg, #3fa57e, #5ec29a); }
.progress-bar.bar-warning { background: linear-gradient(90deg, #c9962f, #e5b659); }
.progress-bar.bar-danger { background: linear-gradient(90deg, #c4443f, #e0645f); }
.bar-chart .bar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .55rem; }
.bar-chart .bar-label { flex: 0 0 120px; font-size: .8rem; color: var(--ivory-dim); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-chart .bar-track { flex: 1; height: 22px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; min-width: 60px; }
.bar-chart .bar-fill { height: 100%; background: var(--gold-grad); border-radius: 6px; transition: width .4s ease; }
.bar-chart .bar-val { flex: 0 0 auto; min-width: 70px; font-size: .82rem; font-weight: 600; }
@media (max-width: 639px) { .bar-chart .bar-row { flex-wrap: wrap; } .bar-chart .bar-label { flex: 0 0 100%; text-align: left; } .bar-chart .bar-val { flex: 0 0 100%; } }
code { background: rgba(255, 255, 255, .07); padding: .05rem .35rem; border-radius: 4px; font-size: .85em; color: var(--gold-300); }
