/* Clone local lululemon — genere par build.mjs, ne pas editer directement.
   Sources : 00-fonts.css, 01-tokens.css, 02-base.css, 03-components.css, 04-sections.css, 05-pages.css */

/* Saans — fonte du site source.
   Les paliers de graisse reproduisent exactement les declarations relevees sur
   la source : Saans expose des valeurs intermediaires (380, 570, 670, 790) que
   le site utilise reellement. `font-display: swap` evite le texte invisible au
   premier rendu, comme sur la source. */

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/Saans-Light.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 380;
  font-display: swap;
  src: url('/assets/fonts/Saans-Regular.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Saans-Regular.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Saans-Medium.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 570;
  font-display: swap;
  src: url('/assets/fonts/Saans-Medium.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Saans-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 670;
  font-display: swap;
  src: url('/assets/fonts/Saans-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Saans-Bold.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 790;
  font-display: swap;
  src: url('/assets/fonts/Saans-Bold.woff2') format('woff2');
}

@font-face {
  font-family: Saans;
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/Saans-Heavy.woff2') format('woff2');
}


/* ===========================================================================
   DESIGN TOKENS
   Valeurs relevees au getComputedStyle sur le site source (2026-08-02) via
   _capture/scrape.mjs. Ne pas inventer de valeur ici : si une couleur manque,
   la re-mesurer sur la source plutot que de l'approximer.
   =========================================================================== */

:root {
  /* --- Typographie --------------------------------------------------------
     Saans, la fonte du site source, est servie en local depuis
     public/assets/fonts/ (voir 00-fonts.css). La pile de repli est celle
     declaree par la source, a l'identique. */
  --font-sans: Saans, "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;

  /* Echelle relevee : 72 / 64 / 40 / 28 / 24 / 18 / 16 / 14 / 12 */
  --fs-hero: 72px;
  --fs-section: 64px;
  --fs-xl: 40px;
  --fs-lg: 28px;
  --fs-md: 24px;
  --fs-sm: 18px;
  --fs-base: 16px;
  --fs-xs: 14px;
  --fs-2xs: 12px;

  /* Saans "regular" pese 380 sur la source ; en repli Helvetica on borne a 400. */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --lh-tight: 1;
  --lh-heading: 1.06;
  --lh-body: 1.5;

  --ls-hero: -0.02em;
  --ls-section: -0.015em;
  --ls-caps: 0.06em;

  /* --- Couleurs ----------------------------------------------------------
     rgb(20,15,15) est l'encre dominante de la source (2705 occurrences),
     pas du noir pur. C'est le detail qui trahit le plus une copie approximative. */
  --ink: #140f0f;
  --ink-80: rgba(20, 15, 15, 0.8);
  --ink-66: rgba(20, 15, 15, 0.66);
  --ink-50: rgba(20, 15, 15, 0.5);
  --ink-12: rgba(20, 15, 15, 0.12);

  --white: #ffffff;
  --muted: #757575;
  --muted-light: #919191;
  --grey-55: #565656;

  --surface: #ffffff;
  --surface-1: #f9f9f8;
  --surface-2: #f4f3f2;
  --surface-3: #efeeec;
  --surface-bone: #e4ded3; /* « bone » du modele de contenu source */

  --line: #d8d6d3;
  --line-strong: #140f0f;

  --sale: #c8102e; /* rouge promo / We Made Too Much */
  --link: #3860be;
  --focus: #3860be;

  /* --- Rayons ------------------------------------------------------------
     La source est massivement en pilule (1000px), avec 4px sur les visuels
     produit et 8px sur les panneaux deroulants. */
  --r-pill: 1000px;
  --r-tile: 4px;
  --r-panel: 8px;
  --r-lg: 20px;
  --r-round: 50%;

  /* --- Espacements -------------------------------------------------------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* --- Structure ---------------------------------------------------------- */
  --gutter: 24px;
  --maxw: 1600px;
  --grid-gap: 16px;

  --header-h: 60px;
  --announce-h: 40px;

  /* --- Ombres et transitions ---------------------------------------------- */
  --shadow-panel: 0 8px 24px rgba(20, 15, 15, 0.12);
  --shadow-soft: 0 2px 8px rgba(20, 15, 15, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 400ms;

  /* --- Ratios visuels (mesures sur la source) ------------------------------
     produit 720x864 = 5/6 ; tuile navigation 1404x1680 = 5/6 ;
     banniere mega-menu 1404x820 = 1.712 */
  --ar-product: 5 / 6;   /* 720x864 et 640x768 */
  --ar-card: 5 / 6;      /* tuiles editoriales : 704x845 */
  --ar-promo: 1404 / 820;
  --ar-feature: 1920 / 1501;  /* bannieres pleine largeur */
  --ar-hero: 1920 / 1200;     /* 16/10, pas 16/9 */
}

/* Le grand titrage de la source descend par paliers sous 1200px puis 768px. */
@media (max-width: 1200px) {
  :root {
    --fs-hero: 56px;
    --fs-section: 44px;
    --fs-xl: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 40px;
    --fs-section: 32px;
    --fs-xl: 26px;
    --fs-lg: 22px;
    --fs-md: 20px;
    --gutter: 16px;
    --grid-gap: 8px;
    --header-h: 56px;
  }
}


/* ===========================================================================
   BASE — reset minimal, elements natifs, utilitaires de mise en page
   =========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bloque le defilement quand le panier lateral ou le menu mobile est ouvert. */
body.is-locked {
  overflow: hidden;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --- Accessibilite --------------------------------------------------------
   La source affiche un anneau de focus visible uniquement au clavier. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-120%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Conteneurs ----------------------------------------------------------- */

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

.container--narrow {
  max-width: 960px;
}

.container--text {
  max-width: 720px;
}

/* Bandes pleine largeur, sans gouttiere (heros, bannieres editoriales). */
.bleed {
  width: 100%;
}

/* --- Titrage --------------------------------------------------------------
   Reproduit l'echelle relevee : hero 72 / section 64, graisse regular,
   interlettrage legerement negatif. */

.tx-hero {
  font-size: var(--fs-hero);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-hero);
}

.tx-section {
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
}

.tx-xl {
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.tx-lg {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  line-height: 1.15;
}

.tx-md {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.2;
}

.tx-body {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}

.tx-small {
  font-size: var(--fs-xs);
  line-height: 1.45;
}

.tx-eyebrow {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.tx-muted {
  color: var(--muted);
}

/* --- Liens texte ---------------------------------------------------------- */

.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.link-underline:hover {
  text-decoration-thickness: 2px;
}

/* --- Apparition au defilement ---------------------------------------------
   Pilote par IntersectionObserver dans site.js. Sans JS, le contenu reste
   visible : l'etat masque n'est applique que si la classe `js` est presente. */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ===========================================================================
   COMPOSANTS — bibliotheque reutilisable
   Chaque bloc correspond a un composant documente dans /components.html.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. Boutons
   La source utilise une pilule (rayon 1000px), hauteur 48px desktop,
   graisse medium, sans majuscules.
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-8);
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--grey-55);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}

.btn--secondary:hover {
  background: var(--ink);
  color: var(--white);
}

/* Variante posee sur une photo : fond blanc, sans bordure. */
.btn--onImage {
  background: var(--white);
  color: var(--ink);
}

.btn--onImage:hover {
  background: var(--surface-2);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-inline: 0;
  min-height: 0;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 36px;
  padding-inline: var(--sp-5);
  font-size: var(--fs-xs);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}

/* Bouton icone circulaire (fleches de carrousel, fermeture de panneau). */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-round);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--ink);
}

.icon-btn--bare {
  border-color: transparent;
  background: transparent;
}

.icon-btn--bare:hover {
  background: var(--surface-2);
}

/* ---------------------------------------------------------------------------
   2. Badges
   `TRENDING`, `BEST GIFT`, `NEW` : petite capitale posee au-dessus du titre,
   pas sur l'image (verifie sur la source).
   --------------------------------------------------------------------------- */

.badge {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--ink);
}

.badge--sale {
  color: var(--sale);
}

.badge--pill {
  padding: 2px var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
}

/* ---------------------------------------------------------------------------
   3. Carte produit
   Image en 5/6, titre 16px medium, prix sous le titre, pastilles de coloris
   au survol. C'est le composant le plus repete du site.
   --------------------------------------------------------------------------- */

.product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-tile__media {
  position: relative;
  display: block;
  aspect-ratio: var(--ar-product);
  overflow: hidden;
  border-radius: var(--r-tile);
  background: var(--surface-2);
}

.product-tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur-slow) var(--ease);
}

/* Seconde vue, revelee au survol (comportement de la source). */
.product-tile__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-tile:hover .product-tile__img--alt {
  opacity: 1;
}

/* Compteur « +4 » de coloris supplementaires, en bas a droite de l'image. */
.product-tile__more {
  position: absolute;
  right: var(--sp-2);
  bottom: var(--sp-2);
  padding: 2px var(--sp-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
}

.product-tile__body {
  padding-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.product-tile__badge {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.product-tile__name {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.product-tile__price {
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
}

.product-tile__price del {
  color: var(--muted);
  text-decoration: line-through;
  margin-left: var(--sp-2);
}

.product-tile__price--sale {
  color: var(--sale);
}

.product-tile__swatches {
  display: flex;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
  min-height: 20px;
}

/* Ligne « Compare » de la page liste. */
.product-tile__compare {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   4. Pastilles de coloris
   --------------------------------------------------------------------------- */

.swatch {
  width: 16px;
  height: 16px;
  border-radius: var(--r-round);
  border: 1px solid var(--ink-12);
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.swatch:hover {
  box-shadow: 0 0 0 1px var(--ink);
}

.swatch[aria-pressed='true'],
.swatch.is-active {
  box-shadow: 0 0 0 1px var(--white) inset, 0 0 0 2px var(--ink);
}

/* Version large de la fiche produit. */
.swatch--lg {
  width: 32px;
  height: 32px;
}

/* ---------------------------------------------------------------------------
   5. Selecteur de taille
   Carre 48x48, bordure fine, etat selectionne en inversion.
   --------------------------------------------------------------------------- */

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.size-chip {
  min-width: 48px;
  height: 48px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.size-chip:hover {
  border-color: var(--ink);
}

.size-chip[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.size-chip[disabled] {
  color: var(--muted-light);
  border-color: var(--surface-3);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------------------------------------------------------------------------
   6. Accordeon (details produit, filtres, aide)
   --------------------------------------------------------------------------- */

.accordion {
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  text-align: left;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.accordion__icon {
  flex: 0 0 auto;
  transition: transform var(--dur) var(--ease);
}

.accordion__trigger[aria-expanded='true'] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.accordion__panel > div {
  overflow: hidden;
}

.accordion__trigger[aria-expanded='true'] + .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__content {
  padding-bottom: var(--sp-5);
  color: var(--ink-80);
}

/* ---------------------------------------------------------------------------
   7. Carrousel horizontal
   Sur mobile la source fait defiler les listes plutot que de les empiler.
   --------------------------------------------------------------------------- */

.carousel {
  position: relative;
}

/* Flex et non grid : dans un conteneur a defilement, un pourcentage passe a
   `grid-auto-columns` ne se resout pas contre la largeur du conteneur (Chrome
   calculait 160px au lieu de 336px). Un `flex-basis` en pourcentage, lui, est
   fiable. */
.carousel__track {
  display: flex;
  gap: var(--grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
}

/* 4 cartes visibles sur desktop, comme sur la source. */
.carousel__track > * {
  flex: 0 0 calc((100% - 3 * var(--grid-gap)) / 4);
  min-width: 0;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > * {
  scroll-snap-align: start;
}

.carousel__nav {
  position: absolute;
  top: calc(50% - 60px);
  display: flex;
  gap: var(--sp-2);
  z-index: 2;
}

.carousel__nav--prev {
  left: calc(-1 * var(--sp-5));
}

.carousel__nav--next {
  right: calc(-1 * var(--sp-5));
}

.carousel__nav .icon-btn {
  box-shadow: var(--shadow-soft);
}

.carousel__nav [hidden] {
  display: none;
}

@media (max-width: 1200px) {
  .carousel__track > * {
    flex-basis: calc((100% - 2 * var(--grid-gap)) / 3);
  }
  .carousel__nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .carousel__track {
    /* Deborde volontairement dans la gouttiere, comme la source. */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .carousel__track > * {
    flex-basis: 62%;
  }
}

/* ---------------------------------------------------------------------------
   8. Grille produit (page liste)
   4 colonnes desktop / 3 tablette / 2 mobile — mesure sur la source via
   l'attribut `sizes` des images (22vw, 31vw, 47vw).
   --------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-8) var(--grid-gap);
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6) var(--grid-gap);
  }
}

/* ---------------------------------------------------------------------------
   9. En-tete
   --------------------------------------------------------------------------- */

.announce {
  background: var(--surface-2);
  color: var(--ink);
  font-size: var(--fs-xs);
  text-align: center;
  padding: var(--sp-3) var(--gutter);
}

.announce a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.header-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* La source sert le logo avec height="16" sur un viewBox 170x24. */
.header-logo svg {
  height: 16px;
  width: auto;
  display: block;
}

.header-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 100%;
}

.header-nav__item {
  height: 100%;
  display: flex;
  align-items: center;
}

.header-nav__link {
  position: relative;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: var(--sp-2) 0;
  white-space: nowrap;
}

.header-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.header-nav__item:hover .header-nav__link::after,
.header-nav__item.is-open .header-nav__link::after {
  transform: scaleX(1);
}

.header-nav__link--accent {
  color: var(--sale);
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.header-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: var(--fs-xs);
  min-width: 150px;
}

.header-locale {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: var(--fw-medium);
  line-height: 16px;
  text-align: center;
}

.header-cart {
  position: relative;
}

.header-burger {
  display: none;
}

@media (max-width: 1100px) {
  .header-nav,
  .header-search,
  .header-locale {
    display: none;
  }
  .header-burger {
    display: inline-flex;
  }
  .header-logo {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---------------------------------------------------------------------------
   10. Mega-menu
   Panneau pleine largeur ancre sous l'en-tete, colonnes + tuile visuelle.
   --------------------------------------------------------------------------- */

.megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}

.header-nav__item.is-open .megamenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.megamenu__inner {
  display: flex;
  gap: var(--sp-10);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-10) var(--gutter) var(--sp-12);
}

.megamenu__cols {
  flex: 1 1 auto;
  display: flex;
  gap: var(--sp-10);
}

.megamenu__col {
  min-width: 0;
  flex: 1 1 0;
}

.megamenu__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
}

.megamenu__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.megamenu__list a {
  font-size: var(--fs-xs);
  color: var(--ink-80);
}

.megamenu__list a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.megamenu__feature {
  flex: 0 0 260px;
}

.megamenu__feature img {
  width: 100%;
  aspect-ratio: var(--ar-product);
  object-fit: cover;
  border-radius: var(--r-tile);
}

.megamenu__feature-title {
  margin-top: var(--sp-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.megamenu__feature-cta {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------------------
   11. Menu mobile (tiroir gauche)
   --------------------------------------------------------------------------- */

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 200;
  width: min(420px, 92vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-slow) var(--ease);
}

.drawer--left {
  left: 0;
  transform: translateX(-100%);
}

.drawer--right {
  right: 0;
  transform: translateX(100%);
}

.drawer.is-open {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-5);
}

.drawer__foot {
  border-top: 1px solid var(--line);
  padding: var(--sp-5);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(20, 15, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* Navigation mobile en accordeon a deux niveaux. */
.mnav__group + .mnav__group {
  border-top: 1px solid var(--line);
}

.mnav__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.mnav__panel {
  display: none;
  padding-bottom: var(--sp-4);
}

.mnav__trigger[aria-expanded='true'] + .mnav__panel {
  display: block;
}

.mnav__col-title {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--sp-4) 0 var(--sp-2);
}

.mnav__panel a {
  display: block;
  padding: var(--sp-2) 0;
  font-size: var(--fs-xs);
}

/* ---------------------------------------------------------------------------
   12. Panier lateral
   --------------------------------------------------------------------------- */

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 100%;
  aspect-ratio: var(--ar-product);
  object-fit: cover;
  border-radius: var(--r-tile);
  background: var(--surface-2);
}

.cart-line__name {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.cart-line__meta {
  font-size: var(--fs-2xs);
  color: var(--muted);
  margin-top: 2px;
}

.cart-line__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-3);
}

/* Remplace l'ancien selecteur de quantite : le paiement passe par un lien
   externe a montant fige, donc une commande ne peut porter qu'un article. */
.cart-line__limit {
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.cart-empty {
  padding: var(--sp-12) 0;
  text-align: center;
  color: var(--muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-4);
}

/* ---------------------------------------------------------------------------
   13. Filtres et tri (page liste)
   --------------------------------------------------------------------------- */

.plp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--header-h);
  background: var(--white);
  z-index: 20;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sort-select {
  height: 40px;
  padding: 0 var(--sp-8) 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  font-size: var(--fs-xs);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23140f0f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
}

.plp-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: start;
}

.plp-layout.is-filters-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.plp-layout.is-filters-hidden .filters {
  display: none;
}

.filters {
  position: sticky;
  top: calc(var(--header-h) + 80px);
}

.filter-group {
  border-bottom: 1px solid var(--line);
}

.filter-group__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-4) 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.filter-group__panel {
  display: none;
  padding-bottom: var(--sp-4);
}

.filter-group__trigger[aria-expanded='true'] + .filter-group__panel {
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  font-size: var(--fs-xs);
  cursor: pointer;
}

/* Compteur de produits par facette, affiche par la source. */
.filter-option__count {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--fs-2xs);
}

.filter-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-4) 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 32px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
}

@media (max-width: 1100px) {
  .plp-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Sur petit ecran les filtres passent dans un tiroir. */
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 200;
    width: min(420px, 92vw);
    background: var(--white);
    padding: var(--sp-5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
  }
  .filters.is-open {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   14. Fil d'Ariane
   --------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) 0;
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--line);
}

/* ---------------------------------------------------------------------------
   15. Notation et avis
   --------------------------------------------------------------------------- */

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--ink);
}

.stars svg {
  width: 14px;
  height: 14px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.review {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.review__author {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.review__date {
  font-size: var(--fs-2xs);
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   16. Pied de page
   --------------------------------------------------------------------------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-16);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
}

.footer-col__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-4);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-col__list a {
  font-size: var(--fs-xs);
  color: var(--ink-80);
}

.footer-col__list a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-regions {
  border-top: 1px solid var(--line);
  padding: var(--sp-10) 0;
}

.footer-regions__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-8);
}

.footer-regions__title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-3);
}

.footer-regions__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.footer-legal {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.footer-legal__links {
  display: flex;
  gap: var(--sp-5);
}

@media (max-width: 1100px) {
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-8);
  }
  .footer-regions__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* Le pied de page passe en accordeon sur mobile, comme la source. */
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .footer-col {
    border-bottom: 1px solid var(--line);
  }
  .footer-col__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-4) 0;
    margin: 0;
    cursor: pointer;
  }
  .footer-col__list {
    display: none;
    padding-bottom: var(--sp-4);
  }
  .footer-col.is-open .footer-col__list {
    display: flex;
  }
  .footer-regions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------------------
   17. Campagne promotionnelle
   Le pourcentage affiche est propre a chaque produit : il est calcule a
   l'application de la grille tarifaire (src/data/pricing.json), jamais fixe.
   --------------------------------------------------------------------------- */

/* Barre d'annonce, en tete de toutes les pages.
   Encre du site sur fond blanc plutot qu'un rouge promotionnel : la campagne
   reste visible sans casser la sobriete de la charte. */
.promo-bar {
  background: var(--ink);
  color: var(--white);
}

.promo-bar__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  text-align: center;
}

.promo-bar__title {
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.promo-bar__sep {
  opacity: 0.6;
}

.promo-bar__cta {
  margin-left: var(--sp-2);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-bar__cta:hover {
  text-decoration-thickness: 2px;
}

@media (max-width: 640px) {
  .promo-bar__sep {
    display: none;
  }
  .promo-bar__inner {
    font-size: var(--fs-2xs);
    gap: var(--sp-1) var(--sp-2);
  }
}

/* Pastille de remise posee sur le visuel produit. */
.sale-badge {
  position: absolute;
  top: var(--sp-2);
  left: var(--sp-2);
  z-index: 1;
  padding: 3px var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--sale);
  color: var(--white);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Pourcentage affiche a cote du prix. */
.discount-pct {
  margin-left: var(--sp-2);
  color: var(--sale);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

/* Prix barre et economie dans le panier. */
.cart-line__promo {
  margin-top: 2px;
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.cart-line__promo del {
  text-decoration: line-through;
}

.cart-saved {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--sale);
  margin-bottom: var(--sp-2);
}

.summary__row--saved {
  color: var(--sale);
  font-weight: var(--fw-medium);
}


/* ===========================================================================
   SECTIONS — blocs de page d'accueil et blocs editoriaux
   L'ordre suit celui de la page d'accueil source (releve 2026-08-02).
   =========================================================================== */

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

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

.section--flush {
  padding-block: 0;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.section__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
}

.section__link {
  flex: 0 0 auto;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--sp-12);
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
  }
}

/* ---------------------------------------------------------------------------
   1. Hero — carrousel plein ecran
   Le titre est anime lettre par lettre sur la source ; on reproduit l'effet
   avec un decalage sur chaque `span` (voir site.js).
   --------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.hero__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease);
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  /* Hauteur derivee du ratio reel du visuel source (1920x1200 = 1.6), plafonnee.
     Volontairement pas d'`aspect-ratio` : combine a une hauteur minimale, il
     laisse la largeur grandir et fait deborder la page en mobile. */
  height: min(calc(100vw / 1.6), 900px);
  min-height: 560px;
  display: flex;
  align-items: flex-end;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La source pose un voile par diapositive (`showScrim`), pas systematiquement. */
.hero__media--scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 15, 15, 0.55) 0%, rgba(20, 15, 15, 0.12) 45%, rgba(20, 15, 15, 0) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-12) var(--gutter) var(--sp-16);
  color: var(--white);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-hero);
  max-width: 14ch;
}

/* Animation d'entree lettre par lettre du titre du hero.
   Le mot est l'unite insecable : la coupure ne peut se faire qu'entre deux
   mots, jamais entre deux lettres. */
.hero__word {
  display: inline-block;
  white-space: nowrap;
}

.hero__word span {
  display: inline-block;
}

.js .hero__slide.is-active .hero__title span {
  animation: heroLetter var(--dur-slow) var(--ease) both;
  animation-delay: calc(var(--i) * 24ms);
}

@keyframes heroLetter {
  from {
    opacity: 0;
    transform: translateY(0.5em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__text {
  margin-top: var(--sp-4);
  font-size: var(--fs-base);
  max-width: 44ch;
}

.hero__cta {
  margin-top: var(--sp-6);
}

.hero__controls {
  position: absolute;
  right: var(--gutter);
  bottom: var(--sp-8);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.hero__dots {
  display: flex;
  gap: var(--sp-2);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-round);
  background: rgba(255, 255, 255, 0.5);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.hero__dot[aria-current='true'] {
  background: var(--white);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .hero__slide {
    height: 78vh;
    min-height: 0;
  }
  .hero__title {
    max-width: 100%;
  }
  .hero__controls {
    left: var(--gutter);
    right: auto;
    bottom: var(--sp-5);
  }
}

/* ---------------------------------------------------------------------------
   2. Bandeau de tuiles carrees (« New and trending », « Shop by colour »)
   --------------------------------------------------------------------------- */

.tile-strip {
  display: flex;
  gap: var(--grid-gap);
}

.tile-strip > * {
  flex: 1 1 0;
  min-width: 0;
}

.tile-card {
  display: block;
}

/* `display: block` est indispensable : ces conteneurs sont des <span> dans le
   balisage (ils sont a l'interieur d'un <a>), et ni `aspect-ratio` ni
   `overflow: hidden` ne s'appliquent a un element inline. */
.tile-card__media {
  display: block;
  aspect-ratio: var(--ar-card);
  overflow: hidden;
  border-radius: var(--r-tile);
  background: var(--surface-2);
}

.tile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.tile-card:hover .tile-card__media img {
  transform: scale(1.03);
}

.tile-card__label {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

@media (max-width: 768px) {
  /* Slider horizontal plutot qu'empilement, comme sur la source. */
  .tile-strip {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .tile-strip::-webkit-scrollbar {
    display: none;
  }
  .tile-strip > * {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
}

/* « Shop by colour » utilise exactement les memes cartes que les autres
   bandeaux sur la source : visuel portrait, pas de pastille ronde. */

/* ---------------------------------------------------------------------------
   3. Banniere editoriale plein cadre (« Space to give it your all. »)
   --------------------------------------------------------------------------- */

.banner {
  position: relative;
  width: 100%;
  /* Ratio reel du visuel de banniere source (1920x1501 = 1.279). */
  height: min(calc(100vw / 1.279), 760px);
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.banner__media {
  position: absolute;
  inset: 0;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Voile de lisibilite du titre pose sur la photo. */
.banner__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 15, 15, 0.55) 0%, rgba(20, 15, 15, 0.12) 45%, rgba(20, 15, 15, 0) 70%);
}

.banner__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-12) var(--gutter);
  color: var(--white);
}

.banner__content--center {
  text-align: center;
}

.banner__content--center .banner__title {
  margin-inline: auto;
}

.banner__content--center .banner__actions {
  justify-content: center;
}

.banner__content--right {
  text-align: right;
}

.banner__content--right .banner__title {
  margin-left: auto;
}

.banner__content--right .banner__actions {
  justify-content: flex-end;
}

.banner__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
  max-width: 16ch;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* Variante fond clair, texte encre (utilisee en alternance sur la source). */
.banner--light .banner__content {
  color: var(--ink);
}

.banner--light .banner__media::after {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 50%);
}

/* Controle de l'effet de profondeur, en bas a droite de la banniere.
   Presente sur la source quand le module declare `hasParallaxControl`. */
.parallax-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: var(--sp-6);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-round);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}

.parallax-toggle:hover {
  background: var(--white);
}

/* Effet de profondeur : le visuel defile plus lentement que la page. */
.banner__media--parallax img {
  will-change: transform;
}

/* « Shop This Look » : pastille posee sur la photo. */
.shop-look {
  position: absolute;
  right: var(--gutter);
  top: var(--sp-10);
  z-index: 2;
}

@media (max-width: 768px) {
  .banner {
    height: 68vh;
    min-height: 0;
  }
  .shop-look {
    top: var(--sp-5);
    right: var(--sp-4);
  }
}

/* ---------------------------------------------------------------------------
   4. Onglets Femme / Homme (« Shop popular activities », « ... categories »)
   --------------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: var(--sp-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-8);
}

.tabs__btn {
  position: relative;
  padding: var(--sp-3) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.tabs__btn[aria-selected='true'] {
  color: var(--ink);
}

.tabs__btn[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

.tabpanel[hidden] {
  display: none;
}

/* ---------------------------------------------------------------------------
   5. Liste de liens categories en pilules
   --------------------------------------------------------------------------- */

.pill-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.pill-link:hover {
  border-color: var(--ink);
  background: var(--surface-1);
}

/* ---------------------------------------------------------------------------
   6. Grille editoriale (« Catch the highlights »)
   --------------------------------------------------------------------------- */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-8) var(--grid-gap);
}

.editorial-card__media {
  display: block;
  aspect-ratio: var(--ar-promo);
  overflow: hidden;
  border-radius: var(--r-tile);
  background: var(--surface-2);
}

.editorial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.editorial-card:hover .editorial-card__media img {
  transform: scale(1.03);
}

.editorial-card__title {
  display: block;
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.2;
}

.editorial-card__text {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--ink-80);
  max-width: 46ch;
}

.editorial-card__cta {
  display: inline-block;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

@media (max-width: 640px) {
  .editorial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------------------
   7. Bande d'appel a l'action et inscription e-mail
   --------------------------------------------------------------------------- */

/* `backgroundSurfaceColor` de la source : bone / white / grey. */
.cta-band--bone {
  background: var(--surface-bone);
}

.cta-band--white {
  background: var(--white);
}

.cta-band {
  background: var(--surface-2);
  padding-block: var(--sp-16);
  text-align: center;
}

.cta-band__title {
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
}

.cta-band__text {
  margin: var(--sp-3) auto 0;
  max-width: 46ch;
  color: var(--ink-80);
}

.cta-band__actions {
  margin-top: var(--sp-6);
}

.signup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--sp-12);
  padding-block: var(--sp-16);
}

.signup__offer {
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
}

.signup__form {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.signup__form input {
  flex: 1 1 auto;
  height: 48px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
}

.signup__form input:focus {
  border-color: var(--ink);
}

.signup__fine {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xs);
  color: var(--muted);
}

@media (max-width: 900px) {
  .signup {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }
  .signup__form {
    flex-direction: column;
  }
  .signup__form .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   8. Banniere principale de campagne
   Placee en tete de la page d'accueil, au-dessus du carrousel editorial.
   --------------------------------------------------------------------------- */

.promo-hero {
  /* « Bone » : la teinte que la source utilise elle-meme pour ses bandeaux de
     marque (`backgroundSurfaceColor: bone` dans son modele de contenu). */
  background: var(--surface-bone);
  color: var(--ink);
  border-block: 1px solid var(--line);
}

.promo-hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--sp-16) var(--gutter);
  text-align: center;
}

.promo-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
}

.promo-hero__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-section);
  font-weight: var(--fw-regular);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-section);
}

/* Le pourcentage est l'information principale : on l'appuie. */
.promo-hero__pct {
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.promo-hero__eyebrow {
  color: var(--ink-66);
}

.promo-hero__text {
  margin: var(--sp-4) auto 0;
  max-width: 52ch;
  font-size: var(--fs-base);
  color: var(--ink-80);
}

.promo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

@media (max-width: 768px) {
  .promo-hero__inner {
    padding-block: var(--sp-12);
  }
}


/* ===========================================================================
   PAGES — mises en page specifiques (liste produit, fiche produit, panier,
   contenu editorial, store locator, recherche, 404, bibliotheque UI)
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Page liste (PLP)
   --------------------------------------------------------------------------- */

.plp-head {
  padding-bottom: var(--sp-6);
}

.plp-head__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.plp-head__count {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.plp-head__blurb {
  margin-top: var(--sp-3);
  max-width: 60ch;
  color: var(--ink-80);
}

/* Carrousel de collections en haut de la page liste (Align, Wunder Train...). */
.collection-strip {
  display: flex;
  gap: var(--grid-gap);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--sp-6);
}

.collection-strip > * {
  flex: 0 0 calc((100% - 4 * var(--grid-gap)) / 5);
  min-width: 0;
}

.collection-strip::-webkit-scrollbar {
  display: none;
}

.collection-card {
  display: flex;
  flex-direction: column;
}

/* Meme raison que .tile-card__media : ce sont des <span> dans un <a>. */
.collection-card__media {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--surface-2);
}

.collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card__name {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.collection-card__meta {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .collection-strip > * {
    flex-basis: 40%;
  }
}

.plp-empty {
  padding: var(--sp-20) 0;
  text-align: center;
  color: var(--muted);
}

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-12) 0;
}

/* ---------------------------------------------------------------------------
   Fiche produit (PDP)
   --------------------------------------------------------------------------- */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-12);
  align-items: start;
  padding-bottom: var(--sp-16);
}

/* Galerie : mosaique 2 colonnes sur desktop, carrousel sur mobile. */
.pdp-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

.pdp-gallery__item {
  aspect-ratio: var(--ar-product);
  border-radius: var(--r-tile);
  overflow: hidden;
  background: var(--surface-2);
}

.pdp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La premiere vue occupe les deux colonnes. */
.pdp-gallery__item:first-child {
  grid-column: span 2;
}

.pdp-info {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.pdp-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.2;
}

.pdp-price {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}

.pdp-price del {
  color: var(--muted);
  margin-left: var(--sp-2);
}

.pdp-price--sale {
  color: var(--sale);
}

.pdp-block {
  margin-top: var(--sp-8);
}

.pdp-block__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  margin-bottom: var(--sp-3);
}

.pdp-block__value {
  color: var(--muted);
  font-weight: var(--fw-regular);
}

.pdp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.size-guide {
  font-size: var(--fs-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Modes de livraison. */
.fulfil {
  margin-top: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  overflow: hidden;
}

.fulfil__row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
}

.fulfil__row + .fulfil__row {
  border-top: 1px solid var(--line);
}

.fulfil__name {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.fulfil__note {
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.pdp-actions {
  margin-top: var(--sp-6);
}

.pdp-pay {
  margin-top: var(--sp-3);
  font-size: var(--fs-2xs);
  color: var(--muted);
  text-align: center;
}

/* Bandeau « Similar leggings ». */
.similar {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  overflow-x: auto;
  scrollbar-width: none;
}

.similar::-webkit-scrollbar {
  display: none;
}

.similar__item {
  flex: 0 0 72px;
}

.similar__item img {
  width: 72px;
  aspect-ratio: var(--ar-product);
  object-fit: cover;
  border-radius: var(--r-tile);
  background: var(--surface-2);
  border: 1px solid transparent;
}

.similar__item:hover img {
  border-color: var(--ink);
}

@media (max-width: 1000px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-8);
  }
  .pdp-info {
    position: static;
  }
  .pdp-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .pdp-gallery::-webkit-scrollbar {
    display: none;
  }
  .pdp-gallery__item {
    flex: 0 0 84%;
    scroll-snap-align: center;
  }
  .pdp-gallery__item:first-child {
    grid-column: auto;
  }
}

/* Barre d'ajout au panier collante sur mobile. */
.pdp-sticky {
  display: none;
}

@media (max-width: 1000px) {
  /* Barre posee directement sur <main>, donc sans marge negative : celle-ci
     ferait deborder le document de la largeur d'une gouttiere. */
  .pdp-sticky {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: block;
    padding: var(--sp-3) var(--gutter);
    background: var(--white);
    border-top: 1px solid var(--line);
  }
}

/* Notation detaillee. */
.rating-bars {
  display: grid;
  gap: var(--sp-2);
  max-width: 320px;
}

.rating-bar {
  display: grid;
  grid-template-columns: 48px 1fr 40px;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.rating-bar__track {
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  background: var(--ink);
}

/* ---------------------------------------------------------------------------
   Panier (page pleine)
   --------------------------------------------------------------------------- */

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-12);
  align-items: start;
  padding-bottom: var(--sp-16);
}

.summary {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  padding: var(--sp-2) 0;
}

.summary__row--total {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.summary__limit {
  margin-top: var(--sp-4);
  font-size: var(--fs-2xs);
  color: var(--muted);
  text-align: center;
}

/* Moyens de paiement reellement acceptes au dernier ecran : Visa et Mastercard.
   Rien d'autre ne doit apparaitre ici — une promesse non tenue au dernier ecran
   fait perdre la vente. */
.paymarks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.paymark {
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 4px var(--sp-3);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--grey-55);
}

.paymark--note {
  border: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: var(--fw-regular);
  color: var(--muted);
}

@media (max-width: 900px) {
  .cart-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .summary {
    position: static;
  }
}

/* ---------------------------------------------------------------------------
   Paiement (/checkout.html)
   Le site collecte les coordonnees, puis redirige vers la page de paiement du
   prestataire. Aucun champ carte bancaire ici.
   --------------------------------------------------------------------------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--sp-12);
  align-items: start;
  padding-bottom: var(--sp-16);
}

.checkout__form {
  max-width: 560px;
}

.checkout__legend {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin: var(--sp-8) 0 var(--sp-4);
}

.checkout__legend:first-child {
  margin-top: 0;
}

.checkout__blocked {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: var(--sp-6);
  margin-bottom: var(--sp-6);
}

.checkout__blocked .btn {
  margin-top: var(--sp-4);
}

.checkout__recap {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-2);
}

.checkout__recap img {
  width: 100%;
  height: auto;
  border-radius: var(--r-tile);
  background: var(--surface-2);
}

.field {
  margin-bottom: var(--sp-4);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4);
}

.field__label {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--grey-55);
  margin-bottom: var(--sp-2);
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--white);
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--ink);
}

.field__input:focus {
  outline: none;
  border-color: var(--ink);
}

.field__input[aria-invalid='true'] {
  border-color: var(--sale);
}

.field__hint {
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  color: var(--muted);
}

.field__error {
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  color: var(--sale);
}

@media (max-width: 900px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr);
  }
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ---------------------------------------------------------------------------
   Pages de contenu, aide, legal
   --------------------------------------------------------------------------- */

.page-hero {
  padding-block: var(--sp-16) var(--sp-10);
  border-bottom: 1px solid var(--line);
}

.page-hero__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.page-hero__lede {
  margin-top: var(--sp-4);
  max-width: 60ch;
  color: var(--ink-80);
}

.prose {
  padding-block: var(--sp-10) var(--sp-16);
}

.prose h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.prose h3 {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.prose p {
  margin-bottom: var(--sp-4);
  color: var(--ink-80);
}

.prose ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-bottom: var(--sp-4);
  color: var(--ink-80);
}

.prose li {
  margin-bottom: var(--sp-2);
}

/* ---------------------------------------------------------------------------
   Store locator
   --------------------------------------------------------------------------- */

.stores {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: start;
  padding-bottom: var(--sp-16);
}

.store-card {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--line);
}

.store-card__name {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.store-card__addr {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.store-card__hours {
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  color: var(--muted);
}

/* Carte de substitution : la source utilise Google Maps (voir docs/LIMITES.md). */
.store-map {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  aspect-ratio: 4 / 3;
  border-radius: var(--r-panel);
  background:
    repeating-linear-gradient(0deg, var(--surface-3) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--surface-3) 0 1px, transparent 1px 48px),
    var(--surface-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-align: center;
  padding: var(--sp-6);
}

@media (max-width: 900px) {
  .stores {
    grid-template-columns: minmax(0, 1fr);
  }
  .store-map {
    position: static;
    order: -1;
  }
}

/* ---------------------------------------------------------------------------
   Recherche et 404
   --------------------------------------------------------------------------- */

.search-bar {
  display: flex;
  gap: var(--sp-3);
  padding-block: var(--sp-10) var(--sp-6);
}

.search-bar input {
  flex: 1 1 auto;
  height: 48px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}

.not-found {
  padding-block: var(--sp-24);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Bibliotheque de composants (/components.html)
   --------------------------------------------------------------------------- */

.lib-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--sp-10);
  align-items: start;
  padding-block: var(--sp-10) var(--sp-20);
}

.lib-nav {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
}

.lib-nav a:hover {
  text-decoration: underline;
}

.lib-section {
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-12);
}

.lib-section__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  margin-bottom: var(--sp-2);
}

.lib-section__note {
  color: var(--muted);
  font-size: var(--fs-xs);
  max-width: 70ch;
  margin-bottom: var(--sp-6);
}

.lib-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface-1);
}

.lib-demo--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.lib-code {
  margin-top: var(--sp-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-2xs);
  color: var(--muted);
  overflow-x: auto;
  white-space: pre;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-4);
}

.token-swatch {
  height: 72px;
  border-radius: var(--r-tile);
  border: 1px solid var(--line);
}

.token-name {
  margin-top: var(--sp-2);
  font-size: var(--fs-2xs);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.token-value {
  font-size: var(--fs-2xs);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 900px) {
  .lib-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .lib-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-3);
  }
  .lib-demo--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
