/* ==========================================================================
   Rogoué Boxing Club Savenay — feuille de style du site public
   Charte : noir profond, rouge vif, blanc cassé. Titres Big Shoulders Display.
   ========================================================================== */

:root {
  --ink: #141210;
  --ink-2: #1c1a16;
  --ink-3: #242019;
  --red: #c81e1e;
  --red-dark: #8f1414;
  --red-glow: rgba(200, 30, 30, 0.35);
  --white: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.68);
  --faint: rgba(247, 244, 238, 0.45);
  --line: rgba(247, 244, 238, 0.14);
  --font-title: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --container: 1180px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
body.nav-open, body.lightbox-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
p { margin: 0 0 1em; }
small { font-size: 0.85em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- Boutons et liens ---- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  padding: 12px 24px;
  border-radius: 4px;
  border: 2px solid var(--red);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px var(--red-glow); }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--red); color: #fff; }
.link-more {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-more::after { content: "→"; transition: transform 0.15s; }
.link-more:hover::after { transform: translateX(4px); }
.eyebrow {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); flex: none; }
.eyebrow a { text-decoration: none; }

/* ---- En-tête ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: auto; transition: width 0.2s; }
.site-header.is-scrolled .brand img { width: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em; }
.brand-city { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  color: var(--white);
}
.nav > ul > li > a:hover, .nav > ul > li.is-active > a { color: #fff; background: rgba(247, 244, 238, 0.07); }
.nav > ul > li.is-active > a { box-shadow: inset 0 -2px 0 var(--red); }
.sub-toggle { display: none; }
.nav .sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 9px 12px; text-decoration: none; border-radius: 4px; font-size: 0.92rem; }
.nav .sub a:hover { background: var(--red); color: #fff; }
.nav-cta { margin-left: 12px; padding: 9px 18px; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--white); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Messages flash ---- */
.flash-zone { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid; font-weight: 500; }
.alert-success { background: rgba(46, 160, 90, 0.15); border-color: rgba(46, 160, 90, 0.5); }
.alert-error { background: rgba(200, 30, 30, 0.18); border-color: var(--red); }

/* ---- Hero d'accueil ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: min(720px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-slides, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero-slide.is-visible { opacity: 1; transform: scale(1); }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 18, 16, 0.94) 0%, rgba(20, 18, 16, 0.75) 45%, rgba(20, 18, 16, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 35%);
}
.hero:not(.has-slides) .hero-overlay {
  background:
    linear-gradient(115deg, var(--ink) 0%, var(--ink) 48%, var(--red-dark) 48.2%, var(--red) 62%, var(--ink-2) 62.2%, var(--ink-2) 100%);
  opacity: 0.55;
}
.hero-content { position: relative; display: flex; align-items: center; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.hero-logo { width: 220px; flex: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.hero-title { font-size: clamp(2.8rem, 7.5vw, 5.6rem); line-height: 0.92; margin-bottom: 18px; }
.hero-title span { display: block; color: var(--red); font-size: 0.55em; letter-spacing: 0.12em; margin-top: 8px; }
.hero-sub { max-width: 560px; font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow { color: var(--white); font-style: italic; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; font-weight: 500; }
.hero .eyebrow::before { background: var(--red); }

/* ---- Chiffres clés ---- */
.stats { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.stats::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: rgba(0, 0, 0, 0.15);
  transform: skewX(-18deg);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 0; }
.stat strong { font-family: var(--font-title); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.stat span { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-bottom: 24px; }
.section-title small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; text-transform: none; letter-spacing: 0.04em; color: var(--red); margin-top: 6px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.split-text .btn { margin-top: 8px; }
.panel {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.panel-title { margin-bottom: 12px; }
.panel .btn { margin-top: 6px; }
.side-logo { width: 180px; margin: 32px auto 0; opacity: 0.9; }
.intro { max-width: 760px; margin-bottom: 32px; color: var(--muted); font-size: 1.05rem; }
.empty { color: var(--muted); font-style: italic; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Contenu rédigé (markdown) ---- */
.prose { font-size: 1.02rem; }
.prose p { color: var(--white); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--red); }
.prose strong { color: #fff; }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 3px solid var(--red); background: rgba(247, 244, 238, 0.04); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.prose em { color: var(--muted); }

/* ---- En-tête de page ---- */
.page-head {
  padding: 56px 0 28px;
  background:
    linear-gradient(90deg, rgba(200, 30, 30, 0.16), transparent 60%),
    var(--ink-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -40px;
  width: 340px;
  height: 200%;
  background: var(--red);
  opacity: 0.12;
  transform: rotate(22deg);
  pointer-events: none;
}
.page-head h1 { margin-bottom: 8px; }
.page-head .intro { margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tabs a {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: var(--muted);
  transition: all 0.15s;
}
.tabs a:hover { color: #fff; border-color: var(--red); }
.tabs a.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- Cartes d'actualité ---- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: linear-gradient(120deg, var(--ink-3), var(--ink-2)); }
.card-placeholder img { width: 110px; opacity: 0.6; }
.tag {
  position: absolute;
  left: 12px;
  top: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--line);
}
.tag-gala { background: var(--red); border-color: var(--red); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-date { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0; }
.card-date.is-past { color: var(--faint); }
.card-title { font-size: 1.45rem; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-meta { color: var(--faint); font-size: 0.9rem; margin: 0; }
.card-text { color: var(--muted); font-size: 0.95rem; margin: 4px 0 10px; flex: 1; }

/* ---- Article ---- */
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); margin: 0; }
.post-date { color: var(--white); font-weight: 600; }
.post-date em { color: var(--faint); font-weight: 400; }
.post-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.post-image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.post-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.poster { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.poster span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: rgba(20, 18, 16, 0.85); font-size: 0.85rem; text-align: center; letter-spacing: 0.08em; text-transform: uppercase; }
.poster:hover span { background: var(--red); }
.big-date { font-family: var(--font-title); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; margin-bottom: 6px; }
.ticket { border-color: var(--red); }

/* ---- Entraîneurs ---- */
.coach-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.coach-card.is-lead { grid-column: span 3; display: grid; grid-template-columns: 320px 1fr; border-color: var(--red); }
.coach-photo { aspect-ratio: 1 / 1; background: var(--ink-3); overflow: hidden; }
.coach-card.is-lead .coach-photo { aspect-ratio: auto; min-height: 320px; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.coach-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; }
.coach-placeholder svg { width: 40%; fill: rgba(247, 244, 238, 0.12); }
.coach-body { padding: 20px 22px 24px; }
.coach-card.is-lead .coach-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.coach-name { font-size: 1.5rem; color: var(--red); margin-bottom: 4px; }
.coach-card.is-lead .coach-name { font-size: 2.2rem; }
.coach-role { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; }
.coach-quals { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---- Médiathèque ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 56px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--ink-3); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, filter 0.3s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(1.08); }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { padding: 10px 2px; color: var(--muted); font-size: 0.95rem; }
.video-link { display: block; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(10, 9, 8, 0.94); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden], [hidden] { display: none !important; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lightbox figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; min-height: 1.3em; }
.lightbox button { position: absolute; background: rgba(20, 18, 16, 0.7); color: #fff; border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: var(--red); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---- Documents ---- */
.doc-group { margin-bottom: 36px; }
.doc-group h3 { margin-bottom: 4px; }
.doc-help { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.doc-list { display: grid; gap: 12px; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.doc-card:hover { border-color: var(--red); transform: translateY(-2px); }
.doc-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-text strong { font-size: 1.05rem; }
.doc-text span { color: var(--muted); font-size: 0.88rem; }
.doc-text small { color: var(--faint); font-size: 0.78rem; margin-top: 2px; }
.doc-action {
  flex: none;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid var(--red);
  padding: 7px 16px;
  border-radius: 4px;
}
.doc-card:hover .doc-action { background: var(--red); color: #fff; }
.doc-list-compact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.doc-list-compact a { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px 10px; border-radius: 4px; border: 1px solid transparent; }
.doc-list-compact a:hover { border-color: var(--line); background: rgba(247, 244, 238, 0.04); }
.doc-list-compact .doc-icon { width: 36px; height: 36px; font-size: 0.68rem; }

/* ---- Horaires ---- */
.table-wrap { overflow-x: auto; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.schedule-table th, .schedule-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule-table thead th { background: var(--red); color: #fff; font-family: var(--font-title); text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; font-weight: 800; }
.schedule-table tbody th { font-family: var(--font-title); text-transform: uppercase; font-size: 1.3rem; font-weight: 800; background: var(--ink-3); border-right: 1px solid var(--line); }
.schedule-table .time { white-space: nowrap; font-weight: 600; }
.schedule-table small { color: var(--muted); }
.note { background: var(--ink-3); border-left: 3px solid var(--red); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 28px; }
.note p:last-child { margin-bottom: 0; }
.venues { margin-top: 8px; }
.schedule-compact { display: grid; gap: 14px; margin-bottom: 22px; }
.schedule-day h3 { font-size: 1.25rem; color: var(--red); margin-bottom: 4px; }
.schedule-day ul { list-style: none; margin: 0; padding: 0; }
.schedule-day li { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.schedule-day .time { font-weight: 600; min-width: 120px; }
.schedule-day .venue { color: var(--faint); font-size: 0.85rem; }

/* ---- Contact ---- */
.contact-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input, .field textarea, .field select {
  font: inherit;
  font-weight: 400;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-note { color: var(--faint); font-size: 0.8rem; margin: 0; }

/* ---- Mentions légales ---- */
.legal-list { display: grid; gap: 10px; margin: 0 0 28px; }
.legal-list div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-list dt { color: var(--muted); font-size: 0.9rem; }
.legal-list dd { margin: 0; }

/* ---- Erreur 404 ---- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .eyebrow { justify-content: center; }
.error-page .eyebrow::before { display: none; }

/* ---- Pied de page ---- */
.site-footer { background: #0e0d0b; border-top: 3px solid var(--red); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand img { width: 90px; margin-bottom: 14px; }
.footer-tagline { font-style: italic; color: var(--muted); max-width: 320px; }
.footer-title { font-size: 1.15rem; color: var(--red); margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-list a { text-decoration: none; color: var(--muted); }
.footer-list a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; }
.social a:hover { background: var(--red); border-color: var(--red); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--faint); }
.footer-bottom a { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .coach-card.is-lead { grid-column: span 2; grid-template-columns: 260px 1fr; }
  .split, .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-logo { width: 170px; }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand-text { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: none; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 44px; align-items: center; }
  .nav > ul > li > a { font-family: var(--font-title); font-size: 1.5rem; text-transform: uppercase; padding: 14px 4px; }
  .nav > ul > li.is-active > a { box-shadow: none; background: none; color: var(--red); }
  .sub-toggle { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .sub-toggle::before { content: ""; position: absolute; left: 16px; top: 15px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
  li.sub-open .sub-toggle::before { transform: rotate(225deg); top: 20px; }
  .nav .sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 10px 12px; grid-column: 1 / -1; }
  li.sub-open > .sub { display: block; }
  .nav .sub a { font-size: 1.05rem; color: var(--muted); }
  .nav-cta { margin: 20px 0 0; text-align: center; }
  .hero { min-height: auto; }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 40px; padding-bottom: 48px; }
  .hero-logo { width: 130px; }
  .section { padding: 52px 0; }
  .field-row { grid-template-columns: 1fr; }
  .coach-card.is-lead { grid-template-columns: 1fr; }
  .coach-card.is-lead .coach-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .legal-list div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .coach-card.is-lead { grid-column: span 1; }
  .panel { padding: 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .doc-card { flex-wrap: wrap; }
  .doc-action { width: 100%; text-align: center; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
