/* ═══════════════════════════════════════════════════════════════
   DUNK IT ALÈS OPEN — feuille de style partagée
   Tokens repris de l'identité visuelle Dunk It (dunkit.html)
═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #0C0A09;
  --surface:    #14110F;
  --surface2:   #1B1714;
  --line:       rgba(250,247,242,.09);
  --line-soft:  rgba(250,247,242,.06);
  --orange:     #FF5C1F;
  --orange-dim: rgba(255,92,31,.14);
  --orange-brd: rgba(255,92,31,.32);
  --gold:       #E8B94A;
  --paper:      #FAF7F2;
  --muted:      #9B938B;
  --faint:      #6B645D;
  --ok:         #34C77B;
  --danger:     #F87171;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --body:    'Manrope', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--orange); color: #fff; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .96;
  color: var(--paper);
}
h1 { font-size: clamp(2.4rem, 8vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.15; }
h1 em, h2 em { font-style: normal; color: var(--orange); }
p { color: #C6BFB7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }

.num { font-variant-numeric: tabular-nums; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem;
  background: rgba(12,10,9,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .brand {
  font-family: var(--display); font-weight: 850; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .02em; color: var(--paper); text-decoration: none;
}
.nav .brand em { font-style: normal; color: var(--orange); }

/* ── Boutons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--body); font-weight: 800; font-size: .95rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .25s var(--ease), background .25s, border-color .25s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 30px rgba(255,92,31,.35); }
.btn-primary:hover { background: #ff6f3a; }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange-brd); color: var(--orange); }
.btn-block { width: 100%; }

/* ── Cartes / panneaux ───────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
}
.card h3 { margin-bottom: .6rem; }

/* ── Formulaires ─────────────────────────────────────── */
label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .4rem; color: var(--paper); }
.field { margin-bottom: 1.1rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select {
  width: 100%;
  font: inherit; color: var(--paper);
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  outline: none;
  transition: border-color .2s;
  appearance: none;
}
input:focus, select:focus { border-color: var(--orange-brd); }
input::placeholder { color: var(--faint); }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

.checkbox { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface2); cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--orange); flex-shrink: 0; }
.checkbox span { font-size: .88rem; font-weight: 500; color: #C6BFB7; }

.error-box {
  display: none;
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35);
  color: var(--danger); border-radius: var(--r-sm);
  padding: .9rem 1rem; font-size: .88rem; font-weight: 600; margin-bottom: 1.1rem;
  white-space: pre-line;
}
.error-box.show { display: block; }

/* ── Badges & statuts ────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  padding: .35rem .8rem; border-radius: 999px;
}
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid var(--orange-brd); }
.badge-ok { background: rgba(52,199,123,.12); color: var(--ok); border: 1px solid rgba(52,199,123,.3); }
.badge-warn { background: rgba(232,185,74,.12); color: var(--gold); border: 1px solid rgba(232,185,74,.3); }
.badge-live { background: rgba(248,113,113,.12); color: var(--danger); border: 1px solid rgba(248,113,113,.35); }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ── Tables (admin) ──────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface2); }
td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* ── Stat tiles ──────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem; }
.stat .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.stat .value { font-family: var(--display); font-size: 2rem; font-weight: 850; margin-top: .2rem; }
.stat .value em { font-style: normal; color: var(--orange); }

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 2.2rem 1.25rem;
  text-align: center;
  color: var(--faint); font-size: .82rem;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* ── Toast ───────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 140%);
  background: var(--surface2); border: 1px solid var(--line); color: var(--paper);
  padding: .8rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: .88rem;
  transition: transform .4s var(--ease); z-index: 100; max-width: 92vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
