/* =========================================================
   Athletic Club Les Moustiques — feuille de style
   Palette tirée du logo (rouge) et de la piste au coucher du soleil.
   ========================================================= */

/* Polices hébergées sur le site (aucun appel à Google : conforme RGPD) */
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-700-italic.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(../fonts/barlow-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --rouge: #e30613;          /* rouge du logo */
  --rouge-fonce: #b8050f;
  --brique: #a3412f;         /* tartan de la piste */
  --soleil: #f39a2b;         /* ciel au couchant */
  --encre: #14161c;
  --encre-2: #262a33;
  --gris: #5d6370;
  --gris-clair: #d9d4cb;
  --papier: #faf6ef;
  --blanc: #fff;
  --ligne: rgba(20, 22, 28, .12);

  --titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --texte: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 14px;
  --ombre: 0 1px 2px rgba(20,22,28,.06), 0 8px 28px rgba(20,22,28,.08);
  --wrap: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--texte);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge-fonce); text-underline-offset: .2em; }
a:hover { color: var(--rouge); }
h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gouttiere); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--blanc); padding: 8px 14px; border-radius: 8px; }
.muted { color: var(--gris); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 700 .82rem/1 var(--texte);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 62ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 1.05rem/1 var(--titre);
  letter-spacing: .06em; text-transform: uppercase;
  padding: .95em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--rouge);
  background: var(--rouge); color: var(--blanc);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s;
}
.btn:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: var(--blanc); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--blanc); }
.btn-ghost:hover { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.btn-dark { background: var(--encre); border-color: var(--encre); }
.btn-dark:hover { background: var(--encre-2); border-color: var(--encre-2); }
.btn-sm { padding: .7em 1.2em; font-size: .95rem; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .97);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ligne);
  transition: background .25s, border-color .25s;
}
.home .site-header { position: fixed; left: 0; right: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--rouge); }
.brand img { width: 64px; height: auto; }
.brand-text { white-space: nowrap; font: 800 1.5rem/0.9 var(--titre); text-transform: uppercase; letter-spacing: .01em; }
.brand-text small { display: block; font: 600 .72rem/1.3 var(--texte); letter-spacing: .2em; color: var(--rouge); }

.nav { display: flex; align-items: center; gap: 1.2rem; }
.nav ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; white-space: nowrap; padding: .5em .7em;
  font: 700 1.08rem/1 var(--titre); text-transform: uppercase; letter-spacing: .05em;
  color: var(--encre); text-decoration: none; border-radius: 8px; position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: .7em; right: .7em; bottom: .15em; height: 3px; border-radius: 2px;
  background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; place-content: center; gap: 5px;
    width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--encre); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--blanc); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 2rem;
    background: var(--encre);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: .4rem; }
  .nav ul a { color: var(--blanc); font-size: 2rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Héros d'accueil ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--blanc);
  background: var(--encre) url(../img/piste.jpg) center 46% / cover no-repeat;
  isolation: isolate;
}
@media (max-width: 700px) { .hero { background-image: url(../img/piste-mobile.jpg); background-position: center 58%; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,22,28,.6) 0%, rgba(20,22,28,.25) 30%, rgba(20,22,28,0) 45%),
    linear-gradient(0deg, rgba(20,22,28,.92) 0%, rgba(20,22,28,.55) 38%, rgba(20,22,28,0) 70%);
}
.hero .wrap { padding-block: 9rem clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 15em; font-size: clamp(2.4rem, 5.4vw, 4.4rem); text-shadow: 0 2px 30px rgba(0,0,0,.25); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--soleil); }
.hero .lead { color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.hero .eyebrow { color: #ffe2bf; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.next-session {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  width: fit-content; max-width: 100%;
}
.next-session > div { padding: 1rem 1.4rem; border-right: 1px solid rgba(255,255,255,.18); }
.next-session > div:last-child { border-right: 0; }
.next-session dt { font: 600 .74rem/1 var(--texte); text-transform: uppercase; letter-spacing: .16em; color: #ffd7a6; margin-bottom: .45rem; }
.next-session dd { margin: 0; font: 700 1.35rem/1.1 var(--titre); text-transform: uppercase; }
.pulse { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; margin-right: .45rem; vertical-align: middle; box-shadow: 0 0 0 0 rgba(61,220,132,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@media (max-width: 640px) {
  .next-session { grid-template-columns: 1fr 1fr; width: 100%; }
  .next-session > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
}

/* ---------- Bandeau titres pages intérieures ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--blanc);
  background: var(--encre);
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  isolation: isolate;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url(../img/piste.jpg) center 70% / cover no-repeat;
  opacity: .45;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,22,28,.95) 0%, rgba(20,22,28,.6) 60%, rgba(20,22,28,.3) 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 18ch; }
.page-hero h1 em { color: var(--soleil); }
.page-hero .eyebrow { color: #ffd7a6; }
.page-hero .lead { color: rgba(255,255,255,.88); margin-bottom: 0; }

/* ---------- Lignes de piste (motif décoratif) ---------- */
.lanes {
  height: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 34px, transparent 34px 56px) 0 3px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.85) 0 34px, transparent 34px 56px) 28px 9px / 100% 2px no-repeat,
    var(--brique);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-dark { background: var(--encre); color: var(--blanc); }
.section-dark .muted { color: rgba(255,255,255,.65); }
.section-brique { background: var(--brique); color: var(--blanc); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head .lead { margin: 0; }
.link-more { font: 700 1.05rem/1 var(--titre); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--blanc); padding: 1.6rem 1.4rem; }
.stat b { display: block; font: 800 clamp(2.6rem, 5vw, 3.6rem)/1 var(--titre); color: var(--rouge); }
.stat span { color: var(--gris); font-size: .98rem; }

/* Cartes « couloirs » */
.lanes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: lane; }
@media (max-width: 860px) { .lanes-grid { grid-template-columns: 1fr; } }
.lane-card {
  position: relative; padding: 2rem 1.6rem 1.8rem;
  background: var(--encre-2); border-radius: var(--r);
  border-top: 4px solid var(--soleil);
  overflow: hidden;
}
.lane-card::before {
  counter-increment: lane; content: counter(lane);
  position: absolute; right: 1rem; top: -.6rem;
  font: italic 800 7rem/1 var(--titre); color: rgba(255,255,255,.07);
}
.lane-card h3 { color: var(--blanc); }
.lane-card p { color: rgba(255,255,255,.78); margin: 0; }
.lane-card .tag { display: inline-block; font: 700 .8rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--soleil); margin-bottom: .9rem; }

/* Semaine */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .5rem; }
.day { border-radius: 12px; padding: .9rem .4rem; text-align: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); }
.day b { display: block; font: 800 1.15rem/1 var(--titre); text-transform: uppercase; }
.day small { display: block; margin-top: .35rem; font-size: .85rem; }
.day.on { background: var(--rouge); color: var(--blanc); }
.day.next { outline: 3px solid var(--soleil); outline-offset: 2px; }
@media (max-width: 560px) { .day b { font-size: .95rem; } .day small { font-size: .72rem; } }

/* Actualités */
.news-list { display: grid; gap: 1rem; }
.news {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem;
  background: var(--blanc); border-radius: var(--r); padding: 1.5rem 1.6rem; box-shadow: var(--ombre);
}
.news time { font: 800 1.1rem/1.15 var(--titre); text-transform: uppercase; color: var(--rouge); }
.news time span { display: block; font-size: 2.6rem; line-height: .95; color: var(--encre); }
.news .body { min-width: 0; overflow-wrap: anywhere; }
.news .by { font-size: .9rem; color: var(--gris); margin-top: .8rem; margin-bottom: 0; }
.news .body p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; gap: .6rem; } .news time span { display: inline; font-size: 1.1rem; } }
.empty { padding: 2rem; border: 2px dashed var(--gris-clair); border-radius: var(--r); text-align: center; color: var(--gris); }

/* Galerie */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: .6rem; }
.mosaic a { position: relative; overflow: hidden; border-radius: 10px; background: var(--encre-2); }
.mosaic a:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.mosaic a:nth-child(2), .mosaic a:nth-child(3) { grid-column: span 3; }
.mosaic a:nth-child(n+4) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .8rem .6rem; font-size: .85rem; color: var(--blanc); background: linear-gradient(transparent, rgba(0,0,0,.7)); }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .mosaic a:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.album { text-decoration: none; color: inherit; background: var(--blanc); border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); transition: transform .2s; }
.album:hover { transform: translateY(-3px); color: inherit; }
.album .cover { aspect-ratio: 4/3; background: var(--encre-2); overflow: hidden; }
.album .cover img { width: 100%; height: 100%; object-fit: cover; }
.album .meta { padding: .9rem 1rem 1rem; }
.album h3 { font-size: 1.3rem; margin: 0 0 .2rem; }
.album small { color: var(--gris); }
.year-title { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 1.2rem; font-size: 2.4rem; color: var(--brique); }
.year-title::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--gris-clair) 0 18px, transparent 18px 28px); }
.year-nav { display: flex; flex-wrap: wrap; gap: .4rem; }
.year-nav a { padding: .35em .8em; border-radius: 999px; background: var(--blanc); border: 1px solid var(--ligne); text-decoration: none; color: var(--encre); font-weight: 600; font-size: .95rem; }
.year-nav a:hover { border-color: var(--rouge); color: var(--rouge); }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.photos a { aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--gris-clair); }
.photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photos a:hover img { transform: scale(1.05); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,14,.94); display: none; align-items: center; justify-content: center; padding: 3.5rem 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; box-shadow: 0 10px 60px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: var(--blanc); border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; }

/* Appel à l'action */
.cta {
  position: relative; overflow: hidden; border-radius: calc(var(--r) * 1.6);
  background: var(--rouge); color: var(--blanc);
  padding: clamp(2.2rem, 6vw, 4rem);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 380px; height: 330px;
  background: url(../img/logo-moustiques-blanc.png) center / contain no-repeat; opacity: .14; pointer-events: none;
}
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.15rem; max-width: 52ch; }
.cta .btn { background: var(--blanc); color: var(--rouge); border-color: var(--blanc); position: relative; z-index: 1; }
.cta .btn:hover { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Contenu éditorial */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--rouge); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 920px) { .content-grid { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 100px; display: grid; gap: 1rem; }
.card { background: var(--blanc); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--ombre); }
.card h3 { font-size: 1.4rem; }
.card p:last-child { margin-bottom: 0; }
.card-dark { background: var(--encre); color: var(--blanc); }
.card-dark a { color: #ffd7a6; }
.figure { border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); margin: 0; }
.figure figcaption { background: var(--blanc); padding: .7rem 1rem; font-size: .92rem; color: var(--gris); }

/* Étapes d'adhésion */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; align-items: start; background: var(--blanc); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--ombre); }
.steps li::before { content: counter(step); display: grid; place-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--encre); color: var(--blanc); font: italic 800 2rem/1 var(--titre); }
.steps h3 { margin: .3rem 0 .4rem; }
.steps p { margin: 0; }

/* Tarifs */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.price { background: var(--blanc); border-radius: var(--r); padding: 2rem 1.6rem; box-shadow: var(--ombre); border-top: 5px solid var(--brique); }
.price:nth-child(2) { border-top-color: var(--rouge); }
.price h3 { font-size: 1.5rem; }
.price .amount { font: 800 3.6rem/1 var(--titre); color: var(--encre); margin: .5rem 0 .8rem; }
.price .amount small { font-size: 1.1rem; color: var(--gris); font-weight: 600; letter-spacing: .04em; }

/* Documents */
.docs { display: grid; gap: .6rem; }
.doc { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; text-decoration: none; color: var(--encre); font-weight: 600; }
.doc:hover { border-color: var(--rouge); color: var(--rouge); }
.doc .ico { display: grid; place-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--rouge); color: var(--blanc); font: 800 .8rem/1 var(--titre); letter-spacing: .05em; flex: none; }

/* FAQ */
.faq details { background: var(--blanc); border-radius: 12px; padding: 0 1.3rem; margin-bottom: .6rem; box-shadow: var(--ombre); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 1.6rem/1 var(--titre); color: var(--rouge); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.2rem; color: var(--encre-2); }

/* Tableaux */
.table-wrap { overflow-x: auto; background: var(--blanc); border-radius: var(--r); box-shadow: var(--ombre); }
table.data { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .97rem; }
.data th { text-align: left; font: 700 .78rem/1 var(--texte); text-transform: uppercase; letter-spacing: .12em; color: var(--gris); padding: 1rem; border-bottom: 2px solid var(--ligne); white-space: nowrap; background: #fcfbf8; position: sticky; top: 0; }
.data td { padding: .85rem 1rem; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: #fdf5ee; }
.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data .race-name { font-weight: 600; }
.badge { display: inline-block; padding: .2em .6em; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #fde9e4; color: var(--brique); }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.2rem; align-items: center; }
.tabs { display: inline-flex; background: var(--blanc); border-radius: 999px; padding: 4px; box-shadow: var(--ombre); margin-bottom: 2rem; }
.tabs a { padding: .6em 1.3em; border-radius: 999px; text-decoration: none; color: var(--encre); font: 700 1.05rem/1 var(--titre); text-transform: uppercase; letter-spacing: .05em; }
.tabs a[aria-current="page"] { background: var(--encre); color: var(--blanc); }

/* Courses à venir */
.races { display: grid; gap: .8rem; }
.race { display: grid; grid-template-columns: 92px 1fr auto; gap: 1.2rem; align-items: center; background: var(--blanc); border-radius: var(--r); padding: 1.1rem 1.3rem; box-shadow: var(--ombre); }
.race .date { text-align: center; border-right: 2px dashed var(--gris-clair); padding-right: 1rem; }
.race .date b { display: block; font: 800 2.4rem/1 var(--titre); color: var(--rouge); }
.race .date span { font: 700 .9rem/1 var(--titre); text-transform: uppercase; letter-spacing: .06em; }
.race h3 { margin: 0 0 .2rem; font-size: 1.4rem; }
.race p { margin: 0; color: var(--gris); font-size: .95rem; }
.race details summary { cursor: pointer; color: var(--rouge-fonce); font-size: .92rem; font-weight: 600; }
@media (max-width: 600px) { .race { grid-template-columns: 70px 1fr; } .race > :last-child { grid-column: 1 / -1; } }

/* Formulaires */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--encre);
  padding: .8rem .95rem; border: 1.5px solid var(--gris-clair); border-radius: 10px; background: var(--blanc);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 4px rgba(227,6,19,.12); }
textarea { min-height: 160px; resize: vertical; }
.filters input[type=search] { max-width: 320px; }
.filters select { width: auto; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-weight: 500; }
.alert-ok { background: #e3f6ea; color: #14532d; }
.alert-err { background: #fde8e6; color: #7f1d1d; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.check input { margin-top: .3rem; accent-color: var(--rouge); }

/* Carte */
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); box-shadow: var(--ombre); background: var(--gris-clair); display: block; }
.transport { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.transport li { display: flex; gap: .8rem; align-items: center; }
.transport b { display: inline-block; min-width: 82px; text-align: center; padding: .35em .6em; border-radius: 8px; background: var(--encre); color: var(--blanc); font: 700 .95rem/1 var(--titre); text-transform: uppercase; letter-spacing: .04em; }

/* Pied de page */
.site-footer { background: var(--encre); color: rgba(255,255,255,.78); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 210px; margin-bottom: 1.2rem; background: var(--blanc); padding: 14px 16px; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.site-footer h2 { font-size: 1.25rem; color: var(--blanc); letter-spacing: .06em; margin-bottom: .8rem; }
.site-footer a { color: var(--blanc); text-decoration: none; }
.site-footer a:hover { color: var(--soleil); }
.site-footer .muted { color: rgba(255,255,255,.55); }
.insta { display: inline-flex; gap: .5rem; align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.3rem; font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .hero-actions, .nav-toggle { display: none !important; }
  .hero, .page-hero { color: var(--encre); background: none; min-height: 0; }
}
