/* Novaffiliate : espace partenaires (v2, d'après la maquette validée le 2026-11-10).
   Tout le thème tient dans les variables ci-dessous : Novadmin les réglera par programme
   (mode clair ou sombre, couleur principale, couleur secondaire, images). */
@font-face { font-family: "Outfit Variable"; font-weight: 100 900; font-display: swap; src: url("fonts/outfit.woff2") format("woff2"); }

:root {
  --accent: #c9a227;
  --accent-2: #9fbf8e;
  --font: "Outfit Variable", ui-sans-serif, system-ui, sans-serif;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1180px, 100% - 2 * clamp(18px, 4vw, 48px));
  --r: 22px;
}

/* Sombre (défaut) */
:root, [data-mode="dark"] {
  --bg: #0a0b0c; --bg-2: #0f1012; --card: #14161a; --card-2: #1a1c20;
  --line: rgb(236 232 225 / 0.08); --line-2: rgb(236 232 225 / 0.14);
  --text: #ece8e1; --soft: #cfc8bc; --muted: #968f83; --faint: #5d574d;
  --accent-text: color-mix(in oklab, var(--accent) 80%, white);
  --accent-ink: #14110a;
  --veil: linear-gradient(90deg, rgb(10 11 12 / 0.92) 0%, rgb(10 11 12 / 0.62) 45%, rgb(10 11 12 / 0.05) 100%);
  --shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  color-scheme: dark;
}
/* Clair */
[data-mode="light"] {
  --bg: #f6f3ee; --bg-2: #efebe4; --card: #ffffff; --card-2: #faf8f4;
  --line: rgb(26 23 20 / 0.08); --line-2: rgb(26 23 20 / 0.14);
  --text: #1a1714; --soft: #3d3832; --muted: #6e675d; --faint: #a39b8f;
  --accent-text: color-mix(in oklab, var(--accent) 72%, black);
  --accent-ink: #14110a;
  --veil: linear-gradient(90deg, rgb(246 243 238 / 0.94) 0%, rgb(246 243 238 / 0.7) 45%, rgb(246 243 238 / 0.05) 100%);
  --shadow: 0 24px 50px -28px rgb(60 45 20 / 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(15px, 0.25vw + 14px, 17px)/1.6 var(--font);
  -webkit-font-smoothing: antialiased; transition: background-color .4s var(--out), color .4s var(--out); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .3s var(--out), filter .2s; }
.btn:hover { box-shadow: 0 14px 34px -10px color-mix(in oklab, var(--accent) 60%, transparent); filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn .ic { transition: transform .3s var(--spring); }
.btn:hover .ic { transform: translateX(3px); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); font-weight: 550; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line-2)); background: color-mix(in oklab, var(--accent) 6%, transparent); }

/* En-tête de l'espace connecté */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in oklab, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; color: var(--accent); }
.brand b { font-weight: 650; font-size: 16px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { position: relative; padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); background: var(--card-2); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.me { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 14px;
  background: color-mix(in oklab, var(--accent) 22%, var(--card)); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
.burger { display: none; }

/* Pages */
main { padding-bottom: 80px; }
.head { padding: clamp(28px, 5vw, 48px) 0 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650; margin-top: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow); }
.card h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }

/* Bandeau photo du tableau de bord */
.welcome { position: relative; overflow: hidden; border-radius: calc(var(--r) + 6px); min-height: 260px; display: flex; align-items: center;
  background: var(--card) var(--img-dashboard, none) right center / cover no-repeat; border: 1px solid var(--line); }
.welcome::before { content: ""; position: absolute; inset: 0; background: var(--veil); }
.welcome > div { position: relative; padding: clamp(22px, 4vw, 44px); max-width: 560px; }
.welcome h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 650; margin: 10px 0 10px; }
.welcome p { color: var(--soft); max-width: 44ch; }
.link-box { margin-top: 22px; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px); max-width: 520px; }
.link-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-weight: 500; font-size: 14.5px; outline: none; }
.link-box .btn { padding: 11px 18px; }

/* Chiffres */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0; }
.kpi { position: relative; padding: 20px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi b { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.kpi .up { color: var(--accent-2); font-weight: 600; }
.kpi.hot { background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 16%, var(--card)), var(--card) 70%); border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); }
.kpi.hot b { color: var(--accent-text); }

/* Graphique */
.chart-wrap { position: relative; }
.chart { width: 100%; height: 260px; display: block; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 0 var(--line-2); }
.tip { position: absolute; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12.5px; line-height: 1.35;
  opacity: 0; transform: translate(-50%, -110%); transition: opacity .15s; white-space: nowrap; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
td { padding: 13px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: color-mix(in oklab, var(--accent) 4%, transparent); }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-att { color: #d9a441; background: rgb(217 164 65 / .12); }
.p-ok { color: var(--accent-2); background: color-mix(in oklab, var(--accent-2) 14%, transparent); }
.p-pay { color: var(--soft); background: var(--card-2); }
.p-pay::before { background: var(--accent); }
.p-non { color: var(--faint); background: var(--card-2); }
.scroll-x { overflow-x: auto; }
.two { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }

/* Ressources */
.banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.banner { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card-2); }
.banner .img { aspect-ratio: 16 / 9; background-size: cover; background-position: center; position: relative; }
.banner .img.square { aspect-ratio: 1; }
.banner .img.story { aspect-ratio: 9 / 13; }
.banner .over { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(transparent, rgb(0 0 0 / .75)); color: #fff; }
.banner .over b { display: block; font-size: 18px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.banner .over em { font-style: normal; font-size: 12px; color: #e4c56a; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.banner footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.texts { display: grid; gap: 12px; }
.text { padding: 16px 18px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.text p { color: var(--soft); white-space: pre-line; font-size: 14.5px; }
.text header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.links { display: grid; gap: 8px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .25s var(--spring); }
.links a:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); transform: translateX(3px); }
.links small { margin-left: auto; color: var(--muted); font-size: 12.5px; }

/* Formulaires */
.field { display: grid; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--soft); }
.field input, .field select, .field textarea { padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); outline: none; font-size: 15.5px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.field small { font-weight: 400; color: var(--muted); }
.form { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { display: grid; place-items: center; gap: 6px; padding: 26px; border-radius: 16px; border: 1.5px dashed var(--line-2); text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, transparent); }
.drop b { color: var(--text); font-weight: 600; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch small { display: block; color: var(--muted); font-size: 13px; }
.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .25s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(18px); }

/* Pages publiques : connexion et « Devenir partenaire » */
.split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1.1fr; }
.split .side { position: relative; background: var(--img-login, none) center / cover no-repeat; }
.split .side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .7)); }
.split .quote { position: absolute; z-index: 1; left: clamp(24px, 4vw, 48px); right: clamp(24px, 4vw, 48px); bottom: clamp(24px, 4vw, 44px); color: #fff; }
.split .quote p { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; max-width: 26ch; }
.split .quote small { display: block; margin-top: 10px; color: rgb(255 255 255 / .7); font-size: 13.5px; }
.split .pane { display: grid; align-content: center; padding: clamp(28px, 6vw, 80px); }
.pane-in { width: min(400px, 100%); margin-inline: auto; }
.pane-in h1 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.05; font-weight: 650; margin: 28px 0 10px; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code input { text-align: center; font-size: 24px; font-weight: 650; padding: 14px 0; }
.step { display: none; }
.step.on { display: grid; animation: rise .45s var(--out); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden;
  background: var(--card) var(--img-hero, none) right center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--veil); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 650; max-width: 12ch; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero p.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--soft); max-width: 46ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.pubnav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.pubnav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: -54px; position: relative; z-index: 2; }
.facts div { background: var(--card); padding: 24px 26px; }
.facts b { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 650; letter-spacing: -.035em; color: var(--accent-text); }
.facts span { color: var(--muted); font-size: 14.5px; }
section.block { padding: clamp(56px, 8vw, 104px) 0 0; }
section.block > .wrap > h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.035em; line-height: 1.05; font-weight: 650; max-width: 18ch; margin: 12px 0 34px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps .card { box-shadow: none; }
.steps .card::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 13px; font-weight: 650; letter-spacing: .1em; color: var(--accent-text); margin-bottom: 26px; }
.steps h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.steps p { color: var(--muted); }
.apply { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.apply .photo { border-radius: calc(var(--r) + 6px); min-height: 520px; background: var(--card-2) var(--img-kit, none) center / cover; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 550; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; transition: transform .3s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }
.foot { padding: 60px 0 40px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 980px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .two, .apply, .split { grid-template-columns: 1fr; }
  .split .side { min-height: 280px; }
  .banners, .steps, .facts { grid-template-columns: 1fr; }
  .facts { margin-top: 24px; }
  .nav { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .me { margin-left: 0; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .link-box { flex-direction: column; border-radius: 18px; }
  .link-box input { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Kit média (Ressources v2) */
.kit-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; margin-bottom: 16px; box-shadow: none; }
.kit-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 17px;
  background: color-mix(in oklab, var(--accent) 16%, transparent); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
.kit-body { min-width: 0; }
.kit-body > h2 { font-size: 21px; letter-spacing: -.02em; margin: 6px 0 4px; }
.kit-body > .muted { margin-bottom: 20px; }
.lbl { font-size: 13px; color: var(--soft); font-weight: 500; margin-bottom: 8px; }
.kit-ids { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.kit-line { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); transition: border-color .2s, box-shadow .2s; }
.kit-line:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 15%, transparent); }
.kit-line input { flex: 1; min-width: 60px; border: 0; background: transparent; outline: none; font-weight: 650; font-size: 16px; color: var(--accent-text); padding: 8px 0; }
.kit-pre { color: var(--muted); font-size: 15px; white-space: nowrap; }
.kit-line .btn, .kit-line .btn-ghost { padding: 10px 16px; font-size: 14px; }
.kit-state { display: flex; align-items: center; gap: 7px; font-size: 13px; margin-top: 9px; color: var(--muted); }
.kit-state.ok { color: var(--accent-2); }
.kit-state.wait { color: #d9a441; }
.kit-state.bad { color: #e2715b; }
.kit-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.kit-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14.5px; font-weight: 550; color: var(--muted); transition: all .2s; }
.kit-tabs button:hover { color: var(--text); }
.kit-tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.kit-panel { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 24px; align-items: start; animation: rise .4s var(--out); }
.kit-visual { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; background-size: cover; background-position: center; overflow: hidden; border: 1px solid var(--line); }
.kit-visual.square { aspect-ratio: 1; }
.kit-visual.story { aspect-ratio: 9 / 14; max-width: 260px; }
.kit-visual figcaption { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(transparent, rgb(0 0 0 / .78)); color: #fff; }
.kit-visual em { font-style: normal; font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #e4c56a; }
.kit-visual b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.kit-copy { white-space: pre-line; padding: 18px 20px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); color: var(--soft); font-size: 15px; line-height: 1.65; }
.kit-copy b, .kit-copy .v-link { color: var(--accent-text); font-weight: 600; }
.kit-copy .v-link b { font-weight: 700; }
.kit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.kit-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.kit-tip .ic { color: var(--accent-text); margin-top: 3px; }
.kit-share { display: flex; gap: 8px; flex-wrap: wrap; }
.kit-more { border: 0; padding: 18px 0 0; }
.kit-more summary { font-size: 15px; color: var(--soft); }
@media (max-width: 980px) { .kit-ids, .kit-panel { grid-template-columns: 1fr; } .kit-step { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .kit-line { flex-wrap: wrap; border-radius: 18px; padding: 10px 12px; } .kit-pre { font-size: 13px; } }
.kit-rates { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); }
.kit-rates button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.kit-rates button:hover { color: var(--text); }
.kit-rates button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }

/* Formulaires d'accès (connexion, code, inscription) et compléments v2 */
.login-err { padding: 11px 14px; border-radius: 12px; background: rgb(226 113 91 / .14); color: #f0a08c; font-size: 14px; }
[data-mode="light"] .login-err { color: #a2412a; }
.flash { padding: 13px 16px; border-radius: 14px; margin: 18px 0 0; background: color-mix(in oklab, var(--accent-2) 14%, transparent); color: var(--text); font-size: 14.5px; }
.taux { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.taux legend { font-size: 13.5px; font-weight: 500; color: var(--soft); margin-bottom: 8px; padding: 0; }
.taux label { cursor: pointer; position: relative; }
.taux input { position: absolute; opacity: 0; }
.taux span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all .2s; }
.taux input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.taux input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.case input { margin-top: 4px; accent-color: var(--accent); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.code-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent-text); border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent); }
.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin: 16px 0 0; border-radius: 16px;
  background: color-mix(in oklab, var(--accent) 10%, var(--card)); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); font-size: 15px; }
.onglets { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.onglets a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; color: var(--muted); }
.onglets a[aria-current] { background: color-mix(in oklab, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--text); }
.vide { color: var(--muted); font-size: 14.5px; }
.brand img { height: 32px; width: auto; max-width: 140px; object-fit: contain; }
.brand i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-weight: 700; }
.split .side.plain { background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 40%, var(--bg)), var(--bg)); }
.top form { margin: 0; }
.drop { position: relative; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.has-file { border-style: solid; border-color: var(--accent-2); }
.kit-new { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.kit-new-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kit-new-row .kit-line { flex: 1 1 260px; }
.kit-rates label { cursor: pointer; position: relative; }
.kit-rates input { position: absolute; opacity: 0; }
.kit-rates span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.kit-rates input:checked + span { background: var(--accent); color: var(--accent-ink); }
.kit-rates input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
