/* ASSO v2, « Le passage ».
   Une page = un passage chronométré. Deux gestes forts (la cible du héros et le plan
   qui se dessine au défilement), tout le reste reste calme. */

/* Police allégée : axes limités (graisse 400 à 800, largeur 62 % à 100 %) et caractères du français.
   Deux déclarations du même fichier : le texte courant s'affiche tout de suite (swap, avec police de
   secours aux mesures calquées), les grands titres attendent la vraie police (block) car leur taille
   dépend de sa largeur. Le navigateur ne télécharge le fichier qu'une fois. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Display";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 62% 100%;
  font-style: normal;
  font-display: block;
}

/* Police de secours aux mesures calquées sur Archivo : le texte garde la même hauteur
   avant et après le chargement de la police, donc pas de décalage de mise en page. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98.55%;
  ascent-override: 89.1%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --ink: #0a1020;
  --muted: #4a5568;
  --paper: #ffffff;
  --wash: #f2f4f8;
  --line: #d9dee7;
  --cobalt: #1736ff;
  --orange: #ff4b14;
  --sun: #ffc62b;
  --card: #cda878;
  --card-line: #5c4529;

  --font: "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.1875rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-small: 0.9375rem;

  --header: 4.25rem;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --max: 82rem;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a,
button,
summary {
  touch-action: manipulation;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-cobalt :focus-visible,
.footer :focus-visible {
  outline-color: var(--sun);
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Les colonnes ne s'élargissent jamais au contenu (sinon les affiches débordent) */
.hero__grid,
.place__grid,
.join__grid,
.faq__grid,
.course__stage,
.footer__grid {
  grid-template-columns: minmax(0, 1fr);
}

/* Affiche : titres condensés. Un seul rôle, un seul poids fort. */
.display {
  font-family: "Archivo Display", "Archivo Fallback", sans-serif;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Éléments à confirmer avec l'association */
.tbc {
  text-decoration: underline dashed;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
  cursor: help;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition-property: background-color, color, border-color, scale;
  transition-duration: 160ms;
  transition-timing-function: ease;
}

.btn:active {
  scale: 0.97;
}

.btn--fire {
  background: var(--orange);
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--line {
  border-color: var(--ink);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn--fire:hover {
    background: #ff6a3d;
  }
  .btn--ink:hover {
    background: var(--cobalt);
  }
  .btn--line:hover {
    background: var(--ink);
    color: #fff;
  }
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  font-weight: 600;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  transition: box-shadow 200ms ease;
}

.header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
}

.header.is-stuck {
  box-shadow: 0 1px 0 var(--line);
}

.header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  text-decoration: none;
}

.brand__mark {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  max-width: 12.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.12;
}

.brand__name b {
  font-weight: 800;
}

@media (max-width: 30rem) {
  .brand {
    gap: 0.5rem;
  }

  .brand__mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand__name {
    max-width: 9.2rem;
    font-size: 0.8125rem;
  }
}


.nav__list {
  display: flex;
  gap: 0.25rem;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 3px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover::after {
    transform: scaleX(1);
  }
}

.header__cta {
  min-height: 2.75rem;
  padding-inline: 1.3rem;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-btn__bars {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.menu-btn__bars::before,
.menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.menu-btn__bars::before {
  top: -6px;
}
.menu-btn__bars::after {
  top: 6px;
}

.menu-btn[aria-expanded="true"] .menu-btn__bars {
  background: transparent;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars::before {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 62rem) {
  .header__cta {
    display: none;
  }
  .nav {
    flex-basis: 100%;
    order: 3;
  }
  .js .menu-btn {
    display: inline-flex;
  }
  .js .nav {
    flex-basis: auto;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 24px rgb(10 16 32 / 0.1);
  }
  .js .nav:not(.is-open) {
    display: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__link {
    width: 100%;
    min-height: 3.25rem;
    padding-inline: 0;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after {
    display: none;
  }
  .nav__link[aria-current="true"] {
    color: var(--cobalt);
  }
}


/* ---------- Héros ---------- */

.hero {
  position: relative;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--section);
  overflow-x: clip;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: calc(100svh - var(--header) - 4rem);
  }
}

/* Affiche : chaque ligne remplit la largeur de la colonne.
   --w est la largeur de la ligne en em (mesurée avec Archivo), cqw la largeur du conteneur.
   Aucun script, donc aucun décalage au chargement. */
.lockup {
  container-type: inline-size;
}

.lockup > span {
  display: block;
  width: max-content;
  white-space: nowrap;
  font-size: calc(99.5cqw / var(--w, 8));
}

.lockup b,
.lockup i {
  font-weight: inherit;
  font-style: normal;
}

/* « vitesse » : file de fantômes qui se résorbe */
.w-vitesse {
  display: inline-block;
  text-shadow:
    calc(var(--trail, 0) * -0.16em) 0 0 rgb(10 16 32 / 0.32),
    calc(var(--trail, 0) * -0.32em) 0 0 rgb(10 16 32 / 0.2),
    calc(var(--trail, 0) * -0.48em) 0 0 rgb(10 16 32 / 0.1);
}

/* « airsoft » : une pastille le traverse, chaque lettre sursaute */
.w-airsoft .ch {
  display: inline-block;
}

/* « treillis » : camouflage sous le mot, effacé par la couleur */
.treillis {
  display: inline-grid;
}

.treillis > * {
  grid-area: 1 / 1;
}

.treillis__camo {
  visibility: hidden;
  color: transparent;
  background: url("../img/camo.svg") 0 0 / 0.9em auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.012em #2e3320;
}

.has-motion .treillis__camo {
  visibility: visible;
}

.has-motion .treillis__ink {
  clip-path: inset(0 100% 0 0);
}

.pellet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgb(255 75 20 / 0.22);
  opacity: 0;
  pointer-events: none;
}

.impact {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Apparition du héros en CSS pur : aucune dépendance au script, le titre reste lisible vite */
@property --trail {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(70%);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.88);
  }
}

@keyframes dash {
  from {
    transform: translateX(-0.7em);
    --trail: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .has-motion .hero .ln {
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .has-motion .hero .ln:nth-child(1) {
    animation-delay: 0.1s;
  }
  .has-motion .hero .ln:nth-child(2) {
    animation-delay: 0.2s;
  }
  .has-motion .hero .ln:nth-child(3) {
    animation-delay: 0.3s;
  }
  .has-motion .w-vitesse {
    animation: dash 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
  }
  .has-motion .hero__lead {
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
  }
  .has-motion .hero__actions {
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.38s backwards;
  }
  .has-motion .range__tilt {
    animation: pop-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
  }
  .has-motion .range .readout,
  .has-motion .range__msg {
    animation: fade-up 0.5s ease 0.45s backwards;
  }
}

.range {
  perspective: 900px;
}

.range__tilt {
  transform-style: preserve-3d;
}

.lockup .ln {
  will-change: auto;
}

.lockup > span + span {
  margin-top: 0.06em;
}

.hero__lead {
  max-width: 32rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin-top: 2rem;
}

/* Cible interactive */

.range {
  width: min(100%, 25rem);
  margin-inline: auto;
}

.range__target {
  width: 100%;
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 20px 22px rgb(10 16 32 / 0.2));
  -webkit-tap-highlight-color: transparent;
}

.range__target:focus,
.range__target:focus-visible {
  outline: none;
}

.range__target:focus-visible .tgt__ring {
  display: block;
}

.tgt__ring {
  display: none;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 6;
  stroke-dasharray: 18 12;
}

.tgt__d {
  fill: var(--card);
  stroke: var(--card-line);
  stroke-width: 4;
  stroke-linejoin: round;
}

.tgt__c,
.tgt__a {
  fill: rgb(60 40 15 / 0.08);
  stroke: var(--card-line);
  stroke-width: 3;
  stroke-linejoin: round;
}

.hit {
  fill: var(--ink);
  stroke: var(--orange);
  stroke-width: 4;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: hit-pop 240ms var(--ease-out);
}

@keyframes hit-pop {
  from {
    transform: scale(2.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 2px solid currentColor;
}

.readout > div {
  display: flex;
  flex-direction: column-reverse;
}

.readout dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.readout dd {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.range__msg {
  min-height: 3.2em;
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.range__reset {
  margin-top: 0.25rem;
  min-height: 2.75rem;
  padding: 0 1.2rem;
}

.range__reset[hidden] {
  display: none;
}

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

.section {
  padding-block: var(--section);
}

/* ---------- Histoire : précision, rapidité, sécurité ---------- */
/* Par défaut (sans script, mouvement réduit) les trois actes se suivent à l'état final.
   Quand motion.js épingle la section, elle gagne la classe is-pinned. */

.story__pin {
  position: relative;
  background: var(--paper);
}

.act {
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

@media (min-width: 62rem) {
  .act {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
}

.act__text {
  container-type: inline-size;
}

/* « Précision » (3,919 em de large) remplit la colonne, les autres titres gardent la même taille */
.act__title {
  overflow: hidden;
  margin-top: -0.14em;
  padding-block: 0.14em 0.04em;
  font-size: calc(98cqw / 3.919);
}

.act__title span {
  display: block;
  transform-origin: left bottom;
}

.act p {
  max-width: 26rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
}

.act__art {
  width: 100%;
}

.act__art svg {
  width: 100%;
  height: auto;
  max-height: min(62svh, 36rem);
  margin-inline: auto;
}

@media (max-width: 61.99rem) {
  .act__art {
    order: -1;
  }
  .act__art svg {
    max-height: 34svh;
  }
}


/* À plat (téléphone, tablette, sans script, mouvement réduit) : l'acte « rapidité » est une bande jaune.
   Épinglé (grand écran), c'est le fond de la scène qui change de couleur. */
.act--vitesse {
  background: var(--sun);
  box-shadow: 0 0 0 100vmax var(--sun);
  clip-path: inset(0 -100vmax);
}

.story.is-pinned .act--vitesse {
  background: none;
  box-shadow: none;
  clip-path: none;
}

.story.is-pinned .story__pin {
  height: 100svh;
  overflow: hidden;
}

.story.is-pinned .act {
  position: absolute;
  inset: 0;
  align-content: center;
  padding-block: calc(var(--header) + 1rem) 2.5rem;
}

.story__rail {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}

.story.is-pinned .story__rail {
  display: flex;
}

.story__rail li {
  width: 2.25rem;
  height: 4px;
  background: rgb(10 16 32 / 0.2);
  transition: background-color 200ms ease;
}

.story__rail li.is-on {
  background: var(--ink);
}

/* Acte 1 : la cible */
.art-target {
  max-width: 24rem;
  margin-inline: auto;
}

.art-target svg {
  max-height: min(66svh, 38rem);
}

.art-target__body {
  transform-box: view-box;
  transform-origin: 200px 190px;
  transform: scale(var(--s, 1));
}

.art-target .hit {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--s, 1));
  animation: none;
  fill: var(--ink);
  stroke: var(--orange);
}

.art-target .tag {
  fill: var(--ink);
  font-size: 34px;
  font-weight: 800;
  font-stretch: 62%;
}

.crosshair {
  transform-box: view-box;
  transform-origin: 200px 190px;
  transform: scale(var(--s, 1)) rotate(calc(var(--r, 0) * 1deg));
  fill: none;
  stroke: var(--orange);
  stroke-width: 4;
  stroke-linecap: round;
}

/* Acte 2 : le chrono (sur fond jaune pendant l'animation) */
.art-chrono {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
}

.art-chrono .ring-track {
  fill: none;
  stroke: rgb(10 16 32 / 0.14);
  stroke-width: 18;
}

.art-chrono .ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 18;
  stroke-linecap: butt;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-box: view-box;
  transform-origin: 200px 200px;
}

.art-chrono .ticks line {
  stroke: var(--ink);
  stroke-width: 3;
  opacity: 0.55;
}

.art-chrono .needle {
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
  transform: rotate(calc(var(--r, 350) * 1deg));
  transform-box: view-box;
  transform-origin: 200px 200px;
}

.art-chrono .hub {
  fill: var(--orange);
}

.art-chrono .streaks line {
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}

.act .chrono__digits {
  position: absolute;
  left: 50%;
  top: 56%;
  margin: 0;
  max-width: none;
  font-size: clamp(2.25rem, 1rem + 5vw, 4rem);
  font-weight: 800;
  font-stretch: 62%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%);
}

/* Acte 3 : la sécurité */
.art-safe {
  max-width: 28rem;
  margin-inline: auto;
}

.art-safe .cone {
  transform-box: view-box;
  transform-origin: 200px 330px;
  transform: scaleY(var(--s, 1));
  fill: rgb(23 54 255 / 0.12);
  stroke: var(--cobalt);
  stroke-width: 4;
  stroke-dasharray: 10 8;
}

.art-safe .barrel {
  transform-box: view-box;
  transform-origin: 200px 330px;
  transform: rotate(calc(var(--r, 0) * 1deg));
}

.art-safe .barrel rect {
  fill: var(--ink);
}

.art-safe .shooter {
  fill: var(--ink);
}

/* ---------- Sans treillis ---------- */

.shirts {
  background: var(--wash);
}

.shirts__pin {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-content: center;
  padding-block: var(--section);
}

.shirts__pin .lockup {
  max-width: 62rem;
}

.shirts__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 2.5vw, 1.75rem);
  max-width: 46rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shirts__row li {
  position: relative;
  aspect-ratio: 1;
}

.shirts__row svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shirts__row li:nth-child(1) .ink {
  color: var(--ink);
}
.shirts__row li:nth-child(2) .ink {
  color: var(--cobalt);
}
.shirts__row li:nth-child(3) .ink {
  color: var(--orange);
}
.shirts__row li:nth-child(4) .ink {
  color: var(--sun);
}
.shirts__row li:nth-child(5) .ink {
  color: #8da2ff;
}

.shirts__text {
  max-width: 30rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
}

.strike {
  position: relative;
  display: inline-block;
}

.strike__line {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.1em;
  background: var(--orange);
  transform-origin: left center;
}

.shirts.is-pinned .shirts__pin {
  height: 100svh;
  padding-block: calc(var(--header) + 1.5rem) 2.5rem;
}

/* ---------- Parcours (plan qui se dessine) ---------- */

.course {
  background-color: var(--cobalt);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
}

.course__stage {
  display: grid;
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-content: center;
  min-height: 100svh;
  padding-block: calc(var(--header) + 2rem) 3rem;
}

@media (min-width: 62rem) {
  .course__stage {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
  }
}

.course.is-scrub .course__track {
  height: 400vh;
}

.course.is-scrub .course__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  padding-block: calc(var(--header) + 1rem) 1.5rem;
}

.course__title {
  font-size: clamp(3rem, 1rem + 4.2vw, 5.25rem);
}

.course__steps {
  display: grid;
  gap: 0;
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
  padding: 0;
  list-style: none;
}

.course__steps li {
  padding: 0.3rem 0 0.3rem 1.1rem;
  border-left: 3px solid rgb(255 255 255 / 0.4);
}

.course__steps h3 {
  font-size: 1.375rem;
  font-weight: 600;
}

/* Chaque étape est un bouton : un clic fait défiler jusqu'au bon moment du parcours */
.course__steps h3 button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .course__steps h3 button:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

.course :focus-visible {
  outline-color: var(--sun);
}

.course__hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.92);
}


.course__steps .desc {
  display: grid;
  grid-template-rows: 1fr;
}

.course__steps .desc p {
  overflow: hidden;
  padding-top: 0.25rem;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.5;
}

.course.is-scrub .course__steps li {
  transition: border-color 250ms ease;
}

.course.is-scrub .course__steps .desc {
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}

.course.is-scrub .course__steps li.is-on {
  border-left-color: var(--sun);
}

.course.is-scrub .course__steps li.is-on .desc {
  grid-template-rows: 1fr;
}

.course .readout dt {
  color: rgb(255 255 255 / 0.9);
}

.course .readout {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2rem;
}

.course__plan svg {
  width: 100%;
  height: auto;
  max-height: calc(100svh - var(--header) - 6rem);
}

@media (max-width: 61.99rem) {
  .course.is-scrub .course__track {
    height: 280vh;
  }
  .course__plan {
    order: -1;
  }
  .course__plan svg {
    max-height: 25svh;
    margin-inline: auto;
  }
  .course.is-scrub .course__stage {
    gap: 0.75rem;
    padding-bottom: 1rem;
  }
  .course__steps li {
    padding-block: 0.1rem;
  }
  .course__steps h3 {
    font-size: 1.25rem;
  }
  .course__hint {
    margin-top: 0.25rem;
  }
  .course .readout {
    margin-top: 0.5rem;
    padding-top: 0.6rem;
  }
  .course__title {
    font-size: clamp(2.25rem, 8.5vw, 4rem);
  }
}

.plan-room {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.plan-start {
  fill: rgb(255 255 255 / 0.12);
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 8 6;
}

.plan-wall {
  fill: none;
  stroke: #fff;
  stroke-width: 12;
  stroke-linecap: square;
}

.plan-wall--sun {
  stroke: var(--sun);
}

.plan-ghost {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.55;
  stroke-width: 3;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}

.plan-route {
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
}

.plan-dot {
  fill: var(--sun);
  stroke: #fff;
  stroke-width: 3;
}

.plan-shot {
  stroke: var(--orange);
  stroke-width: 4;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0;
}

.plan-mark {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 120ms ease, scale 220ms var(--ease-out);
  scale: 0.4;
}

.plan-shot.is-on {
  opacity: 1;
}

.plan-mark.is-on {
  opacity: 1;
  scale: 1;
}

.course .tgt__d {
  stroke-width: 6;
}

/* ---------- Lieu ---------- */

.place__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.place__grid .lockup {
  max-width: 58rem;
}

.place__body {
  display: grid;
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .place__body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.school-fig {
  margin: 0;
}

.school {
  width: 100%;
  height: auto;
}

.school__lines {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.school .dr {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.school .win {
  fill: var(--sun);
  fill-opacity: 1;
}

.school .wall {
  fill: var(--wash);
}

.school .roof {
  fill: var(--cobalt);
}

.school .cap {
  fill: var(--ink);
}

.school .eye,
.school .plaque {
  fill: #fff;
}

.school .base {
  fill: var(--line);
}

.school .leaf {
  fill: var(--wash);
}

.school .door {
  fill: var(--orange);
}

.school .dot {
  fill: var(--orange);
  stroke: none;
}

.school .dot--bell {
  fill: var(--sun);
}

.school .dr--tile {
  stroke: #fff;
  stroke-opacity: 0.5;
  stroke-width: 3;
}

.school .car {
  fill: var(--cobalt);
  transform: translateX(430px);
}

.school .car circle {
  fill: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .school .car {
    animation: drive 16s linear infinite;
  }
  @keyframes drive {
    from {
      transform: translateX(-80px);
    }
    to {
      transform: translateX(700px);
    }
  }
}

.school .road {
  stroke: var(--cobalt);
  stroke-width: 4;
  stroke-dasharray: 18 14;
}

.school__sign {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 800;
  font-stretch: 62%;
}

@media (prefers-reduced-motion: no-preference) {
  .school .road {
    animation: road 3s linear infinite;
  }
  @keyframes road {
    to {
      stroke-dashoffset: -64;
    }
  }
}

.place__text {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.place__text p {
  line-height: 1.7;
}

.place__who {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.place__who strong {
  font-weight: 600;
}


/* Les locaux : trois groupes de deux rectangles. Un rectangle décrit la photo attendue
   tant que la vraie photo n'est pas là. */
.locaux__title,
.future__title {
  font-size: clamp(3.5rem, 1.5rem + 8vw, 8rem);
}

.locaux__intro {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.premises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.premises__group {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.premises__group h3 {
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
}

.premises__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.photo {
  display: flex;
  margin: 0;
}

.photo__frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  aspect-ratio: 3 / 2;
  min-height: 11.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--wash);
  border: 2px dashed rgb(10 16 32 / 0.35);
  border-radius: 4px;
}

.photo__frame p {
  margin: 0;
}

.photo__todo {
  margin-bottom: auto !important;
  font-size: 0.875rem;
  color: var(--muted);
}

.photo__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.photo__desc {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

.photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Avenir et partenariats ---------- */

.future {
  background: var(--ink);
  color: #fff;
}

.future :focus-visible {
  outline-color: var(--sun);
}

.future__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem 5rem;
}

@media (min-width: 62rem) {
  .future__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

.future__text {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.partners {
  display: grid;
  gap: 1rem;
  justify-items: start;
  max-width: 30rem;
  padding-top: 1.25rem;
  border-top: 2px solid #fff;
}

.partners h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.partners p {
  line-height: 1.6;
}

.partners .btn--ink {
  background: var(--orange);
  color: var(--ink);
}

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

.faq {
  background: var(--wash);
}

.faq__grid {
  display: grid;
  gap: 2.5rem 5rem;
}

@media (min-width: 62rem) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }
}

.faq__title {
  font-size: clamp(3rem, 1.5rem + 5vw, 6rem);
}

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

.faq__list {
  border-bottom: 1px solid var(--ink);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding-block: 1rem;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 3px 100% no-repeat;
  transition: transform 220ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq__answer {
  max-width: 38rem;
  padding: 0 3rem 1.5rem 0;
  color: var(--muted);
}

/* ---------- Venir ---------- */

.join__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 62rem) {
  .join__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}

.join__lead {
  max-width: 26rem;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.practical {
  margin-top: 2.5rem;
  max-width: 30rem;
}

.practical > div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--ink);
}

.practical dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.practical dd {
  font-size: 1.1875rem;
  font-weight: 500;
}

.form {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 0;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  transition: border-color 140ms ease;
}

.field select {
  appearance: none;
  padding-right: 2rem;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%230a1020' stroke-width='2.500'/%3E%3C/svg%3E") right 0.25rem center / 0.9rem no-repeat;
  cursor: pointer;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--cobalt);
  box-shadow: 0 2px 0 0 var(--cobalt);
}

.field [aria-invalid="true"] {
  border-bottom-color: #b3261e;
}

.field__error {
  color: #b3261e;
  font-size: 0.9375rem;
  font-weight: 500;
}

.field__error:empty {
  display: none;
}

.form__hp {
  position: absolute;
  left: -9999px;
}

.form__submit {
  justify-self: start;
}

.form__status {
  font-weight: 500;
}

.form__note {
  font-size: 0.875rem;
  color: var(--muted);
}

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

.footer {
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  background: var(--ink);
  color: #fff;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 52rem) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}


.footer h2 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.8);
}

.footer ul {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.6rem;
  padding: 0;
  list-style: none;
}

.footer ul a {
  display: inline-block;
  padding-block: 0.4rem;
}

.footer address {
  margin-top: 1rem;
  font-style: normal;
  line-height: 1.6;
}

.footer__legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.25);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.8);
}

/* ---------- Pages secondaires ---------- */

.doc {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.doc h1 {
  font-size: clamp(3rem, 1.5rem + 5vw, 6rem);
}

.doc h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
}

.doc p,
.doc ul {
  max-width: 40rem;
  margin-top: 0.9rem;
  line-height: 1.7;
}

.notfound {
  min-height: 70svh;
  display: grid;
  align-items: center;
}

.notfound h1 {
  font-size: clamp(4rem, 2rem + 10vw, 11rem);
}

.notfound p {
  max-width: 30rem;
  margin-top: 1.25rem;
  font-size: var(--fs-lead);
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hit {
    animation: none;
  }
  .btn,
  .nav__link::after,
  .faq summary::after {
    transition: none;
  }
}

/* Téléphone et tablette : tout l'acte tient dans la hauteur d'écran, et la scène suit le héros de près */
@media (max-width: 61.99rem) {
  .art-target svg {
    max-height: 38svh;
  }
  .hero {
    padding-bottom: 3rem;
  }
}

.nowrap {
  white-space: nowrap;
}


/* Les lunettes : norme EN 166, niveau B */
.glasses__top {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.glasses__title {
  font-size: clamp(3rem, 1.4rem + 7vw, 7rem);
}

.glasses__intro {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.glasses__art {
  margin: 0;
  max-width: 34rem;
}

.glasses__art svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.g-strap {
  fill: var(--ink);
}

.g-strap-line {
  fill: none;
  stroke: rgb(255 255 255 / 0.22);
  stroke-width: 2;
}

.g-frame {
  fill: var(--ink);
}

.g-lens {
  fill: #e4eaff;
  stroke: #fff;
  stroke-width: 3;
}

.g-shine {
  fill: none;
  stroke: rgb(255 255 255 / 0.85);
  stroke-width: 6;
  stroke-linecap: round;
}

.g-vent {
  fill: rgb(255 255 255 / 0.55);
}

.g-mark {
  font-size: 15px;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.04em;
}

.g-mark--lens {
  fill: var(--ink);
}

.g-mark--frame {
  fill: #fff;
}

.g-lead {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
}

.g-dot {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 2;
}

.g-label {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.glasses__facts {
  display: grid;
  gap: 1.25rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.glasses__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--wash);
  border-radius: 6px;
}

.glasses__card h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.glasses__card p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
}

.glasses__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.scale {
  display: grid;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.scale__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.75rem;
  align-items: baseline;
  font-size: var(--fs-small);
}

.scale__bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 0.6rem;
  width: var(--v);
  background: rgb(10 16 32 / 0.25);
  border-radius: 999px;
}

.scale__name b {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  margin-right: 0.25rem;
  font-weight: 800;
}

.scale__val {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.scale__row.is-ours {
  font-weight: 700;
}

.scale__row.is-ours .scale__bar {
  background: var(--cobalt);
}

.scale__row.is-ours em {
  font-style: normal;
  color: var(--cobalt);
}

.glasses__note {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

@media (min-width: 48rem) {
  .glasses__top {
    grid-template-columns: 1.15fr 1fr;
  }

  .glasses__facts {
    grid-template-columns: repeat(3, 1fr);
  }
}


.mark-chip {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.5rem 0.9rem;
  border: 2px dashed rgb(10 16 32 / 0.45);
  border-radius: 6px;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.06em;
}

.glasses__card .mark-cap {
  font-size: 0.8125rem;
  color: var(--muted);
}

.combo {
  display: grid;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.combo li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  font-size: 0.875rem;
}

.pill {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgb(10 16 32 / 0.3);
  font-weight: 600;
  white-space: nowrap;
}

.pill--ok {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.pill--low {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.combo i {
  font-style: normal;
  color: var(--muted);
}

.faq__rules {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

/* Page des documents d'adhésion (non indexée) */
.adh__lead {
  max-width: 40rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.dl {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 0;
  list-style: none;
}

.dl__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--wash);
  border-radius: 6px;
}

.dl__item h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.dl__item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.dl__badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3.75rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0.25rem 0.25rem 0 var(--orange);
}

.dl__btn {
  grid-column: 1 / -1;
  justify-self: start;
}

.dl__size {
  font-weight: 400;
  opacity: 0.8;
}

.adh__back {
  margin-top: 2.5rem;
}

@media (min-width: 48rem) {
  .dl__item {
    grid-template-columns: auto 1fr auto;
  }

  .dl__btn {
    grid-column: auto;
    justify-self: end;
  }
}

/* Dossier d'adhésion en ligne */
.adh__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.adh {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: calc(var(--header) + 1rem);
}

.adh__note {
  max-width: 44rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.adh__note a,
.adh__back a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.adh__alert {
  margin: 0.75rem 0 0;
  font-weight: 600;
  color: #b3261e;
}

.adh-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  max-width: 48rem;
}

.adh-step {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 0;
  border-radius: 6px;
  background: var(--wash);
}

.adh-step legend {
  float: left;
  width: 100%;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.adh-step legend + * {
  clear: both;
}

.adh-step legend span {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
}

.adh-step legend small {
  font-weight: 400;
  color: var(--muted);
}

.adh-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: 1fr;
}

.adh-field {
  display: grid;
  gap: 0.3rem;
}

.adh-field label,
.sig__label {
  font-size: var(--fs-small);
  font-weight: 600;
}

.adh-field input,
.adh-doc {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.adh-field input[type="file"] {
  padding: 0.45rem;
}

.adh-field input:focus-visible,
.adh-doc:focus-visible,
.sig__pad:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.adh-doc {
  max-height: 16rem;
  overflow: auto;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.adh-doc h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.adh-doc h4 {
  margin: 0.9rem 0 0.25rem;
  font-size: 0.9375rem;
}

.adh-doc p,
.adh-doc ul {
  margin: 0 0 0.5rem;
}

.adh-doc ul {
  padding-left: 1.2rem;
}

.adh-check,
.adh-radios label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.4;
}

.adh-check input,
.adh-radios input {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.1rem;
  accent-color: var(--ink);
}

.adh-radios {
  display: grid;
  gap: 0.5rem;
}

.adh-radios__label {
  font-size: var(--fs-small);
  font-weight: 700;
}

.sig {
  display: grid;
  gap: 0.5rem;
}

.sig__pad {
  width: 100%;
  height: 9rem;
  background: #fff;
  border: 1.5px dashed var(--ink);
  border-radius: 4px;
  touch-action: none;
  cursor: crosshair;
}

.sig__pad.is-signed {
  border-style: solid;
}

.sig__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sig__tools .btn {
  min-height: 2.5rem;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
}

.adh-send {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.adh__status {
  min-height: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.adh__status[data-kind="error"] {
  color: #b3261e;
}

.adh__status[data-kind="ok"] {
  color: #0b7a3b;
}

.adh__legal {
  margin-top: 0.25rem;
}

.adh-form.is-done .adh-step {
  opacity: 0.55;
}

@media (min-width: 40rem) {
  .adh-grid {
    grid-template-columns: 1fr 1fr;
  }

  .adh-field--wide {
    grid-column: 1 / -1;
  }
}

.adh-step[hidden],
.sig[hidden] {
  display: none;
}

/* ---------- Normes de lunettes (tableau) ---------- */

.norms {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  max-width: 52rem;
}

.norms h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.norms__lead {
  max-width: 40rem;
  margin: 0.5rem 0 1rem;
  color: var(--muted);
}

.norms__scroll {
  overflow-x: auto;
}

.norms__table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.norms__table th,
.norms__table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.norms__table thead th {
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.norms__table thead small {
  font-weight: 500;
  color: var(--muted);
}

.norms__table tbody th {
  font-weight: 600;
}

.norms__table td {
  white-space: nowrap;
  font-weight: 600;
}

.norms__table td.yes {
  color: #0b6b2f;
}

.norms__table td.no {
  color: #a4290a;
}

.norms__table td span {
  display: inline-block;
  width: 1.1rem;
  font-weight: 800;
}

.norms__src {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Partenaires ---------- */

.sponsors {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 0.4);
}

.sponsors h4 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.sponsors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.sponsors li {
  padding: 0.35rem 0.8rem;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-weight: 600;
}

.sponsors__note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.sponsors li.sponsor--logo {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-color: #fff;
  background: #fff;
}

.sponsor--logo img {
  display: block;
  width: auto;
  height: 2.4rem;
}

.sponsors li.sponsor--light {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
}

.sponsor--light img {
  display: block;
  width: auto;
  height: 3.4rem;
}

/* ---------- Blog : actualités ---------- */

.blog-nav-top {
  margin-left: auto;
}

.blog-nav-top a {
  padding: 0.4rem 0.2rem;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

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

.blog-nav-top + .header__cta {
  margin-left: 0;
}

/* En-tête de la liste */
.blog-tete {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
  background: var(--cobalt);
  color: #fff;
}

.blog-tete::after {
  content: "";
  position: absolute;
  top: -4rem;
  right: -6rem;
  width: clamp(16rem, 36vw, 30rem);
  aspect-ratio: 1;
  background: rgb(255 255 255 / 0.09);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.blog-tete__sur {
  margin: 0;
  color: var(--sun);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-tete__titre {
  margin: 0.5rem 0 1rem;
  font-size: clamp(3.5rem, 11vw, 8.5rem);
}

.blog-tete__intro {
  max-width: 34rem;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.blog-liste {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 7rem);
}

/* Cartes */
.blog-grille {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-carte {
  margin: 0;
}

.blog-carte > a {
  display: grid;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgb(10 16 32 / 0.08), 0 8px 24px rgb(10 16 32 / 0.06);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

@media (hover: hover) {
  .blog-carte > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgb(10 16 32 / 0.08), 0 16px 36px rgb(10 16 32 / 0.14);
  }

  .blog-carte > a:hover h2,
  .blog-carte > a:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
  }
}

.blog-carte > a:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}

.blog-carte__visuel {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--wash);
}

.blog-carte__visuel > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 9rem;
  background: var(--cobalt);
  color: rgb(255 255 255 / 0.55);
}

.blog-ph svg {
  width: min(55%, 11rem);
  height: auto;
}

.blog-grille > :nth-child(3n + 2) .blog-ph {
  background: var(--orange);
  color: rgb(10 16 32 / 0.5);
}

.blog-grille > :nth-child(3n) .blog-ph {
  background: var(--ink);
  color: rgb(255 255 255 / 0.4);
}

/* Pastille de date */
.blog-puce {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  display: grid;
  justify-items: center;
  min-width: 3.6rem;
  padding: 0.45rem 0.6rem 0.4rem;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgb(10 16 32 / 0.25);
}

.blog-puce b {
  font-family: "Archivo Display", "Archivo Fallback", sans-serif;
  font-size: 1.9rem;
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.95;
}

.blog-puce small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.7;
}

.blog-puce--rdv {
  background: var(--sun);
}

.blog-carte__corps {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.blog-carte__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-carte h2,
.blog-carte h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.blog-carte__corps > p:not(.blog-carte__date) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-carte__lire {
  margin-top: 0.4rem;
  color: var(--cobalt);
  font-weight: 700;
}

/* Première actualité, en grand */
.blog-carte--une {
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.blog-carte--une > a {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.blog-carte--une .blog-carte__visuel {
  aspect-ratio: auto;
  min-height: 22rem;
}

.blog-carte--une .blog-carte__corps {
  align-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.blog-carte--une h2 {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
}

@media (max-width: 47.99rem) {
  .blog-carte--une > a {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-carte--une .blog-carte__visuel {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

.blog-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  color: var(--muted);
}

.blog-vide {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: 3rem 1rem;
  text-align: center;
}

.blog-vide .blog-ph {
  width: min(100%, 22rem);
  height: 14rem;
  border-radius: 10px;
}

/* Page d'un article */
.article-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.article-hero > img {
  display: block;
  width: 100%;
  height: clamp(16rem, 48vw, 36rem);
  object-fit: cover;
}

.article-hero figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2rem var(--gutter) 0.8rem;
  background: linear-gradient(transparent, rgb(10 16 32 / 0.72));
  color: #fff;
  font-size: 0.875rem;
}

.article-hero--vide {
  height: clamp(10rem, 24vw, 16rem);
}

.article-hero--vide .blog-ph {
  min-height: 0;
}

.article {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem) 2.5rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

.article__meta a {
  color: var(--cobalt);
  font-weight: 700;
}

.article__titre {
  margin: 0.9rem 0 1.25rem;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.93;
}

.article__rdv {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  background: var(--sun);
  color: var(--ink);
  font-size: 1.1rem;
}

.article__rdv span {
  margin-right: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article__texte {
  font-size: clamp(1.1rem, 1.05rem + 0.25vw, 1.25rem);
  line-height: 1.75;
}

.article__texte > p:first-child {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem);
  line-height: 1.5;
}

.article__texte p,
.article__texte ul,
.article__texte blockquote {
  margin: 0 0 1.35rem;
}

.article__texte h2,
.article__h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: "Archivo Display", "Archivo Fallback", sans-serif;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.article__texte a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
}

.article__texte ul {
  padding-left: 0;
  list-style: none;
}

.article__texte li {
  position: relative;
  padding-left: 1.6rem;
}

.article__texte li + li {
  margin-top: 0.4rem;
}

.article__texte li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--orange);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}

.article__texte blockquote {
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 5px solid var(--orange);
  font-size: 1.3em;
  font-style: italic;
  line-height: 1.45;
}

.article__galerie {
  margin-top: 2.5rem;
}

.article__galerie .article__h2 {
  margin-top: 0;
}

.blog-galerie {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--wash);
  cursor: zoom-in;
}

.blog-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

@media (hover: hover) {
  .blog-thumb:hover img {
    transform: scale(1.05);
  }
}

.article__partage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

.article__copie {
  color: var(--cobalt);
  font-weight: 700;
}

.article-nav {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  background: var(--wash);
}

.article-nav__grille {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  width: min(100% - 2 * var(--gutter), 60rem);
  margin-inline: auto;
}

.article-nav__lien {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.article-nav__lien span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-nav__lien strong {
  font-size: 1.25rem;
  line-height: 1.2;
}

.article-nav__lien--ancien {
  text-align: right;
}

@media (hover: hover) {
  .article-nav__lien:hover strong {
    text-decoration: underline;
  }
}

/* Photo agrandie */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop {
  background: rgb(10 16 32 / 0.93);
}

.lightbox figure {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 3.5rem 4rem;
}

.lightbox img {
  display: block;
  max-width: min(94vw, 90rem);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 4px;
}

.lightbox figcaption {
  max-width: 44rem;
  text-align: center;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: rgb(10 16 32 / 0.6);
  color: #fff;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.lightbox__fermer {
  top: 1rem;
  right: 1rem;
}

.lightbox__nav {
  top: 50%;
  translate: 0 -50%;
}

.lightbox__nav--prec {
  left: 0.75rem;
}

.lightbox__nav--suiv {
  right: 0.75rem;
}

@media (max-width: 40rem) {
  .lightbox figure {
    padding: 4rem 0.5rem 3rem;
  }

  .lightbox__nav {
    top: auto;
    bottom: 0.75rem;
    translate: none;
  }
}

/* Actualités sur la page d'accueil */
.news-home {
  background: var(--wash);
}

.news-home[hidden] {
  display: none;
}

.news-home__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.news-home__list {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  margin: 2rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.news-home__list > :nth-child(3n + 2) .blog-ph {
  background: var(--orange);
  color: rgb(10 16 32 / 0.5);
}

.news-home__list > :nth-child(3n) .blog-ph {
  background: var(--ink);
  color: rgb(255 255 255 / 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .blog-carte > a,
  .blog-thumb img {
    transition: none;
  }
}

.article-apercu {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 40rem) {
  body.blog .header__cta {
    display: none !important;
  }
}

/* ---------- Bouton « Actualités » (toujours visible, d'une autre couleur que « Venir essayer ») ---------- */

.btn--news {
  background: var(--cobalt);
  color: #fff;
}

@media (hover: hover) {
  .btn--news:hover {
    background: #0c20d6;
  }
}

.header__news {
  min-height: 2.75rem;
  padding-inline: 1.3rem;
}

.nav__actus {
  display: none;
}

@media (max-width: 62rem) {
  .header__news {
    display: none;
  }

  .nav__actus {
    display: block;
  }

  .nav__link--actus {
    color: var(--cobalt);
    font-weight: 800;
  }
}

/* Écrans moyens : le menu, « Actualités » et « Venir essayer » tiennent sur une seule ligne */
@media (min-width: 62rem) and (max-width: 78rem) {
  .header__bar {
    gap: 0.75rem;
  }

  .nav__link {
    padding-inline: 0.4rem;
    font-size: 0.9rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand__name {
    max-width: 8.9rem;
    font-size: 0.8125rem;
  }

  .header__cta,
  .header__news {
    white-space: nowrap;
  }

  .header__cta,
  .header__news {
    padding-inline: 0.85rem;
  }
}
