/* ============================================================
   HYROX CHALLENGE — Design system (blanc / noir / jaune, épuré)
   Utilisé par les pages : dossier, confirmation, live.
   Palette officielle HYROX : noir #0a0a0a, jaune #FFE500.
   Le jaune reste un ACCENT (filets, puces, boutons), pas un aplat fluo.
   ============================================================ */

:root {
    --ink: #0a0a0a;          /* texte principal */
    --ink-soft: #3a3a3a;     /* texte secondaire (assombri pour la lisibilité) */
    --line: #e2e2e2;         /* hairline */
    --line-strong: #111;
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --yellow: #FFE500;
    --black: #0a0a0a;
    --danger: #d92d20;
    --success: #16a34a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.hx-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.hx-wrap-wide { max-width: 980px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav ---------- */
.hx-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.hx-nav-in { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.5rem; max-width: 980px; margin: 0 auto; }
.hx-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .5px; font-size: .95rem; }
.hx-brand .sq { width: 10px; height: 10px; background: var(--yellow); display: inline-block; }
.hx-nav-back { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Eyebrow ---------- */
.hx-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--ink);
}
.hx-eyebrow::before { content: ''; width: 22px; height: 4px; background: var(--ink); display: inline-block; }
/* Surlignage jaune pour les mots-clés (le seul jaune vraiment visible sur blanc) */
.hx-mark { background: var(--yellow); color: #000; padding: 0 .22em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Hero ---------- */
.hx-hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.hx-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 1.1rem 0 .8rem; }
.hx-lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 46ch; }
.hx-meta { margin-top: 1.8rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.hx-meta .k { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem; }
.hx-meta .v { font-weight: 700; }

/* ---------- Sections ---------- */
.hx-section { padding: 3.2rem 0; border-bottom: 1px solid var(--line); }
.hx-section h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; margin: .9rem 0 1.2rem; }
.hx-section p { color: var(--ink-soft); margin-bottom: 1rem; }
.hx-section p strong { color: var(--ink); font-weight: 600; }
.hx-section h3 { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .5rem; }

/* ---------- Table / pills ---------- */
.hx-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hx-table th, .hx-table td { text-align: left; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.hx-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; }
.hx-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .18rem .55rem; border: 1px solid var(--line-strong); border-radius: 50px; margin: 0 .25rem .25rem 0; }
.hx-pill.y { background: var(--yellow); border-color: var(--yellow); }

/* ---------- Callout ---------- */
.hx-callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 8px; padding: 1.3rem 1.4rem; margin: .6rem 0; }
.hx-callout p:last-child { margin-bottom: 0; }

/* ---------- Liste à puces jaunes ---------- */
.hx-list { list-style: none; margin: .4rem 0; }
.hx-list li { position: relative; padding: .4rem 0 .4rem 1.5rem; color: var(--ink-soft); }
.hx-list li::before { content: ''; position: absolute; left: 0; top: .8rem; width: 7px; height: 7px; background: var(--ink); }
.hx-list li strong { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.hx-card { border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem; background: var(--bg); }

/* ---------- Boutons ---------- */
.hx-btn { display: inline-block; font-weight: 700; padding: .85rem 1.6rem; border-radius: 8px; transition: transform .2s, background .2s; border: none; cursor: pointer; font-family: inherit; font-size: 1rem; text-align: center; }
.hx-btn-y { background: var(--yellow); color: #000; }
.hx-btn-y:hover { transform: translateY(-2px); }
.hx-btn-dark { background: var(--ink); color: #fff; }
.hx-btn-dark:hover { background: #000; transform: translateY(-1px); }
.hx-btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.hx-btn-ghost:hover { background: var(--bg-soft); }
.hx-btn-sm { padding: .5rem 1.1rem; font-size: .82rem; border-radius: 6px; }
.hx-link-y { border-bottom: 2px solid var(--yellow); font-weight: 600; }

/* ---------- CTA bloc noir ---------- */
.hx-cta { background: var(--black); color: #fff; border-radius: 16px; padding: 3rem 2rem; text-align: center; margin: 3.5rem 0; }
.hx-cta .hx-eyebrow { color: rgba(255,255,255,.6); }
.hx-cta h2 { color: #fff; font-size: 1.9rem; font-weight: 900; margin: 1rem 0 .5rem; }
.hx-cta p { color: rgba(255,255,255,.7); margin-bottom: 1.6rem; }
.hx-cta .alt { display: block; margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.6); }
.hx-cta .alt a { color: var(--yellow); }

/* ---------- Footer ---------- */
.hx-footer { padding: 2.5rem 0; text-align: center; color: var(--ink-soft); font-size: .82rem; }
.hx-footer a { font-weight: 600; }
.hx-footer .legal { margin-top: .5rem; font-size: .78rem; }

/* ---------- Champs (formulaires) ---------- */
.hx-field { margin-bottom: 1.1rem; }
.hx-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.hx-field input, .hx-field select {
    width: 100%; padding: .8rem .9rem; font-size: 1rem; font-family: inherit;
    background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; transition: border .15s;
}
.hx-field input:focus, .hx-field select:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(255,229,0,.35); }
.hx-field input::placeholder { color: #aaa; }

/* ---------- Écran "réservé" (gate) ---------- */
.hx-locked { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem 1.5rem; }
.hx-locked .lock { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 1.2rem; }
.hx-locked h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .6rem; }
.hx-locked p { color: var(--ink-soft); max-width: 40ch; margin: 0 auto 1.6rem; }

/* ---------- Spinner ---------- */
.hx-spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: hx-spin 1s linear infinite; margin: 3rem auto; }
@keyframes hx-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .hx-hero { padding: 3rem 0 2.4rem; }
    .hx-section { padding: 2.4rem 0; }
}
