/* =============================================================================
   Event Bucket : feuille de style unique (sans build, sans framework), v1.0.1
   Charte « festive mais sobre » : violet nuit + corail + soleil sur fond crème.
   Sommaire : 1 polices · 2 jetons · 3 base · 4 mise en page · 5 boutons · 6 champs
   7 cartes, alertes, badges · 8 tableaux · 9 navigation secondaire · 10 médias
   11 invités · 12 organisateur · 13 accueil · 14 administration · 15 états
   16 accessibilité et mouvement
   ============================================================================= */

/* 1. Polices ----------------------------------------------------------------- */
/* Bricolage Grotesque (SIL OFL 1.1, voir fonts/OFL-BricolageGrotesque.txt) : titres seulement,
   variable 500–800, sous-ensemble latin, 37 Ko. Le texte courant utilise la police du système
   (zéro octet à charger pour les invités en 4G, rendu natif très lisible à tout âge). */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 500 800; font-style: normal; font-display: swap;
}

/* 2. Jetons ------------------------------------------------------------------ */
:root {
  color-scheme: light dark;
  /* Couleurs (contrastes WCAG 2.2 AA vérifiés : texte ≥ 4,5:1, contours de champs ≥ 3:1) */
  --bg: #FBF8F4; --surface: #FFFFFF; --surface-2: #F4F0FA; --surface-3: #ECE6F7;
  --line: #E6E0EF; --line-strong: #8E87A3;
  --text: #1F1B2E; --muted: #5A546B;
  --primary: #4B32C3; --primary-hover: #3B25A3; --on-primary: #FFFFFF;
  --primary-soft: #ECE8FF; --primary-text: #3F28B0;
  --coral: #FF6B5B; --coral-text: #B4372A; --coral-soft: #FFE7E3;
  --sun: #FFC23D; --sun-soft: #FFF3D6; --lilac: #CFC5FF;
  --danger: #B42318; --danger-soft: #FDECEA; --danger-line: #F2B8B1;
  --success: #1A7340; --success-soft: #E3F4EA; --success-line: #A9DABD;
  --warning: #8A4B00; --warning-soft: #FFF1D6; --warning-line: #F3D18D;
  --info-soft: #ECE8FF; --info-line: #C9BEFF;
  --focus: #4B32C3; --focus-halo: #FFFFFF;
  --overlay: rgba(20, 17, 31, .86);
  /* Typographie */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font-body);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-md: 1rem; --fs-lg: 1.1875rem;
  --fs-h3: 1.125rem; --fs-h2: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
  --fs-h1: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-display: clamp(2.2rem, 1.5rem + 3.4vw, 3.75rem);
  /* Espacements (échelle 4 px) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  /* Rayons, ombres, cibles */
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(31, 27, 46, .06), 0 1px 3px rgba(31, 27, 46, .05);
  --shadow-2: 0 10px 30px -12px rgba(31, 27, 46, .22), 0 2px 6px rgba(31, 27, 46, .05);
  --shadow-3: 0 30px 60px -20px rgba(43, 26, 120, .35);
  --tap: 48px; --tap-sm: 36px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14111F; --surface: #1E1A2C; --surface-2: #282338; --surface-3: #312B45;
    --line: #353049; --line-strong: #6E6788;
    --text: #F2EFF8; --muted: #B3ADC6;
    --primary: #A99BFF; --primary-hover: #C2B8FF; --on-primary: #14111F;
    --primary-soft: #2D2650; --primary-text: #C3B8FF;
    --coral: #FF8A7E; --coral-text: #FF9A8E; --coral-soft: #3A2124;
    --sun: #FFC560; --sun-soft: #3A2C12; --lilac: #4A3F86;
    --danger: #FF8F85; --danger-soft: #3A1E22; --danger-line: #6E3036;
    --success: #6FD39A; --success-soft: #17322A; --success-line: #2D5E47;
    --warning: #FFC560; --warning-soft: #3A2C12; --warning-line: #6A5122;
    --info-soft: #2D2650; --info-line: #4A3F86;
    --focus: #C2B8FF; --focus-halo: #14111F;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-3: 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
}
@media (pointer: coarse) { :root { --tap-sm: 44px; } }

/* 3. Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; font: var(--fs-md)/1.6 var(--font-body); color: var(--text); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 var(--s-3); font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); margin-top: var(--s-5); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--primary-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
::selection { background: var(--lilac); color: #1F1B2E; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Utilitaires */
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.center { text-align: center; }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.55; }
.nowrap, .badge { white-space: nowrap; }
.url { word-break: break-all; }
.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.medium { max-width: 720px; margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: var(--s-4); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--coral-text); margin: 0 0 var(--s-3); }
.indent { margin-left: 1.9rem; }

/* 4. Mise en page ------------------------------------------------------------ */
.skip-link { position: absolute; left: -9999px; top: var(--s-2); z-index: 100; background: var(--primary); color: var(--on-primary);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { left: var(--s-2); }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: var(--max); margin: 0 auto; padding: var(--s-2) var(--s-4); min-height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; min-height: var(--tap-sm); }
.brand img { width: 34px; height: 34px; }
.topnav { display: flex; align-items: center; gap: var(--s-1) var(--s-2); flex-wrap: wrap; }
.topnav > a, .topnav button.link { display: inline-flex; align-items: center; min-height: var(--tap-sm); padding: 0 var(--s-3);
  border-radius: var(--r-pill); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.topnav > a:hover, .topnav button.link:hover { background: var(--surface-2); }
.topnav > a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); }
.topnav .btn { margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--s-5) var(--s-4) var(--s-8); flex: 1 0 auto; }
main:focus { outline: none; }
.page-home .container { max-width: none; padding: 0; }
.page-guest .container { max-width: 760px; padding-top: var(--s-4); }
.page-admin .container, .page-admin .topbar-inner, .page-admin .footer-inner { max-width: 1320px; }
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--fs-sm); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: var(--s-6) var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 1.05rem; }
.footer .brand img { width: 28px; height: 28px; }
.footer-tagline { margin: var(--s-2) 0 0; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); display: inline-flex; min-height: var(--tap-sm); align-items: center; }
.footer-links a:hover { color: var(--text); }
.footer-version { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); }
.footer-promo { flex-basis: 100%; margin: 0; padding: var(--s-4); border-radius: var(--r); background: var(--surface-2); color: var(--text); }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.page-head h1 { margin-bottom: var(--s-1); }
.page-head p { margin: 0; }
.page-head .btn { margin-top: 0; }
.grid2, .grid3 { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid-aside { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .grid-aside { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; } }
.back-link { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap-sm); font-weight: 600; font-size: var(--fs-sm);
  text-decoration: none; color: var(--muted); margin-bottom: var(--s-2); }
.back-link::before { content: "←"; }
.back-link:hover { color: var(--text); }

/* 5. Boutons et liens -------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--tap); padding: .55rem 1.25rem;
  border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 600 var(--fs-md)/1.2 var(--font-body); text-decoration: none; cursor: pointer; margin-top: var(--s-3);
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; text-align: center; }
.btn:hover { background: var(--surface-2); border-color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px -8px rgba(75, 50, 195, .7); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-lg { min-height: 56px; padding: .7rem 1.75rem; font-size: var(--fs-lg); }
.btn-small, .btn-sm { min-height: var(--tap-sm); padding: .3rem .85rem; font-size: var(--fs-sm); margin-top: var(--s-2); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; margin-top: var(--s-4); }
.btn-row .btn { margin-top: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-text); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
form.inline { display: inline; }

/* 6. Champs ------------------------------------------------------------------ */
label { display: block; font-weight: 650; margin: var(--s-4) 0 var(--s-2); }
label.check { font-weight: 400; display: flex; gap: var(--s-3); align-items: flex-start; margin: var(--s-3) 0; cursor: pointer; line-height: 1.45; }
label.check input { flex: 0 0 auto; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: var(--tap); padding: .65rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; color: var(--text); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
input:hover, select:hover, textarea:hover { border-color: var(--text); }
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%238E87A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; }
input[type=checkbox], input[type=radio] { width: 1.35rem; height: 1.35rem; margin: .1rem 0 0; accent-color: var(--primary); cursor: pointer; }
input[type=file] { width: 100%; padding: var(--s-3); border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--surface-2); font: inherit; color: var(--text); }
input[type=file]::file-selector-button { font: 600 var(--fs-sm) var(--font-body); padding: .5rem 1rem; margin-right: var(--s-3); border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; min-height: 40px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); margin: var(--s-2) 0 0; font-size: var(--fs-sm); font-weight: 600; }
.field-error::before { content: "⚠ "; }
.help { color: var(--muted); font-size: var(--fs-sm); margin: var(--s-2) 0 0; }
.row2 { display: grid; gap: 0 var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 480px) { .row2 { grid-template-columns: 1fr 1fr; } }
.code-input { font: 700 1.9rem/1 var(--font-mono); letter-spacing: .5rem; text-align: center; min-height: 64px; }
fieldset { min-width: 0; }
fieldset.card legend, .settings legend { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); padding: 0 var(--s-2); }
fieldset.plain { border: 0; padding: 0; margin: 0; }
.field { margin-bottom: var(--s-1); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }
.form-actions .btn { margin-top: 0; }

/* Choix illustrés (occasion) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; border: 0; }
@media (min-width: 600px) { .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice-grid legend { font-weight: 650; margin: 0 0 var(--s-2); padding: 0; }
.choice { position: relative; display: flex; flex-direction: column; margin: 0; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface); cursor: pointer; font-weight: 650; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.choice span { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); min-height: var(--tap-sm); }
.choice input { position: absolute; top: var(--s-2); left: var(--s-2); background: var(--surface); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 7. Cartes, alertes, badges ------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-4); box-shadow: var(--shadow-1); }
.card > h2:first-child, .card > h1:first-child { margin-top: 0; }
.card-soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.card-accent { border: 2px solid var(--primary); }
@media (max-width: 520px) { .card { padding: var(--s-4); border-radius: var(--r); } }
.flash { position: relative; padding: var(--s-3) var(--s-4) var(--s-3) 2.9rem; border-radius: var(--r); margin: 0 0 var(--s-4); border: 1px solid;
  background: var(--info-soft); border-color: var(--info-line); color: var(--text); line-height: 1.5; }
.flash::before { position: absolute; left: var(--s-4); top: var(--s-3); width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; content: "i"; background: var(--primary); color: var(--on-primary); line-height: 1.4rem; text-align: center; }
.flash-success { background: var(--success-soft); border-color: var(--success-line); }
.flash-success::before { content: "✓"; background: var(--success); color: var(--surface); }
.flash-error { background: var(--danger-soft); border-color: var(--danger-line); }
.flash-error::before { content: "!"; background: var(--danger); color: var(--surface); }
.flash-warning { background: var(--warning-soft); border-color: var(--warning-line); }
.flash-warning::before { content: "!"; background: var(--warning); color: var(--surface); }
.flash a { color: inherit; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: var(--fs-xs); line-height: 1.2; padding: .25rem .6rem; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--text); font-weight: 650; vertical-align: middle; }
a.badge { text-decoration: none; min-height: 28px; }
a.badge:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.badge-active, .badge-m-approved, .badge-paid { background: var(--success-soft); color: var(--success); }
.badge-blocked, .badge-reported { background: var(--danger-soft); color: var(--danger); }
.badge-m-pending { background: var(--warning-soft); color: var(--warning); }
.badge-m-rejected, .badge-closed, .badge-purged, .badge-deleted { background: var(--surface-3); color: var(--muted); }
.badge-primary { background: var(--primary-soft); color: var(--primary-text); }
.badge-dot::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); padding: .4rem .85rem; border-radius: var(--r-pill); background: var(--surface);
  border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; }
.chip::before { content: "✓"; color: var(--success); font-weight: 800; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: var(--s-2); } }
.links { padding-left: 1.2rem; margin: 0; }
.links li { margin: var(--s-1) 0; }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-1); }
.checks li { display: flex; gap: var(--s-2); align-items: baseline; }
.checks .ok { color: var(--success); }
.checks .ko { color: var(--danger); font-weight: 700; }
.feature-list { list-style: none; margin: var(--s-4) 0; padding: 0; display: grid; gap: var(--s-2); }
.feature-list li { position: relative; padding-left: 1.9rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary-text); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
pre.code { background: #1F1B2E; color: #F2EFF8; padding: var(--s-4); border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-all;
  font: var(--fs-sm)/1.5 var(--font-mono); }

/* 8. Tableaux ---------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.table thead th:first-child { border-top-left-radius: var(--r-sm); }
.table thead th:last-child { border-top-right-radius: var(--r-sm); }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table tr.is-flagged td { background: var(--danger-soft); }
.table.small th, .table.small td { padding: .45rem .6rem; }
.row-actions form { margin: 0 0 var(--s-1); }
.row-actions form:first-of-type { margin-top: var(--s-2); }
.row-actions .btn { margin-top: 0; }
.table td > .btn:first-child { margin-top: 0; }
.audit-details { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); word-break: break-all; }

/* 9. Navigation secondaire --------------------------------------------------- */
.subnav { display: flex; gap: var(--s-1); flex-wrap: wrap; margin: 0 0 var(--s-5); padding: var(--s-1); background: var(--surface-2); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.subnav a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap-sm); padding: 0 var(--s-4); border-radius: var(--r-pill);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-sm); }
.subnav a:hover { background: var(--surface); }
.subnav a.active { background: var(--primary); color: var(--on-primary); }
.subnav .count { font-size: var(--fs-xs); padding: .05rem .45rem; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text); font-weight: 700; }
.subnav a.active .count { background: rgba(255, 255, 255, .22); color: inherit; }
@media (max-width: 600px) { .subnav { border-radius: var(--r); } }
.tabs { display: flex; gap: var(--s-1); background: var(--surface-2); border-radius: var(--r-pill); padding: var(--s-1); margin: var(--s-4) auto 0; max-width: 460px; }
.tabs a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 var(--s-3);
  border-radius: var(--r-pill); text-decoration: none; color: var(--text); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.tabs a:hover { background: var(--surface); }
.tabs a.active { background: var(--surface); color: var(--primary-text); box-shadow: var(--shadow-1); }
.pager { display: flex; gap: var(--s-1); flex-wrap: wrap; justify-content: center; margin: var(--s-5) 0; }
.pager a { display: inline-grid; place-items: center; min-width: var(--tap-sm); min-height: var(--tap-sm); padding: 0 var(--s-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); text-decoration: none; color: var(--text); background: var(--surface); font-weight: 600; }
.pager a.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* 10. Médias : grilles, vignettes, visionneuse -------------------------------- */
.media-grid { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 420px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); } }
.media-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-2); position: relative; display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.media-tile .thumb { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--surface-2); }
.media-tile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.media-tile .thumb:hover img { transform: scale(1.03); }
.media-tile .placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-weight: 700; }
.media-tile .play { position: absolute; right: var(--s-2); bottom: var(--s-2); background: rgba(20, 17, 31, .72); color: #fff; border-radius: 50%;
  width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.tile-meta { display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: center; }
.tile-info { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-actions { display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: flex-start; }
.tile-actions .btn { margin-top: 0; padding: .25rem .7rem; }
.media-tile form { margin: 0; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] { flex-basis: 100%; }
.report[open] form { margin-top: var(--s-2); padding: var(--s-2); border-radius: var(--r-sm); background: var(--surface-2); }
.report label { margin: 0 0 var(--s-1); }
.report select { min-height: var(--tap-sm); font-size: var(--fs-sm); padding-top: .3rem; padding-bottom: .3rem; }
.media-tile.is-reported { border-color: var(--danger); box-shadow: 0 0 0 2px var(--danger-soft); }
.media-tile.status-rejected .thumb { opacity: .45; }
.media-tile.status-pending .thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--sun); border-radius: inherit; pointer-events: none; }
.media-tile.is-selected { outline: 3px solid var(--primary); outline-offset: 1px; background: var(--primary-soft); }
.tile-check { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; margin: 0; background: var(--surface); border-radius: var(--r-sm);
  padding: .35rem; box-shadow: var(--shadow-1); display: flex; cursor: pointer; }
.tile-check input { margin: 0; }
.bulk-bar { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; position: sticky; top: 72px; z-index: 5; padding: var(--s-3) var(--s-4); }
.bulk-bar .btn { margin-top: 0; }
.bulk-bar label.check { margin: 0 var(--s-2) 0 0; font-weight: 650; align-items: center; }
.mode-form { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; justify-content: space-between; }
.mode-form p { margin: var(--s-1) 0 0; }
.mode-form .btn { margin-top: 0; }
.mode-form > div { flex: 1 1 260px; }
.moderation-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 420px) { .moderation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lightbox { border: 0; padding: 0; background: #0E0C16; max-width: 96vw; max-height: 96vh; border-radius: var(--r); color: #F2EFF8; }
.lightbox::backdrop { background: var(--overlay); }
.lb-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 280px; min-height: 200px; }
.lb-stage img, .lb-stage video { max-width: 96vw; max-height: 80vh; display: block; }
.lb-stage p { color: #DCD7EA; padding: var(--s-2); margin: 0; }
.lb-bar { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; padding: var(--s-3); background: #0E0C16; }
.lb-bar .btn { margin-top: 0; background: #2A2540; color: #F2EFF8; border-color: #4A4462; min-width: var(--tap); min-height: var(--tap); }
.lb-bar .btn:hover { background: #3A3352; }
.lb-count { color: #E8E5F0; text-align: center; margin: 0; padding: var(--s-2) 0 0; font-size: var(--fs-sm); }
.lightbox .btn:focus-visible { outline-color: #C2B8FF; }
.counts { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }

/* 11. Invités ---------------------------------------------------------------- */
.guest-head { text-align: center; margin-bottom: var(--s-4); }
.guest-cover { display: block; width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: var(--s-4); box-shadow: var(--shadow-2); }
.guest-kicker { display: inline-flex; gap: var(--s-2); align-items: center; padding: .3rem .8rem; border-radius: var(--r-pill); background: var(--surface-2);
  font-size: var(--fs-sm); font-weight: 650; color: var(--muted); margin: 0 0 var(--s-3); }
.guest-head h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem); margin-bottom: var(--s-2); overflow-wrap: anywhere; }
.guest-message { white-space: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-3) var(--s-4);
  text-align: left; position: relative; margin: var(--s-4) auto 0; max-width: 560px; font-size: var(--fs-lg); }
.guest-message::before { content: "“"; position: absolute; top: -.6rem; left: var(--s-3); font: 800 2.6rem/1 var(--font-display); color: var(--coral); }
.guest-welcome { text-align: center; }
.guest-welcome .welcome-art { display: block; width: min(300px, 80%); margin: 0 auto var(--s-3); }
.guest-welcome form { text-align: left; }
.guest-welcome h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
.guest-name { font-size: var(--fs-lg) !important; min-height: 56px !important; }
.consent { padding: var(--s-3) var(--s-4); background: var(--surface-2); border-radius: var(--r); margin: var(--s-4) 0 !important; }
.trust-note { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--success-soft);
  color: var(--text); font-size: var(--fs-sm); line-height: 1.5; margin: var(--s-4) 0; }
.trust-note::before { content: ""; flex: 0 0 1.4rem; height: 1.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1 2 5v8c0 6.6 4.3 12 10 14 5.7-2 10-7.4 10-14V5z' fill='%231A7340'/%3E%3Cpath d='m7 14 3.5 3.5L17 11' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.upload-card { padding: var(--s-4); }
.upload-card h2 { text-align: center; }
.upload-hello { text-align: center; font-weight: 650; color: var(--primary-text); margin: 0 0 var(--s-1); min-height: 0; }
.upload-hello:empty { display: none; }
.upload-limits { text-align: center; max-width: 52ch; margin: 0 auto var(--s-3); }
.eb-dashboard { margin: var(--s-3) 0; min-height: 120px; }
.eb-status { font-weight: 700; color: var(--success); min-height: 1.5em; text-align: center; margin: var(--s-2) 0; }
.upload-foot { display: flex; justify-content: center; }
/* Uppy aux couleurs de la charte (la feuille d'Uppy est chargée avant celle-ci) */
.uppy-Root { font-family: var(--font-body) !important; }
.uppy-Dashboard-inner { border-radius: var(--r) !important; border: 2px dashed var(--line-strong) !important; background-color: var(--surface-2) !important; }
.uppy-Dashboard-AddFiles-title { font-family: var(--font-display); font-size: 1.25rem !important; color: var(--text) !important; }
.uppy-Dashboard-browse, .uppy-Dashboard-AddFiles-title button { color: var(--primary-text) !important; font-weight: 700; }
.uppy-Dashboard-note { color: var(--muted) !important; font-size: var(--fs-sm) !important; }
.uppy-c-btn-primary, .uppy-StatusBar-actionBtn--upload { background-color: var(--primary) !important; color: var(--on-primary) !important;
  border-radius: var(--r-pill) !important; min-height: var(--tap); padding: .6rem 1.4rem !important; font-size: var(--fs-md) !important; font-weight: 700 !important; }
.uppy-c-btn-primary:hover, .uppy-StatusBar-actionBtn--upload:hover { background-color: var(--primary-hover) !important; }
.uppy-StatusBar-progress { background-color: var(--primary) !important; }
.uppy-StatusBar.is-complete .uppy-StatusBar-progress { background-color: var(--success) !important; }
.uppy-Dashboard-AddFiles-list button, .uppy-DashboardTab-btn { min-height: var(--tap); }
.uppy-DashboardContent-bar, .uppy-StatusBar { background-color: var(--surface) !important; }
@media (prefers-color-scheme: dark) {
  .uppy-Dashboard-inner { background-color: var(--surface-2) !important; color: var(--text) !important; }
  .uppy-DashboardContent-title, .uppy-StatusBar-statusPrimary, .uppy-Dashboard-Item-name { color: var(--text) !important; }
  .uppy-StatusBar-statusSecondary, .uppy-Dashboard-Item-statusSize, .uppy-DashboardContent-back, .uppy-DashboardContent-addMore { color: var(--muted) !important; }
  .uppy-Dashboard-files, .uppy-Dashboard-filesInner, .uppy-DashboardContent-panel, .uppy-Dashboard-AddFiles { background-color: var(--surface-2) !important; }
  .uppy-DashboardTab-btn { color: var(--text) !important; }
}

/* 12. Organisateur ------------------------------------------------------------ */
.event-head { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: var(--s-5); }
.event-head h1 { margin: 0 0 var(--s-1); overflow-wrap: anywhere; }
.event-head .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: 0; color: var(--muted); }
.event-head .btn { margin-top: 0; }
.event-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s; position: relative; }
.event-card:hover { box-shadow: var(--shadow-2); }
.event-card .cover { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.event-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card .body { padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.event-card h2 { font-size: 1.25rem; margin: 0; overflow-wrap: anywhere; }
.event-card h2 a { color: var(--text); text-decoration: none; }
.event-card h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.event-card h2 a:focus-visible { outline: none; }
.event-card:has(h2 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.event-card .meta { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.event-card .counts { position: relative; z-index: 1; margin-top: auto; padding-top: var(--s-2); }
.event-card .progress-line { margin: var(--s-1) 0; }
.event-card .status { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 1; }
.meter { display: block; width: 100%; height: .6rem; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; border: 0; appearance: none; -webkit-appearance: none; }
.meter::-webkit-progress-bar { background: var(--surface-3); border-radius: var(--r-pill); }
.meter::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), var(--coral)); border-radius: var(--r-pill); }
.meter::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), var(--coral)); border-radius: var(--r-pill); }
.journey { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: j; }
@media (min-width: 760px) { .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.journey li { counter-increment: j; display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); font-weight: 650; font-size: var(--fs-sm); line-height: 1.3; min-width: 0; }
.journey li::before { content: counter(j); flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-weight: 800; }
.journey li.done::before { content: "✓"; background: var(--success); color: var(--surface); }
.journey li.current { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.journey li.current::before { background: var(--primary); color: var(--on-primary); }
.journey small { display: block; font-weight: 500; color: var(--muted); }
.qr-card { text-align: center; }
.qr-frame { display: inline-block; padding: var(--s-4); border-radius: var(--r-lg); background: #FFFFFF; box-shadow: var(--shadow-2); margin: var(--s-2) 0 var(--s-4);
  border: 6px solid var(--primary-soft); }
.qr { display: block; width: 240px; height: 240px; max-width: 100%; image-rendering: pixelated; }
.qr-url { margin: 0 0 var(--s-2); font-size: var(--fs-sm); }
.qr-card .btn-row { justify-content: center; }
.stat-tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: var(--s-4); }
.stat-tile { background: var(--surface-2); border-radius: var(--r); padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); text-decoration: none; color: var(--text); }
a.stat-tile:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.stat-tile strong { font: 800 1.75rem/1.1 var(--font-display); }
.stat-tile span { font-size: var(--fs-sm); color: var(--muted); }
.stat-tile.warn strong { color: var(--warning); }
.stat-tile.alert strong { color: var(--danger); }
.action-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.action-list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 60px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: var(--text); font-weight: 650; transition: border-color .15s, background-color .15s; }
.action-list a:hover { border-color: var(--primary); background: var(--primary-soft); }
.action-list a::after { content: "→"; margin-left: auto; color: var(--primary-text); font-weight: 800; }
.action-list .ico { flex: 0 0 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--primary-soft); }
.action-list .ico-coral { background: var(--coral-soft); }
.action-list .ico-sun { background: var(--sun-soft); }
.action-list small { display: block; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.org-list { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.org-list li { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); min-height: var(--tap-sm); }
.org-list li > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.org-list button.link { min-height: var(--tap-sm); padding: 0 var(--s-2); }
.search { display: flex; gap: var(--s-2); margin-bottom: var(--s-3); align-items: center; flex-wrap: wrap; }
.search input { flex: 1 1 220px; width: auto; }
.search .btn { margin-top: 0; }
.cover-preview { display: block; max-width: 320px; width: 100%; border-radius: var(--r-sm); margin: var(--s-1) 0 var(--s-2); }
.danger-zone { border-color: var(--danger-line); }
.danger-zone h2 { color: var(--danger); }
form.danger-zone { border-top: 1px solid var(--danger-line); margin-top: var(--s-4); padding-top: var(--s-3); }
.plans { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; }
.plan h2 { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.plan .price-big { font: 800 2.4rem/1 var(--font-display); color: var(--text); margin: var(--s-2) 0 0; }
.plan .price-big small { font: 600 var(--fs-sm) var(--font-body); color: var(--muted); }
.plan-current { border: 2px solid var(--primary); }
.plan-tag { position: absolute; top: -.8rem; right: var(--s-4); background: var(--coral); color: #1F1B2E; font-weight: 800; font-size: var(--fs-xs);
  padding: .3rem .75rem; border-radius: var(--r-pill); letter-spacing: .02em; }
.price { font-size: 1.1rem; color: var(--primary-text); margin-left: var(--s-2); font-weight: 800; }
.reassure { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: var(--s-4) 0 0; padding: 0; color: var(--muted); font-size: var(--fs-sm); }
.reassure li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.timeline { list-style: none; margin: var(--s-3) 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 var(--s-4) 2rem; }
.timeline li::before { content: ""; position: absolute; left: .35rem; top: .35rem; width: .9rem; height: .9rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline li::after { content: ""; position: absolute; left: .73rem; top: 1.3rem; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.end::before { border-color: var(--danger); }
.timeline strong { display: block; }
.preview { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 760px) { .preview { grid-template-columns: minmax(0, 1fr) auto; } }
.preview .device-phone { margin: 0 auto; }
.resend { margin-top: var(--s-5); border-top: 1px solid var(--line); padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; }
.resend p { flex-basis: 100%; margin: 0; }
.resend .btn { margin-top: 0; }
.resend a { display: inline-flex; align-items: center; min-height: var(--tap-sm); }
.auth-card { max-width: 460px; margin: var(--s-5) auto; }
.auth-card .auth-mark { display: block; width: 56px; height: 56px; margin: 0 0 var(--s-3); }
.split-auth { display: grid; gap: var(--s-6); align-items: center; max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) { .split-auth { grid-template-columns: 1fr 1fr; } .split-auth .auth-card { margin: 0; } }
.split-auth .side { display: none; }
@media (min-width: 900px) { .split-auth .side { display: block; } }
.side-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); position: relative; }
.side-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.side-photo figcaption { position: absolute; inset: auto var(--s-3) var(--s-3) var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r);
  background: rgba(20, 17, 31, .78); color: #fff; font-size: var(--fs-sm); line-height: 1.45; }
.impersonation-banner { display: flex; gap: var(--s-4); align-items: center; justify-content: center; flex-wrap: wrap; background: #7A1F1F; color: #fff; padding: var(--s-2) var(--s-4); }
.impersonation-banner p { margin: 0; font-weight: 700; }
.impersonation-banner .btn { margin-top: 0; }
.impersonation-banner form { margin: 0; }

/* Cadres d'appareils (captures d'écran) */
.device-browser { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; max-width: 100%; }
.device-browser::before { content: ""; display: block; height: 30px; background:
  radial-gradient(circle at 16px 15px, #FF6B5B 5px, transparent 5.5px),
  radial-gradient(circle at 34px 15px, #FFC23D 5px, transparent 5.5px),
  radial-gradient(circle at 52px 15px, #A99BFF 5px, transparent 5.5px), var(--surface-2);
  border-bottom: 1px solid var(--line); }
.device-browser img { display: block; width: 100%; height: auto; }
.device-phone { position: relative; width: min(100%, 260px); border-radius: 38px; padding: 10px; background: #1F1B2E; box-shadow: var(--shadow-3); }
.device-phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #1F1B2E; z-index: 1; }
.device-phone img { display: block; width: 100%; height: auto; border-radius: 29px; background: #FBF8F4; }
@media (prefers-color-scheme: dark) { .device-phone { background: #000; box-shadow: 0 0 0 1px #3A3352, var(--shadow-3); } .device-phone::before { background: #000; } }

/* 13. Accueil ----------------------------------------------------------------- */
.section { padding: var(--s-8) var(--s-4); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head { max-width: 720px; margin: 0 auto var(--s-6); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { position: relative; overflow: hidden; padding: var(--s-6) var(--s-4) var(--s-8); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lilac) 70%, transparent), transparent); z-index: -1; }
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-7); } .hero { padding-top: var(--s-8); } }
.hero h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.025em; margin-bottom: var(--s-4); }
.hero h1 em { font-style: normal; color: var(--primary-text); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 55%, transparent) 62%); }
.hero .lead { max-width: 54ch; }
.hero .btn-row { margin-top: var(--s-5); }
.hero .chip-list { margin-top: var(--s-5); }
.hero-visual { position: relative; padding: 0 0 var(--s-6) 0; }
.hero-visual .device-browser { width: 100%; }
.hero-visual .device-phone { position: absolute; right: -4px; bottom: 0; width: 36%; min-width: 140px; border-radius: 30px; padding: 7px; }
.hero-visual .device-phone::before { top: 13px; width: 50px; height: 13px; margin-left: -25px; }
.hero-visual .device-phone img { border-radius: 24px; }
@media (max-width: 959px) { .hero-visual { max-width: 620px; margin: 0 auto; } }
.hero-photo-badge { position: absolute; left: -8px; bottom: var(--s-3); display: flex; align-items: center; gap: var(--s-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: .45rem .9rem .45rem .45rem; box-shadow: var(--shadow-2); font-weight: 700; font-size: var(--fs-sm); }
.hero-photo-badge img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.benefits { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); list-style: none; margin: 0; padding: 0; }
.benefit { background: var(--bg); border-radius: var(--r-lg); padding: var(--s-5); border: 1px solid var(--line); }
.section-alt .benefit { background: var(--bg); }
.benefit .ico { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: var(--s-3); background: var(--primary-soft); }
.benefit:nth-child(2) .ico { background: var(--coral-soft); }
.benefit:nth-child(3) .ico { background: var(--sun-soft); }
.benefit:nth-child(4) .ico { background: var(--success-soft); }
.benefit h3 { margin: 0 0 var(--s-2); font-size: 1.2rem; }
.benefit p { color: var(--muted); margin: 0; }
.steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: var(--s-8); max-width: 1040px; counter-reset: step; }
.steps + .center { margin-top: var(--s-8); }
.step { display: grid; gap: var(--s-5); align-items: center; counter-increment: step; }
@media (min-width: 860px) { .step { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-7); } .step:nth-child(even) .step-media { order: -1; } }
.step-num { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  font: 800 1.2rem/1 var(--font-display); margin-bottom: var(--s-3); }
.step-num::before { content: counter(step); }
.step h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; margin: 0 0 var(--s-3); }
.step p { color: var(--muted); font-size: var(--fs-lg); }
.step-media { display: flex; justify-content: center; position: relative; }
.step-media .device-browser { width: 100%; }
.step-media .device-phone { width: min(100%, 270px); }
.step-media::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 40%; background: color-mix(in srgb, var(--lilac) 45%, transparent); filter: blur(40px); z-index: -1; }
.step:nth-child(even) .step-media::before { background: color-mix(in srgb, var(--coral) 28%, transparent); }
.step-points { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-2); }
.step-points li { position: relative; padding-left: 1.6rem; }
.step-points li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.types { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.type-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-2); margin: 0; }
.type-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.type-card figcaption { padding: var(--s-4); }
.type-card h3 { margin: 0 0 var(--s-1); font-size: 1.2rem; }
.type-card p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.trust { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .trust { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.trust-list li { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); }
.trust-list .ico { flex: 0 0 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; background: var(--success-soft); font-size: 1.2rem; }
.trust-list strong { display: block; margin-bottom: var(--s-1); }
.trust-list span { color: var(--muted); font-size: var(--fs-sm); }
.trust-art img { display: block; width: min(100%, 520px); margin: 0 auto; }
.pricing { display: grid; gap: var(--s-4); max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .pricing { grid-template-columns: 1fr 1fr; } }
.pricing .card { margin: 0; padding: var(--s-6) var(--s-5); }
.pricing .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); margin-top: var(--s-5); }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: var(--s-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 var(--s-4); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); min-height: 60px;
  font-weight: 700; font-size: var(--fs-lg); padding: var(--s-2) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: var(--s-4); margin: 0; }
.cta-band { max-width: var(--max); margin: 0 auto; border-radius: 32px; padding: var(--s-7) var(--s-5); display: grid; gap: var(--s-5); align-items: center;
  background: #2B1F78; color: #FFFFFF; position: relative; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr 1fr; padding: var(--s-7); } }
.cta-band h2 { color: #FFFFFF; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); font-weight: 800; }
.cta-band p { color: #E4DEFF; font-size: var(--fs-lg); }
.cta-band .btn-primary { background: #FFC23D; border-color: #FFC23D; color: #1F1B2E; box-shadow: none; }
.cta-band .btn-primary:hover { background: #FFD470; border-color: #FFD470; }
.cta-band a:not(.btn) { color: #FFFFFF; }
.cta-band img { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.cta-band :focus-visible { outline-color: #FFC23D !important; }

/* 14. Administration (dense) ------------------------------------------------- */
.page-admin h1 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.page-admin .card { padding: var(--s-4); border-radius: var(--r); }
.page-admin .subnav { margin-bottom: var(--s-4); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-3); margin-bottom: var(--s-4); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 2px; }
.stat-value { font: 800 1.6rem/1.15 var(--font-display); }
.stat-label { color: var(--muted); font-size: var(--fs-sm); }
.stat-note { color: var(--muted); font-size: var(--fs-xs); margin-top: var(--s-1); }
a.stat { text-decoration: none; color: var(--text); }
a.stat:hover { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.filters { display: flex; gap: var(--s-3) var(--s-4); flex-wrap: wrap; align-items: flex-end; }
.filters > div { min-width: 150px; flex: 1 1 150px; }
.filters label { margin-top: 0; }
.filters .btn { margin-top: 0; }
.filters p { flex-basis: 100%; margin: 0; }
.filter-buttons { display: flex; gap: var(--s-2); flex: 0 0 auto !important; min-width: 0 !important; flex-wrap: wrap; }
.actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: flex-start; }
.actions form { margin: 0; }
.actions .btn { margin-top: 0; }
.client.is-blocked { opacity: .8; border-style: dashed; }
.client h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
.settings fieldset.card { padding-top: var(--s-3); }
.page-admin .settings textarea { font-family: var(--font-mono); font-size: var(--fs-sm); }

/* 15. États : vides, erreurs, maintenance, installeur ------------------------- */
.empty-state { text-align: center; padding: var(--s-6) var(--s-4); }
.empty-state img { display: block; width: min(220px, 60%); margin: 0 auto var(--s-4); }
.empty-state h2 { margin-bottom: var(--s-2); }
.empty-state p { color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.empty-state .btn-row { justify-content: center; }
.error-page { text-align: center; max-width: 560px; margin: var(--s-4) auto; }
.error-page img { display: block; width: min(240px, 60%); margin: 0 auto var(--s-4); }
.error-page .error-code { display: inline-block; font: 800 var(--fs-sm) var(--font-display); letter-spacing: .1em; color: var(--coral-text); background: var(--coral-soft);
  padding: .3rem .8rem; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.error-page .btn-row { justify-content: center; }
.solo { display: grid; place-items: center; padding: var(--s-6) var(--s-4); flex: 1; }
.solo .card { max-width: 520px; width: 100%; text-align: center; }
.solo img.solo-art { display: block; width: min(240px, 70%); margin: 0 auto var(--s-4); }
.install-steps { counter-reset: n; list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.install-steps li { counter-increment: n; position: relative; padding-left: 2.4rem; min-height: 1.8rem; }
.install-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary-text); display: grid; place-items: center; font-weight: 800; font-size: var(--fs-sm); }
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: var(--s-6); }
.legal p, .legal li { max-width: 72ch; }

/* 16. Accessibilité, focus et mouvement --------------------------------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo);
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--focus); }
.tile-check:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.media-tile .thumb:focus-visible { outline-offset: -3px; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .media-tile .thumb:hover img { transform: none; }
}
@media (prefers-contrast: more) { :root { --line: var(--line-strong); --muted: var(--text); } }
@media (forced-colors: active) { .btn, .badge, .card, .tabs a.active, .subnav a.active { border: 1px solid CanvasText; } }
@media print {
  .topbar, .footer, .skip-link, .btn, .subnav, .tabs { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #999; }
}

/* Icônes et compléments */
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.2em; }
.ico .icon { width: 1.5rem; height: 1.5rem; }
.benefit .ico { color: var(--primary-text); }
.benefit:nth-child(2) .ico { color: var(--coral-text); }
.benefit:nth-child(3) .ico { color: var(--warning); }
.benefit:nth-child(4) .ico { color: var(--success); }
.trust-list .ico { color: var(--success); }
.action-list .ico { color: var(--primary-text); }
.action-list .ico-coral { color: var(--coral-text); }
.action-list .ico-sun { color: var(--warning); }
.guest-kicker .icon { width: 1.1em; height: 1.1em; }
.timeline span { display: block; }
.center .btn-row, .error-page .btn-row, .empty-state .btn-row, .auth-card.center .btn-row { justify-content: center; }
.preview:has(.preview-browser) { grid-template-columns: 1fr; }
@media (min-width: 900px) { .preview:has(.preview-browser) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.preview-browser { width: 100%; }
.solo .brand { justify-content: center; margin-bottom: var(--s-2); }
.page-install .topbar-inner { min-height: 56px; }
/* Uppy : bouton d'ajout = action principale, bien visible */
.uppy-Dashboard-AddFiles { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); }
.uppy-Dashboard-AddFiles-title { max-width: none !important; }
.uppy-Dashboard-AddFiles-title .uppy-Dashboard-browse, .uppy-Dashboard-browse {
  display: inline-flex !important; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .8rem 1.6rem !important;
  border-radius: var(--r-pill) !important; background: var(--primary) !important; color: var(--on-primary) !important; text-decoration: none !important;
  font: 700 1.05rem/1.2 var(--font-body) !important; box-shadow: 0 8px 20px -10px rgba(75, 50, 195, .8); cursor: pointer; }
.uppy-Dashboard-browse::before { content: ""; width: 1.4rem; height: 1.4rem; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.uppy-Dashboard-browse:hover { background: var(--primary-hover) !important; }
.uppy-Dashboard-browse:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 3px; }

/* Correctifs de recette */
.topnav > a.btn-primary { color: var(--on-primary); padding: 0 var(--s-4); }
.topnav > a.btn-primary:hover { background: var(--primary-hover); }
.hero-visual { padding: var(--s-4) 0 var(--s-6); }
.hero-visual .device-browser { width: 86%; }
.hero-visual .device-phone { right: 0; width: 34%; }
@media (max-width: 600px) { .topbar { position: static; } .bulk-bar { top: 0; } html { scroll-padding-top: 1rem; } }
.action-list + .kv { margin-top: var(--s-4); }
pre.code { border: 1px solid var(--line); }
.page-guest .tile-actions { flex-wrap: nowrap; justify-content: space-between; align-items: center; }
.page-guest .tile-actions .btn { font-size: var(--fs-xs); padding: .2rem .7rem; min-height: var(--tap-sm); }
.page-guest .report summary.btn { color: var(--muted); }
.page-guest .report[open] { position: absolute; left: var(--s-2); right: var(--s-2); bottom: var(--s-2); z-index: 3; padding: var(--s-2); border-radius: var(--r-sm); box-shadow: var(--shadow-2); border: 1px solid var(--line); background: var(--surface); }
.page-guest .report[open] summary.btn { display: flex; width: 100%; justify-content: space-between; align-items: center; min-height: 0; padding: 0 0 var(--s-1); border: 0; background: none; box-shadow: none; color: var(--text); font-weight: 700; }
.page-guest .report[open] summary.btn::after { content: "\2715"; font-size: var(--fs-sm); color: var(--muted); padding: 0 .2rem; }
.page-guest .report[open] form { margin: 0; padding: 0; background: none; display: grid; gap: var(--s-1); }
.page-guest .report[open] label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-guest .report select { width: 100%; min-width: 0; font-size: var(--fs-xs); padding-left: .55rem; padding-right: 1.8rem; background-position: right .45rem center; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.page-guest .report[open] .btn-danger { width: 100%; line-height: 1.2; }
.recent-strip { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); }
.recent-strip li a { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.recent-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 480px) { .recent-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.preview-card .device-phone { margin: var(--s-4) auto 0; width: min(100%, 240px); }
.uppy-Dashboard-AddFiles-title { white-space: normal !important; padding: 0 var(--s-3) !important; }
.uppy-Dashboard-AddFiles-title .uppy-Dashboard-browse, .uppy-Dashboard-browse { white-space: normal !important; max-width: 100%; text-align: center; }
.btn-icon { padding: 0 !important; width: var(--tap-sm); flex: 0 0 auto; }
.btn-icon .icon { width: 1.2rem; height: 1.2rem; }
.price-big .price { font: inherit; color: var(--text); margin: 0; }
.page-admin .tile-actions .btn { font-size: var(--fs-xs); padding: .2rem .6rem; }
.page-admin .tile-actions .btn { font-size: var(--fs-xs); padding: .2rem .6rem; }
