/* ============================================
   sport lab. — endurance coaching
   Feuille de style principale
   ============================================ */

:root {
  --ink: #0A0A0A;
  --paper: #FFFFFF;
  --soft: #F4F4F4;
  --line: #E2E2E2;
  --muted: #6E6E6E;

  --max: 1180px;
  --gutter: 28px;

  --step: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.shot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.shot--sq { aspect-ratio: 1 / 1; }
.shot--top { object-position: center 18%; }

.cutout {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  display: block;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: 760px; }

/* ---------- Marque ---------- */

.mark {
  display: inline-block;
  line-height: 1;
  text-decoration: none;
  position: relative;
}

.mark__name {
  display: block;
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.mark__sub {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  line-height: 1;
  margin-top: 0.45em;
  margin-left: 0.12em;
}

.mark--nav .mark__name { font-size: 27px; }
.mark--nav .mark__sub  { font-size: 7.5px; }

.mark--hero .mark__name { font-size: clamp(58px, 12vw, 132px); }
.mark--hero .mark__sub  { font-size: clamp(9px, 1.5vw, 15px); margin-left: 0.35em; }

.mark--foot .mark__name { font-size: 32px; }
.mark--foot .mark__sub  { font-size: 8.5px; }

/* ---------- En-tête ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

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

.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav__cta {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
  color: var(--paper) !important;
  background: var(--ink);
  padding: 11px 18px !important;
  border-bottom: 0 !important;
  transition: opacity .18s ease;
}

.nav__cta:hover { opacity: 0.78; }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px -6px -10px 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .25s ease, opacity .2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Typographie ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 22px;
}

h1, h2, h3 { font-weight: 300; letter-spacing: -0.035em; margin: 0; }

.h-xl {
  font-size: clamp(38px, 6.2vw, 74px);
  line-height: 1.02;
}

.h-lg {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
}

.h-md {
  font-size: clamp(23px, 2.9vw, 32px);
  line-height: 1.18;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

/* ---------- Sections ---------- */

.sec { padding: var(--step) 0; }
.sec--soft { background: var(--soft); }
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink .eyebrow { color: rgba(255,255,255,0.55); }
.sec--ink .lead { color: rgba(255,255,255,0.72); }
.sec--tight { padding: calc(var(--step) * 0.62) 0; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 16px 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background .2s ease, color .2s ease;
}

.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--onink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--onink:hover { background: transparent; color: var(--paper); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.arrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity .18s ease;
}

.arrow:hover { opacity: 0.6; }

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

.hero {
  position: relative;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center 32% / cover no-repeat;
  opacity: 0.55;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.30) 0%, rgba(10,10,10,0.52) 40%, rgba(10,10,10,0.78) 72%, rgba(10,10,10,0.94) 100%);
}

.hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 130px;
  padding-bottom: 56px;
  color: var(--paper);
}

.hero__tag {
  font-size: clamp(19px, 2.5vw, 27px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 30px 0 10px;
  max-width: 20ch;
}

.hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin: 0 0 32px;
  max-width: 46ch;
}

/* ---------- En-tête de page ---------- */

.phead { padding: calc(var(--step) * 0.72) 0 calc(var(--step) * 0.5); }
.phead .lead { margin-top: 20px; max-width: 60ch; }

/* ---------- Grilles ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.split--wide { grid-template-columns: 0.85fr 1.15fr; }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ---------- Étapes ---------- */

.steps { display: grid; gap: 0; margin-top: 12px; }

.step {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.sec--ink .step { border-color: rgba(255,255,255,0.16); }

.step__no {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.step__t {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}

.step__d { margin: 0; color: var(--muted); }
.sec--ink .step__d { color: rgba(255,255,255,0.7); }

/* ---------- Piliers ---------- */

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

.pillar {
  padding: 34px 32px 34px 0;
  border-right: 1px solid var(--line);
}

.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 32px; }

.pillar__k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}

.pillar__v { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

.pillars--stack { grid-template-columns: 1fr; }

.pillars--stack .pillar {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  align-items: baseline;
}

.pillars--stack .pillar:not(:first-child) { padding-left: 0; }
.pillars--stack .pillar:last-child { border-bottom: 0; }
.pillars--stack .pillar__k { margin: 0; }

@media (max-width: 620px) {
  .pillars--stack .pillar { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Offre ---------- */

.offer {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(30px, 4.6vw, 54px);
}

.sec--ink .offer { border-color: rgba(255,255,255,0.2); background: transparent; }

.offer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.sec--ink .offer__top { border-color: rgba(255,255,255,0.2); }

.price {
  font-size: clamp(40px, 5.6vw, 62px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
}

.price small {
  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

.incl { list-style: none; padding: 0; margin: 30px 0 0; }

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

.sec--ink .incl li { border-color: rgba(255,255,255,0.14); }

.incl li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 9px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.note {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.sec--ink .note { color: rgba(255,255,255,0.65); }

.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  border: 1px solid currentColor;
  padding: 6px 12px;
  opacity: 0.75;
}

/* ---------- Palmarès ---------- */

.palm { list-style: none; padding: 0; margin: 0; }

.palm li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.palm li:first-child { border-top: 1px solid var(--line); }

.palm b { font-weight: 700; }

.palm span {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

/* ---------- Bientôt / cartes ---------- */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.card {
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--paper);
}

.card h3 { margin: 14px 0 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- FAQ ---------- */

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

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 40px 24px 0;
  font-size: 17px;
  font-weight: 500;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .22s ease;
}

.faq details[open] summary::after { content: '−'; }

.faq p { padding: 0 40px 26px 0; margin: -4px 0 0; color: var(--muted); }

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

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 42px; }

.ccard {
  border: 1px solid var(--line);
  padding: 34px;
  text-decoration: none;
  display: block;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ccard:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ccard:hover .ccard__k { color: rgba(255,255,255,0.6); }

.ccard__k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0 0 12px;
  transition: color .2s ease;
}

.ccard__v {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  word-break: break-word;
}

/* ---------- Blog vide ---------- */

.empty {
  border: 1px solid var(--line);
  padding: clamp(46px, 7vw, 84px) 32px;
  text-align: center;
}

.empty p { color: var(--muted); margin: 0 auto; max-width: 44ch; }

/* ---------- Pied de page ---------- */

.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 66px 0 40px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.foot__k {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}

.foot__list { list-style: none; padding: 0; margin: 0; }
.foot__list li { margin-bottom: 10px; }

.foot__list a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  transition: color .18s ease;
}

.foot__list a:hover { color: var(--paper); }

.foot__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}

.foot__legal {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin: 0;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  font-size: 13px;
}

.skip:focus { left: 8px; top: 8px; }

/* ---------- Apparition ---------- */

.rise { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.rise.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

@media (max-width: 900px) {
  .split, .split--wide { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .pillar:not(:first-child) { padding-left: 0; }
  .pillar:last-child { border-bottom: 0; }
  .cards, .contacts { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }

  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }

  .nav.open { opacity: 1; transform: none; pointer-events: auto; }

  .nav a {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav a[aria-current="page"] { border-bottom-color: var(--line); }

  .nav__cta {
    text-align: center;
    margin-top: 16px;
    padding: 15px !important;
    font-size: 13px !important;
  }

  .step { grid-template-columns: 1fr; gap: 12px; }
  .step__no { font-size: 30px; }
  .duo { grid-template-columns: 1fr; }
  .palm li { grid-template-columns: 1fr; gap: 4px; }
  .palm span { text-align: left; }
  .hero__in { padding-top: 96px; padding-bottom: 44px; }
}
