/* Ekiden de Toulouse 2027 — feuille de style */
:root {
  --ink: #121212;
  --ink-2: #3A3940;
  --muted: #5E5974;
  --line: #ECEAF0;
  --paper: #FFFFFF;
  --cream: #F6EFE2;
  --amber: #F2A93B;
  --vermillon: #E8402F;
  --vermillon-text: #C8321F;
  --anthracite: #2B2B30;
  --radius: 20px;
  --max: 1240px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-jp: 'Noto Serif JP', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vermillon-text); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--vermillon); outline-offset: 3px; border-radius: 6px; }
.jp { font-family: var(--font-jp); font-weight: 900; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-sun { width: 40px; height: 40px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--font-display); font-weight: 900; font-size: 20px; }
.brand-txt span { font-weight: 800; font-size: 10px; letter-spacing: .24em; margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 700; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--vermillon-text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; background: transparent; font-family: inherit; line-height: 1.2; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--vermillon); color: #fff; }
.btn-primary:hover { background: var(--vermillon-text); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: var(--cream); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; color: #fff; }
.nav .btn:hover { color: #fff; }

/* Typo */
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .24em; color: var(--vermillon-text); margin: 0; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); }
h3 { font-weight: 800; font-size: 20px; line-height: 1.2; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }
section { scroll-margin-top: 16px; }
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; letter-spacing: .16em; }
.pill-outline { border: 1.5px solid var(--ink); }
.pill-dark { background: var(--anthracite); color: var(--cream); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding-top: 56px; padding-bottom: 48px; }
.hero-txt { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.hero h1 { font-weight: 900; font-size: clamp(56px, 8vw, 92px); line-height: .95; letter-spacing: -.01em; }
.hero h1 small { display: block; font-weight: 600; font-size: .32em; letter-spacing: .3em; color: var(--vermillon-text); margin-top: 14px; }
.hero-tag { margin: 0; font-weight: 800; font-size: 16px; letter-spacing: .22em; color: var(--vermillon-text); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); }
.hero-badge { flex: 0 1 540px; min-width: 0; }
.hero-badge img { width: 100%; aspect-ratio: 756 / 772; }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge img { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

/* Chiffres */
.figures { background: var(--anthracite); color: var(--cream); position: relative; overflow: hidden; }
.figures::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: repeating-linear-gradient(90deg, rgba(246,239,226,.16) 0 40px, transparent 40px 70px); }
.figures .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 40px; position: relative; }
.figure { display: flex; flex-direction: column; gap: 6px; }
.figure b { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; }
.figure span { font-weight: 700; font-size: 13px; letter-spacing: .16em; color: var(--amber); text-transform: uppercase; }

/* Concept */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > :first-child { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split > :last-child { flex: 2 1 480px; min-width: 0; font-size: 18px; color: var(--ink-2); }
.split p { margin: 0 0 18px; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(var(--amber) 0 38%, #fff 38% 44%, var(--vermillon) 44% 68%, #fff 68% 74%, var(--cream) 74%); border: 1.5px solid var(--ink); }

/* Relais */
.legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.leg { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.leg-sun { width: 96px; height: 96px; }
.leg-label { font-weight: 800; font-size: 13px; letter-spacing: .2em; }
.leg-label .jp { color: var(--vermillon-text); letter-spacing: 0; margin-left: 4px; }
.leg-km { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.leg-km small { font-size: 15px; margin-left: 4px; }
.note { margin: 20px 0 0; font-size: 15px; color: var(--muted); }

/* Lieu */
.cream { background: var(--cream); }
.place-map { flex: 1 1 460px; min-width: 0; border-radius: 24px; overflow: hidden; background: var(--anthracite); }
.place-map img { width: 100%; }
.place-map figcaption { color: var(--cream); font-size: 14px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Infos */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { border-radius: var(--radius); background: var(--paper); border: 1.5px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card .eyebrow { font-size: 12px; letter-spacing: .2em; }
.card p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* Bandeau inscription */
.cta-band { background: var(--vermillon); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { margin: 10px 0 0; font-size: 17px; }

/* Résultats */
.results { border-radius: 24px; background: var(--anthracite); color: var(--cream); padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.results h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.results .eyebrow { color: var(--amber); }
.results .btn { min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 700; }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.partner { min-height: 150px; border-radius: var(--radius); border: 1.5px solid var(--line); padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; text-decoration: none; color: var(--ink); background: #fff; }
.partner img { max-height: 80px; width: auto; object-fit: contain; }
.partner span { font-size: 12px; letter-spacing: .12em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
a.partner:hover { border-color: var(--ink); color: var(--ink); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; padding: 0 22px; border: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 24px; color: var(--vermillon); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }
.narrow { max-width: 880px; }

/* Pages intérieures */
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-weight: 900; font-size: clamp(40px, 6vw, 68px); }
.page-hero .lead { margin-top: 18px; }
.prose { max-width: 780px; font-size: 17px; color: var(--ink-2); }
.prose h2 { font-size: clamp(24px, 3vw, 30px); color: var(--ink); margin: 48px 0 14px; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pack { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.pack-main { background: var(--anthracite); color: var(--cream); }
.pack-alt { background: #FFFFFF; border: 1.5px solid var(--line); }
.pack h3 { font-size: 26px; }
.pack ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pack .btn { align-self: flex-start; margin-top: auto; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Formulaire */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 780px; }
.form .full { grid-column: 1 / -1; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #C9C6D1; background: #fff; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(232,64,47,.25); }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 14px; padding: 14px 18px; font-weight: 700; margin-bottom: 20px; max-width: 780px; }
.alert-ok { background: #E7F4EA; color: #1E5B2C; }
.alert-err { background: #FDE8E5; color: #8A2216; }
.alert[hidden] { display: none; }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--cream); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand b { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1; display: block; }
.footer-brand b .jp { color: var(--vermillon); }
.footer-brand > span { font-weight: 800; font-size: 11px; letter-spacing: .28em; display: block; margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 700; font-size: 15px; }
.footer-nav a { color: var(--cream); }
.footer-nav a:hover { color: var(--amber); }
.footer-legal { border-top: 1px solid #2E2E33; }
.footer-legal .wrap { padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: #A8A6B0; gap: 8px 24px; }
.footer-legal a { color: #A8A6B0; }

/* Bandeau cookies */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto; background: var(--ink); color: var(--cream); border-radius: 18px; padding: 18px 20px; box-shadow: 0 10px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.consent[hidden] { display: none; }
.consent a { color: var(--amber); }
.consent .btn-row .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav { gap: 2px 16px; font-size: 14px; }
  .results, .pack { padding: 24px; }
}
