/* =========================================================================
   Charles Fougere #72 · systeme visuel v2
   Trois voix typographiques, une couleur d accent tiree des photos du pilote,
   un composant media unique qui interdit toute deformation.
   ========================================================================= */

/* ------------------------------------------------------------- variables */

:root {
  /* encre */
  --ink-900: #0b0c0e;
  --ink-800: #101216;
  --ink-700: #171a1f;
  --ink-600: #20242b;

  /* papier */
  --paper:   #ece8df;
  --paper-2: #dfdacd;
  --paper-3: #cfc9ba;

  --white: #f7f6f3;
  --blue:      #1e3ec8;
  --blue-deep: #14297f;
  --blue-lt:   #8fa6ff;
  --flag:      #c3922c;

  --on-ink:      #e9e7e2;
  --on-ink-soft: #a7abb4;
  --on-ink-dim:  #767b85;
  --on-paper:      #14161a;
  --on-paper-soft: #4e525a;
  --on-paper-dim:  #7a7d84;

  --rule-ink:   rgba(233, 231, 226, .11);
  --rule-ink-2: rgba(233, 231, 226, .2);
  --rule-paper: rgba(20, 22, 26, .13);
  --rule-paper-2: rgba(20, 22, 26, .26);

  /* trois voix */
  --display: "Big Shoulders Display", "Archivo Narrow", "Haettenschweiler", "Arial Narrow", sans-serif;
  --serif:   "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:    "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* rayons doses */
  --r-s: 3px;
  --r-m: 8px;
  --r-l: 14px;

  --gutter: clamp(20px, 5vw, 80px);
  --gap:    clamp(16px, 2.2vw, 32px);
  --band:   clamp(80px, 10vw, 168px);
  --maxw:   1680px;
  /* Hauteur du header principal et de la barre de rayons de la boutique.
     Elles servent aux elements colles en haut, pour qu ils se posent les uns
     sous les autres sans jamais se recouvrir. */
  --hdr-h:  74px;
  --shopnav-h: 53px;

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --shadow-photo: 0 30px 70px -34px rgba(6, 8, 12, .75), 0 4px 14px -8px rgba(6, 8, 12, .4);
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--on-ink);
  font-family: var(--sans);
  font-size: clamp(.98rem, .94rem + .16vw, 1.04rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Regle de securite absolue, aucune image ne peut etre etiree. */
img, video { display: block; max-width: 100%; height: auto; }

figure, ul, ol, blockquote { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

::selection { background: var(--blue); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: var(--r-s);
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------- echelle de type */

/* Voix 1, signature condensee. Uniquement en tres grand. */
.t-hero, .t-1, .t-2, .figure-xl {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  /* Assez d air pour que les accents des capitales ne touchent pas la ligne du dessus. */
  line-height: .92;
  letter-spacing: .002em;
  font-feature-settings: "tnum";
}
.t-hero { font-size: clamp(3rem, 9.5vw, 8rem); line-height: .97; }
.t-1    { font-size: clamp(3rem, 8.5vw, 7.5rem); }
.t-2    { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.t-2 em { font-style: normal; color: var(--blue-lt); }
.band--paper .t-2 em { color: var(--blue); }

/* Voix 3, grotesque, pour les intertitres et l interface. */
.t-3 {
  font-family: var(--sans);
  font-size: clamp(1.22rem, 1.7vw, 1.6rem);
  font-weight: 620;
  line-height: 1.16;
  letter-spacing: -.008em;
}
.t-4 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Voix 2, serif editorial, pour le texte long et les chapos. */
.lead {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.1vw, 1.85rem);
  line-height: 1.36;
  font-weight: 380;
  letter-spacing: -.005em;
  max-width: 26ch;
  color: var(--on-ink-soft);
}
.band--paper .lead { color: var(--on-paper-soft); }

.prose {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.05rem + .15vw, 1.18rem);
  line-height: 1.68;
  font-weight: 380;
  max-width: 60ch;
  color: var(--on-ink-soft);
}
.band--paper .prose { color: var(--on-paper-soft); font-weight: 400; }
.prose--tight { font-size: 1.02rem; line-height: 1.6; }
.prose a { color: var(--blue-lt); text-underline-offset: 3px; }
.band--paper .prose a { color: var(--blue); }
.prose strong { font-weight: 600; color: var(--on-ink); }
.band--paper .prose strong { color: var(--on-paper); }

/* Donnee technique, grotesque etroite, chiffres tabulaires. */
.meta {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .012em;
  font-feature-settings: "tnum";
  color: var(--on-ink-dim);
}
.band--paper .meta { color: var(--on-paper-dim); }
.meta--key {
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.figure-xl {
  font-size: clamp(3.4rem, 6.4vw, 6.4rem);
  line-height: .82;
  color: var(--white);
}
.band--paper .figure-xl { color: var(--on-paper); }

.dim  { color: var(--on-ink-dim); }
.band--paper .dim { color: var(--on-paper-dim); }
.soft { color: var(--on-ink-soft); }
.band--paper .soft { color: var(--on-paper-soft); }

/* ------------------------------------------------------------- squelette */

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

.band { padding-block: var(--band); position: relative; }
.band--ink {
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--on-ink);
}
.band--ink2 {
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-700) 60%, var(--ink-800) 100%);
  color: var(--on-ink);
}
.band--paper {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--on-paper);
}
.band--tight { padding-block: clamp(56px, 6.5vw, 104px); }
.band--flush-top { padding-top: 0; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid > *, .cols > *, .spread > *, .hero__in > * { min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }

.col-left  { grid-column: 1 / 6; }
.col-right { grid-column: 7 / 13; }
.col-wide  { grid-column: 1 / 9; }
.col-side  { grid-column: 9 / 13; }
.col-mid   { grid-column: 3 / 11; }

/* En-tete de section, un intitule de reperage et un titre compose. */
.head { margin-bottom: clamp(38px, 5vw, 76px); }
.head__rule {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.head__rule::after { content: ""; height: 1px; background: var(--rule-ink); }
.band--paper .head__rule::after { background: var(--rule-paper); }
.head__k {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--on-ink-dim);
}
.band--paper .head__k { color: var(--on-paper-dim); }
.head__side { margin-top: 20px; max-width: 46ch; }

/* --------------------------------------------------------------- medias */

/* Boite unique. L image remplit toujours son cadre sans jamais s etirer. */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-m);
  background: var(--ink-700);
  isolation: isolate;
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.media--r-l { border-radius: var(--r-l); }
.media--r-0 { border-radius: 0; }

/* Ratios de cadrage, choisis selon le contexte. */
.media--portrait { aspect-ratio: 4 / 5; }
.media--tall     { aspect-ratio: 3 / 4; }
.media--photo    { aspect-ratio: 3 / 2; }
.media--wide     { aspect-ratio: 16 / 9; }
.media--pano     { aspect-ratio: 21 / 9; }
.media--square   { aspect-ratio: 1; }

/* Ratio naturel, aucun recadrage. Utilise en galerie et en fiche projet. */
.media--free { aspect-ratio: var(--ar, auto); }
.media--free > img { height: auto; object-fit: contain; }

.media--shadow { box-shadow: var(--shadow-photo); }
.media--zoom > img { transition: transform 1.1s var(--ease-soft); }
a:hover > .media--zoom > img,
button:hover > .media--zoom > img,
.media--zoom:hover > img { transform: scale(1.035); }

/* Voile de lecture quand du texte passe sur la photo. */
.media--veil::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0) 38%, rgba(8, 9, 12, .82) 100%);
  pointer-events: none;
}

.caption {
  display: flex; justify-content: space-between; gap: 18px;
  padding-top: 12px;
  font-family: var(--sans);
  font-size: .76rem; letter-spacing: .012em;
  color: var(--on-ink-dim);
}
.band--paper .caption { color: var(--on-paper-dim); }
.caption span:last-child { text-align: right; white-space: nowrap; }

/* Photo qui traverse toute la largeur de l ecran. */
.bleed { padding-inline: 0; }
.bleed .media { border-radius: 0; }
.bleed .caption { padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ liens */

.link {
  display: inline-block;
  font-family: var(--sans);
  font-size: .88rem; font-weight: 620; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 5px;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.band--ink .link, .band--ink2 .link { background-image: linear-gradient(var(--blue-lt), var(--blue-lt)); }
.link:hover { background-size: 40% 2px; color: var(--blue-lt); }
.band--paper .link:hover { color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 15px 30px;
  font-family: var(--sans); font-size: .86rem; font-weight: 650;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--blue);
  border: 1px solid transparent; border-radius: var(--r-s);
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--rule-ink-2); color: var(--on-ink); }
.btn--ghost:hover { background: rgba(233, 231, 226, .06); border-color: var(--on-ink-soft); }
.band--paper .btn--ghost { border-color: var(--rule-paper-2); color: var(--on-paper); }
.band--paper .btn--ghost:hover { background: rgba(20, 22, 26, .05); }
.btn--sm { min-height: 44px; padding: 11px 20px; font-size: .78rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------------------------------------- entete site */

.masthead {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--ink-900) 86%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule-ink);
}
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.mark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-ink); }

.nav { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 32px); }
.nav a {
  font-family: var(--sans); font-size: .84rem; font-weight: 550; letter-spacing: .03em;
  text-decoration: none; color: var(--on-ink-soft);
  padding: 8px 0; position: relative;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
  background: var(--blue-lt); transition: right .35s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { right: 0; }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { right: 0; }

.burger {
  display: none; width: 52px; height: 52px; margin-right: -12px;
  background: none; border: 0; color: var(--on-ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 26px; height: 1.5px; background: currentColor; position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease);
}
.burger span::before { top: -8px; }
.burger span::after  { top: 8px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(8px) rotate(45deg); }
body.menu-open .burger span::after  { transform: translateY(-8px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 89;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900) 70%);
  display: flex; flex-direction: column;
  padding: 96px var(--gutter) 28px;
  transform: translateY(-101%); visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
  overflow-y: auto;
}
body.menu-open .menu { transform: translateY(0); visibility: visible; }
.menu__list { list-style: none; padding: 0; flex: 1; }
.menu__list li { border-bottom: 1px solid var(--rule-ink); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding: 20px 0;
  text-decoration: none;
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2rem, 9vw, 2.9rem); line-height: .9;
}
.menu__list a span {
  font-family: var(--sans); font-size: .7rem; font-weight: 500; letter-spacing: .1em;
  color: var(--on-ink-dim);
}
.menu__foot { padding-top: 28px; display: grid; gap: 16px; }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--ink-900); overflow: clip; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, var(--ink-900));
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: center;
  padding-top: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(32px, 4vw, 60px);
}
/* La photo sort par le bord droit de l ecran, elle n est pas dans une boite. */
.hero__figure {
  grid-column: 7 / 13;
  grid-row: 1;
  position: relative;
  margin-right: calc(var(--gutter) * -1);
  border-radius: var(--r-l) 0 0 var(--r-l);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-700);
}
.hero__figure > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 26%); }
.hero__figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 12, 14, .92) 0%, rgba(11, 12, 14, .25) 34%, transparent 62%);
}

.hero__type { grid-column: 1 / 9; grid-row: 1; position: relative; z-index: 3; }
.hero__kicker {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-bottom: clamp(16px, 2vw, 26px);
  color: var(--on-ink-soft);
}
.hero__kicker span { display: inline-flex; align-items: center; gap: 10px; }
.hero__kicker span + span::before { content: ""; width: 14px; height: 1px; background: var(--rule-ink-2); }
.hero__name { color: var(--white); text-shadow: 0 10px 60px rgba(6, 8, 12, .6); }
.hero__name span { display: block; }
.hero__name .l2 { padding-left: .09em; }
.hero__intro {
  margin-top: clamp(22px, 2.6vw, 34px);
  max-width: 33ch;
}
.hero__actions { margin-top: clamp(26px, 3vw, 42px); }

.hero__plate {
  position: absolute; z-index: 1;
  right: 2%; top: 6%;
  font-family: var(--display); font-weight: 800; font-size: clamp(9rem, 17vw, 15rem);
  line-height: .74; color: transparent;
  -webkit-text-stroke: 1.4px rgba(247, 246, 243, .3);
  user-select: none; pointer-events: none;
}

/* Bandeau de chiffres, decale et non centre. */
.rail { position: relative; z-index: 3; border-top: 1px solid var(--rule-ink); display: grid; grid-template-columns: repeat(4, 1fr); }
.rail > div { padding: 28px 26px 32px 0; border-right: 1px solid var(--rule-ink); }
.rail > div + div { padding-left: clamp(20px, 2.2vw, 38px); }
.rail > div:last-child { border-right: 0; }
.rail__v { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .84; color: var(--white); font-feature-settings: "tnum"; }
.rail__l { margin-top: 10px; }

/* --------------------------------------------------------------- editorial */

.statement {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.18;
  font-weight: 350;
  letter-spacing: -.014em;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--blue); }
.band--ink .statement em, .band--ink2 .statement em { color: var(--blue-lt); }

/* Fiche de donnees. Filets, pas d encadrement. */
.specs { border-top: 1px solid var(--rule-ink); }
.band--paper .specs { border-color: var(--rule-paper); }
.specs__row {
  display: grid; grid-template-columns: minmax(130px, 32%) 1fr; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--rule-ink);
  transition: background .3s var(--ease);
}
.band--paper .specs__row { border-color: var(--rule-paper); }
.specs__row:hover { background: rgba(233, 231, 226, .025); }
.band--paper .specs__row:hover { background: rgba(20, 22, 26, .03); }
.specs__k { padding-top: .18em; }
.specs__v { font-family: var(--sans); font-size: .97rem; font-weight: 500; color: var(--on-ink); }
.band--paper .specs__v { color: var(--on-paper); }
.specs__grp {
  padding: 26px 0 10px;
  font-family: var(--sans); font-size: .72rem; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue-lt);
}
.band--paper .specs__grp { color: var(--blue); }

/* Chronologie, annees en marge, filet continu. */
.timeline { border-top: 1px solid var(--rule-paper); }
.band--ink .timeline, .band--ink2 .timeline { border-color: var(--rule-ink); }
.tl {
  display: grid; grid-template-columns: minmax(110px, 15%) 1fr;
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(22px, 2.8vw, 34px) 0;
  border-bottom: 1px solid var(--rule-paper);
}
.band--ink .tl, .band--ink2 .tl { border-color: var(--rule-ink); }
.tl__period {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1;
  padding-top: .12em; color: var(--on-paper-dim); font-feature-settings: "tnum";
}
.band--ink .tl__period, .band--ink2 .tl__period { color: var(--on-ink-dim); }
.tl--now .tl__period { color: var(--blue); }
.band--ink .tl--now .tl__period, .band--ink2 .tl--now .tl__period { color: var(--blue-lt); }
.tl__b { margin-top: 8px; max-width: 56ch; }

/* ---------------------------------------------------------------- projets */

/* Composition en chevauchement, le texte mord sur la photo. */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.spread + .spread { margin-top: clamp(64px, 9vw, 150px); }
.spread__media { grid-column: 1 / 9; grid-row: 1; }
.spread__body {
  grid-column: 8 / 13; grid-row: 1; position: relative; z-index: 2;
  padding: clamp(26px, 2.6vw, 40px);
  background: color-mix(in srgb, var(--ink-800) 94%, transparent);
  border-radius: var(--r-m);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-photo);
}
.band--paper .spread__body { background: color-mix(in srgb, var(--paper) 95%, transparent); }
.spread--flip .spread__media { grid-column: 5 / 13; }
.spread--flip .spread__body  { grid-column: 1 / 6; }
.spread__index {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: .8; color: transparent;
  -webkit-text-stroke: 1px var(--rule-paper-2);
  display: block; margin-bottom: 12px;
}
.band--ink .spread__index, .band--ink2 .spread__index { -webkit-text-stroke-color: var(--rule-ink-2); }
.spread__t { margin-bottom: 10px; }
.spread__meta { margin-bottom: 18px; }

/* Projets mis en avant sur l'accueil : grille 2 x 2, lisible et compacte. */
.home-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px) var(--gap);
}
.home-project { min-width: 0; }
.home-project__media {
  display: block; position: relative; overflow: hidden; border-radius: var(--r-l);
  text-decoration: none;
}
.home-project__media .media, .home-project__media picture, .home-project__media img { width: 100%; }
.home-project__media img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.home-project:hover .home-project__media img { transform: scale(1.025); }
.home-project__index {
  position: absolute; right: 16px; bottom: 10px; z-index: 2;
  font-family: var(--display); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.92); text-shadow: 0 2px 18px rgba(0,0,0,.38);
}
.home-project__body { padding: clamp(18px, 2vw, 28px) 2px 0; }
.home-project__rider { margin-bottom: 10px; }
.home-project__title { margin-bottom: 8px; }
.home-project__title a { color: inherit; text-decoration: none; }
.home-project__meta { margin-bottom: 16px; }
.home-project__summary { max-width: 58ch; }
.home-project__status { margin-top: 18px; }
.home-project__link { margin-top: 24px; }
@media (max-width: 760px) {
  .home-projects { grid-template-columns: 1fr; gap: 52px; }
  .home-project__media img { aspect-ratio: 4 / 3; }
}

/* Statut, seul endroit ou le jaune apparait. */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .075em; text-transform: uppercase;
  padding: 7px 13px 7px 11px;
  border: 1px solid currentColor; border-radius: 100px;
  color: var(--on-paper-dim);
}
.band--ink .status, .band--ink2 .status { color: var(--on-ink-dim); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--en-construction, .status--en-preparation, .status--en-developpement,
.status--en-negociation, .status--provisoire { color: var(--flag); }
.status--termine, .status--en-competition, .status--confirme { color: var(--blue); }
.band--ink .status--termine, .band--ink .status--en-competition, .band--ink .status--confirme,
.band--ink2 .status--termine, .band--ink2 .status--en-competition, .band--ink2 .status--confirme { color: var(--blue-lt); }
.status--annule, .status--archive { opacity: .55; }

.progress { margin-top: 20px; }
.progress__bar { height: 3px; border-radius: 3px; background: var(--rule-paper); position: relative; overflow: hidden; }
.band--ink .progress__bar, .band--ink2 .progress__bar { background: var(--rule-ink); }
.progress__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--blue); display: block; }
.band--ink .progress__bar i, .band--ink2 .progress__bar i { background: var(--blue-lt); }
.progress__l { display: flex; justify-content: space-between; margin-top: 9px; }

.steps { list-style: none; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--rule-paper);
  font-family: var(--sans); font-size: .98rem;
}
.band--ink .steps li, .band--ink2 .steps li { border-color: var(--rule-ink); }
.steps li::before { content: "\2014"; color: var(--on-paper-dim); font-size: .8rem; }
.band--ink .steps li::before, .band--ink2 .steps li::before { color: var(--on-ink-dim); }
.steps li.done::before { content: "\2713"; color: var(--blue); font-size: .95rem; }
.band--ink .steps li.done::before, .band--ink2 .steps li.done::before { color: var(--blue-lt); }
.steps li.done { color: var(--on-paper-dim); }
.band--ink .steps li.done, .band--ink2 .steps li.done { color: var(--on-ink-dim); }

/* --------------------------------------------------------- shows, listes */

.rows { border-top: 1px solid var(--rule-ink); }
.band--paper .rows { border-color: var(--rule-paper); }
.row {
  display: grid; grid-template-columns: minmax(140px, 15%) 1fr auto;
  gap: clamp(16px, 3vw, 48px); align-items: center;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule-ink);
  text-decoration: none;
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
.band--paper .row { border-color: var(--rule-paper); }
a.row:hover { padding-left: 14px; background: rgba(233, 231, 226, .02); }
.band--paper a.row:hover { background: rgba(20, 22, 26, .025); }
.row__t { margin-bottom: 6px; }
.row__d { max-width: 62ch; }

/* ---------------------------------------------------------------- galerie */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: clamp(28px, 4vw, 48px); }
.filters a {
  display: inline-flex; align-items: center; min-height: 42px; padding: 9px 18px;
  font-family: var(--sans); font-size: .8rem; font-weight: 550; letter-spacing: .03em;
  text-decoration: none; color: var(--on-ink-soft);
  border: 1px solid var(--rule-ink); border-radius: 100px;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.filters a:hover { color: var(--white); border-color: var(--on-ink-dim); }
.filters a[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Mosaique au ratio naturel, aucun recadrage, aucune deformation. */
.mosaic { columns: 3; column-gap: var(--gap); }
.mosaic figure { break-inside: avoid; margin: 0 0 var(--gap); }
.mosaic button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--r-m); overflow: hidden;
}
.mosaic .media { border-radius: var(--r-m); }
.mosaic img { transition: transform 1.1s var(--ease-soft), opacity .4s; }
.mosaic button:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(7, 8, 10, .97);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 76vh; width: auto; height: auto; object-fit: contain; border-radius: var(--r-s); }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  font-family: var(--sans); font-size: .78rem; color: var(--on-ink-soft);
}
.lightbox__nav { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.lightbox__nav button {
  width: 20%; min-width: 68px; background: none; border: 0; color: var(--on-ink-dim);
  font-size: 1.8rem; cursor: pointer; transition: color .25s;
}
.lightbox__nav button:hover { color: var(--white); }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 52px; height: 52px; background: none; border: 0; color: var(--on-ink);
  font-size: 1.4rem; cursor: pointer;
}

/* ------------------------------------------------------------ partenaires */

.partners { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 3vw, 52px); }
.partner { grid-column: span 4; }
.partner__logo {
  height: 52px; width: auto; max-width: 180px; object-fit: contain; object-position: left center;
  margin-bottom: 16px;
}
.partner__n { margin-bottom: 4px; }
.partner__d { margin-top: 12px; }
.partner__rule { height: 1px; background: var(--rule-paper); margin-bottom: 22px; }
.band--ink .partner__rule, .band--ink2 .partner__rule { background: var(--rule-ink); }

/* Zones de visibilite posees sur la photo du support. */
.spot { position: relative; }
.zone {
  position: absolute;
  border: 1.5px solid var(--blue-lt);
  border-radius: 3px;
  background: color-mix(in srgb, var(--blue) 20%, transparent);
  box-shadow: 0 0 0 1px rgba(11, 12, 14, .35);
}
.zone b {
  position: absolute; top: 100%; left: 0; margin-top: 5px;
  font-family: var(--sans); font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink-900); color: var(--white);
  padding: 3px 7px; border-radius: 2px; white-space: nowrap;
}

/* ---------------------------------------------------------------- agenda */

.agenda { border-top: 1px solid var(--rule-ink); }
.band--paper .agenda { border-color: var(--rule-paper); }
.ev {
  display: grid; grid-template-columns: minmax(150px, 17%) 1fr auto;
  gap: clamp(16px, 2.6vw, 48px); align-items: baseline;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--rule-ink);
}
.band--paper .ev { border-color: var(--rule-paper); }
.ev__when { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: var(--on-ink-soft); }
.band--paper .ev__when { color: var(--on-paper-soft); }
.ev__d { margin-top: 8px; max-width: 60ch; }

/* -------------------------------------------------------------- formulaire */

.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; }
.field--half { grid-column: span 6; }
.field label { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-dim); }
.band--paper .field label { color: var(--on-paper-dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 15px 16px;
  font-family: var(--sans); font-size: 1rem; color: var(--on-ink);
  background: rgba(233, 231, 226, .04);
  border: 1px solid var(--rule-ink); border-radius: var(--r-s);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.band--paper .field input, .band--paper .field select, .band--paper .field textarea {
  background: rgba(255, 255, 255, .45); border-color: var(--rule-paper-2); color: var(--on-paper);
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-lt); outline: none; background: rgba(233, 231, 226, .06); }
.hp { position: absolute; left: -9999px; }

.notice {
  padding: 18px 20px; border-left: 3px solid var(--blue-lt);
  background: rgba(233, 231, 226, .05); border-radius: 0 var(--r-s) var(--r-s) 0;
  margin-bottom: 22px;
}
.notice--error { border-color: #cf5138; }

/* ------------------------------------------------------------------ pied */

.foot { background: var(--ink-900); border-top: 1px solid var(--rule-ink); }
.foot__in { padding-block: clamp(52px, 6vw, 90px) 30px; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.foot__brand { grid-column: 1 / 5; }
.foot__nav   { grid-column: 6 / 9; }
.foot__soc   { grid-column: 9 / 13; }
.foot__nav ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.foot__nav a, .foot__brand a { text-decoration: none; color: var(--on-ink-soft); transition: color .25s; }
.foot__nav a:hover, .foot__brand a:hover { color: var(--white); }
.foot__mark { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: .84; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.foot__base {
  grid-column: 1 / -1; margin-top: clamp(30px, 4vw, 54px);
  border-top: 1px solid var(--rule-ink); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
}
.soc { display: flex; flex-wrap: wrap; gap: 10px; }
.soc a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--rule-ink); border-radius: 50%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.soc a:hover { border-color: var(--blue-lt); background: rgba(143, 166, 255, .08); }
.soc svg { opacity: .8; }
.soc a:hover svg { opacity: 1; }

.thumbbar { display: none; }

/* --------------------------------------------------------------- reveal */

.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .mosaic { columns: 2; }
  .partner { grid-column: span 6; }
  .hero__type { grid-column: 1 / 8; }
  .hero__figure { grid-column: 6 / 13; }
  .spread__media { grid-column: 1 / 10; }
  .spread__body  { grid-column: 7 / 13; }
  .spread--flip .spread__media { grid-column: 4 / 13; }
  .spread--flip .spread__body  { grid-column: 1 / 7; }
  .col-mid { grid-column: 1 / 12; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .visitor-count--mobile { display: inline-flex; }
  .burger { display: flex; }
  .masthead__in { height: 64px; }
  
  /* Sur telephone la photo garde toute sa place, le nom vient mordre sur son
     bas, le texte courant revient sur le fond sombre. */
  .hero__in { padding-top: 14px; align-items: start; }
  .hero__figure {
    grid-column: 1 / 13; grid-row: 1;
    margin-right: calc(var(--gutter) * -1); margin-left: calc(var(--gutter) * -1);
    border-radius: 0; aspect-ratio: 4 / 5;
  }
  .hero__figure::after { background: linear-gradient(180deg, rgba(11,12,14,.32) 0%, rgba(11,12,14,0) 26%, rgba(11,12,14,.55) 68%, rgba(11,12,14,.97) 100%); }
  .hero__type {
    grid-column: 1 / 13; grid-row: 2;
    margin-top: calc(clamp(58px, 17vw, 104px) * -1);
  }
  .hero__kicker { color: var(--on-ink); }
  .hero__intro { max-width: none; font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__plate { right: 3%; top: 3%; font-size: 30vw; }

  .rail { grid-template-columns: repeat(2, 1fr); }
  .rail > div { padding: 20px 16px 22px 0; border-bottom: 1px solid var(--rule-ink); }
  .rail > div:nth-child(2n) { border-right: 0; padding-left: 18px; }
  .rail > div:nth-last-child(-n+2) { border-bottom: 0; }

  .cols > *, .grid > * { grid-column: 1 / -1 !important; }
  .spread__media, .spread__body,
  .spread--flip .spread__media, .spread--flip .spread__body { grid-column: 1 / 13; grid-row: auto; }
  .spread__body {
    margin: -40px 12px 0; box-shadow: 0 -20px 50px -30px rgba(6,8,12,.9);
  }
  .spread + .spread { margin-top: clamp(48px, 8vw, 90px); }

  .row, .ev { grid-template-columns: 1fr; gap: 10px; }
  /* Sur telephone les etiquettes de zone deborderaient de l ecran.
     Les memes intitules sont listes juste en dessous, dans la fiche. */
  .zone b { display: none; }
  .row__side, .ev__side { justify-self: start; }
  .form__row > * { grid-column: 1 / -1; }
  .foot__in > * { grid-column: 1 / -1 !important; }
  .specs__row { grid-template-columns: 1fr; gap: 4px; }
  .tl { grid-template-columns: 1fr; gap: 8px; }
  .tl__period { font-size: 1.35rem; }
  .mosaic { columns: 1; }
  .lead { max-width: none; }

  .thumbbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 88;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
    padding: 11px var(--gutter) calc(11px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--ink-900) 92%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--rule-ink);
  }
  body.menu-open .thumbbar { display: none; }
  body { padding-bottom: 78px; }
}

@media (max-width: 420px) {
  :root { --gutter: 20px; }
  .t-hero { font-size: 17vw; }
  .statement { font-size: 1.6rem; }
}

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

@media print {
  .masthead, .thumbbar, .menu, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- pilotes */

/* Fiche visuelle d un pilote, utilisee sur l accueil et sur la page Pilotes. */
.riders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); }
.riders--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rider-card { display: block; text-decoration: none; position: relative; }
.rider-card .media { border-radius: var(--r-m); }
.rider-card__num {
  position: absolute; right: 16px; top: 4px; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 5vw, 5.2rem);
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1.6px rgba(247, 246, 243, .78);
  filter: drop-shadow(0 2px 10px rgba(6, 8, 12, .6));
  pointer-events: none;
}
.rider-card__body { padding-top: 16px; display: grid; gap: 6px; }
.rider-card__n {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: .95;
}
.rider-card__d { color: var(--on-ink-dim); }
.band--paper .rider-card__d { color: var(--on-paper-dim); }
.rider-card:hover .rider-card__n { color: var(--blue-lt); }
.band--paper .rider-card:hover .rider-card__n { color: var(--blue); }

/* En-tete d une fiche pilote, portrait a droite et identite a gauche. */
.rider-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.rider-head__id { grid-column: 1 / 8; }
.rider-head__num {
  font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 9vw, 8rem);
  line-height: .82; color: var(--blue-lt); display: block; margin-bottom: 8px;
}
.rider-head__media { grid-column: 8 / 13; }
.rider-head__role { margin-bottom: 18px; }

.rider-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rider-social a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--rule-ink); border-radius: 50%;
}
.band--paper .rider-social a { border-color: var(--rule-paper); }
.rider-social svg { opacity: .8; }
.rider-social a:hover svg { opacity: 1; }

/* Etiquette de rattachement, un pilote ou le team. */
.tag-rider {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-ink-dim);
}
.band--paper .tag-rider { color: var(--on-paper-dim); }
.tag-rider b { font-weight: 700; color: var(--blue-lt); }
.band--paper .tag-rider b { color: var(--blue); }

@media (max-width: 1180px) {
  .riders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .riders { grid-template-columns: 1fr; }
  .rider-head__id, .rider-head__media { grid-column: 1 / 13; }
  .rider-head__media { order: -1; margin-bottom: 22px; }
}

/* ------------------------------------------------------------ logo du team */

/* Le logo ouvre le hero, le titre en dessous porte la discipline. */
.hero__logo {
  width: min(420px, 58%); height: auto;
  margin-bottom: clamp(16px, 2vw, 26px);
  filter: drop-shadow(0 14px 40px rgba(6, 8, 12, .6));
}
@media (max-width: 900px) {
  .hero__logo { width: min(300px, 68%); margin-bottom: 18px; }
}

.mark { align-items: center; gap: 14px; }
.mark__logo {
  height: 34px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(6, 8, 12, .5));
}
.mark__role {
  font-family: var(--sans); font-size: .7rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--on-ink-dim);
  padding-left: 14px; border-left: 1px solid var(--rule-ink);
  line-height: 1.2; white-space: nowrap;
}
.foot__logo { height: 46px; width: auto; margin-bottom: 18px; }

@media (max-width: 900px) {
  .mark__logo { height: 28px; }
  .mark__role { display: none; }
}


/* --------------------------------------- styles disponibles dans l editeur */

.prose h2, .prose h3, .prose h4 {
  font-family: var(--sans); font-weight: 660; line-height: 1.18;
  color: var(--on-ink); margin: 1.8em 0 .6em;
}
.band--paper .prose h2, .band--paper .prose h3, .band--paper .prose h4 { color: var(--on-paper); }
.prose h2 { font-size: 1.5em; }
.prose h3 { font-size: 1.28em; }
.prose h4 { font-size: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.05em; }
.prose li { margin-bottom: .4em; }
.prose blockquote {
  margin: 1.6em 0; padding-left: 22px;
  border-left: 2px solid var(--blue-lt);
  font-size: 1.15em; line-height: 1.4; font-style: italic;
}
.band--paper .prose blockquote { border-left-color: var(--blue); }
.prose hr { border: 0; border-top: 1px solid var(--rule-ink); margin: 2em 0; }
.band--paper .prose hr { border-top-color: var(--rule-paper); }
.prose .lead { font-size: 1.22em; line-height: 1.45; color: var(--on-ink); }
.band--paper .prose .lead { color: var(--on-paper); }
.prose .petit { font-size: .88em; color: var(--on-ink-dim); }
.band--paper .prose .petit { color: var(--on-paper-dim); }
.prose .accent { color: var(--blue-lt); font-weight: 500; }
.band--paper .prose .accent { color: var(--blue); }
.prose .texte-centre { text-align: center; }
.prose .texte-droite { text-align: right; }


/* Compteur public de visiteurs uniques dans l'entete. */
.visitor-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .025em;
  color: var(--on-ink-soft);
}
.visitor-count__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--blue-lt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-lt) 12%, transparent);
}
.visitor-count--header {
  margin-left: 2px;
  padding-left: clamp(4px, .6vw, 10px);
}
.visitor-count--mobile { display: none; margin-left: auto; }

/* ------------------------------------------- cadre sans photo, en attente */

.media--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(143, 166, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--rule-ink);
}
.band--paper .media--empty {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(30, 62, 200, .1), transparent 60%),
    linear-gradient(180deg, var(--paper-2), var(--paper-3));
  border-color: var(--rule-paper);
}
.media--empty > img {
  width: min(46%, 190px);
  height: auto;
  object-fit: contain;
  opacity: .5;
}
.band--paper .media--empty > img { filter: invert(1) grayscale(1); opacity: .3; }

/* =========================================================================
   BOUTIQUE
   Une marque textile issue du paddock. Noir, papier, un seul bleu.
   La photo occupe la place, la typographie porte le reste. Aucune carte
   flottante, aucun halo, aucun degrade.

   Regle de structure, toutes les grilles de la boutique utilisent
   minmax(0, ...) et une colonne de texte porte sa propre mesure en ch.
   C est ce qui evite une colonne ecrasee par un voisin large, cause du
   paragraphe coupe mot a mot dans la version precedente.
   ========================================================================= */

.shop-preview {
  margin: 0; padding: 10px var(--gutter);
  font-family: var(--sans); font-size: .82rem; font-weight: 550;
  background: var(--flag); color: var(--ink-900); text-align: center;
}

/* Utilitaire manquant au site, libelle reserve aux lecteurs d ecran.
   Sans lui, les intitules « Quantite », « Trier », « Rechercher » etaient
   affiches en clair au milieu de la page. */
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Les cibles d ancre de la boutique se decalent de la hauteur des deux barres
   collees, sinon le titre vise se retrouve cache dessous. */
#nouveautes, #rayons, #collections, #pilotes { scroll-margin-top: calc(var(--hdr-h) + var(--shopnav-h) + 24px); }

/* ------------------------------------------------------------- vitrine */

.store-hero { background: var(--ink-900); color: var(--on-ink); }
.store-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(30px, 4vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 5.5vw, 92px);
}
.store-hero__text { min-width: 0; }
.store-hero__k {
  font-family: var(--sans); font-size: clamp(.72rem, .9vw, .84rem); font-weight: 650;
  letter-spacing: .24em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: clamp(14px, 1.6vw, 22px);
}
.store-hero__t {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.9rem, 6.2vw, 6.4rem); line-height: .85; letter-spacing: -.015em;
  color: var(--white); margin: 0;
}
.store-hero__p {
  max-width: 42ch; margin: clamp(18px, 2.2vw, 30px) 0 0;
  font-family: var(--serif); font-size: clamp(1.08rem, 1.25vw, 1.34rem); line-height: 1.5;
  font-weight: 380; color: var(--on-ink-soft);
}
/* Rangee de boutons, utilisee par la vitrine et par l etat vide. */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 40px); }
.store-hero__media { min-width: 0; }
.store-hero__media .media { border-radius: 0; }

/* Bouton de la boutique, un seul dessin partout */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-family: var(--sans); font-size: .8rem; font-weight: 650; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--white);
  background: transparent; border: 1px solid rgba(247, 246, 243, .38); cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.cta:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }
.cta--key { background: var(--blue); border-color: var(--blue); }
.cta--key:hover { background: var(--blue-lt); border-color: var(--blue-lt); color: var(--ink-900); }
.band--paper .cta { color: var(--on-paper); border-color: var(--rule-paper-2); }
.band--paper .cta:hover { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.band--paper .cta--key { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --------------------------------------------------------- barre rayons */

.shopnav {
  position: sticky; top: var(--hdr-h); z-index: 80;
  background: color-mix(in srgb, var(--ink-800) 94%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule-ink);
}
.shopnav__in { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2.4vw, 36px); align-items: center; justify-content: space-between; }
.shopnav__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(14px, 2vw, 30px); margin: 0; padding: 0; min-width: 0; }
.shopnav__item { position: relative; }
.shopnav__item.has-sub > .shopnav__link { padding-right: 14px; }
.shopnav__item.has-sub > .shopnav__link::after {
  content: ""; position: absolute; margin: 9px 0 0 5px;
  border: 3px solid transparent; border-top-color: currentColor; opacity: .55;
}
.shopnav__search { flex: 0 0 auto; }
.shopnav__link {
  display: inline-block; padding: 16px 0;
  font-family: var(--sans); font-size: .76rem; font-weight: 650; letter-spacing: .13em;
  text-transform: uppercase; color: var(--on-ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.shopnav__link:hover { color: var(--white); }
.shopnav__link[aria-current] { color: var(--white); border-bottom-color: var(--blue-lt); }

/* Sous-rayons, caches par defaut, revelés au survol ou au clavier */
.shopsub {
  position: absolute; top: 100%; left: -18px; z-index: 50; min-width: 216px;
  padding: 10px 0; background: var(--ink-900); border: 1px solid var(--rule-ink-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.shopnav__item:hover > .shopsub,
.shopnav__item:focus-within > .shopsub { opacity: 1; visibility: visible; transform: translateY(0); }
.shopsub__in { display: grid; }
.shopsub a {
  padding: 10px 20px; font-family: var(--sans); font-size: .86rem;
  color: var(--on-ink-soft); text-decoration: none; white-space: nowrap;
}
.shopsub a:hover { background: var(--ink-700); color: var(--white); }
.shopsub__all {
  margin-top: 6px; padding-top: 12px !important; border-top: 1px solid var(--rule-ink);
  font-size: .74rem !important; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-lt) !important;
}

/* ------------------------------------------------------------ recherche */

.searchbox { display: flex; align-items: center; position: relative; min-width: 0; }
.searchbox__f {
  width: clamp(150px, 20vw, 260px); min-height: 40px; padding: 0 42px 0 14px;
  font-family: var(--sans); font-size: .86rem; color: var(--on-ink);
  background: rgba(233, 231, 226, .05); border: 1px solid var(--rule-ink-2); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.searchbox__f::placeholder { color: var(--on-ink-dim); }
.searchbox__f::-webkit-search-cancel-button { -webkit-appearance: none; }
.searchbox__f:focus { outline: none; border-color: var(--blue-lt); background: rgba(233, 231, 226, .09); }
.searchbox__b {
  position: absolute; right: 0; top: 0; bottom: 0; width: 40px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 0; color: var(--on-ink-dim); padding: 0;
}
.searchbox__b:hover { color: var(--white); }
.searchbox--lg .searchbox__f { width: 100%; min-height: 56px; font-size: 1rem; padding-right: 56px; padding-left: 18px; }
.searchbox--lg .searchbox__b { width: 56px; }
.band--paper .searchbox__f { color: var(--on-paper); background: rgba(255, 255, 255, .55); border-color: var(--rule-paper-2); }
.band--paper .searchbox__f::placeholder { color: var(--on-paper-dim); }
.band--paper .searchbox__b { color: var(--on-paper-dim); }
.band--paper .searchbox__b:hover { color: var(--on-paper); }

/* ------------------------------------------------------ blocs de rayon */

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tile { position: relative; display: block; overflow: hidden; text-decoration: none; color: var(--white); }
.tile__media { display: block; }
.tile__media .media { border-radius: 0; }
.tile__media img { transition: transform .5s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile__body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 3; display: grid; gap: 5px; }
.tile__n {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: .94;
}
.tile__s { font-family: var(--sans); font-size: .76rem; color: rgba(247, 246, 243, .78); }

/* ------------------------------------------------------- retrait paddock */

.paddock-band__text { min-width: 0; }
.paddock-band__pass { min-width: 0; }
.paddock-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 64px); align-items: center; }
.paddock-band__t {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem); line-height: .95; color: var(--white); margin: 0;
}
.paddock-band__p { max-width: 40ch; margin: 16px 0 0; font-family: var(--serif); font-size: 1.06rem; line-height: 1.55; color: var(--on-ink-soft); }

/* ---------------------------------------------------------- etat vide */

.empty { max-width: 46ch; padding-block: clamp(10px, 2vw, 30px); }
.empty__k { font-family: var(--sans); font-size: .74rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.empty__t { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .92; margin: 0; }
.empty__p { max-width: 44ch; margin: 18px 0 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; color: var(--on-paper-soft); }

/* -------------------------------------------------------- fil d Ariane */

.crumbs { padding-block: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--on-ink-dim); }
.crumbs a, .crumbs span {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .03em; color: var(--on-ink-dim); text-decoration: none;
}
.crumbs a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--on-ink); }
.band--paper .crumbs a, .band--paper .crumbs span, .band--paper .crumbs li + li::before { color: var(--on-paper-dim); }
.band--paper .crumbs [aria-current] { color: var(--on-paper); }

/* ------------------------------------------------------------- rayons */

.rayon { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.rayon__k {
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-paper-dim); margin-bottom: 14px;
}
.band--ink .rayon__k, .band--ink2 .rayon__k { color: var(--on-ink-dim); }
.rayon__t {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: .9;
}
.rayon__i { max-width: 56ch; margin-top: 16px; font-family: var(--serif); font-size: 1.06rem; line-height: 1.6; color: var(--on-paper-soft); }
.band--ink .rayon__i, .band--ink2 .rayon__i { color: var(--on-ink-soft); }
.rayon__n { margin-top: 14px; font-family: var(--sans); font-size: .82rem; color: var(--on-paper-dim); }

.sec-head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; justify-content: space-between; margin-bottom: clamp(22px, 3vw, 36px); }
.sec-head h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: .95;
}
.sec-head a { font-family: var(--sans); font-size: .8rem; font-weight: 620; letter-spacing: .09em; text-transform: uppercase; text-underline-offset: 5px; }

/* ------------------------------------------------------ grille produits */

.grid-shop { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(26px, 2.6vw, 40px) clamp(14px, 1.6vw, 26px); }
.grid-shop--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { display: block; min-width: 0; text-decoration: none; color: inherit; }
.card__media { position: relative; display: block; overflow: hidden; background: var(--paper-3); }
.band--ink .card__media, .band--ink2 .card__media { background: var(--ink-700); }
.card__media .media { border-radius: 0; }
.card__alt { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.card__alt img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 760px) {
  .card:hover .card__alt { opacity: 1; }
}
.card.is-out .card__media .media img { opacity: .5; filter: grayscale(1); }
.card__out {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 9px 12px;
  font-family: var(--sans); font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; background: rgba(11,12,14,.82); color: var(--white);
}
.card__flags { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.flag {
  display: inline-block; padding: 5px 9px;
  font-family: var(--sans); font-size: .63rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  background: var(--ink-900); color: var(--white);
}
.flag--new { background: var(--blue); }
.flag--paddock { background: var(--blue); }
.flag--limite, .flag--numerote, .flag--signe, .flag--pilote { background: var(--white); color: var(--ink-900); }

.card__brand {
  display: block; margin-top: 13px;
  font-family: var(--sans); font-size: .66rem; font-weight: 620; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-paper-dim);
}
.band--ink .card__brand, .band--ink2 .card__brand { color: var(--on-ink-dim); }
.card__name { display: block; margin-top: 4px; font-family: var(--sans); font-size: .98rem; font-weight: 550; line-height: 1.35; }
.card:hover .card__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.card__price { display: block; margin-top: 5px; font-family: var(--sans); font-size: .95rem; font-weight: 650; }

.price { font-feature-settings: "tnum"; white-space: nowrap; }
.price__was { font-weight: 400; color: var(--on-paper-dim); margin-left: 7px; }
.band--ink .price__was, .band--ink2 .price__was { color: var(--on-ink-dim); }

.shop-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.shop-badge {
  display: inline-flex; align-items: center; padding: 6px 11px;
  font-family: var(--sans); font-size: .66rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--rule-ink-2); color: var(--on-ink);
}
.shop-badge--paddock { background: var(--blue); border-color: var(--blue); color: #fff; }
.shop-badge--pilote, .shop-badge--signe, .shop-badge--limite, .shop-badge--numerote { letter-spacing: .1em; }
.band--paper .shop-badge { border-color: var(--rule-paper-2); color: var(--on-paper); }

/* --------------------------------------------------------- collections */

.colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.coll-card { position: relative; display: block; text-decoration: none; color: var(--white); overflow: hidden; }
.coll-card .media { border-radius: 0; }
.coll-card__body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 3; display: grid; gap: 5px; }
.coll-card__n { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: .92; text-transform: uppercase; }
.coll-card .meta { color: rgba(247,246,243,.82); }

/* Rayon pilote, une grande photo par pilote */
.riders-shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.rider-tile { position: relative; display: block; text-decoration: none; color: var(--white); overflow: hidden; }
.rider-tile .media { border-radius: 0; }
.rider-tile__body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 3; }
.rider-tile__n { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: .9; text-transform: uppercase; }
.rider-tile__c { display: block; margin-top: 8px; font-family: var(--sans); font-size: .78rem; font-weight: 620; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-lt); }

/* ------------------------------------------------------------ filtres */

.filters-form { display: block; }
.filters-bar {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: clamp(24px, 3vw, 38px); border-bottom: 1px solid var(--rule-paper);
}
.band--ink .filters-bar, .band--ink2 .filters-bar { border-color: var(--rule-ink); }
.filters-open {
  min-height: 44px; padding: 0 20px; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--rule-paper-2); color: inherit;
}
.filters-open:hover { border-color: var(--on-paper); }
.filters-count { font-family: var(--sans); font-size: .84rem; color: var(--on-paper-dim); margin: 0; }
.filters-sort select { min-height: 44px; padding: 0 12px; font-family: var(--sans); font-size: .84rem; }

.filters-panel { border: 1px solid var(--rule-paper-2); padding: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(24px, 3vw, 38px); }
.filters-panel[hidden] { display: none; }
.filters-panel__head { display: none; }
.filters-panel__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend {
  padding: 0 0 12px; font-family: var(--sans); font-size: .7rem; font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--on-paper-dim);
}
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { position: relative; cursor: pointer; }
.fchip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fchip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  font-family: var(--sans); font-size: .86rem; border: 1px solid var(--rule-paper-2);
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.fchip input:checked + span { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.fchip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.fchip--color i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.fprice input { width: 130px; min-height: 42px; padding: 0 12px; font-family: var(--sans); }
.filters-panel__foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 2.4vw, 26px); }
.filters-panel__foot .btn { min-height: 50px; }

/* ------------------------------------------------------- fiche produit */

.product__in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 68px); align-items: start;
}
.product__gallery { min-width: 0; }
.product__main .media { border-radius: 0; }
.product__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.product__thumb {
  width: 78px; height: 78px; padding: 0; overflow: hidden; cursor: pointer;
  border: 1px solid var(--rule-ink); background: var(--ink-700);
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__thumb[aria-current="true"] { border-color: var(--blue-lt); }

.product__info { min-width: 0; position: sticky; top: calc(var(--hdr-h) + var(--shopnav-h) + 18px); }
.product__brand {
  font-family: var(--sans); font-size: .68rem; font-weight: 650; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-ink-dim); margin-bottom: 12px;
}
.product__t {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: .94; color: var(--white);
}
.product__sub { max-width: 46ch; margin-top: 12px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--on-ink-soft); }
.product__price { margin-top: 18px; font-family: var(--sans); font-size: 1.5rem; font-weight: 650; }
.product__badges { margin-top: 16px; }

.paddock-only { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--blue-lt); }
.paddock-only__t { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1; text-transform: uppercase; color: var(--blue-lt); }
.paddock-only__d { max-width: 46ch; margin: 0; font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--on-ink-soft); }
.paddock-only__list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-family: var(--sans); font-size: .88rem; }

/* Selecteur de taille et de couleur, rendu textile */
.picker { margin-top: 24px; }
.picker__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.picker__l { font-family: var(--sans); font-size: .7rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--on-ink-dim); }
.picker__guide { font-family: var(--sans); font-size: .78rem; color: var(--blue-lt); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.size { position: relative; cursor: pointer; }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 52px; padding: 0 12px;
  font-family: var(--sans); font-size: .94rem; font-weight: 620;
  border: 1px solid var(--rule-ink-2); transition: background .16s, color .16s, border-color .16s;
}
.size input:checked + span { background: var(--white); color: var(--ink-900); border-color: var(--white); }
.size input:focus-visible + span { outline: 2px solid var(--blue-lt); outline-offset: 2px; }
.size.is-out span { color: var(--on-ink-dim); border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.size.is-low::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--flag);
}
.size__low { margin: 10px 0 0; font-family: var(--sans); font-size: .8rem; color: var(--flag); }

.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color { position: relative; cursor: pointer; }
.color input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.color span {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 14px;
  font-family: var(--sans); font-size: .88rem; border: 1px solid var(--rule-ink-2);
}
.color i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.color input:checked + span { border-color: var(--white); }

.buy { margin-top: 26px; }
.buy__row { display: flex; gap: 10px; }
.qty input {
  width: 82px; min-height: 56px; padding: 0 12px; text-align: center;
  font-family: var(--sans); font-size: 1rem; color: var(--on-ink);
  background: rgba(233,231,226,.04); border: 1px solid var(--rule-ink-2);
}
.band--paper .qty input { color: var(--on-paper); background: rgba(255,255,255,.5); border-color: var(--rule-paper-2); }
.qty--sm input { width: 66px; min-height: 46px; }
.buy__btn { flex: 1; min-height: 56px; }
.btn[disabled] { opacity: .42; cursor: not-allowed; transform: none; }

.product__ways { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--rule-ink); }
.product__ways li { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--rule-ink); font-family: var(--sans); font-size: .89rem; }
.product__ways b { font-weight: 620; color: var(--on-ink); }
.product__ways span { max-width: 52ch; color: var(--on-ink-soft); line-height: 1.5; }

.product__acc { margin-top: 26px; border-top: 1px solid var(--rule-ink); }
.product__acc details { border-bottom: 1px solid var(--rule-ink); }
.product__acc summary {
  padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--sans); font-size: .82rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
}
.product__acc summary::-webkit-details-marker { display: none; }
.product__acc summary::after { content: "+"; float: right; font-weight: 400; font-size: 1.2rem; line-height: 1; }
.product__acc details[open] summary::after { content: "–"; }
.product__acc .prose, .product__acc .guide { max-width: 60ch; padding-bottom: 20px; }
.guide table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .88rem; }
.guide th, .guide td { padding: 9px 10px; border-bottom: 1px solid var(--rule-ink); text-align: left; }
.guide th { font-weight: 650; color: var(--on-ink); }

.product__riders { display: grid; gap: 14px; align-content: start; }
.mini-rider { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.mini-rider__media { width: 66px; flex: none; }
.mini-rider__media .media { border-radius: 50%; }
.mini-rider__n { display: block; font-family: var(--sans); font-weight: 620; }
.mini-rider__n b { color: var(--blue); }

/* ------------------------------------------------------ bloc fiche pilote */

.rider-shop__in { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 3vw, 52px); align-items: start; }

/* ---------------------------------------------------- pass paddock */

.pass {
  --stub: 104px; --notch: 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--ink-700); color: var(--on-ink);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.pass__main { padding: clamp(20px, 2.4vw, 30px); border-left: 3px solid var(--blue); min-width: 0; }
.pass__k { margin: 0 0 12px; font-family: var(--sans); font-size: .7rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-lt); }
.pass__t { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: .95; color: var(--white); }
.pass__w { margin: 8px 0 0; font-family: var(--sans); font-size: 1rem; font-weight: 550; }
.pass__d { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 18px 0 0; }
.pass__d dt { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-dim); }
.pass__d dd { margin: 3px 0 0; font-family: var(--sans); font-size: .9rem; }
.pass__cta { margin: 20px 0 0; }
.pass__cta a {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  font-family: var(--sans); font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  background: var(--blue); color: #fff; text-decoration: none;
}
.pass__cta a:hover { background: var(--blue-lt); color: var(--ink-900); }
.pass__stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 18px 8px; border-left: 1px dashed var(--rule-ink-2); text-align: center; }
.pass__day { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: .82; color: var(--white); font-feature-settings: "tnum"; }
.pass__month { font-family: var(--sans); font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-lt); }
.pass__num { margin-top: 14px; font-family: var(--sans); font-size: .64rem; font-weight: 650; letter-spacing: .08em; color: var(--on-ink-soft); word-break: break-all; }
.pass--compact { --stub: 86px; }
.pass--compact .pass__day { font-size: 2.6rem; }

.shop-hint { display: grid; gap: 3px; margin: 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--blue-lt); max-width: 56ch; font-family: var(--sans); font-size: .9rem; line-height: 1.45; }
.band--paper .shop-hint { border-color: var(--blue); }
.shop-hint__l { color: var(--on-ink-soft); }
.shop-hint__e { font-weight: 620; color: var(--on-ink); }
.band--paper .shop-hint__l { color: var(--on-paper-soft); }
.band--paper .shop-hint__e { color: var(--on-paper); }

.ev__shop { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 12px 0 0; font-family: var(--sans); font-size: .82rem; font-weight: 550; }
.ev__shop span { color: var(--blue-lt); }
.band--paper .ev__shop span { color: var(--blue); }
.ev__shop a { color: inherit; text-underline-offset: 3px; }

/* --------------------------------------------------------- sac du header */

.nav__bag { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.nav__bag svg { display: block; }
.nav__bag b {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 100px; background: var(--blue); color: #fff; font-family: var(--sans); font-size: .7rem; font-weight: 700;
}
.menu__bag { display: inline-flex; align-items: center; gap: 10px; }

/* -------------------------------------------------- panier et commande */

.cart__in, .checkout__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(26px, 3vw, 56px); align-items: start; }
.cart__sum, .checkout__sum { display: grid; gap: 22px; position: sticky; top: calc(var(--hdr-h) + 18px); }
.checkout__form .step:first-child { margin-top: 0; }

.cart__lines { border-top: 1px solid var(--rule-paper); min-width: 0; }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--rule-paper); }
.cart-line__media .media { border-radius: 0; }
.cart-line__n { font-family: var(--sans); font-weight: 620; text-decoration: none; }
.cart-line__body { min-width: 0; }
.cart-line__body .meta { margin: 3px 0 8px; }
.cart-line__note { margin: 8px 0 0; font-family: var(--sans); font-size: .82rem; color: #a3402c; }
.cart-line__total { margin: 0; font-family: var(--sans); font-weight: 620; white-space: nowrap; }
.cart-line__rm { padding: 8px 4px; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: .8rem; color: var(--on-paper-dim); text-decoration: underline; text-underline-offset: 3px; }
.cart-line__rm:hover { color: var(--on-paper); }

.sum { padding: clamp(20px, 2.2vw, 28px); border: 1px solid var(--rule-paper-2); font-family: var(--sans); }
.sum__line, .sum__row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: .92rem; }
.sum__line span { color: var(--on-paper-soft); min-width: 0; }
.sum__line b, .sum__row b { font-weight: 620; white-space: nowrap; font-feature-settings: "tnum"; }
.sum__ed { display: block; font-size: .76rem; color: var(--on-paper-dim); }
.sum__row--rule { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule-paper); }
.sum__row--total { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--rule-paper-2); font-size: 1.18rem; }
.sum__ways { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--rule-paper); }
.sum__ways p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 5px 0; font-size: .88rem; color: var(--on-paper-soft); }
.sum__ways b { color: var(--on-paper); font-weight: 600; }
.sum__event { margin: 0 0 4px; font-size: .84rem; color: var(--blue); }
.sum__vat { margin: 10px 0 0; }
.sum__btn { width: 100%; margin-top: 20px; min-height: 54px; }
.sum__secure { max-width: 44ch; margin: 12px 0 0; }

.step { border: 0; padding: 0; margin: 38px 0 0; min-width: 0; display: grid; gap: 16px; }
.step__t { padding: 0; margin-bottom: 16px; font-family: var(--sans); font-size: 1.1rem; font-weight: 650; color: var(--on-paper); }
.step[hidden], [data-when-mode][hidden] { display: none; }

.ways { display: grid; gap: 10px; }
.way { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px 20px; cursor: pointer; border: 1px solid var(--rule-paper-2); transition: border-color .18s var(--ease), background .18s var(--ease); }
.way input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--blue); }
.way:has(input:checked) { border-color: var(--blue); background: rgba(30,62,200,.05); }
.way__body { display: grid; gap: 3px; min-width: 0; }
.way__t { font-family: var(--sans); font-weight: 620; }
.way__d { max-width: 48ch; font-family: var(--sans); font-size: .85rem; line-height: 1.45; color: var(--on-paper-soft); }
.way__p { font-family: var(--sans); font-weight: 650; white-space: nowrap; }
.way__pass { margin: 2px 0 8px; }

.check-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-family: var(--sans); font-size: .88rem; color: var(--on-paper-soft); }
.check-line input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); }
.check-line a { color: var(--blue); }

.pays { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; }
.pays__l { width: 100%; font-family: var(--sans); font-size: .76rem; color: var(--on-paper-dim); margin-bottom: 2px; }
.pay-chip { display: inline-flex; align-items: center; padding: 5px 10px; font-family: var(--sans); font-size: .73rem; font-weight: 600; border: 1px solid var(--rule-paper-2); color: var(--on-paper-soft); }

.band--paper .notice { background: rgba(255,255,255,.5); border-color: var(--blue); color: var(--on-paper); }
.band--paper .notice--error { border-color: #cf5138; }
.notice p { margin: 0; max-width: 66ch; }
.notice p + p { margin-top: 6px; }

/* ---------------------------------------------- confirmation et suivi */

.order-head__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: end; }
.order-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.order-state__v { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: .92; text-transform: uppercase; color: var(--blue); }

/* ------------------------------------------------------------ responsive */

/* 1440 a 1680, la grille reste a quatre colonnes, les blocs de rayon aussi */
@media (max-width: 1366px) {
  .store-hero__in { gap: clamp(24px, 3vw, 48px); }
}

@media (max-width: 1180px) {
  .grid-shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colls, .riders-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rider-shop__in { grid-template-columns: minmax(0, 1fr); }
}

/* Tablette, la vitrine passe en une colonne, l image sous le texte */
@media (max-width: 960px) {
  .store-hero__in { grid-template-columns: minmax(0, 1fr); padding-block: clamp(36px, 6vw, 60px); }
  .store-hero__media { order: -1; }
  .paddock-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --hdr-h: 64px; }
  .product__in, .cart__in, .checkout__in, .order-head__in, .order-body { grid-template-columns: minmax(0, 1fr); }
  .product__info, .cart__sum, .checkout__sum { position: static; }
}

/* Sous 860, la barre de rayons defile horizontalement plutot que de passer
   sur trois lignes. Les sous-rayons se deplient a la place du survol. */
@media (max-width: 860px) {
  :root { --shopnav-h: 49px; }
  .shopnav__in { flex-wrap: nowrap; gap: 12px; }
  .shopnav__list {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; gap: 0 20px;
  }
  .shopnav__list::-webkit-scrollbar { display: none; }
  .shopnav__link { white-space: nowrap; padding: 14px 0; }
  .shopsub { display: none; }
  .searchbox__f { width: 46px; padding-right: 0; padding-left: 0; color: transparent; cursor: pointer; }
  .searchbox__f::placeholder { color: transparent; }
  .searchbox__f:focus { width: min(58vw, 240px); padding: 0 42px 0 12px; color: var(--on-ink); cursor: text; }
  .searchbox--lg .searchbox__f { width: 100%; padding: 0 56px 0 18px; color: var(--on-paper); cursor: text; }
}

@media (max-width: 760px) {
  .grid-shop, .grid-shop--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colls, .riders-shop { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile__n { font-size: 1.24rem; }
  .card__name { font-size: .9rem; }
  .cta-row .cta { flex: 1 1 40%; padding: 0 14px; }

  /* Filtres en plein ecran, cibles tactiles hautes */
  .filters-panel {
    position: fixed; inset: 0; z-index: 200; margin: 0; padding: 0; overflow-y: auto;
    background: var(--paper); border: 0; display: flex; flex-direction: column;
  }
  .filters-panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px var(--gutter); border-bottom: 1px solid var(--rule-paper); position: sticky; top: 0; background: var(--paper);
  }
  .filters-panel__head p { margin: 0; font-family: var(--sans); font-weight: 680; font-size: 1.05rem; }
  .filters-panel__head button { min-height: 44px; padding: 0 12px; background: none; border: 0; cursor: pointer; font-family: var(--sans); font-size: .85rem; text-decoration: underline; }
  .filters-panel__body { flex: 1; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 22px var(--gutter); }
  .fchip span { min-height: 50px; font-size: .95rem; }
  .filters-panel__foot { position: sticky; bottom: 0; margin: 0; padding: 14px var(--gutter); background: var(--paper); border-top: 1px solid var(--rule-paper); }
  .filters-panel__foot .btn { flex: 1; }
}

/* 430 et moins, deux produits par ligne restent lisibles, le reste passe
   sur une colonne pleine largeur */
@media (max-width: 560px) {
  .store-hero__t { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .cta-row .cta { flex: 1 1 100%; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .pass { --stub: 76px; }
  .pass__day { font-size: 2.4rem; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .cart-line__total { grid-column: 2; }
  .cart-line__rm { grid-column: 3; justify-self: end; }
  .buy__row { flex-direction: column; }
  .qty input { width: 100%; }
}
