/* Polices hébergées localement (aucune requête vers Google) — OFL */
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Figtree Variable'; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Figtree Variable'; font-style: normal; font-display: swap; font-weight: 300 900; src: url(../fonts/figtree-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ===== Identité « La Roue » ===== */
:root {
  --navy: #161A45;
  --navy-2: #252A63;
  --navy-3: #3A3F7A;
  --coral: #FF5A4F;
  --coral-hover: #FF7A70;
  --ground: #F3F4F8;
  --card: #FFFFFF;
  --line: #E3E5EE;
  --muted: #4A4E73;
  --muted-on-dark: #C9CCE6;
  --ok: #3DC48A;

  --font-display: 'Archivo Variable', 'Arial Narrow', sans-serif;
  --font-body: 'Figtree Variable', system-ui, sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --max: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--ground);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: #D93A30; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 96px); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--coral); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Titres display */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
}
.h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); overflow-wrap: break-word; }
@media (max-width: 520px) {
  .display { font-stretch: 105%; }
  .h1 { font-size: clamp(2rem, 10vw, 2.6rem); }
}
.h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.accent { color: var(--coral); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; font-family: inherit; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--navy); }
.btn-primary:hover { background: var(--coral-hover); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-light { border-color: #5A5F96; color: #fff; background: transparent; }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; background: #fff; }
.pill-dark { background: var(--navy); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.card { background: var(--card); border-radius: var(--radius); padding: 26px; }

/* ===== En-tête ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.site-header .logo img { height: 56px; width: auto; }
.nav-toggle { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-weight: 600; padding: 10px 0; display: inline-block; border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--coral); }
.main-nav .btn { padding: 10px 22px; min-height: 44px; border-bottom: 0; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
    border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); color: #D93A30; }
  .main-nav .btn { margin-top: 14px; width: 100%; }
}

/* ===== Hero ===== */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero .streaks { position: absolute; left: -40px; top: 140px; display: flex; flex-direction: column; gap: 18px; opacity: .14; pointer-events: none; }
.hero .streaks span { display: block; height: 10px; border-radius: 10px; background: #fff; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; padding-block: clamp(56px, 9vw, 96px) 56px; position: relative; }
.hero .lead { font-size: 1.25rem; color: var(--muted-on-dark); max-width: 34ch; }
.status { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--navy-2); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding-bottom: 64px; position: relative; }
.stats div { border-top: 2px solid var(--navy-3); padding-top: 16px; }
.stats strong { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 2.5rem; line-height: 1.1; }
.stats span { color: var(--muted-on-dark); }

/* Photo ou emplacement photo */
.photo { border-radius: 28px; overflow: hidden; position: relative; background: var(--navy-2); min-height: 320px; }
.photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo figcaption { position: absolute; right: 14px; bottom: 12px; font-size: .8rem; color: #fff; background: rgba(22,26,69,.7); padding: 4px 10px; border-radius: 999px; }
.photo-placeholder { display: flex; align-items: flex-end; padding: 22px; border: 2px dashed rgba(255,255,255,.25); }
.photo-placeholder .ring { position: absolute; top: 24px; right: 24px; width: 110px; height: 110px; border-radius: 50%; border: 16px solid var(--coral); }
.photo-placeholder p { color: var(--muted-on-dark); font-size: .95rem; }

/* ===== Disciplines ===== */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head p { max-width: 46ch; color: var(--muted); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 18px; }
.discipline-tile {
  text-decoration: none; color: var(--navy); border-radius: var(--radius); padding: 26px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; transition: transform .15s ease;
}
.discipline-tile:hover { transform: translateY(-3px); color: var(--navy); }
.discipline-tile h3 { font-family: var(--font-display); font-stretch: 115%; font-weight: 800; font-size: 1.6rem; }
.discipline-tile p { font-size: .95rem; margin-top: 6px; }
.discipline-tile.outline { background: #fff; border: 2px solid var(--navy); }

/* Actus */
.actu-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--navy); }
.actu-card .media { aspect-ratio: 16 / 9; background: var(--navy); position: relative; overflow: hidden; }
.actu-card .media:empty::after { content: ''; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid var(--accent-actu, var(--coral)); }
.actu-card .media img { width: 100%; height: 100%; object-fit: cover; }
.actu-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.actu-card h3 { font-size: 1.3rem; }
.actu-card .meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .9rem; font-weight: 600; }
.actu-card:hover h3 { text-decoration: underline; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; counter-reset: step; }
.step { background: var(--ground); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--font-display); font-stretch: 125%; font-weight: 900; font-size: 3rem; color: var(--coral); line-height: 1; }
.step h3 { font-size: 1.3rem; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.values h3 { font-size: 1.2rem; margin-bottom: 6px; }

.band-coral { background: var(--coral); }
.band-white { background: #fff; }
.list-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-tiles li { background: #fff; border-radius: 16px; padding: 18px 22px; font-weight: 600; }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.partner { background: #fff; border-radius: var(--radius-sm); min-height: 88px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.partner img { max-height: 60px; width: auto; object-fit: contain; }
a.partner:hover { color: var(--navy); outline: 2px solid var(--navy); }

/* ===== Pages intérieures ===== */
.page-hero { padding-block: clamp(40px, 6vw, 64px) clamp(40px, 6vw, 56px); }
.page-hero.dark { background: var(--navy); color: #fff; }
.page-hero.dark .lead { color: var(--muted-on-dark); }
.page-hero .lead { font-size: 1.2rem; max-width: 60ch; }
.breadcrumb { font-size: .95rem; font-weight: 600; margin-bottom: 24px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; }
.page-hero.dark .breadcrumb a { color: #fff; }

.with-aside { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.with-aside > .main { flex: 999 1 560px; min-width: 0; }
.with-aside > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.aside-dark { background: var(--navy); color: #fff; }
.aside-dark p { color: var(--muted-on-dark); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }

/* Texte riche (Markdown) */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }

/* Tableaux */
.table-wrap { background: #fff; border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; }
tbody tr + tr { border-top: 1px solid var(--line); }

/* Planning */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.filters legend { font-weight: 700; margin-bottom: 12px; width: 100%; }
.chip {
  font: inherit; font-weight: 700; font-size: .95rem; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid #D5D8E6; background: #fff; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--chip, #fff); }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.day h2 { font-family: var(--font-display); font-stretch: 125%; font-weight: 900; text-transform: uppercase; font-size: 1.5rem; margin-bottom: 8px; }
.slot { display: flex; gap: 14px; padding: 10px 0; }
.slot .bar { width: 8px; border-radius: 8px; flex-shrink: 0; }
.slot strong { display: block; }
.slot .place { font-size: .9rem; color: var(--muted); }
.slot[hidden], .day[hidden] { display: none; }

/* Formulaire */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--navy); background: #fff; border: 2px solid #C9CCDB; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(255,90,79,.45); outline-offset: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 16px; padding: 16px 20px; font-weight: 600; }
.notice.ok { background: #DDF5EA; }
.notice.err { background: #FFE1DE; }

/* ===== Pied de page ===== */
.site-footer { background: var(--navy); color: var(--muted-on-dark); }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; padding-block: 64px 32px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .logo-box { background: #fff; border-radius: 16px; padding: 12px; display: inline-block; }
.site-footer .logo-box img { height: 64px; width: auto; }
.site-footer .legal { border-top: 1px solid #2E3370; padding-block: 20px 32px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Compléments version PHP */
.field .error { color: #B42318; font-weight: 600; font-size: .95rem; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B42318; }
.prose blockquote { margin: 0; padding: 12px 20px; border-radius: 16px; background: #fff; }

/* Partenaires : logo + nom */
.partner { flex-direction: column; gap: 10px; min-height: 120px; }
.partner img { max-height: 56px; max-width: 100%; }
.partner-name { font-size: .85rem; font-weight: 700; color: var(--muted); line-height: 1.3; }
.partner.no-logo .partner-name { font-size: 1rem; }

/* Équipe */
.equipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.membre { background: #fff; border-radius: var(--radius); padding: 18px; display: flex; align-items: center; gap: 16px; }
.membre img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #EEF0F6; }
.membre div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.membre strong { font-size: 1.1rem; }
.partners { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.partner img { max-height: 64px; }

/* Tarifs par section (page Inscriptions) */
.tarifs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }
.tarif-card { border-top: 8px solid var(--sec, var(--coral)); }
.tarif-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.tarif-card h3 a { color: inherit; text-decoration: none; }
.tarif-card h3 a:hover { text-decoration: underline; }

/* Logo plus grand sur ordinateur */
@media (min-width: 961px) {
  .site-header .logo img { height: 92px; }
}
/* les ancres (#disciplines…) ne passent pas sous l'en-tête fixe */
html { scroll-padding-top: 90px; }
@media (min-width: 961px) { html { scroll-padding-top: 125px; } }

/* Lieux : liens vers Google Maps */
.lien-maps { display: inline-flex; align-items: baseline; gap: 4px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lien-maps svg { flex-shrink: 0; align-self: center; color: var(--coral); }
.lien-maps:hover { text-decoration-thickness: 2px; }
.page-hero.dark .lien-maps svg { color: var(--coral); }
