/* Police servie par le site (OFL) : Work Sans, la même que l'accueil (fichier variable, graisses 400 à 700). */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/work-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/work-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Archivo (OFL) : la police des titres depuis le 14-11, un fichier variable (largeur 62 à 125, graisse 400 à 800). */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* motionathlete.org : toutes les valeurs viennent de site_commande/REFERENCE.md et DESIGN.md. */
:root {
  --fond: #1A1A1C; --creux: #0D0F1B; --encre: #FEFEFE; --encre-2: rgba(254, 254, 254, .62); --filet: rgba(254, 254, 254, .14);
  --accent: #E2C877; --accent-fort: #CDA65B; --choix: rgba(226, 200, 119, .10);
  --f-titre: "Archivo", "Work Sans", "Segoe UI", system-ui, sans-serif;   /* titres en Archivo depuis le 14-11, comme l'accueil */
  --f-texte: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --marge: 32px; --large: 1104px; --section: 64px;
}
@media (max-width: 719px) { :root { --marge: 16px; --section: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fond); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 16px/1.55 var(--f-texte); text-align: left; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--encre); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, figure, dl, dd, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.page { max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
.saut { position: absolute; left: var(--marge); top: -64px; padding: 8px 16px; background: var(--fond); }
.saut:focus { top: 8px; }

/* ---------- typographie (DESIGN §2) ---------- */
/* grands titres comme ceux de l'accueil : Archivo 600 un peu resserré (largeur 88 %), sans approche négative, sans capitales forcées */
.t1 { font-family: var(--f-titre); font-weight: 600; font-stretch: 88%; font-size: 64px; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.t2 { font-family: var(--f-titre); font-weight: 600; font-stretch: 88%; font-size: 48px; line-height: 1.12; letter-spacing: 0; text-wrap: balance; }
@media (max-width: 719px) { .t1, .t2 { font-size: 40px; line-height: 1.12; } }
.chiffre { font: 700 32px/1.1 var(--f-texte); font-variant-numeric: tabular-nums; }
.st { font: 600 20px/1.3 var(--f-texte); }
.accroche { font: 500 18px/1.72 var(--f-texte); max-width: 60ch; text-wrap: pretty; }
p { max-width: 65ch; text-wrap: pretty; }
.aide { font-size: 14px; line-height: 1.45; color: var(--encre-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- boutons (REFERENCE §3, DESIGN §4) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 28px; border: .67px solid var(--encre); background: transparent; color: var(--encre);
  font: 500 16px/1.2 var(--f-texte); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease; }
.btn:hover { background: var(--filet); }
.btn:active { transform: translateY(1px); }
.btn-1 { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.btn-1:hover { background: var(--choix); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.icones { display: flex; gap: 4px; }
.icones a { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--encre); }
.icones svg { width: 24px; height: 24px; }

/* ---------- bandeau ---------- */
.entete { border-bottom: 1px solid var(--filet); }
.entete-rang { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 32px; padding-bottom: 32px; }
.logo img { width: 64px; height: 64px; }
.menu ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.menu a, .menu-tel a { text-decoration: none; font: 400 16px/1.55 var(--f-texte); }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--filet); text-underline-offset: 8px; }
.menu a[aria-current="page"], .menu-tel a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; text-underline-offset: 8px; }
.menu-tel { display: none; }
.menu-tel summary { list-style: none; }
.menu-tel summary::-webkit-details-marker { display: none; }
@media (max-width: 899px) {
  .entete-rang { padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; gap: 0; }
  .logo img { width: 48px; height: 48px; }
  .menu { display: none; }
  .menu-tel { display: block; }
  .menu-tel[open] { flex-basis: 100%; order: 3; }
  .menu-tel[open] summary { position: absolute; right: var(--marge); top: 24px; }
  .entete-rang { position: relative; }
  .menu-tel nav { width: 100%; margin-top: 24px; }
  .menu-tel li { border-top: 1px solid var(--filet); }
  .menu-tel a { display: block; padding: 12px 0; }
}

/* ---------- sections ---------- */
.ouverture { padding: var(--section) 0 48px; display: grid; gap: 24px; }
.section { padding: var(--section) 0; border-top: 1px solid var(--filet); display: grid; gap: 32px; }
.section > header { display: grid; gap: 16px; }
.pile { display: grid; gap: 24px; }

/* image ou vidéo : angle droit, fond creux le temps du chargement */
figure { display: grid; gap: 8px; }
.cadre { width: 100%; background: var(--creux); }
.cadre-16-9 { aspect-ratio: 16 / 9; object-fit: cover; }
.cadre-carre { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--filet); }
.cadre-course { aspect-ratio: 1920 / 710; object-fit: cover; object-position: 55% 50%; }
@media (max-width: 719px) { .cadre-course { aspect-ratio: 16 / 9; } }
.cadre-large { aspect-ratio: 3 / 1; object-fit: cover; }
.cadre-atelier { aspect-ratio: 12 / 5; object-fit: cover; }

/* ---------- compteur d'abonnés (chiffre réel, YouTube l'arrondit) ---------- */
.compteur { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.compteur .chiffre { font-size: 48px; }
@media (max-width: 719px) { .compteur .chiffre { font-size: 40px; } }

/* ---------- séries : une vidéo par série, miniature à gauche ---------- */
.series { border-top: 1px solid var(--filet); }
.serie { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px 32px; align-items: start; padding: 24px 0;
  border-bottom: 1px solid var(--filet); }
.serie-texte { display: grid; gap: 8px; }
.serie .n { color: var(--encre-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.serie-image img { border: 1px solid var(--filet); }
@media (max-width: 719px) { .serie { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- qui les fait : portrait + feuille ---------- */
.qui { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.portrait img { aspect-ratio: 327 / 408; object-fit: cover; }
@media (max-width: 719px) { .qui { grid-template-columns: minmax(0, 1fr); gap: 24px; } .portrait { width: 160px; } }

/* ---------- liste en rangées (pas de cartes) ---------- */
.rangs { border-top: 1px solid var(--filet); }
.rangs > li { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr); gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--filet); }
@media (max-width: 719px) {
  .rangs > li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- document : tableau à filets fins (feuille de résultats) ---------- */
.doc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc caption { text-align: left; padding-bottom: 8px; caption-side: top; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--filet); vertical-align: baseline; }
.doc thead th { font: 500 14px/1.45 var(--f-texte); color: var(--encre-2); border-bottom-color: var(--encre-2); }
.doc tbody th { font-weight: 500; }
.doc .d { text-align: right; white-space: nowrap; }
.doc-creux { background: var(--creux); }
@media (max-width: 719px) { .doc th, .doc td { padding: 12px 8px; } }

/* ---------- étapes (comment je les fais) : tailles d'images variées ---------- */
.etapes { display: grid; gap: var(--section); }
.etape { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.etape-texte { display: grid; gap: 12px; }
.fin { margin-top: var(--section); }
.duo { display: flex; flex-wrap: wrap; gap: 16px; }
.duo figure { width: 240px; max-width: calc(50% - 8px); }
.etape-large { grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (max-width: 719px) { .etape { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ---------- simulateur de relais ---------- */
.champ { width: 100%; max-width: 160px; min-height: 48px; padding: 12px 16px; background: var(--creux); color: var(--encre);
  border: 1px solid var(--filet); border-radius: 0; font: 500 16px/1.2 var(--f-texte); font-variant-numeric: tabular-nums; }
.champ:focus { outline: none; border-color: var(--accent); }
.relais tfoot th, .relais tfoot td { border-bottom: 0; padding-top: 24px; }
.relais td.d { font-weight: 600; }
.relais tbody th { white-space: nowrap; }
@media (max-width: 719px) { .relais .champ { max-width: 128px; } }

/* ---------- mascotte : une par écran, 40 px (32 sur téléphone), hors de la grille ---------- */
.mascotte { width: 40px; height: 40px; display: inline-block; vertical-align: middle; margin-left: 8px; }
@media (max-width: 719px) { .mascotte { width: 32px; height: 32px; } }
.ligne-mascotte { display: flex; align-items: center; gap: 8px; }

/* ---------- pied de page ---------- */
.pied { border-top: 1px solid var(--filet); margin-top: var(--section); }
.pied-rang { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 32px; padding-bottom: 48px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied-liens a { font-size: 14px; color: var(--encre-2); }
.pied-liens a:hover { color: var(--encre); }

/* ---------- pages légales : texte courant, filets, rien de plus ---------- */
.legal { display: grid; gap: 48px; max-width: 760px; }
.legal section { display: grid; gap: 12px; }
.legal ul { list-style: disc; padding-left: 24px; display: grid; gap: 8px; max-width: 65ch; }
.legal li::marker { color: var(--encre-2); }
.legal .doc td { overflow-wrap: break-word; }
.a-remplir { color: var(--accent); font-weight: 600; }

/* page de commande : le bloc a ses propres marges */
.commande { padding-bottom: 0; }
.commande + * { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .btn { transition: none; } }
