/* ============================================================
   Olivier Gaillard · Entraîneur athlétisme, Lyon
   Base sombre chaude / accent ambré piste
   ============================================================ */

:root {
  --bg: #0f0f0f;
  --bg-soft: #161616;
  --text: #fffdfa;
  --muted: #8c8c8c;
  --accent: #e87a3d;
  --accent-deep: #c9601f;
  --line: rgba(255, 253, 250, 0.12);
  --font-display: "Anton", "Archivo Black", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.5s;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: pageIn 0.6s ease-out 0.05s forwards;
}

@keyframes pageIn { to { opacity: 1; } }

::selection { background: var(--accent); color: #0f0f0f; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ---------- Typo utilitaires ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: var(--text);
  max-width: 620px;
}

.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color var(--speed) ease, border-color var(--speed) ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(15, 15, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wordmark svg { display: block; height: 24px; width: auto; }

.wordmark .wm-x {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.wordmark .wm-ap { display: block; height: 26px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a.nav-link {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.main-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.main-nav a.nav-link:hover,
.main-nav a.nav-link.active { color: var(--text); }

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 22px;
  white-space: nowrap;
  transition: background-color var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
}

.header-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 120;
}

.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.3s ease, top 0.35s var(--ease);
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }

.burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 15, 15, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 8vw, 64px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: auto; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s var(--ease), color 0.3s ease;
}

.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.16s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.24s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.32s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.4s; }

.mobile-menu a:hover { color: var(--accent); }

.mobile-menu .menu-meta {
  margin-top: 40px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

.mobile-menu.open .menu-meta { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  animation: heroDrift 24s var(--ease) forwards;
  will-change: transform;
}

@keyframes heroDrift {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 15, 15, 0.96) 0%, rgba(15, 15, 15, 0.55) 45%, rgba(15, 15, 15, 0.3) 100%),
    linear-gradient(100deg, rgba(15, 15, 15, 0.75) 0%, rgba(15, 15, 15, 0.1) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(48px, 7vh, 84px);
  padding-top: 140px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8.6vw, 7.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.hero-title .line {
  display: block;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(30px);
  animation: lineIn 0.9s var(--ease) forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-title .line:nth-child(2) { animation-delay: 0.3s; margin-left: clamp(24px, 6vw, 90px); }
.hero-title .line:nth-child(3) { animation-delay: 0.45s; }

.hero-title .accent { color: var(--accent); }

@keyframes lineIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.hero-sub {
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 253, 250, 0.85);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.65s forwards;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  padding: 15px 32px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--speed) ease, color var(--speed) ease,
              border-color var(--speed) ease, transform 0.3s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: #0f0f0f;
}

.btn-solid:hover { background: var(--text); color: #0f0f0f; }

.btn-ghost {
  border-color: rgba(255, 253, 250, 0.35);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Bandeau stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(26px, 3.5vw, 44px) clamp(16px, 2vw, 30px);
  border-left: 1px solid var(--line);
}

.stat:first-child { border-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--text);
}

.stat-num em {
  font-style: normal;
  color: var(--accent);
}

.stat-label {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Sections génériques ---------- */

.section {
  padding: clamp(60px, 9vw, 110px) 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.split--media { align-items: center; }

.split .sticky-note {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--muted);
  border-left: 1px solid var(--accent);
  padding-left: 18px;
  line-height: 2;
}

.text-block p + p { margin-top: 1.2em; }

.text-block .more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.3s ease, gap 0.3s var(--ease);
}

.text-block .more-link:hover { border-color: var(--accent); gap: 16px; }

/* ---------- Étapes (déroulé prépa) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: clamp(22px, 3vw, 38px) clamp(18px, 2.2vw, 32px) clamp(28px, 3.5vw, 44px);
  border-left: 1px solid var(--line);
  position: relative;
  transition: background-color var(--speed) ease;
}

.step:first-child { border-left: 0; }

.step:hover { background: var(--bg-soft); }

.step-num {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.step-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.step p {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.steps-note {
  margin-top: 34px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.steps-note strong { color: var(--accent); font-weight: 500; }

/* ---------- Tarifs ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.plan {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(32px, 4.5vw, 56px);
  display: flex;
  flex-direction: column;
  transition: border-color var(--speed) ease, transform 0.4s var(--ease);
}

.plan:hover { border-color: rgba(232, 122, 61, 0.55); transform: translateY(-6px); }

.plan.plan-featured {
  background: var(--bg-soft);
  border-color: rgba(232, 122, 61, 0.45);
}

.plan-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-transform: uppercase;
  line-height: 1;
}

.plan-price {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  line-height: 1;
}

.plan-price .per {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.plan-desc {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-list {
  list-style: none;
  margin: 30px 0 36px;
  border-top: 1px solid var(--line);
  flex: 1;
}

.plan-list li {
  padding: 13px 0 13px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  position: relative;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.pricing-note {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.contact-intro .lead { margin-top: 22px; }

.contact-direct { margin-top: 26px; }

.contact-direct a { border-bottom: 1px solid var(--accent); transition: color 0.3s ease; }
.contact-direct a:hover { color: var(--accent); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  /* 0.4 : trait de saisie à 3,8:1 sur le fond (WCAG 1.4.11, 3:1 minimum) */
  border-bottom: 1px solid rgba(255, 253, 250, 0.4);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  padding: 8px 0 10px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field textarea { resize: vertical; min-height: 130px; }

/* 0.5 : exemples lisibles à 5,3:1 */
.field textarea::placeholder,
.field input::placeholder { color: rgba(255, 253, 250, 0.5); }

/* Focus : trait épaissi à 2 px en orange, bien visible au clavier */
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.field [aria-invalid="true"] { border-bottom-color: #ff6b5b; box-shadow: 0 1px 0 0 #ff6b5b; }

.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.form-status:empty { display: none; }

.field-error {
  min-height: 1.6em;
  font-size: 12.5px;
  color: #ff6b5b;
}

.form-foot { grid-column: 1 / -1; }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 90px) 0 36px;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/track-night.webp");
  background-size: cover;
  background-position: center 65%;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}

.footer-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.97) 0%, rgba(15, 15, 15, 0.8) 55%, rgba(15, 15, 15, 0.9) 100%);
}

.footer-inner { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.footer-col .col-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 4px; }

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: rgba(255, 253, 250, 0.8);
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-col a svg { flex: none; opacity: 0.75; }

.footer-col a:hover svg { opacity: 1; }

.footer-brand p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Pages intérieures ---------- */

.page-hero {
  padding: clamp(130px, 20vh, 190px) 0 clamp(48px, 7vw, 80px);
  position: relative;
  overflow: hidden;
}

.page-hero .hero-title { font-size: clamp(2.5rem, 7vw, 5.5rem); }

.page-hero .lead { margin-top: 30px; color: rgba(255, 253, 250, 0.8); }

/* Hero avec vidéo de fond (page AP) */

.page-hero--video {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.45) 55%, rgba(15, 15, 15, 0.35) 100%),
    linear-gradient(100deg, rgba(15, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.15) 65%);
}

.page-hero .container { position: relative; z-index: 1; }

/* Hero avec photo (page Le Coach) : image à droite, fondu vers la gauche */

.page-hero--photo {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
}

.page-hero--photo .page-hero-media img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  object-position: center 18%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}

.page-hero--photo .page-hero-media::after {
  background: linear-gradient(to top, rgba(15, 15, 15, 0.9) 0%, rgba(15, 15, 15, 0.25) 45%, rgba(15, 15, 15, 0.15) 100%);
}

@media (max-width: 860px) {
  .page-hero--photo .page-hero-media img {
    width: 100%;
    opacity: 0.45;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Liste diplômes / événements */

.record-table { width: 100%; border-collapse: collapse; }

.record-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 400;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.record-table td {
  padding: 20px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  vertical-align: baseline;
}

.record-table td.time {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.record-table td.year {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

.record-table tr { transition: background-color 0.3s ease; }
.record-table tbody tr:hover { background: var(--bg-soft); }

.timeline-list { list-style: none; border-top: 1px solid var(--line); }

.timeline-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(18px, 3vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.timeline-list .t-year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.timeline-list .t-title {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
}

.timeline-list .t-detail {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Accueil · Qui je suis : titre standard, colonne texte abaissée face à l'image */

#apropos .split { align-items: start; }

#apropos .text-block { padding-top: clamp(30px, 4vw, 46px); }

#apropos .section-title { margin-bottom: clamp(22px, 3vw, 34px); }

/* Coach · records en cartes (au lieu du tableau) */

.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.record-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--bg-soft);
  transition: border-color 0.3s ease, transform 0.5s var(--ease);
}

.record-card:hover {
  border-color: rgba(232, 122, 61, 0.55);
  transform: translateY(-4px);
}

.rc-event {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.rc-time {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
}

.rc-meta {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.rc-meta strong { color: var(--text); font-weight: 500; }

/* Coach · événements en grille 2 colonnes (année en display) */

.event-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.5vw, 54px) clamp(30px, 5vw, 72px);
}

.event-list li {
  border-top: 2px solid var(--accent);
  padding-top: 18px;
}

.event-list .t-year {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.event-list .t-title {
  margin-top: 12px;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  font-weight: 600;
}

.event-list .t-detail {
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* AP : saison en bandeaux panoramiques · image NB, couleur au survol */

.section--seasons .seasons { margin-top: clamp(8px, 2vw, 20px); }

.season {
  position: relative;
  overflow: hidden;
  min-height: clamp(150px, 20vw, 220px);
  display: flex;
  align-items: center;
}

.season + .season { border-top: 1px solid var(--line); }

.season-bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-soft);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.8);
  transition: filter 0.6s ease, transform 0.9s var(--ease);
}

.season:hover .season-bg {
  filter: grayscale(0) brightness(0.9);
  transform: scale(1.03);
}

.season::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.8) 45%, rgba(15, 15, 15, 0.45) 100%);
}

.season-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(18px, 3vw, 48px);
  align-items: baseline;
  padding-top: 26px;
  padding-bottom: 26px;
}

.season .t-year {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.season .t-title {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 500;
}

.season .t-detail {
  margin-top: 6px;
  font-size: 0.92rem;
  color: rgba(255, 253, 250, 0.75);
}

.season--hiver .season-bg { background-image: url("/assets/season-hiver.webp"); }
.season--printemps .season-bg { background-image: url("/assets/season-printemps.webp"); }
.season--ete .season-bg { background-image: url("/assets/season-ete.webp"); }
.season--automne .season-bg { background-image: url("/assets/season-automne.webp"); }

/* Logo AP dans le hero de la page AP, calé sur le bord droit du contenu */

.hero-ap-logo {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 0;
  z-index: 2;
  display: block;
  width: clamp(88px, 10vw, 130px);
  height: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.35s forwards;
}

/* AP : intro sous le hero · grand logo à gauche, texte à droite */

body.ap { --ap: #B31525; --ap-deep: #6B1516; --ap-text: #ef5a63; }

.ap-intro-grid {
  display: grid;
  grid-template-columns: minmax(340px, 52%) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
}

.ap-intro-photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 340px;
}

.ap-intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.ap-intro-photo img.base {
  filter: grayscale(1) brightness(0.85);
}

.ap-intro-photo img.subject {
  position: absolute;
  inset: 0;
}

.ap-stats {
  margin-top: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}

.ap-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--ap-text, #ef5a63);
}

.ap-stat-num span { color: var(--text); }

.ap-stat-label {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Portrait Olivier (accueil, Qui je suis) */

.portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  align-self: start;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.8s var(--ease);
}

.portrait:hover img { transform: scale(1.03); }

/* Coach · Le parcours : texte à gauche, photo à droite calée sur la hauteur du texte */
.coach-parcours {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: stretch;
}
.coach-parcours .text-block {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}
.coach-parcours-photo {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  border-radius: 16px;
}
.coach-parcours-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 20%;
}
.coach-parcours .section-title { margin-bottom: clamp(22px, 3vw, 34px); }
.coach-parcours .text-block { max-width: 580px; }

/* Coach · Ma vision : phrase manifeste en grand, texte en deux colonnes */
.coach-vision-quote {
  max-width: 900px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-left: clamp(18px, 2.5vw, 30px);
  border-left: 2px solid var(--accent);
}
.coach-vision-quote em { font-style: normal; color: var(--accent); }
.coach-vision-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(28px, 3.5vw, 40px);
}
.coach-vision-cols p { line-height: 1.75; }
.coach-vision-cols p + p { margin-top: 0; }

.portrait figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 22px 18px;
  background: linear-gradient(to top, rgba(15, 15, 15, 0.92), transparent);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 2;
  color: rgba(255, 253, 250, 0.85);
}

/* Section avec photo en fond (Rejoindre AP) */

.section--photo { position: relative; overflow: hidden; }

.section--photo .section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section--photo .section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.section--photo .section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(15, 15, 15, 0.95) 0%, rgba(15, 15, 15, 0.85) 52%, rgba(15, 15, 15, 0.5) 100%);
}

.section--photo .container { position: relative; z-index: 1; }

/* Page AP : rouges Athlete Project (#B31525 accent / #6B1516 profond).
   Texte rouge sur fond sombre ou photo : --ap-text (#ef5a63), 5,8:1 sur fond uni (WCAG AA avec marge). */

body.ap .hero-title .accent,
body.ap .stat-num em,
body.ap .record-table td.time,
body.ap .timeline-list .t-year,
body.ap .season .t-year,
body.ap .steps-note strong,
body.ap .text-block .more-link,
body.ap .next-link:hover .nl-title { color: var(--ap-text); }

body.ap .text-block .more-link:hover { border-color: var(--ap); }

body.ap .sticky-note { border-left-color: var(--ap); }

body.ap .section--photo { padding: clamp(100px, 14vw, 170px) 0; }

body.ap .event-list li { border-top-color: var(--ap); }

body.ap .record-card:hover { border-color: rgba(179, 21, 37, 0.55); }

body.ap .header-cta:hover {
  background: var(--ap);
  border-color: var(--ap);
}

/* Records AP : logo Athlete Project en filigrane, calé sur le bord droit du contenu */

.section--records {
  position: relative;
  overflow: hidden;
}

.records-bg {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: clamp(20px, 4vw, 48px);
  width: clamp(280px, 32vw, 500px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background-image: url("/assets/logo-ap.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
}

.section--records .container { position: relative; z-index: 1; }

/* CTA final page intérieure */

.next-link {
  display: block;
  padding: clamp(50px, 7vw, 90px) 0;
  text-align: center;
}

.next-link .nl-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.next-link .nl-title {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 0.95;
  transition: color 0.4s ease, transform 0.5s var(--ease);
}

.next-link:hover .nl-title { color: var(--accent); transform: translateY(-4px); }

/* ---------- Reveal on scroll ---------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}

html.js [data-reveal].in { opacity: 1; transform: translateY(0); }

html.js [data-reveal="1"].in { transition-delay: 0.08s; }
html.js [data-reveal="2"].in { transition-delay: 0.16s; }
html.js [data-reveal="3"].in { transition-delay: 0.24s; }
html.js [data-reveal="4"].in { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; }
  .step { border-top: 1px solid var(--line); }
  .step:nth-child(-n + 2) { border-top: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .record-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: block; }
  .split, .contact-grid, .pricing { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .ap-intro-grid { grid-template-columns: 1fr; }
  .hero-ap-logo { display: none; }
  .coach-parcours, .coach-vision-cols { grid-template-columns: 1fr; }
  .coach-parcours .text-block, .coach-parcours-photo { grid-column: auto; grid-row: auto; }
  .coach-parcours-photo { aspect-ratio: 4 / 3; }
  .coach-parcours-photo img { object-position: center 35%; }
  .ap-intro-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .ap-intro-photo img { height: 100%; }
  .ap-stats { grid-template-columns: 1fr 1fr; }
  .event-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .contact-form { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .record-grid { grid-template-columns: 1fr; }
  .season-inner { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Accessibilité mouvement ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js [data-reveal], [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Texte lu par les lecteurs d'écran et les moteurs, invisible à l'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Accessibilité ---------- */

/* Lien d'évitement : invisible jusqu'au premier Tab */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 100px;
  background: var(--accent);
  color: #0f0f0f;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

main:focus { outline: none; }

/* Focus clavier toujours visible, contrasté sur fond sombre et sur photo */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.header-cta:focus-visible,
.video-toggle:focus-visible { border-radius: 100px; }
body.ap :focus-visible { outline-color: var(--text); }

/* Bouton pause de la vidéo (page AP) */
.video-toggle {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  top: 96px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  border: 1px solid rgba(255, 253, 250, 0.35);
  background: rgba(15, 15, 15, 0.55);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.video-toggle:hover { background: rgba(15, 15, 15, 0.8); }
.video-toggle .icon-play,
.avis-toggle .icon-play { display: none; }
.video-toggle.is-paused .icon-play,
.avis-toggle.is-paused .icon-play { display: block; }
.video-toggle.is-paused .icon-pause,
.avis-toggle.is-paused .icon-pause { display: none; }

/* ---------- Avis (défilement en boucle) ---------- */

.avis .section-head { margin-bottom: clamp(30px, 4vw, 48px); }

.avis-score {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Bouton pause/reprise du défilement (WCAG 2.2.2) */
.avis-toggle {
  margin-left: auto;
  align-self: center;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 253, 250, 0.35);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.avis-toggle:hover { border-color: var(--accent); color: var(--accent); }
.avis-toggle:focus-visible { border-radius: 100px; }

.avis-viewport {
  position: relative;
  overflow: hidden;
}

/* Voiles de bord qui fondent les cartes entrantes et sortantes */
.avis-viewport::before,
.avis-viewport::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: clamp(24px, 8vw, 120px);
  background: linear-gradient(to right, var(--bg) 0%, rgba(15, 15, 15, 0) 100%);
  pointer-events: none;
}
.avis-viewport::after {
  inset: 0 0 0 auto;
  background: linear-gradient(to left, var(--bg) 0%, rgba(15, 15, 15, 0) 100%);
}

.avis-track {
  display: flex;
  width: max-content;
  animation: avisDefile 80s linear infinite;
}

@keyframes avisDefile {
  to { transform: translateX(-50%); }
}

/* Pause au survol et quand le bouton bascule en .is-paused */
.avis-viewport:hover .avis-track,
.avis-track.is-paused { animation-play-state: paused; }

.avis-list {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  /* Le padding droit reproduit l'espacement entre les deux copies de la boucle */
  padding-right: clamp(14px, 1.6vw, 22px);
  list-style: none;
}

.avis-card {
  flex: none;
  width: min(380px, 78vw);
  padding: clamp(20px, 2.4vw, 30px);
}

.avis-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}
.avis-stars .on { color: var(--accent); }
.avis-stars .off { color: rgba(255, 253, 250, 0.18); }

.avis-quote p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}

.avis-author {
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.avis-meta {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Mouvement réduit : pas de boucle, défilement manuel au doigt ou au clavier */
@media (prefers-reduced-motion: reduce) {
  .avis-toggle { display: none; }
  .avis-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .avis-card { scroll-snap-align: start; }
}

/* Mode contraste forcé : garder le contour du bouton visible */
@media (forced-colors: active) {
  .avis-toggle { border: 1px solid ButtonText; }
  .avis-stars .off { color: GrayText; }
}

/* Mode contraste forcé (Windows) : garder les contours visibles */
@media (forced-colors: active) {
  .btn, .header-cta, .video-toggle { border: 1px solid ButtonText; }
  .burger span { background: ButtonText; }
}

/* Contraste des textes posés sur photo (WCAG 1.4.3) */

/* Header non scrollé : voile en haut de page, sous la nav */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -30px 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(15, 15, 15, 0.94) 0%, rgba(15, 15, 15, 0.8) 60%, rgba(15, 15, 15, 0) 100%);
  pointer-events: none;
  transition: opacity var(--speed) ease;
}
.site-header.scrolled::before { opacity: 0; }

/* Titre hero : halo sombre sous les lettres, invisible sur fond noir */
.hero-title { text-shadow: 0 2px 24px rgba(15, 15, 15, 0.7), 0 0 2px rgba(15, 15, 15, 0.6); }

@media (max-width: 860px) {
  .season::after { background: rgba(15, 15, 15, 0.84); }
  .section--photo .section-bg::after { background: rgba(15, 15, 15, 0.86); }
}

/* Liens de nav posés sur photo (header transparent) : gris un peu plus clair, 4,5:1 minimum */
.site-header:not(.scrolled) .main-nav a.nav-link:not(.active):not(:hover) { color: #a3a3a3; }
