:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --ink: #141416;
  --muted: #5d5d66;
  --line: #e7e5e0;
  --accent: #ea580c;
  --accent-ink: #ffffff;
  --accent-soft: #fff1e8;
  --dark: #121214;
  --dark-ink: #f4f4f5;
  --radius: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease, opacity .15s ease; border: 2px solid transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline { border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 10px 16px; color: var(--accent-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent); }
.rating { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; text-decoration: none; margin-bottom: 24px; }
.stars { color: #f5a524; letter-spacing: 2px; }
.hero .btn-row { margin-top: 28px; }
.hero-card { background: var(--dark); color: var(--dark-ink); border-radius: 24px; padding: 32px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); opacity: .25; }
.hero-card ul { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.hero-card li { padding: 14px 0; border-bottom: 1px solid #2b2b30; display: flex; gap: 12px; align-items: baseline; }
.hero-card li:last-child { border-bottom: 0; }
.hero-card b { color: var(--accent); font-size: 1.4rem; min-width: 3.4em; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Cartes */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.card p { color: var(--muted); margin: 0; }
.section-head { margin-bottom: 40px; }

/* Étapes */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 64px; }
.steps .card::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 22px; left: 26px; font-weight: 800; color: var(--accent); font-size: 1.4rem; }

/* Hyrox */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .lead, .dark .muted { color: #a8a8b3; }
.dark .card { background: #1c1c20; border-color: #2b2b30; }
.dark .card p { color: #a8a8b3; }
.stations { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.stations span { border: 1px solid #34343a; border-radius: 999px; padding: 6px 12px; font-size: .85rem; color: #d4d4d8; }

/* Avis */
.review { display: flex; flex-direction: column; justify-content: space-between; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); }
.review footer { font-weight: 700; font-size: .92rem; }
.review footer span { font-weight: 400; color: var(--muted); }

/* Zone */
.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
.towns { padding: 0; margin: 24px 0 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Contact */
.contact { background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: 56px 40px; text-align: center; }
.contact .lead { color: #ffe6d6; margin: 0 auto 28px; }
.contact .btn-primary { background: var(--dark); color: var(--dark-ink); }
.contact .btn-row { justify-content: center; }
@media (max-width: 600px) { .contact { padding: 40px 22px; } }

/* Pied de page */
.footer { padding: 40px 0 56px; color: var(--muted); font-size: .9rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer a { color: var(--muted); }

/* Bouton d'appel mobile */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; gap: 10px; }
  .call-bar .btn { flex: 1; box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
  .call-bar .btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
  body { padding-bottom: 80px; }
}

/* Page simple (mentions légales) */
.prose { max-width: 720px; padding: 64px 20px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }

/* À propos */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 8px; } }

/* Course à pied en ligne */
.online-run { align-items: center; gap: 48px; margin-top: 72px; padding-top: 72px; border-top: 1px solid #2b2b30; }
