/* APEX : identité et mise en page du build. Ne restyle ni .sc-stage, ni .sc-copy,
   ni aucun sélecteur [data-sc-*] : c'est le mécanisme du moteur. */

@font-face {
  font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo"; src: url("assets/fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist"; src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --sc-canvas: #F0F0EC;
  --sc-surface: #E1E2DE;
  --sc-ink: #0F1114;
  --sc-ink-soft: #50565E;
  --sc-accent: #D21C12;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Archivo", system-ui, sans-serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-font-mono: "Geist", system-ui, sans-serif;

  --encre: #0F1114;
  --craie: #F0F0EC;
  --rouge: #D21C12;
  --rouge-vif: #FF4632;
  --nuit: #070B14;
  --barre-h: 56px;
  --marge: clamp(1rem, 4vw, 3.5rem);
}

.t-sombre {
  --sc-canvas: #0E1013; --sc-surface: #181B20; --sc-ink: #EEEFEA; --sc-ink-soft: #9AA0A8;
  --sc-accent: #FF4632; --sc-accent-ink: #0E1013;
}
.t-encre {
  --sc-canvas: #0F1114; --sc-surface: #181B20; --sc-ink: #F0F0EC; --sc-ink-soft: #A3A9B0;
  --sc-accent: #FF4632; --sc-accent-ink: #0F1114;
}
.t-nuit {
  --sc-canvas: #070B14; --sc-surface: #0E1424; --sc-ink: #C9CED6; --sc-ink-soft: #8A93A3;
  --sc-accent: #FF4632; --sc-accent-ink: #070B14;
}
.t-rouge {
  --sc-canvas: #D21C12; --sc-surface: #B5170E; --sc-ink: #FFFFFF; --sc-ink-soft: #FFE1DC;
  --sc-accent: #0F1114; --sc-accent-ink: #FFFFFF;
}
.t-surface { --sc-canvas: #E1E2DE; --sc-surface: #F0F0EC; }

html { scroll-padding-top: var(--barre-h); }
body { background: var(--craie); color: var(--encre); font-family: var(--sc-font-text); }
img { max-width: 100%; height: auto; display: block; }

.evitement {
  position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem;
  background: var(--rouge); color: #fff;
}
.evitement:focus { top: .5rem; }

/* ---------- Coupes : fonds peints, bords francs ---------- */
.coupe {
  position: relative; overflow: clip;
  background: var(--sc-canvas); color: var(--sc-ink);
  padding: clamp(4.5rem, 9vh, 6.5rem) var(--marge) clamp(2.5rem, 6vh, 4rem);
}
.coupe a { color: inherit; }
.surtitre {
  font-family: var(--sc-font-text); font-size: .875rem; font-weight: 500;
  letter-spacing: .02em; color: var(--sc-ink-soft); margin: 0;
}
.titre-section {
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .92; letter-spacing: -.035em; margin: .2em 0 0;
}
.bouton {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.4rem;
  border: 2px solid currentColor; background: none; color: inherit;
  font: 600 1rem/1 var(--sc-font-text); text-decoration: none; cursor: pointer;
  transition: background-color var(--sc-d-fast), color var(--sc-d-fast);
}
.bouton:hover { background: var(--sc-ink); color: var(--sc-canvas); }
.bouton--plein { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
.bouton--plein:hover { background: var(--sc-ink); border-color: var(--sc-ink); color: var(--sc-canvas); }
.chiffre { display: flex; align-items: baseline; gap: .8rem; margin: 1.6rem 0 0; color: var(--sc-ink-soft); font-weight: 500; }
.chiffre__n {
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(3.2rem, 8vw, 7rem); line-height: .85; letter-spacing: -.04em; color: var(--sc-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- Barre forte ---------- */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--barre-h);
  display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem);
  padding-inline: var(--marge); background: var(--encre); color: var(--craie);
  font-size: .9375rem;
}
.barre a { color: inherit; text-decoration: none; }
.barre__logo {
  font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: 1.5rem; letter-spacing: -.02em;
}
.barre__nav { display: flex; gap: 1.4rem; }
.barre__nav a { opacity: .8; }
.barre__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.pouls { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.pouls__trace { width: 120px; height: 28px; }
.pouls__bpm { font-variant-numeric: tabular-nums; color: #A3A9B0; min-width: 4.6em; }
.pouls__bpm b { color: var(--craie); font-weight: 600; }
.panier { margin: 0; white-space: nowrap; }
.panier__n {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: .3em;
  background: var(--craie); color: var(--encre); font-variant-numeric: tabular-nums;
}
.panier__n.bat { animation: bat .32s var(--sc-ease-out); }
@keyframes bat { 40% { transform: scale(1.35); background: var(--rouge-vif); color: var(--encre); } }
.barre__cta {
  align-self: stretch; display: flex; align-items: center; gap: .28em; margin-right: calc(-1 * var(--marge));
  padding-inline: clamp(1rem, 2.4vw, 2rem); background: var(--rouge); color: #fff !important;
  font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%; font-size: 1.05rem;
}
.barre__cta:hover { background: var(--rouge-vif); color: var(--encre) !important; }
[data-sc-progress] { top: var(--barre-h); background: var(--rouge-vif); }

.statut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- Le pic : la barre devient la piste ---------- */
.pic {
  position: fixed; inset: 0; z-index: 65; pointer-events: none;
  background: var(--nuit); visibility: hidden;
  clip-path: inset(0 0 calc(100% - var(--barre-h)) 0);
}
.pic.actif { visibility: visible; }
.pic__trace { position: absolute; inset: 0; width: 100%; height: 100%; }
.pic__titre {
  position: absolute; left: var(--marge); right: var(--marge); top: calc(var(--barre-h) + 7vh);
  color: #C9CED6; clip-path: inset(0 100% 0 0);
}
.pic__surtitre { margin: 0 0 .6rem; font-size: 1rem; color: #8A93A3; }
.pic__nom {
  margin: 0; font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.6rem, 9vw, 9rem); line-height: .9; letter-spacing: -.04em;
}

/* ---------- 1 · Hero ---------- */
.hero {
  min-height: 100svh; padding-top: calc(var(--barre-h) + clamp(1.5rem, 5vh, 3.5rem));
  display: grid; grid-template-rows: auto 1fr auto;
}
.hero__titre {
  position: relative; z-index: 1; margin: 0;
  font-family: var(--sc-font-display); font-weight: 900; font-stretch: 100%;
  font-size: clamp(3.4rem, 12.4vw, 15rem); line-height: .84; letter-spacing: -.05em;
  color: var(--rouge);
}
.hero__athlete {
  position: absolute; z-index: 2; inset: var(--barre-h) 0 0 0; width: 100%; height: calc(100% - var(--barre-h));
  max-width: none; object-fit: cover; object-position: 62% 50%;
  mix-blend-mode: darken; pointer-events: none;
}
.hero__pied { position: relative; z-index: 3; grid-row: 3; max-width: 34rem; }
.hero__texte { margin: .8rem 0 1.4rem; font-size: 1.0625rem; line-height: 1.55; }

/* ---------- 2 · Technologies ---------- */
.tech { min-height: 90svh; display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.tech__img { margin: 0; }
.tech__img img { width: 100%; height: 100%; object-fit: cover; }
.tech__texte { max-width: 34rem; }
.tech__texte > p { line-height: 1.6; margin: .9rem 0 0; }
.tech__chapeau { font-size: 1.125rem; color: var(--sc-ink-soft); }
.tech__nom {
  margin: 1.6rem 0 0; font-family: var(--sc-font-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: .95; letter-spacing: -.03em;
}
.tech--a { grid-template-columns: 1.5fr 1fr; padding-left: 0; }
.tech--a .tech__img { align-self: stretch; margin-block: calc(-1 * clamp(4.5rem, 9vh, 6.5rem)) calc(-1 * clamp(2.5rem, 6vh, 4rem)); }
.tech--b { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-items: end; }
.tech--b .tech__img { grid-column: 1 / -1; aspect-ratio: 21 / 8; overflow: hidden; }
.tech--b .tech__texte { grid-column: 2; }
.tech--c { grid-template-columns: 1fr 1fr; align-items: end; }
.tech__geant {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.6rem, 10.2vw, 12rem); line-height: .82; letter-spacing: -.05em;
}
.tech--c .tech__img { aspect-ratio: 4 / 3; overflow: hidden; }

/* ---------- 3 · Trail X1 ---------- */
.phare { min-height: 100svh; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.phare__img { margin: 0; }
.phare__nom {
  margin: .4rem 0 0; font-family: var(--sc-font-display); font-weight: 900; font-stretch: 118%;
  font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .9; letter-spacing: -.04em;
}
.phare__prix { margin: .6rem 0 0; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.8rem; color: var(--rouge); }
.phare__fiche > p { line-height: 1.6; }
.phare__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; margin: 1.4rem 0; }
.phare__specs div { border-top: 2px solid var(--encre); padding-top: .6rem; }
.phare__specs dt { font-weight: 700; }
.phare__specs dd { margin: .2rem 0 0; color: var(--sc-ink-soft); font-size: .9375rem; line-height: 1.45; }
.pointure { border: 0; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.pointure legend { font-weight: 600; margin-bottom: .5rem; }
.pointure label { position: relative; }
.pointure input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pointure span {
  display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--encre);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.pointure input:checked + span { background: var(--encre); color: var(--craie); }
.pointure input:focus-visible + span { outline: 3px solid var(--rouge); outline-offset: 2px; }
.phare__msg { min-height: 1.5em; margin: .8rem 0 0; font-weight: 600; }

/* ---------- 4 · Sports ---------- */
.sport__mot {
  margin: 0; font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(3.6rem, 15vw, 17rem); line-height: .8; letter-spacing: -.05em;
}
.sport__compte { margin: 1rem 0 0; font-weight: 500; color: var(--sc-ink-soft); }
.sport__compte a { color: var(--sc-ink); text-underline-offset: 5px; }
.sport--running { padding: 0; }
.sport--running video, .sport--running .sc-stage__poster { object-position: 50% 40%; }
.sport__copie { position: absolute; z-index: 20; left: var(--marge); right: var(--marge); bottom: clamp(2rem, 8vh, 5rem); }
/* lisibilité sur la vidéo : un pied d'encre sous le texte seul, pas un voile plein cadre */
.sport__pied {
  position: absolute; z-index: 19; inset: auto 0 0 0; height: 48%; pointer-events: none;
  background: linear-gradient(to top, rgb(15 17 20 / .9) 30%, rgb(15 17 20 / 0));
}
.sport__copie .surtitre, .sport--running .sport__compte { color: var(--sc-ink); }
.sport--training { min-height: 85svh; display: grid; grid-template-columns: 1fr minmax(16rem, 30vw); grid-template-rows: 1fr auto; column-gap: 2rem; align-items: end; }
.sport--training .sport__img { grid-row: 1 / 3; grid-column: 2; margin: 0; }
.sport--football { min-height: 85svh; display: flex; flex-direction: column; justify-content: flex-end; }
.sport--football .sport__img { position: absolute; inset: 0; margin: 0; }
.sport--football .sport__img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .5; }
.sport--football::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, var(--sc-canvas), transparent); pointer-events: none; }
.sport--football .sport__mot, .sport--football .sport__compte { position: relative; z-index: 1; }
.sport--yoga { min-height: 85svh; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; align-content: center; column-gap: 2rem; }
.sport--yoga .sport__img { grid-row: 1 / 3; margin: 0; }
.sport--yoga .sport__mot { align-self: end; }

/* ---------- 5 · Essentiels ---------- */
.essentiels__tete { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.produit { display: flex; flex-direction: column; background: var(--sc-surface); padding: .7rem .7rem 1rem; }
.produit img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.produit h3 { margin: .9rem 0 0; font-family: var(--sc-font-display); font-weight: 800; font-stretch: 108%; font-size: 1.25rem; letter-spacing: -.02em; }
.produit p { margin: .2rem 0 0; }
.produit__cat { color: var(--sc-ink-soft); font-size: .9375rem; }
.produit__note { color: var(--rouge); letter-spacing: .08em; font-size: .875rem; }
.produit__note span { color: var(--sc-ink-soft); letter-spacing: 0; }
.produit__prix { font-weight: 700; font-size: 1.125rem; }
.produit__ajout {
  margin-top: auto; align-self: flex-start; min-height: 44px; padding: 0 1rem; margin-block-start: .9rem;
  border: 0; background: var(--encre); color: var(--craie); font: 600 .9375rem/1 var(--sc-font-text); cursor: pointer;
}
.produit__ajout:hover { background: var(--rouge); }
.produit--grand { grid-row: span 2; }
.produit--grand img { aspect-ratio: auto; flex: 1; min-height: 0; }
.produit--grand h3 { font-size: 1.75rem; }
.produit--large { grid-column: 1 / -1; flex-direction: row; gap: 1.2rem; align-items: center; }
.produit--large img { width: 34%; aspect-ratio: 16 / 9; }

/* ---------- 6 · Athlètes ---------- */
.athletes__liste { list-style: none; margin: clamp(1.5rem, 4vh, 2.5rem) 0 0; padding: 0; display: flex; gap: clamp(.6rem, 1.4vw, 1.2rem); }
.athletes__liste li { flex: 1; }
.athletes__liste li:nth-child(even) { margin-top: clamp(1.5rem, 6vh, 4rem); }
.athletes__liste img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.athletes__liste p { margin: .6rem 0 0; color: var(--sc-ink-soft); }
.athletes__liste b { display: block; color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 800; font-size: 1.25rem; }
.communaute { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem clamp(1.2rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 8vh, 5rem); }
.communaute p { margin: 0; color: var(--sc-ink-soft); font-weight: 500; }
.communaute span {
  display: block; color: var(--sc-ink); font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -.04em;
}
.communaute__grand span { font-size: clamp(4.6rem, 16vw, 15rem); color: var(--rouge); }
.lien-fort { font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- 7 · Noir ---------- */
.noir { min-height: 62svh; display: grid; align-content: center; }
.noir__ligne {
  margin: 0; max-width: 18ch; font-family: var(--sc-font-display); font-weight: 700; font-stretch: 100%;
  font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em;
}

/* ---------- 8 · Drop ---------- */
.drop { min-height: 100svh; padding: 0; display: grid; align-content: end; }
.drop__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 55% 50%; }
.drop__titre { position: relative; padding: 0 var(--marge) clamp(2.5rem, 10vh, 6rem); }
.drop__nom {
  margin: .4rem 0 0; font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(2.6rem, 9vw, 9rem); line-height: .9; letter-spacing: -.04em;
}
.drop-detail { min-height: 80svh; display: grid; align-content: center; }
.drop-detail__texte { max-width: 52rem; }
.drop-detail__chapeau { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.4; color: var(--sc-ink); }
.rebours { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2rem; margin: 2.4rem 0 0; }
.rebours p { margin: 0; color: var(--sc-ink-soft); }
.rebours span {
  display: block; font-family: var(--sc-font-display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: .9; color: var(--sc-ink); font-variant-numeric: tabular-nums;
}
.stock { margin-top: 2.4rem; max-width: 32rem; }
.stock p { margin: 0 0 .6rem; }
.stock b { color: var(--rouge-vif); }
.stock__barre { height: 6px; background: var(--sc-surface); }
.stock__barre span { display: block; width: 73%; height: 100%; background: var(--rouge-vif); }

/* ---------- 9 · Fin abrupte ---------- */
.fin { padding: 0; }
.fin__cta {
  display: block; width: 100%; min-height: 62svh; padding: 0 var(--marge); border: 0; cursor: pointer;
  background: var(--rouge); color: #fff; text-align: left;
  font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(3rem, 11vw, 12rem); line-height: .86; letter-spacing: -.05em;
}
.fin__cta:hover { background: var(--encre); }
.fin__cta:focus-visible { outline: 4px solid var(--craie); outline-offset: -12px; }

.pied { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.6fr; gap: 2rem clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 8vh, 5rem) 2rem; font-size: .9375rem; }
.pied p { margin: 0 0 .6rem; line-height: 1.55; color: var(--sc-ink-soft); }
.pied__logo { font-family: var(--sc-font-display); font-weight: 900; font-stretch: 125%; font-size: 2.4rem; color: var(--sc-ink) !important; }
.pied__titre { margin: 0 0 .8rem; font-family: var(--sc-font-display); font-weight: 800; font-size: 1.125rem; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; color: var(--sc-ink-soft); }
.pied a { color: var(--sc-ink-soft); text-decoration: none; }
.pied a:hover { color: var(--sc-ink); text-decoration: underline; }
.lettre__champ { display: grid; gap: .4rem; margin: .8rem 0; }
.lettre__champ input {
  min-height: 48px; padding: 0 .9rem; border: 2px solid var(--sc-ink-soft); background: transparent;
  color: var(--sc-ink); font: inherit;
}
.lettre__champ input:focus-visible { outline: 3px solid var(--rouge-vif); border-color: var(--sc-ink); }
.lettre__note { margin-top: .8rem !important; }
.pied__legal { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--sc-hairline-strong); }
.pied__legal b { color: var(--sc-ink); }

/* ---------- Mobile ---------- */
.large { display: inline; }
@media (max-width: 960px) {
  .barre__nav { display: none; }
  .pied { grid-template-columns: 1fr 1fr; }
  .pied__marque, .lettre { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --barre-h: 52px; }
  .large, .pouls__trace { display: none; }
  .barre { gap: .8rem; font-size: .875rem; }
  .pouls__bpm { min-width: 0; }
  .hero__athlete {
    position: relative; inset: auto; grid-row: 2; align-self: center;
    width: calc(100% + 2 * var(--marge)); height: auto; aspect-ratio: 1; margin: -3.5rem calc(-1 * var(--marge)) 0;
    object-position: 64% 50%;
  }
  .hero__pied { max-width: 24rem; }
  .tech, .tech--a, .tech--b, .tech--c, .phare, .sport--training, .sport--yoga { grid-template-columns: 1fr; }
  .tech--a { padding-left: var(--marge); }
  .tech--a .tech__img { margin: calc(-1 * clamp(4.5rem, 9vh, 6.5rem)) calc(-1 * var(--marge)) 0; aspect-ratio: 4 / 3; overflow: hidden; }
  .tech--b .tech__img { aspect-ratio: 16 / 10; }
  .tech--b .tech__texte { grid-column: 1; }
  .phare__specs { grid-template-columns: 1fr; }
  .sport--training .sport__img { grid-row: auto; grid-column: 1; margin-top: 1rem; max-width: 70%; justify-self: end; }
  .sport--yoga .sport__img { grid-row: auto; margin-bottom: 1rem; }
  .grille { grid-template-columns: 1fr 1fr; }
  .produit--grand { grid-row: auto; grid-column: 1 / -1; }
  .produit--grand img { aspect-ratio: 4 / 3; flex: none; }
  .produit--large { flex-direction: column; align-items: stretch; }
  .produit--large img { width: 100%; }
  .produit h3 { font-size: 1.0625rem; }
  .athletes__liste { display: grid; grid-template-columns: 1fr 1fr; }
  .athletes__liste li:nth-child(even) { margin-top: 1.5rem; }
  .fin__cta { min-height: 48svh; }
}

@media (prefers-reduced-motion: reduce) {
  .panier__n.bat { animation: none; }
  .pic { display: none; }
}
