/* BetaQuorum — design system
   Idée directrice : le quorum. Douze sièges autour d'un arc de quatorze jours.
   Une seule chose spectaculaire (l'anneau), tout le reste reste calme. */

:root {
  --paper: #E9EDF5;
  --paper-hi: #F5F7FC;
  --ink: #0B1330;
  --ink-soft: #46507A;
  --night: #0B1330;
  --night-hi: #151F4D;
  --blue: #2F3CFF;
  --blue-deep: #2330E0;
  --blue-soft: #DCE0FF;
  --blue-light: #8E97FF;
  --mint: #19C37D;
  --mint-deep: #0C7A4E;
  --mint-soft: #CDF3E2;
  --amber: #FFB020;
  --amber-soft: #FFE9BF;
  --rose: #E5384F;
  --rose-soft: #FBD9DE;
  --line: rgba(11, 19, 48, .12);
  --line-strong: rgba(11, 19, 48, .24);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible { outline-color: var(--blue-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-soft); }
.on-night .muted { color: rgba(255, 255, 255, .66); }
.nowrap { white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1b2551; }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.on-night .btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.on-night .btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-soft); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.02rem; border-radius: 14px; }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; border-radius: 10px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- En-têtes ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 700 1.28rem/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.top nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; opacity: .85; }
.top nav a:not(.btn):hover { opacity: 1; text-decoration: underline; }
.nav-links { display: flex; gap: clamp(14px, 3vw, 32px); }

/* ---------- Anneau du quorum ---------- */
.ring { display: block; width: 100%; height: auto; --ring-track: rgba(11, 19, 48, .1); --ring-arc: var(--blue); --ring-off: rgba(11, 19, 48, .22); }
.on-night .ring { --ring-track: rgba(255, 255, 255, .12); --ring-arc: var(--blue-light); --ring-off: rgba(255, 255, 255, .26); }
.ring .track { fill: none; stroke: var(--ring-track); stroke-width: 6; }
.ring .arc { fill: none; stroke: var(--ring-arc); stroke-width: 6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 150px 150px; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .7, .2, 1); }
.ring .seat { fill: transparent; stroke: var(--ring-off); stroke-width: 2; transition: fill .35s, stroke .35s, filter .35s; }
.ring .seat.is-on { fill: var(--mint); stroke: var(--mint); }
.on-night .ring .seat.is-on { filter: drop-shadow(0 0 7px rgba(25, 195, 125, .65)); }
.ring .seat.is-wait { stroke: var(--blue); stroke-dasharray: 3 3; }
.on-night .ring .seat.is-wait { stroke: var(--blue-light); }
.ring .main { font: 700 70px/1 var(--font-display); fill: currentColor; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring .sub { font: 500 13.5px/1 var(--font-body); fill: currentColor; opacity: .68; }
.ring.is-count14 .main { font-size: 60px; }

/* ---------- Page d'accueil ---------- */
.on-night { background: var(--night); color: #fff; }
.hero { padding-block: clamp(36px, 7vw, 84px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.035em; max-width: 12ch; }
.hero .lede { margin-top: 26px; max-width: 50ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .74); }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .55); max-width: 52ch; }
.stage { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.stage figcaption { margin-top: 10px; text-align: center; font-size: .86rem; color: rgba(255, 255, 255, .6); }

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.03em; max-width: 20ch; }
.section .intro { margin-top: 18px; max-width: 60ch; font-size: 1.08rem; color: var(--ink-soft); }

.rule-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.rule-statement { font: 700 clamp(2.2rem, 4.8vw, 4.1rem)/1.04 var(--font-display); letter-spacing: -.035em; max-width: 14ch; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--ink-soft); }
.facts { margin: 0; }

.timeline { margin-top: 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line-strong); }
.tl-step { position: relative; padding: 52px 18px 0 0; }
.tl-step::before { content: ""; position: absolute; top: 12px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--blue); }
.tl-step.is-end::before { background: var(--mint); border-color: var(--mint); }
.tl-day { position: absolute; top: -6px; left: 0; font: 700 1.05rem/1 var(--font-display); }
.tl-step h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.tl-step p { margin-top: 8px; font-size: .94rem; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split > article { padding: clamp(28px, 4vw, 52px); }
.split > article + article { border-left: 1px solid var(--line-strong); }
.split h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); max-width: 18ch; }
.split p { margin-top: 14px; color: var(--ink-soft); max-width: 48ch; }
.split ul { margin: 22px 0 28px; display: grid; gap: 10px; }
.split li { display: flex; gap: 12px; align-items: baseline; }
.split li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: translateY(-1px); }

.honest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: 44px; }
.honest h3 { font-size: 1.3rem; margin-bottom: 18px; }
.honest li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.honest li:last-child { border-bottom: 1px solid var(--line); }
.honest svg { width: 20px; height: 20px; margin-top: 2px; }
.honest .yes svg { color: var(--mint-deep); }
.honest .no svg { color: var(--ink-soft); }
.honest strong { display: block; font-weight: 600; }
.honest span { color: var(--ink-soft); font-size: .95rem; }

.footer { padding-block: 44px 56px; border-top: 1px solid var(--line-strong); font-size: .9rem; color: var(--ink-soft); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
.footer p { max-width: 62ch; }

/* ---------- Surfaces ---------- */
.panel { background: var(--paper-hi); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.panel--night { background: var(--night); color: #fff; border-color: transparent; }
.panel h2, .panel h3 { font-size: 1.25rem; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.empty { padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--ink-soft); }

/* ---------- Authentification ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side .stage { margin-block: auto; max-width: 400px; }
.auth-main { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.auth-card { max-width: 440px; width: 100%; margin-inline: auto; }
.auth-card h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; }
.auth-card .lede { margin-top: 14px; color: var(--ink-soft); }
.btn-google { width: 100%; margin-top: 28px; background: #fff; color: #1f1f1f; border: 1px solid var(--line-strong); padding: .95rem 1.2rem; font-size: 1rem; }
.btn-google:hover { border-color: var(--ink); background: #fff; }
.btn-google svg { width: 20px; height: 20px; }
.fineprint { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }
.dev-box { margin-top: 34px; padding: 16px 18px; border: 1px dashed var(--amber); background: var(--amber-soft); border-radius: var(--r-md); font-size: .9rem; }
.dev-box strong { display: block; margin-bottom: 8px; }
.dev-box .btn-row { gap: 8px; }

/* ---------- Application ---------- */
.app-top { border-bottom: 1px solid var(--line); background: var(--paper-hi); }
.app-top .top { padding-block: 14px; }
.app-nav { display: flex; align-items: center; gap: 6px; }
.app-nav a { padding: .5rem .9rem; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: .95rem; }
.app-nav a:hover { background: var(--blue-soft); }
.app-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.me { display: flex; align-items: center; gap: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); font: 700 .82rem/1 var(--font-display); flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; font-size: .9rem; color: var(--ink-soft); text-decoration: underline; text-underline-offset: .2em; }
.main { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.03em; }
.page-head .sub { margin-top: 10px; color: var(--ink-soft); max-width: 62ch; }
.crumb { display: inline-block; margin-bottom: 14px; font-size: .9rem; color: var(--ink-soft); text-decoration: none; }
.crumb:hover { color: var(--ink); text-decoration: underline; }

.flashes { display: grid; gap: 10px; margin-bottom: 24px; }
.flash { padding: 14px 18px; border-radius: var(--r-md); border: 1px solid; font-weight: 500; }
.flash--success { background: var(--mint-soft); border-color: #8ADDB9; color: #07583A; }
.flash--error { background: var(--rose-soft); border-color: #F2A5B0; color: #8A1426; }
.flash--info { background: var(--blue-soft); border-color: #B1B9FF; color: #1A24A8; }

.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.badge--recruiting { background: var(--blue-soft); color: #1A24A8; }
.badge--running { background: var(--mint-soft); color: var(--mint-deep); }
.badge--completed { background: var(--ink); color: #fff; }
.badge--warn { background: var(--amber-soft); color: #7A4B00; }
.badge--gone { background: var(--rose-soft); color: #8A1426; }

.meter { display: inline-flex; gap: 3px; vertical-align: middle; }
.meter i { width: 16px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.meter i.on { background: var(--mint); }

/* liste de campagnes */
.camp-list { display: grid; gap: 14px; }
.camp { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 26px 20px 20px; background: var(--paper-hi); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, background-color .15s; }
.camp:hover { border-color: var(--ink); background: #fff; }
.camp h2 { font-size: 1.35rem; }
.camp .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-soft); font-size: .93rem; align-items: center; }
.camp .go { color: var(--ink-soft); }
.camp .go svg { width: 22px; height: 22px; }
.invite { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); background: var(--paper-hi); border: 1px solid var(--line); border-radius: var(--r-lg); }
.invite h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.03em; max-width: 18ch; }
.invite p { margin: 14px 0 24px; color: var(--ink-soft); max-width: 52ch; }

/* campagne */
.camp-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
.camp-side { display: grid; gap: 24px; }
.dial-panel { text-align: center; }
.dial-panel .ring { max-width: 320px; margin-inline: auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.stats > div { padding: 16px 12px 0 0; }
.stats > div + div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stats dt { font-size: .82rem; color: rgba(255, 255, 255, .62); }
.stats dd { margin: 4px 0 0; font: 700 1.6rem/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats { margin-bottom: 0; }

.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr) 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.row--head { font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding-block: 10px; }
.row.is-gone { opacity: .55; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who strong { display: block; font-weight: 600; line-height: 1.2; }
.who span { font-size: .85rem; color: var(--ink-soft); }
.level { display: grid; gap: 6px; font-size: .88rem; }
.num { font-variant-numeric: tabular-nums; }

.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--font-display); background: var(--paper); border: 2px solid var(--line-strong); }
.step.is-done .step-n { background: var(--mint); border-color: var(--mint); color: #fff; }
.step.is-current .step-n { border-color: var(--blue); color: var(--blue); background: #fff; }
.step.is-locked { opacity: .58; }
.step h3 { font-size: 1.12rem; margin-top: 7px; }
.step p { margin-top: 6px; color: var(--ink-soft); max-width: 60ch; }
.step .btn-row { margin-top: 14px; }
.copybox { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; max-width: 520px; }
.copybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 500 .95rem/1.3 var(--font-body); }

.feeds { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.feed { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feed p { margin-top: 4px; }
.feed small { color: var(--ink-soft); }
.kind { display: inline-flex; padding: .2rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 600; height: fit-content; width: fit-content; }
.kind--bug { background: var(--rose-soft); color: #8A1426; }
.kind--idea { background: var(--blue-soft); color: #1A24A8; }
.kind--ok { background: var(--mint-soft); color: var(--mint-deep); }

/* missions testeur */
.missions { display: grid; gap: 14px; }
.mission { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-hi); }
.mission header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mission h3 { font-size: 1.12rem; }
.mission p { margin-top: 8px; color: var(--ink-soft); max-width: 66ch; }
.mission.is-locked { background: transparent; border-style: dashed; }
.mission.is-done { border-color: #8ADDB9; background: #F0FBF6; }
.mission form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.todo { display: grid; gap: 12px; }
.todo a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-hi); text-decoration: none; }
.todo a:hover { border-color: var(--ink); background: #fff; }
.todo strong { display: block; }
.todo small { color: var(--ink-soft); }

.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.open-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.open-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.open-item strong { display: block; }
.open-item small { color: var(--ink-soft); }
.my-camp { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px 16px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-hi); text-decoration: none; }
.my-camp:hover { border-color: var(--ink); background: #fff; }
.my-camps { display: grid; gap: 12px; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label, legend { font-weight: 600; }
.field .hint { font-size: .9rem; color: var(--ink-soft); }
.input, .select, .textarea { width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-soft); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.textarea { min-height: 130px; resize: vertical; }
.is-invalid { border-color: var(--rose) !important; }
.error { color: #A3152A; font-size: .9rem; font-weight: 500; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 500; font-size: .93rem; transition: background-color .15s, border-color .15s, color .15s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check.is-invalid { border-color: var(--rose); }
.stepper { max-width: 760px; }
.stepper fieldset.step { padding-bottom: 36px; }
.stepper .step > div { display: grid; gap: 16px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.role { position: relative; display: block; padding: 28px 26px; border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); background: var(--paper-hi); cursor: pointer; transition: border-color .15s, background-color .15s; }
.role input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role h3 { font-size: 1.35rem; }
.role p { margin-top: 10px; color: var(--ink-soft); }
.role:hover { border-color: var(--ink); }
.role:has(input:checked) { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.role:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.sev { display: none; }
.sev.is-shown { display: grid; }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--blue); }
.range-row output { min-width: 2.5ch; font: 700 1.4rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Texte long ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0 1.1rem; list-style: disc; display: grid; gap: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .rule-grid, .camp-grid, .cols, .invite, .honest { grid-template-columns: 1fr; }
  .hero h1 { max-width: 14ch; }
  .stage { max-width: 440px; }
  .timeline { grid-template-columns: 1fr; margin-top: 40px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl-step { padding: 0 0 30px 38px; }
  .tl-step::before { top: 2px; left: 0; }
  .tl-day { position: static; display: block; margin-bottom: 4px; }
  .split { grid-template-columns: 1fr; }
  .split > article + article { border-left: 0; border-top: 1px solid var(--line-strong); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 0; }
  .auth-side .stage { max-width: 260px; }
  .invite .ring { max-width: 220px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .app-top .top { flex-wrap: wrap; }
  .app-nav { order: 3; width: 100%; }
  .camp { grid-template-columns: 76px minmax(0, 1fr); padding: 16px; gap: 16px; }
  .camp .go { display: none; }
  .row { grid-template-columns: 1fr 1fr; }
  .row--head { display: none; }
  .row > :first-child { grid-column: 1 / -1; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .role-pick { grid-template-columns: 1fr; }
  .my-camp { grid-template-columns: 64px minmax(0, 1fr); }
  .my-camp .badge { grid-column: 2; justify-self: start; }
  .feed { grid-template-columns: 1fr; gap: 8px; }
  .stats dd { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Petits anneaux : on masque le sous-titre illisible a cette taille */
.camp .ring .sub, .my-camp .ring .sub { display: none; }
.camp .ring .main { font-size: 78px; }
.my-camp .ring .main { font-size: 84px; }
/* Impression du rapport */
@media print {
  .app-top, .no-print, .flashes, .footer { display: none !important; }
  body { background: #fff; }
  .panel { break-inside: avoid; border-color: #ccc; }
  .main { padding-block: 0; }
}

/* ---------- Administration : chiffres clés, recherche, liste des utilisateurs ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 32px; }
.stat { background: var(--paper-hi); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.stat dt { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.stat dd { margin: 6px 0 4px; font: 700 2rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat small { display: block; color: var(--ink-soft); font-size: .82rem; line-height: 1.4; }
.stat--warn { background: var(--amber-soft); border-color: transparent; }
.stat--warn small, .stat--warn dt { color: #7A4B00; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.toolbar .input { flex: 1 1 260px; max-width: 460px; }
.row--users { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.1fr) 96px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 680px) {
  .row--users { grid-template-columns: 1fr 1fr; }
  .row--users > :first-child { grid-column: 1 / -1; }
}

/* ---------- Pages d'erreur ---------- */
.err { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 18px; padding-block: 48px; }
.err .code { font: 700 clamp(4.5rem, 16vw, 9rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--blue); }
.err h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.03em; }
