/* BORI BUSINESS — design system
   Bordeaux · crème · or (charte du logo). Mobile d'abord. Aucun style inline (CSP stricte).
   Polices : piles système en attendant l'auto-hébergement de Montserrat (licence OFL). */

:root {
  --bordeaux: #8c1028;
  --bordeaux-deep: #5e0a1b;
  --bordeaux-ink: #3a0812;
  --ink: #241416;
  --ink-soft: #4a3a3c;
  --muted: #7a6a6c;
  --cream: #fbf4ea;
  --paper: #fffdf9;
  --line: #eadcc9;
  --gold: #c9a23f;
  --gold-deep: #a07f22;
  --gold-soft: #f4e6bf;
  --green: #1f8a4c;
  --green-soft: #e3f3e9;
  --amber: #b26b00;
  --amber-soft: #fbefd9;
  --red: #b3261e;
  --red-soft: #fbe5e3;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(36, 20, 22, .04), 0 8px 24px -12px rgba(58, 8, 18, .18);
  --display: "Montserrat", "Segoe UI Black", "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --body: "Montserrat", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

/* ===== Thème 1xBet : pages publiques, pages partenaires, espace partenaire =====
   (l'administration garde la charte BORI ci-dessus : body.theme-bori) */
.theme-1x {
  --bordeaux: #1a6fd6;        /* bleu 1xBet (actions principales) */
  --bordeaux-deep: #0f4596;
  --bordeaux-ink: #0a1f44;    /* bleu nuit */
  --ink: #0b1a33;
  --ink-soft: #33445f;
  --muted: #5d6d87;
  --cream: #eef3fa;
  --paper: #ffffff;
  --line: #d6e1f1;
  --gold: #f5c400;            /* jaune des visuels 1xBet (codes promo) */
  --gold-deep: #a98600;
  --gold-soft: #fff3c2;
  --shadow: 0 1px 0 rgba(11, 26, 51, .04), 0 8px 24px -12px rgba(10, 31, 68, .25);
}
.theme-1x .site-header { background: rgba(238, 243, 250, .94); }
.theme-1x .btn-primary { box-shadow: 0 6px 18px -8px rgba(26, 111, 214, .75); }
.theme-1x .btn-gold { background: linear-gradient(180deg, #ffd83a, var(--gold)); color: var(--bordeaux-ink); }
.theme-1x input:focus, .theme-1x select:focus, .theme-1x textarea:focus { box-shadow: 0 0 0 4px rgba(26, 111, 214, .15); }
.theme-1x .hero { background:
  radial-gradient(900px 500px at 85% -10%, rgba(47, 140, 255, .35), transparent 60%),
  radial-gradient(700px 600px at -10% 110%, rgba(26, 111, 214, .45), transparent 60%),
  linear-gradient(160deg, #0d2a5c 0%, #050f24 72%); }
.theme-1x .hero h1 em { background: linear-gradient(180deg, #ffe46b, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.theme-1x .video-frame { background: linear-gradient(160deg, #173b78, #040b1c); }
.theme-1x .pp-hero { background: linear-gradient(165deg, #0d2a5c, #050f24 75%); }
.theme-1x .pp-hero::before { background: radial-gradient(circle, rgba(47, 140, 255, .35), transparent 65%); }
.theme-1x .pp-promo .ticket::before, .theme-1x .pp-promo .ticket::after { background: #0b2552; }
.theme-1x .section.dark, .theme-1x .site-footer { background: #071a3d; }
.theme-1x .sidebar { background: linear-gradient(180deg, #0d2a5c, #061433); }
.theme-1x .sidebar .brand-word b { color: #5fb0ff; }
.theme-1x .side-nav a[aria-current="page"] { box-shadow: 0 6px 16px -8px rgba(26, 111, 214, .9); }
.theme-1x .table tr:hover td { background: #f3f7fd; }
.theme-1x .table td, .theme-1x .list-plain li, .theme-1x .notif { border-bottom-color: #e5ecf6; }
.theme-1x .visual { background: #dfe8f5; }
.theme-1x .badge-archived, .theme-1x .badge-retired, .theme-1x .badge-released, .theme-1x .badge-disabled,
.theme-1x .badge-todo, .theme-1x .onboard .n { background: #e6ecf5; }
.theme-1x .brand-word { color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream);
  font-size: 16px; line-height: 1.55; text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--bordeaux); text-underline-offset: 3px; }
a:hover { color: var(--bordeaux-deep); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.15rem); font-weight: 850; }
h3 { font-size: 1.12rem; font-weight: 800; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.visually-hidden, .hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* Kicker : filets dorés comme la signature du logo */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: .9rem;
}
.kicker::before, .kicker::after { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.kicker.on-dark { color: var(--gold-soft); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px;
  padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800;
  font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bordeaux); color: #fff; box-shadow: 0 6px 18px -8px rgba(140, 16, 40, .7); }
.btn-primary:hover { background: var(--bordeaux-deep); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #e3c060, var(--gold)); color: var(--bordeaux-ink); }
.btn-gold:hover { color: var(--bordeaux-ink); filter: brightness(1.05); }
.btn-whatsapp { background: #1f9d55; color: #fff; }
.btn-whatsapp:hover { background: #18834a; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--bordeaux); color: var(--bordeaux); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost.on-dark:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { min-height: 36px; padding: .4rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* En-tête public */
.site-header { background: rgba(251, 244, 234, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-word { font-family: var(--display); font-weight: 900; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); }
.brand-word b { color: var(--bordeaux); font-weight: 900; }
.brand-tag { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; font-weight: 700; }
.nav { display: none; gap: 1.4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.header-cta .btn { white-space: nowrap; }
@media (max-width: 1080px) { .nav { gap: 1rem; } .nav a { font-size: .85rem; } }
@media (max-width: 520px) { .header-cta .btn-ghost { display: none; } .brand-tag { display: none; } }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bordeaux); }
.header-cta { display: flex; gap: .5rem; align-items: center; }
.header-cta .btn { min-height: 40px; padding: .45rem 1rem; font-size: .86rem; }
@media (min-width: 900px) { .nav { display: flex; } }
.mobile-nav { display: flex; gap: 1rem; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.mobile-nav a { white-space: nowrap; font-size: .85rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* Flash */
.flashes { margin: 16px auto 0; }
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: .6rem; font-weight: 600; border: 1px solid; }
.flash-success { background: var(--green-soft); border-color: #b9e0c8; color: #11532d; }
.flash-error { background: var(--red-soft); border-color: #f2bcb7; color: #7c1711; }
.flash-info { background: var(--gold-soft); border-color: #e8d39a; color: #5a4310; }

/* Hero acquisition */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 500px at 85% -10%, rgba(201,162,63,.28), transparent 60%),
  radial-gradient(700px 600px at -10% 110%, rgba(140,16,40,.55), transparent 60%),
  linear-gradient(160deg, var(--bordeaux-ink) 0%, #1b0a0d 70%); color: #fff; }
.hero .inner { position: relative; z-index: 1; display: grid; gap: 2.2rem; padding: 48px 0 56px; }
@media (min-width: 900px) { .hero .inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 72px 0 80px; } }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(180deg, #f6dc8c, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; color: rgba(255,255,255,.85); font-weight: 600; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 900; margin-right: .55rem; }
.video-frame { position: relative; margin: 0 auto; width: min(100%, 330px); border-radius: 28px; padding: 10px; background: linear-gradient(160deg, #3b1a20, #120507); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.video-frame video { width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; background: #000; object-fit: cover; }
.video-caption { text-align: center; color: rgba(255,255,255,.6); font-size: .78rem; margin-top: .7rem; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section.dark .section-head p { color: rgba(255,255,255,.7); }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35rem; }
.card.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--bordeaux); font-weight: 900; font-size: 1.2rem; margin-bottom: .8rem; }

/* Étapes « pas à pas » */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem 1.1rem 4.2rem; min-height: 92px; }
.steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: #fff; background: var(--bordeaux); box-shadow: 0 0 0 4px var(--gold-soft); }
.steps li strong { display: block; font-family: var(--display); }
.steps li.final::before { content: "✓"; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

/* Preuves de revenus */
.proof { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .proof { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.proof-amount { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; color: var(--gold); letter-spacing: -.02em; }
.proof-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.proof-table td { padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.15); }
.proof-table td:last-child { text-align: right; font-weight: 800; color: #fff; }
.disclaimer { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 1rem; }
.disclaimer.on-light { color: var(--muted); }

/* Courbe SVG (barres) */
.spark { width: 100%; height: 120px; }
.spark .bar { fill: var(--bordeaux); }
.spark .bar.zero { fill: var(--line); }
.spark .line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: rgba(201,162,63,.18); }
.spark-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .3rem; }

/* Annuaire */
.partner-card { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.partner-card:hover { transform: translateY(-2px); border-color: var(--gold); color: inherit; }
.avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; color: #fff; background: conic-gradient(from 210deg, var(--bordeaux), var(--bordeaux-deep), var(--gold), var(--bordeaux)); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--gold-soft); }
.avatar.lg { width: 84px; height: 84px; font-size: 1.7rem; }
.partner-card .meta { min-width: 0; }
.partner-card .name { font-family: var(--display); font-weight: 800; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-card .sub { font-size: .82rem; color: var(--muted); }
.partner-card .url { font-size: .78rem; color: var(--bordeaux); font-weight: 700; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: .2rem .55rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); text-transform: uppercase; }
.badge-active { background: var(--green-soft); color: var(--green); }
.badge-pending { background: var(--amber-soft); color: var(--amber); }
.badge-suspended, .badge-refused { background: var(--red-soft); color: var(--red); }
.badge-archived, .badge-retired, .badge-released, .badge-disabled { background: #eee7e0; color: var(--muted); }
.badge-declared { background: var(--amber-soft); color: var(--amber); }
.badge-confirmed { background: var(--green-soft); color: var(--green); }
.badge-todo { background: #eee7e0; color: var(--muted); }

.filters { display: grid; gap: .6rem; margin-bottom: 1.4rem; }
@media (min-width: 760px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }

/* Formulaires */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.field .error { font-size: .82rem; color: var(--red); margin-top: .3rem; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; padding: .72rem .85rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--bordeaux); outline: none; box-shadow: 0 0 0 4px rgba(140,16,40,.12); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--bordeaux); flex: none; }
.input-affix { display: flex; align-items: stretch; }
.input-affix input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-affix span { display: flex; align-items: center; padding: 0 .75rem; border: 1.5px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--cream); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.form-card { max-width: 820px; margin: 0 auto; }
.auth-card { max-width: 440px; margin: 40px auto; }

/* Ticket code promo (signature visuelle) */
.ticket { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem;
  background: linear-gradient(180deg, #fff8e4, var(--gold-soft)); border: 2px solid var(--gold); border-radius: 16px; padding: 1rem 1.1rem; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 2px solid var(--gold); transform: translateY(-50%); }
.ticket::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -13px; clip-path: inset(0 50% 0 0); }
.ticket .label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--gold-deep); }
.ticket .code { font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 7vw, 2.6rem); letter-spacing: .04em; color: var(--bordeaux); line-height: 1.05; overflow-wrap: anywhere; }
.ticket .copy { border-left: 2px dashed var(--gold); padding-left: .8rem; }
.copy-btn[data-copied="1"] { background: var(--green); color: #fff; }

/* Page partenaire (sous-domaine) */
.pp-hero { background: linear-gradient(165deg, var(--bordeaux-ink), #160709 75%); color: #fff; position: relative; overflow: hidden; }
.pp-hero::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,63,.28), transparent 65%); }
.pp-hero .inner { position: relative; padding: 36px 0 40px; display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .pp-hero .inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 56px 0; } }
.pp-id { display: flex; gap: 1rem; align-items: center; }
.pp-id > div { min-width: 0; }
.pp-id h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); margin: 0; color: #fff; overflow-wrap: anywhere; }
.pp-id .sub { color: rgba(255,255,255,.75); font-weight: 600; }
.pp-bio { color: rgba(255,255,255,.82); margin-top: 1rem; max-width: 36em; }
.pp-promo { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 1.2rem; display: grid; gap: .9rem; }
.pp-promo .ticket::before, .pp-promo .ticket::after { background: #2a0c12; }
.pp-share { display: flex; gap: .5rem; flex-wrap: wrap; }
.empty-state { text-align: center; padding: 2.2rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--paper); }
.empty-state strong { display: block; color: var(--ink); font-family: var(--display); margin-bottom: .3rem; }

/* Logo image + visuels */
.brand-img { height: 34px; width: auto; }
@media (min-width: 900px) { .brand-img { height: 40px; } }
.visual { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #e9dccb; }
.visual.plain { box-shadow: none; background: transparent; border-radius: 0; }
.split { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.partner-logo { max-width: 220px; margin-bottom: 1rem; }
.visual-stack { display: grid; gap: 1rem; }
@media (min-width: 900px) { .visual-stack { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.banner-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px 0; }
.banner-link { display: block; border-radius: var(--radius); transition: transform .15s ease; }
.banner-link:hover { transform: translateY(-2px); }
.banner-code { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin: .9rem 0 0; font-size: .95rem; }
.banner-code strong { font-size: 1.15rem; color: var(--bordeaux); letter-spacing: .04em; }
.grid-2 .banner-link, .grid-2 > div > picture { margin-top: 1rem; display: block; }

/* Pied de page + avertissements */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 40px 0 28px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 1.6rem; }
@media (min-width: 800px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.rg-banner { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); margin-top: 1.6rem; font-size: .82rem; }
.age-badge { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font-weight: 900; font-size: .85rem; color: #fff; }
.legal-line { margin-top: 1.2rem; font-size: .78rem; color: rgba(255,255,255,.5); }

/* ===== Espaces connectés (admin / partenaire) ===== */
.app { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
@media (min-width: 980px) { .app { grid-template-columns: 250px 1fr; } }
.sidebar { background: linear-gradient(180deg, #2a1215, #1a0a0c); color: rgba(255,255,255,.82); padding: 18px 14px; display: flex; flex-direction: column; gap: 1rem; }
.sidebar .brand-word { color: #fff; }
.sidebar .brand-word b { color: #e24a63; }
.sidebar .brand-tag { color: rgba(255,255,255,.55); }
.side-nav { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 980px) { .side-nav { flex-direction: column; overflow: visible; } }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .62rem .8rem; border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a[aria-current="page"] { background: var(--bordeaux); color: #fff; box-shadow: 0 6px 16px -8px rgba(140,16,40,.9); }
.side-nav .count { margin-left: auto; background: var(--gold); color: var(--bordeaux-ink); border-radius: 999px; font-size: .72rem; padding: 0 .45rem; font-weight: 900; }
.side-foot { margin-top: auto; display: none; font-size: .78rem; color: rgba(255,255,255,.5); }
@media (min-width: 980px) { .side-foot { display: block; } }
.main { padding: 20px 16px 48px; min-width: 0; }
@media (min-width: 980px) { .main { padding: 28px 32px 56px; } }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.4rem; }
.topbar h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.topbar .who { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.2rem; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.kpi .k { font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-family: var(--display); font-weight: 900; font-size: 1.85rem; line-height: 1.1; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: .78rem; color: var(--muted); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 1rem; }
.panel > h2, .panel > h3 { font-size: 1.05rem; margin-bottom: .8rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cols-2 { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .cols-2 { grid-template-columns: 1.4fr 1fr; } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .65rem .6rem; border-bottom: 1px solid #f1e7da; vertical-align: top; }
.table tr:hover td { background: #fffaf2; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .55rem 0; border-bottom: 1px solid #f1e7da; display: flex; justify-content: space-between; gap: .8rem; }
.list-plain li:last-child { border-bottom: 0; }
.pager { display: flex; gap: .4rem; align-items: center; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.pager a, .pager span { padding: .35rem .75rem; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--ink); }
.pager .current { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.actions-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form > * { flex: 1 1 180px; }
.inline-form .btn { flex: 0 0 auto; }
.status-banner { padding: 1rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; border: 1px solid; }
.status-banner.pending { background: var(--amber-soft); border-color: #efd5a6; color: #6b4100; }
.status-banner.suspended, .status-banner.refused, .status-banner.archived { background: var(--red-soft); border-color: #f2bcb7; color: #7c1711; }
.copy-row { display: flex; gap: .5rem; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .35rem .35rem .35rem .8rem; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: .85rem; }
.onboard { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.onboard li { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.onboard .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; background: #eee7e0; color: var(--muted); flex: none; }
.onboard li.confirmed .n { background: var(--green); color: #fff; }
.onboard li.declared .n { background: var(--amber); color: #fff; }
.onboard .t { flex: 1; font-weight: 700; font-size: .92rem; }
.onboard form { margin: 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1rem; font-size: .92rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 700; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.danger-zone { border-color: #f2bcb7; }
.notif { padding: .8rem 0; border-bottom: 1px solid #f1e7da; }
.notif.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bordeaux); margin-right: .45rem; vertical-align: middle; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.error-page .code { font-family: var(--display); font-size: 5rem; font-weight: 900; color: var(--bordeaux); line-height: 1; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
