/* Le site de présentation de Sillage (www.sillage.team).
 *
 * Les couleurs sont celles de l'application : du noir, du blanc et des gris chauds pour tout ce qui se lit ; la
 * couleur va aux coureurs (les huit couloirs, --couloir-N), à la pente sur un profil (l'échelle de Climbfinder,
 * --pente-*) et aux deux maillots d'une sortie à plusieurs. Les sections sombres (.sombre) redéfinissent les mêmes
 * jetons : une règle écrite pour le fond clair vaut pour elles.
 *
 * Une seule police à télécharger, pour les titres (Bricolage Grotesque, licence OFL, servie d'ici) ; le texte courant
 * est dans la police du système, comme dans l'application.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}

:root {
  --fond: #f4f4f1;
  --surface: #fcfcfb;
  --surface-2: #eeede8;
  --trait: #e1e0d9;
  --trait-fort: #c3c2b7;
  --encre: #0b0b0b;
  --gris: #52514e;
  --pale: #77756f;
  --bouton: #0f1114;
  --bouton-encre: #ffffff;
  --ombre: 0 1px 2px rgb(11 11 11 / 6%), 0 18px 48px -12px rgb(11 11 11 / 22%);
  --rayon: 14px;

  --couloir-1: #2a78d6; --couloir-1-encre: #ffffff;
  --couloir-2: #eb6834; --couloir-2-encre: #0b0b0b;
  --couloir-3: #1baf7a; --couloir-3-encre: #0b0b0b;
  --couloir-4: #eda100; --couloir-4-encre: #0b0b0b;
  --couloir-5: #e87ba4; --couloir-5-encre: #0b0b0b;
  --couloir-6: #008300; --couloir-6-encre: #ffffff;
  --couloir-7: #4a3aa7; --couloir-7-encre: #ffffff;
  --couloir-8: #e34948; --couloir-8-encre: #ffffff;

  /* La pente : un code, le même sur fond clair et sur fond sombre. */
  --pente-plat: #e2e1dc;
  --pente-up-1: #fed976; --pente-up-2: #feb24c; --pente-up-3: #fd8d3c; --pente-up-4: #fc4e2a; --pente-up-5: #e31a1c;
  --pente-up-6: #bd0026; --pente-up-7: #98001f; --pente-up-8: #4f0017; --pente-up-9: #24000a;
  --pente-down-1: #86b6ef; --pente-down-2: #5598e7; --pente-down-3: #256abf; --pente-down-4: #104281;
  --maillot-jaune: #ffd91a; --maillot-pois: #e0261c;

  --titre: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --marge: clamp(16px, 4.5vw, 64px);
  --largeur: 1240px;
  --entete: 64px;
  color-scheme: light;
}

.sombre {
  --fond: #0d0d0d;
  --surface: #171716;
  --surface-2: #222220;
  --trait: #2c2c2a;
  --trait-fort: #45443f;
  --encre: #f6f5f1;
  --gris: #c3c2b7;
  --pale: #9a9891;
  --bouton: #f1efea;
  --bouton-encre: #131311;
  --ombre: 0 1px 2px rgb(0 0 0 / 40%), 0 24px 60px -16px rgb(0 0 0 / 70%);
  color-scheme: dark;
  background: var(--fond);
  color: var(--encre);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 1.0625rem/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; font-stretch: 88%; text-wrap: balance; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--couloir-1); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }

.saut { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--bouton); color: var(--bouton-encre); border-radius: 8px; }
.saut:focus { left: 12px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cadre { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }
.section { padding-block: clamp(72px, 10vw, 136px); }
.section--serree { padding-block: clamp(56px, 7vw, 96px); }

.surtitre { display: inline-flex; align-items: center; gap: 10px; font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris); }
.surtitre::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.titre { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1; margin-top: 18px; }
.chapo { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--gris); margin-top: 20px; max-width: 38em; }
.chapo strong { color: var(--encre); font-weight: 600; }
.entree { max-width: 860px; }
.entree--centre { margin-inline: auto; text-align: center; }
.entree--centre .chapo { margin-inline: auto; }

/* ——— Boutons ——— */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--bouton); color: var(--bouton-encre); font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: 1.0625rem; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.bouton:hover { transform: translateY(-1px); }
.bouton--clair { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
.bouton--clair:hover { background: var(--surface-2); }
.bouton--petit { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.bouton svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }

/* ——— Pastilles de coureurs : la couleur et le numéro, jamais la couleur seule ——— */
.pastille { display: inline-grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: 50%; font-family: var(--titre); font-weight: 700; font-size: 0.875em; line-height: 1; box-shadow: 0 0 0 2px var(--fond); }
.p1 { background: var(--couloir-1); color: var(--couloir-1-encre); }
.p2 { background: var(--couloir-2); color: var(--couloir-2-encre); }
.p3 { background: var(--couloir-3); color: var(--couloir-3-encre); }
.p4 { background: var(--couloir-4); color: var(--couloir-4-encre); }
.p5 { background: var(--couloir-5); color: var(--couloir-5-encre); }
.p7 { background: var(--couloir-7); color: var(--couloir-7-encre); }
.p8 { background: var(--couloir-8); color: var(--couloir-8-encre); }

/* ——— En-tête ——— */
.entete { position: sticky; top: 0; z-index: 30; height: var(--entete); background: rgb(13 13 13 / 82%); color: #f6f5f1; -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgb(255 255 255 / 8%); }
.entete__cadre { height: 100%; display: flex; align-items: center; gap: 20px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titre); font-weight: 750; font-stretch: 90%; font-size: 1.3rem; letter-spacing: -0.02em; }
.marque svg { width: 30px; height: 30px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 0.9375rem; }
.menu a { text-decoration: none; color: rgb(246 245 241 / 78%); }
.menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.entete__actions { display: flex; align-items: center; gap: 14px; margin-left: clamp(8px, 2vw, 28px); }
.entete__connexion { font-size: 0.9375rem; text-decoration: none; color: rgb(246 245 241 / 78%); }
.entete__connexion:hover { color: #fff; }
.entete .bouton { background: #f1efea; color: #131311; }
.tiroir { display: none; position: relative; margin-left: 8px; }
.tiroir > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
.tiroir > summary::-webkit-details-marker { display: none; }
.tiroir > summary:hover { background: rgb(255 255 255 / 8%); }
.tiroir svg { width: 22px; height: 22px; }
.tiroir__fermer { display: none; }
.tiroir[open] .tiroir__ouvrir { display: none; }
.tiroir[open] .tiroir__fermer { display: block; }
.tiroir__panneau { position: fixed; left: 0; right: 0; top: var(--entete); padding: 12px var(--marge) 24px; background: #0d0d0d; border-bottom: 1px solid rgb(255 255 255 / 10%); box-shadow: 0 30px 60px rgb(0 0 0 / 50%); }
.tiroir__panneau a { display: block; padding: 13px 0; border-bottom: 1px solid rgb(255 255 255 / 8%); text-decoration: none; font-family: var(--titre); font-weight: 600; font-stretch: 92%; font-size: 1.25rem; }
.tiroir__panneau .actions { margin-top: 20px; }
.tiroir__panneau .bouton { background: #f1efea; color: #131311; border: 0; padding: 12px 22px; font-size: 1.0625rem; }
.tiroir__panneau .bouton--clair { background: transparent; color: #f6f5f1; border: 1px solid #45443f; }
.menu a, .entete__connexion, .entete .bouton { white-space: nowrap; }
@media (max-width: 1240px) { .menu { display: none; } .entete__actions { margin-left: auto; } }
@media (max-width: 1240px) { .tiroir { display: block; } }
@media (max-width: 640px) { .entete__actions { display: none; } .tiroir { margin-left: auto; } }

/* ——— La une ——— */
.une { position: relative; min-height: min(calc(100svh - var(--entete)), 940px); display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #0b0d14; color: #f6f5f1; }
.une__image { position: absolute; inset: 0; z-index: -2; }
.une__image img, .une__image video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 60%; }
@media (prefers-reduced-motion: reduce) { .une__image video { display: none; } }
.une::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgb(7 8 12 / 86%) 0%, rgb(7 8 12 / 62%) 30%, rgb(7 8 12 / 0%) 56%),
  linear-gradient(0deg, rgb(7 8 12 / 70%) 0%, rgb(7 8 12 / 0%) 30%); }
.une__texte { padding-block: clamp(96px, 16vh, 180px) clamp(40px, 7vh, 72px); max-width: 640px; }
.une__surtitre { color: rgb(246 245 241 / 80%); }
.une h1 { font-size: clamp(2.75rem, 7vw, 5.8rem); line-height: 0.93; font-weight: 750; font-stretch: 80%; letter-spacing: -0.025em; margin-top: 18px; }
.une__chapo { margin-top: 24px; font-size: clamp(1.0625rem, 1.55vw, 1.25rem); line-height: 1.5; color: rgb(246 245 241 / 86%); max-width: 32em; }
.une .bouton { background: #f1efea; color: #131311; }
.une .bouton--clair { background: rgb(13 13 13 / 30%); color: #f6f5f1; border-color: rgb(246 245 241 / 40%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.une .bouton--clair:hover { background: rgb(13 13 13 / 55%); }
.verdict { margin-top: 36px; font-size: 0.9375rem; line-height: 1.9; color: rgb(246 245 241 / 82%); max-width: 34em; }
.verdict .pastille { box-shadow: none; vertical-align: -0.38em; margin-right: 6px; }
.verdict__nom { font-weight: 600; color: #fff; }
.une__legende { position: absolute; right: var(--marge); bottom: 16px; font-size: 0.75rem; color: rgb(246 245 241 / 60%); text-align: right; max-width: 24em; }
/* Sur un téléphone, l'image en haut, les coureurs en vue, et le texte dessous : il ne les cache plus. */
@media (max-width: 760px) {
  .une { display: block; min-height: 0; }
  .une::before { display: none; }
  .une__image { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3.3; }
  .une__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0b0d14 0%, rgb(11 13 20 / 0%) 38%); }
  .une__image img, .une__image video { object-position: 68% 60%; }
  .une__texte { position: relative; margin-top: -56px; padding-block: 0 28px; }
  .une h1 { margin-top: 14px; }
  .une__legende { position: static; text-align: left; padding-inline: var(--marge); padding-bottom: 18px; max-width: none; }
}

/* Le profil de la côte, sous la une : les vraies altitudes, à la couleur de la pente. */
.cote { background: #0b0d14; color: #f6f5f1; padding-block: 8px 28px; border-bottom: 1px solid rgb(255 255 255 / 6%); }
.cote__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; font-size: 0.875rem; color: rgb(246 245 241 / 70%); margin-bottom: 10px; }
.cote__nom { font-family: var(--titre); font-weight: 650; font-stretch: 90%; font-size: 1rem; color: #f6f5f1; }
.profil { width: 100%; height: auto; }
.profil__trait { fill: none; stroke: #f6f5f1; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.profil__pente { font-family: var(--titre); font-weight: 650; font-size: 17px; text-anchor: middle; fill: #0b0b0b; }
.profil__pente--clair { fill: #ffffff; }
.echelle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; font-size: 0.75rem; color: rgb(246 245 241 / 62%); }
.echelle__cases { display: flex; gap: 2px; }
.echelle__cases span { width: 18px; height: 10px; border-radius: 2px; }
@media (max-width: 640px) { .profil__pente { display: none; } }

.g-flat { fill: var(--pente-plat); }
.g-up-1 { fill: var(--pente-up-1); } .g-up-2 { fill: var(--pente-up-2); } .g-up-3 { fill: var(--pente-up-3); }
.g-up-4 { fill: var(--pente-up-4); } .g-up-5 { fill: var(--pente-up-5); } .g-up-6 { fill: var(--pente-up-6); }
.g-up-7 { fill: var(--pente-up-7); } .g-up-8 { fill: var(--pente-up-8); } .g-up-9 { fill: var(--pente-up-9); }
.g-down-1 { fill: var(--pente-down-1); } .g-down-2 { fill: var(--pente-down-2); } .g-down-3 { fill: var(--pente-down-3); } .g-down-4 { fill: var(--pente-down-4); }
.c-down-3 { background: var(--pente-down-3); } .c-down-1 { background: var(--pente-down-1); } .c-flat { background: var(--pente-plat); }
.c-up-1 { background: var(--pente-up-1); } .c-up-2 { background: var(--pente-up-2); } .c-up-3 { background: var(--pente-up-3); }
.c-up-4 { background: var(--pente-up-4); } .c-up-5 { background: var(--pente-up-5); } .c-up-6 { background: var(--pente-up-6); } .c-up-8 { background: var(--pente-up-8); }

/* ——— Le principe, en trois temps ——— */
.temps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); counter-reset: temps; position: relative; }
.temps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 2px dashed var(--trait-fort); z-index: 0; }
.temps__etape { position: relative; z-index: 1; }
.temps__etape .pastille { width: 46px; height: 46px; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--fond); }
.temps__etape h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; margin-top: 22px; }
.temps__etape p { margin-top: 12px; color: var(--gris); }
.temps__etape .petit { font-size: 0.9375rem; margin-top: 14px; color: var(--pale); }
.temps__etape .petit a { color: var(--gris); }
@media (max-width: 820px) {
  .temps { grid-template-columns: 1fr; gap: 36px; }
  .temps::before { left: 22px; right: auto; top: 22px; bottom: 22px; border-top: 0; border-left: 2px dashed var(--trait-fort); }
  .temps__etape { padding-left: 72px; }
  .temps__etape .pastille { position: absolute; left: 0; top: 0; }
  .temps__etape h3 { margin-top: 8px; }
}

/* ——— Une capture de l'application ——— */
.ecran { border-radius: var(--rayon); overflow: hidden; background: var(--surface); box-shadow: var(--ombre); border: 1px solid var(--trait); }
.ecran img { width: 100%; }
.legende { margin-top: 14px; font-size: 0.875rem; color: var(--pale); }
.legende strong { color: var(--gris); font-weight: 600; }

/* ——— Rejouer ——— */
.rejouer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.points { display: grid; gap: 14px; margin-top: 28px; }
.points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--gris); }
.points li strong { color: var(--encre); }
.points svg { width: 20px; height: 20px; margin-top: 3px; color: var(--encre); }
@media (max-width: 960px) { .rejouer { grid-template-columns: 1fr; } }

.vues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(48px, 7vw, 88px); }
.vue { position: relative; border-radius: var(--rayon); overflow: hidden; background: #111; aspect-ratio: 4 / 3; }
.vue img { width: 100%; height: 100%; object-fit: cover; }
.vue figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgb(7 8 12 / 78%), rgb(7 8 12 / 0%)); color: #f6f5f1; font-size: 0.9375rem; line-height: 1.4; }
.vue figcaption strong { display: block; font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: 1.125rem; }
@media (max-width: 820px) { .vues { grid-template-columns: 1fr; } .vue { aspect-ratio: 16 / 10; } }

.maquette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(32px, 4vw, 48px); background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.maquette div { background: var(--surface); padding: 22px 22px 24px; }
.maquette h3 { font-size: 1.125rem; line-height: 1.2; }
.maquette p { margin-top: 8px; font-size: 0.9375rem; color: var(--gris); line-height: 1.5; }
@media (max-width: 960px) { .maquette { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .maquette { grid-template-columns: 1fr; } }

/* ——— Home trainer ——— */
.salon { position: relative; overflow: hidden; }
.salon .titre { max-width: 14em; }
.salon__ecran { margin-top: clamp(40px, 6vw, 72px); }
.atouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(40px, 6vw, 72px); background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; }
.atout { background: var(--fond); padding: 28px 26px 30px; }
.atout svg { width: 26px; height: 26px; color: var(--encre); }
.atout h3 { font-size: 1.25rem; line-height: 1.15; margin-top: 18px; }
.atout p { margin-top: 10px; color: var(--gris); font-size: 0.96875rem; line-height: 1.55; }
@media (max-width: 960px) { .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .atouts { grid-template-columns: 1fr; } }

.loyal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--trait); }
.loyal h3 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.05; }
.loyal p { color: var(--gris); }
.loyal h3 + p, .loyal h3 + .compat { margin-top: 16px; }
.loyal p + p { margin-top: 14px; }
@media (max-width: 860px) { .loyal { grid-template-columns: 1fr; } }

.compat { display: grid; gap: 10px; font-size: 0.9375rem; color: var(--gris); }
.compat li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.compat svg { width: 18px; height: 18px; margin-top: 3px; color: var(--encre); }

/* Rouler ensemble, en direct */
.direct { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.direct__scene { position: relative; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--trait); padding: clamp(20px, 3vw, 32px); }
.direct__liste { display: grid; gap: 10px; }
.direct__ligne { display: grid; grid-template-columns: 24px 1.6em 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 0.9375rem; }
.direct__rang { color: var(--pale); font-variant-numeric: tabular-nums; text-align: right; }
.direct__nom { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.direct__ecart { color: var(--gris); font-variant-numeric: tabular-nums; text-align: right; }
.direct__maillot { width: 18px; height: 18px; }
.direct__allez { position: absolute; right: clamp(16px, 3vw, 28px); top: -16px; padding: 8px 14px; border-radius: 999px; background: var(--bouton); color: var(--bouton-encre); font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: 0.9375rem; box-shadow: var(--ombre); }
.direct__note { margin-top: 14px; font-size: 0.8125rem; color: var(--pale); }
@media (max-width: 900px) { .direct { grid-template-columns: 1fr; } }

/* ——— Les grands cols : une scène du monde de haute montagne, puis la page d'un versant à côté de ce qu'il apporte ——— */
.cols__monde { margin-top: clamp(40px, 6vw, 72px); }
/* La scène est en 16:9 ; elle se montre plus basse, coupée par le bas (la route), pour garder les sommets nommés. */
.cols__monde img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 0%; border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (max-width: 640px) { .cols__monde img { aspect-ratio: 16 / 10; object-position: 50% 20%; } }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: clamp(40px, 6vw, 72px); }
.cols .points { margin-top: 0; gap: 18px; }
.massifs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-size: 0.875rem; color: var(--gris); }
.massifs li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); }
.massifs strong { margin-right: 4px; color: var(--encre); }
.cols__page { width: 100%; max-width: 460px; justify-self: end; }
@media (max-width: 960px) { .cols { grid-template-columns: 1fr; } .cols__page { justify-self: start; } }

/* ——— En groupe ——— */
.groupe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 72px); }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; }
.carte h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.1; }
.carte > p { margin-top: 12px; color: var(--gris); }
.carte .ecran { margin-top: 24px; }
.carte--sortie { grid-column: span 7; }
.carte--defi { grid-column: span 5; }
.carte--rencontre { grid-column: span 5; }
.carte--badges { grid-column: span 7; }
.carte--fil { grid-column: span 7; }
.carte--duels { grid-column: span 5; }
.carte__bas { margin-top: auto; padding-top: 24px; }
.maillots { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 0.9375rem; color: var(--gris); }
.maillots > span { position: relative; padding-left: 32px; }
.maillots svg { position: absolute; left: 0; top: -1px; width: 24px; height: 24px; }
.classement-defi { display: grid; gap: 8px; margin-top: 22px; }
.classement-defi li { display: grid; grid-template-columns: 22px 1.6em 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 0.9375rem; }
.classement-defi .rang { color: var(--pale); text-align: right; font-variant-numeric: tabular-nums; }
.classement-defi .temps-defi { font-variant-numeric: tabular-nums; font-weight: 600; }
.classement-defi small { display: block; color: var(--pale); font-size: 0.8125rem; font-weight: 400; }
.classement-defi .moi { outline: 2px solid var(--encre); outline-offset: -2px; }
.exemple { margin-top: 12px; font-size: 0.8125rem; color: var(--pale); }
.rencontre { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; align-items: center; margin-top: 8px; }
.telephone { border-radius: 30px; padding: 7px; background: #0f1114; box-shadow: var(--ombre); }
.telephone img { border-radius: 24px; width: 100%; }
.medailles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.medaille { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 0.875rem; line-height: 1.35; color: var(--gris); }
.medaille strong { display: block; color: var(--encre); font-weight: 600; }
.medaille svg { width: 40px; height: 40px; }
@media (max-width: 960px) {
  .carte--sortie, .carte--defi, .carte--rencontre, .carte--badges, .carte--fil, .carte--duels { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .rencontre { grid-template-columns: 1fr; } .rencontre .telephone { max-width: 220px; } .medailles { grid-template-columns: 1fr; } }

/* ——— Progresser ——— */
.progres { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.progres__ecrans { display: grid; gap: 16px; }
@media (max-width: 960px) { .progres { grid-template-columns: 1fr; } }

/* ——— Vos données ——— */
.donnees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 64px); }
.donnee { border-top: 2px solid var(--encre); padding-top: 18px; }
.donnee h3 { font-size: 1.25rem; line-height: 1.2; }
.donnee p { margin-top: 10px; color: var(--gris); font-size: 0.96875rem; }
.donnee--large { grid-column: 1 / -1; }
.donnee--large h3 { font-size: clamp(1.35rem, 2.2vw, 1.625rem); }
.donnee--large p { max-width: 52em; font-size: 1.0625rem; }
@media (max-width: 900px) { .donnees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .donnees { grid-template-columns: 1fr; } }

/* ——— Ce qu'il vous faut ——— */
.materiel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 6vw, 64px); }
.materiel .carte h3 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; }
.materiel .carte h3 svg { width: 26px; height: 26px; flex: none; }
.liste { display: grid; gap: 10px; margin-top: 18px; color: var(--gris); font-size: 0.96875rem; }
.liste li { padding-left: 18px; position: relative; }
.liste li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--trait-fort); }
.liste strong { color: var(--encre); }
.liens { display: grid; gap: 8px; margin-top: 20px; font-size: 0.9375rem; }
@media (max-width: 900px) { .materiel { grid-template-columns: 1fr; } }

/* ——— Questions ——— */
.questions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); }
.faq { border-top: 1px solid var(--trait-fort); }
.faq details { border-bottom: 1px solid var(--trait-fort); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding-bottom: 24px; color: var(--gris); max-width: 46em; }
.faq details > div p + p { margin-top: 12px; }
@media (max-width: 900px) { .questions { grid-template-columns: 1fr; } }

/* ——— Le départ ——— */
.depart { position: relative; overflow: hidden; text-align: center; }
.depart .titre { font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-stretch: 80%; line-height: 0.95; max-width: 12em; margin-inline: auto; }
.depart .actions { justify-content: center; }
.depart .chapo { margin-inline: auto; }
.depart__sillage { display: flex; justify-content: center; gap: 10px; }
.depart__sillage .pastille { width: 34px; height: 34px; font-size: 0.9375rem; box-shadow: none; }
.depart .petit { margin-top: 20px; font-size: 0.9375rem; color: var(--pale); }

/* ——— Pied de page ——— */
footer.sombre { border-top: 1px solid var(--trait); }
.pied { padding-block: 56px 40px; font-size: 0.9375rem; }
.pied__haut { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.pied__haut p { color: var(--gris); margin-top: 14px; max-width: 26em; }
.pied h2 { font-family: var(--titre); font-size: 0.8125rem; font-weight: 650; font-stretch: 92%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pale); }
.pied ul { display: grid; gap: 10px; margin-top: 16px; }
.pied ul a { text-decoration: none; color: var(--gris); }
.pied ul a:hover { color: var(--encre); text-decoration: underline; }
.pied__bas { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--trait); display: grid; gap: 8px; font-size: 0.8125rem; color: var(--pale); }
@media (max-width: 860px) { .pied__haut { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pied__marque { grid-column: 1 / -1; } }

/* ——— Apparition douce à l'arrivée dans l'écran (rien si le système demande moins d'animations) ——— */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .monte { animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    @keyframes monte { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* Les maillots, dessinés comme dans l'application : jaune uni, blanc à pois rouges, cernés de la couleur du texte. */
.tissu { fill: #ffffff; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.tissu--jaune { fill: var(--maillot-jaune); }
.pois { fill: var(--maillot-pois); }

/* Les médaillons des badges : en noir et gris, comme dans l'application ; seuls les maillots sont en couleur. */
.medaille__fond { fill: var(--surface); stroke: var(--encre); stroke-width: 2; }
.medaille__lisere { fill: none; stroke: var(--trait-fort); stroke-width: 1.2; }
.medaille__marque { font-family: var(--titre); font-weight: 750; font-size: 15px; text-anchor: middle; fill: var(--encre); }
.medaille__trait { color: var(--encre); }

/* ——— La page introuvable ——— */
.egare { min-height: 100svh; display: grid; align-items: center; }
.egare__cadre { padding-block: 64px; }
.egare .marque { margin-bottom: 56px; }
.egare .titre { font-size: clamp(2.5rem, 6vw, 4.5rem); font-stretch: 80%; max-width: 12em; }

/* ——— Les langues ——— */
.langue { position: relative; margin-left: clamp(8px, 1.6vw, 20px); }
.langue > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; color: rgb(246 245 241 / 82%); }
.langue > summary::-webkit-details-marker { display: none; }
.langue > summary:hover, .langue[open] > summary { background: rgb(255 255 255 / 8%); color: #fff; }
.langue svg { width: 17px; height: 17px; }
.langue__liste { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; display: grid; background: #171716; border: 1px solid #2c2c2a; border-radius: 12px; box-shadow: 0 24px 48px rgb(0 0 0 / 50%); }
.langue__liste a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: rgb(246 245 241 / 82%); font-size: 0.9375rem; }
.langue__liste a:hover { background: #222220; color: #fff; }
.langue__liste a[aria-current="page"] { color: #fff; font-weight: 650; }
.langue__liste a[aria-current="page"]::after { content: " ✓"; }
.langue + .entete__actions { margin-left: 8px; }
@media (max-width: 1240px) { .langue { margin-left: auto; } }
@media (max-width: 640px) { .langue { display: none; } }

.langues { display: flex; gap: 6px; }
.langues a { display: inline-grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--trait-fort); text-decoration: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; color: var(--gris); }
.langues a:hover { color: var(--encre); border-color: var(--encre); }
.langues a[aria-current="page"] { background: var(--bouton); color: var(--bouton-encre); border-color: var(--bouton); }
.tiroir__panneau .langues { margin-top: 18px; }
.tiroir__panneau .langues a { display: inline-grid; padding: 0 10px; border: 1px solid #45443f; font-family: var(--texte); font-size: 0.8125rem; color: rgb(246 245 241 / 82%); }
.tiroir__panneau .langues a[aria-current="page"] { background: #f1efea; color: #131311; border-color: #f1efea; }
.pied__fin { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.egare__langues { margin-top: 18px; }

/* ——— La page du matériel ——— */
.ouverture { padding-bottom: clamp(32px, 4vw, 48px); }
.titre--page { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-stretch: 82%; line-height: 0.96; }
.sommaire { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.sommaire a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--trait-fort); text-decoration: none; font-size: 0.9375rem; color: var(--gris); }
.sommaire a:hover { color: var(--encre); border-color: var(--encre); }

/* Un tableau qui se lit en travers sur un grand écran, et ligne par ligne sur un téléphone. */
.tableau { width: 100%; margin-top: clamp(28px, 4vw, 44px); border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; font-size: 0.9375rem; line-height: 1.45; }
.tableau th, .tableau td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--trait); }
.tableau thead th { font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: 0.875rem; color: var(--gris); background: var(--surface-2); }
.tableau tbody th { font-family: var(--titre); font-weight: 650; font-stretch: 92%; font-size: 1.0625rem; width: 24%; }
.tableau tbody th a { text-decoration: none; }
.tableau tbody th a:hover { text-decoration: underline; }
.tableau tbody th small { display: block; margin-top: 4px; font-family: var(--texte); font-weight: 400; font-size: 0.8125rem; color: var(--pale); }
.tableau tbody tr:last-child > * { border-bottom: 0; }
.tableau--ecrans tbody th { width: 34%; }
/* L'état d'une case : la phrase dit tout, la pastille ne fait que la montrer (pleine, à moitié, vide). */
.etat { display: inline-flex; align-items: baseline; gap: 9px; }
.etat::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; transform: translateY(1px); }
.etat--oui::before { background: currentColor; }
.etat--partiel::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.etat--non { color: var(--pale); }
@media (max-width: 760px) {
  .tableau, .tableau tbody, .tableau tr, .tableau th, .tableau td { display: block; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tbody tr { padding: 16px 18px; border-bottom: 1px solid var(--trait); }
  .tableau tbody tr:last-child { border-bottom: 0; }
  .tableau tbody th { width: auto; padding: 0 0 10px; border: 0; }
  .tableau td { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  .tableau td::before { content: attr(data-label); color: var(--pale); font-size: 0.8125rem; }
  .tableau--ecrans tbody th { width: auto; }
}

.familles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(32px, 5vw, 56px); }
.famille { scroll-margin-top: calc(var(--entete) + 16px); }
.famille h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.15; }
.famille h3 svg { width: 26px; height: 26px; flex: none; }
.famille .liste { margin-top: 16px; }
.exemples { margin-top: auto; padding-top: 18px; font-size: 0.875rem; color: var(--pale); }
.familles > .famille:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 860px) { .familles { grid-template-columns: 1fr; } }

.verification { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); }
.verification figure { min-width: 0; }
.verification .points { max-width: 46em; }
/* La capture est large et basse : sur un téléphone, elle garde une taille lisible et défile dans son cadre. */
@media (max-width: 760px) {
  .verification .ecran { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .verification .ecran img { width: 760px; max-width: none; }
}
