/* ============================================================
   Marque Fitsmode — site client de la plateforme (ex-Reps4You, renommé par son client ; lot `fitsmode`, 2026-11-25)
   Chargée pour CE site seul (apps/web/src/lib/site-theme.ts) : le site maison n'en reçoit rien. Elle redéfinit les
   jetons de styles/tokens.css sous html[data-site="fitsmode"]. Source : kit d'identité du client du 24/10/2026
   (PREPARATION/CHANTIER-reps4you.md § 3) — noir #111111 (lettres, textes, fonds sombres), blanc #FFFFFF (fond du site),
   vert ON #0FA958 pour l'interrupteur du logo et les boutons d'action, rien d'autre (pastilles, compteurs, « Nouveau »,
   QC ✓ passent au noir et blanc) ; Figtree, titres en majuscules très grasses, texte en normal ; « propre et photo,
   jamais criard » : fond blanc, de l'espace, rien ne clignote, un mode sombre pour le soir.
   Contraste : blanc sur le vert = 3,1:1, admis pour un texte GRAND seulement (≥ 18,7 px en gras) : les libellés des
   boutons verts sont à 19 px en 800 (plus bas) ; le vert ne sert jamais de texte ni d'indicateur (--accent-ink = encre).
   Police : sous-ensemble latin auto-hébergé (fonts/, licence fonts/OFL.txt ; Figtree 5.3.0 de @fontsource-variable).
   ?v= à incrémenter à chaque changement (site-theme.ts).
   ============================================================ */

@font-face {
  font-family: "Figtree FM";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/sites/fitsmode/fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Jetons : CLAIR (défaut : le blanc du kit) --- */
html[data-site="fitsmode"] {
  color-scheme: light;
  --fm-black: #111111;
  --fm-green: #0fa958;

  --bg: #ffffff;
  --bg-skeleton: #f0f0f0;
  --bg-skeleton-2: #e6e6e6;
  --surface: #f5f5f5;
  --surface-2: #f5f5f5;
  --surface-chip: #f2f2f2;
  --surface-input: #ffffff;
  --overlay: #ffffff;

  --text: var(--fm-black);
  --text-soft: #444444; /* 9,7:1 sur blanc */
  --text-muted: #555555; /* 7,5:1 */
  --text-faint: #666666; /* 5,7:1 */
  --text-faintest: #6e6e6e; /* 5,1:1 : le plus clair qui porte du texte */

  --cta: var(--fm-black);
  --cta-text: #ffffff;
  --scrim: rgba(17, 17, 17, 0.5);
  --media-veil: rgba(255, 255, 255, 0.82);
  --media-bg: #f3f3f3;

  --border: #e6e6e6;
  --border-strong: #8c8c8c; /* contour d'un champ ou d'une puce : 3,4:1 */

  --success: var(--fm-black);
  --success-bg: rgba(17, 17, 17, 0.06);
  --success-border: rgba(17, 17, 17, 0.3);
  --tier-gold: #8a6a00;
  --danger: #c4231a;

  /* Vert ON = FOND des boutons d'action, texte blanc en grand (voir plus bas). */
  --accent: var(--fm-green);
  --accent-hover: #0e9c51;
  --accent-text: #ffffff;
  --accent-soft: var(--fm-black);
  --accent-bg: rgba(17, 17, 17, 0.08); /* teinte douce des repères et dessins : l'encre, jamais le vert (FM-10) */
  --accent-border: var(--fm-black);
  --accent-ink: var(--fm-black);

  --rule: var(--border);
  --rule-w: 1px;
  --focus-ring: var(--fm-black);

  /* Tuile des photos : gris très clair, la pièce entière, le blanc de la photo fondu dans la tuile. */
  --scene-top: var(--media-bg);
  --scene-bottom: var(--media-bg);
  --scene-shadow: transparent;
  --scene-fit: contain;
  --scene-pad: 6%;
  --scene-blend: multiply;
  --on-scene: var(--fm-black);
  --fav-bg: #ffffff; /* pastille opaque : le cœur reste lisible sur une photo sombre, dans les deux thèmes (FM-UI-01) */
  --fav-active: var(--fm-black);

  /* Barre d'achat du téléphone : blanche, seul son bouton est vert (« seul le bouton d'achat est vert »). */
  --bar-bg: #ffffff;
  --bar-text: var(--fm-black);
  --bar-text-soft: #555555;
  --bar-rule: var(--border);

  /* Produits en rangées : photo arrondie, nom, prix, un cœur. */
  --card-bg: transparent;
  --card-border: transparent;
  --card-radius: 0;
  --card-pad: 0;
  --card-media-radius: 8px;
  --card-price-weight: 500;

  --radius-pill: 999px;
  --radius-card: 8px;
  --radius-img: 8px;
  --radius-tile: 8px;
  --radius-btn: 999px;
  --radius-chip: 999px;
  --radius-tag: 4px;
  --radius-modal: 16px;
  --radius-sheet: 16px;
  --radius-field: 999px;
  --field-border: var(--border-strong);
  --tabbar-bg: #ffffff;

  --font-sans: "Figtree FM", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Figtree FM", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: var(--font-sans);
  --display-case: uppercase;
  --display-weight: 900;
  --display-tracking: -0.01em;
  --display-leading: 1.02;

  --fs-text: 0.9375rem;
  --fs-page-title: 2.125rem;
  --fs-section-title: 1.375rem;
  --fs-product-title: 1.75rem;
  --fs-card-name: 0.9375rem;
  --fs-card-price: 0.9375rem;
}
@media (min-width: 1024px) {
  html[data-site="fitsmode"] {
    --fs-page-title: 3.25rem;
    --fs-section-title: 1.75rem;
    --fs-product-title: 2.25rem;
  }
}

/* --- Jetons : SOMBRE (« un mode sombre pour le soir » : réglage du système ou bascule de l'en-tête) --- */
html[data-site="fitsmode"][data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--fm-black);
  --bg-skeleton: #1c1c1c;
  --bg-skeleton-2: #242424;
  --surface: #1a1a1a;
  --surface-2: #1a1a1a;
  --surface-chip: #222222;
  --surface-input: #1a1a1a;
  --overlay: #1a1a1a;

  --text: #ffffff;
  --text-soft: #d6d6d6;
  --text-muted: #b3b3b3;
  --text-faint: #a0a0a0; /* 7,2:1 sur le noir */
  --text-faintest: #9a9a9a; /* 6,7:1 */

  --cta: #ffffff;
  --cta-text: var(--fm-black);
  --scrim: rgba(0, 0, 0, 0.6);

  --border: #2a2a2a;
  --border-strong: #6b6b6b;

  --success: #ffffff;
  --success-bg: rgba(255, 255, 255, 0.08);
  --success-border: rgba(255, 255, 255, 0.3);

  --accent-soft: #ffffff;
  --accent-bg: rgba(255, 255, 255, 0.12);
  --accent-border: #ffffff;
  --accent-ink: #ffffff;
  --focus-ring: #ffffff;

  --bar-bg: var(--fm-black);
  --bar-text: #ffffff;
  --bar-text-soft: #b3b3b3;
  --bar-rule: #2a2a2a;
  --tabbar-bg: var(--fm-black);
}

/* --- En-tête : blanc, filet clair, menu en capitales espacées (maquette « accueil sur ordinateur ») --- */
html[data-site="fitsmode"] .site-header {
  background: var(--bg);
  backdrop-filter: none;
}
html[data-site="fitsmode"] .header-rayon {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
html[data-site="fitsmode"] .header-rayon[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent-ink);
}

/* --- En-tête propre (sites/fitsmode/Header.astro, classes de styles/header.css) : logo dessiné (SiteLogo), recherche et
   favoris en icônes de 44 px poussées à droite ; sur téléphone et tablette, la loupe reste même sur la page de recherche
   (le catalogue du menu : l'écran de recherche plein écran s'ouvre par elle, le champ n'y écrase pas le logo) ; variante
   fiche du téléphone : ← · logo · ♥ du produit, logo centré (bascule et outils masqués : FM-17, FM-UI-08) ; le logo se
   réduit sous 360 px, jamais sous les 96 px du guide du logo, pour que rien ne déborde à 320 px (FM-07). Ici et non dans
   la feuille commune : seul ce site les rend. --- */
html[data-site="fitsmode"] .site-logo {
  display: block;
  width: auto;
  height: 20px; /* ≈ 148 px de large : logo et quatre cibles de 44 px tiennent dans 390 px */
}
html[data-site="fitsmode"] .header-tool {
  position: relative;
  flex: none;
  width: var(--size-touch-min);
  height: var(--size-touch-min);
  display: grid;
  place-items: center;
  color: var(--text);
}
html[data-site="fitsmode"] .header-tool[data-open-search] {
  margin-left: auto;
}
html[data-site="fitsmode"] .header-tool[aria-current="page"] {
  color: var(--accent-ink);
  box-shadow: inset 0 -2px 0 currentColor; /* même trait que le menu : on est sur Favoris (FM-UI-13) */
}
html[data-site="fitsmode"] .header-tool .fav-count {
  position: absolute;
  top: 3px;
  right: 0;
}
html[data-site="fitsmode"] .site-header[data-variant="product"] .header-tool {
  display: none;
}
@media (max-width: 1023px) {
  html[data-site="fitsmode"] .site-header[data-search-page] .header-search-slot {
    display: none;
  }
  /* Les cibles de 44 px se touchent (leur icône reste espacée) : rien ne déborde, donc rien ne dézoome la page. */
  html[data-site="fitsmode"] .site-header .site-header-inner {
    gap: 2px;
  }
  html[data-site="fitsmode"] .site-header[data-variant="product"] .theme-toggle {
    display: none;
  }
}
@media (max-width: 379px) {
  html[data-site="fitsmode"] .site-logo {
    height: 18px; /* ≈ 133 px */
  }
}
@media (max-width: 359px) {
  html[data-site="fitsmode"] .site-logo {
    height: 14px; /* ≈ 103 px : 16 + 103 + 4 × (2 + 44) + 16 = 319 px à 320 */
  }
}
@media (min-width: 1024px) {
  /* Ordinateur : le logo à sa taille ; le vrai champ remplace la loupe ; le cœur reste, fiche comprise. */
  html[data-site="fitsmode"] .site-logo {
    height: 26px;
  }
  html[data-site="fitsmode"] .header-tool[data-open-search] {
    display: none;
  }
  html[data-site="fitsmode"] .site-header[data-variant="product"] .header-tool-fav {
    display: grid;
  }
}

/* --- Barre du bas : libellés en capitales, comme le menu --- */
html[data-site="fitsmode"] .nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Le vert pour agir, en GRAND (blanc sur vert : texte grand, 3,1:1 admis) : majuscules en 800, 19 px, boutons
   d'achat de la fiche compris (23 et 26 px jusqu'aux finitions du 2026-11-26, plus bas). --- */
html[data-site="fitsmode"] :is(.brand-hero-cta, .btn-primary, .join-cta, .guide-cta, .bb-cta, .pd-cta, .bt-btn.volt) {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
html[data-site="fitsmode"] :is(.brand-hero-cta, .btn-primary, .join-cta, .guide-cta) {
  font-size: 1.1875rem;
}

/* Petites lignes posées sur le vert (« via Lolobuy » de la barre d'achat ; sous-titre du ticket, hors de la vue depuis
   la passe 2 mais lu par les lecteurs d'écran) : à l'encre, 6,2:1 —
   le blanc n'y ferait que 3,1:1, admis pour le seul texte grand. Colonne d'achat de l'ordinateur : sans le filet clair
   du site maison autour du vert. */
html[data-site="fitsmode"] :is(.bb-cta-via, .bt-btn.volt small) {
  color: var(--fm-black);
}
html[data-site="fitsmode"] .pd-cta {
  border-color: transparent;
}

/* --- Rien d'autre n'est vert : pastilles, compteurs, repères et faux boutons des illustrations du guide (l'écran d'un
   agent, pas une action du site) passent à l'encre --- */
html[data-site="fitsmode"] :is(.card-badge, .drop-tag, .cat-bar-count, .fav-count, .bt-missing, .fig-btn, .fig-chip) {
  background: var(--text);
  color: var(--bg);
}
/* Graphique du guide : le poste « qui ressort » (volt sur le site maison) devient un aplat du fond cerné d'encre (son
   filet, --accent-border) — distinct de l'encre pleine, du gris et des hachures, dans les deux thèmes (FM-10). */
html[data-site="fitsmode"] .tone-accent {
  background: var(--bg);
}
/* Pastille de couleur de l'agent : pas sur les boutons verts (une quatrième couleur ; le nom de l'agent y est écrit en
   toutes lettres) — FM-UI-06. */
html[data-site="fitsmode"] :is(.bb-cta, .pd-cta, .bt-btn.volt) .agent-dot {
  display: none;
}
html[data-site="fitsmode"] .journey-dot-halo {
  fill: var(--text);
}

/* --- Cartes : nom en noir, prix en gris, comme la maquette --- */
html[data-site="fitsmode"] .card-price {
  color: var(--text-muted);
}

/* --- Bascule clair / sombre (en-tête) : une icône comme la loupe et le cœur ; soleil en sombre, lune en clair --- */
html[data-site="fitsmode"] .theme-toggle {
  width: var(--size-touch-min);
  height: var(--size-touch-min);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text);
}
/* La cible fait déjà 44 px : la zone élargie du rond du site maison (34 px) déborderait sur le bouton voisin. */
html[data-site="fitsmode"] .theme-toggle::before {
  inset: 0;
}
html[data-site="fitsmode"] .theme-toggle svg {
  width: 20px;
  height: 20px;
}
html[data-site="fitsmode"] .theme-toggle .icon-moon,
html[data-site="fitsmode"][data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
html[data-site="fitsmode"] .theme-toggle .icon-sun,
html[data-site="fitsmode"][data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* Image de remplacement (catégorie ou produit sans photo, lib/images.ts) : son SVG porte les gris du site maison ; ici,
   on la masque et la tuile de la marque se voit à sa place (même place réservée). */
html[data-site="fitsmode"] img[src^="data:image/svg+xml"] {
  visibility: hidden;
}

/* --- Fiche du téléphone court (iPhone, barres de Safari déployées : 393 × 659) : la galerie se plafonne plus bas (36 % de
   la hauteur visible au lieu de 46) pour qu'une rangée de pointures reste au-dessus de la barre (FM-UI-05). La mention
   du client a quitté la barre le 2026-11-26 (fiche allégée : 70 px avec les finitions) ; le plafond reste, une fiche
   à plusieurs coloris descend encore sa première rangée sous la barre (CHANTIER-reps4you.md § 4). --- */
@media (max-width: 1023px) and (max-height: 720px) {
  html[data-site="fitsmode"] .pg-slide {
    max-height: 36svh;
  }
}

/* --- Pied : le logo dessiné, jamais le nom retapé (guide du logo ; FM-UI-03). Marge au bord au moins égale au disque de
   l'interrupteur (guide du logo : 22 px de haut → disque de 15 px, gouttière de 16 px), lien de 44 px de haut ; bascule
   clair/sombre, la seule de la fiche du téléphone (FM-UI-11, FM-UI-12 de design/relecture-2) : libellé fixe « Thème
   clair » et un interrupteur qui montre son état, plein à l'encre quand le thème clair est en place, en creux sinon
   (aria-pressed, FM-UI-15 de la troisième passe) ; jamais vert : le kit réserve le vert aux boutons d'action et au logo. --- */
html[data-site="fitsmode"] .site-footer .footer-word {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-touch-min);
}
html[data-site="fitsmode"] .site-footer .footer-word .site-logo {
  height: 22px;
}
html[data-site="fitsmode"] .footer-theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--size-touch-min);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
html[data-site="fitsmode"] .footer-theme::before {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 32px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 9px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}
html[data-site="fitsmode"] .footer-theme::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: currentColor;
  transition: transform var(--transition-fast);
}
html[data-site="fitsmode"] .footer-theme[aria-pressed="true"]::before {
  background: currentColor;
}
html[data-site="fitsmode"] .footer-theme[aria-pressed="true"]::after {
  background: var(--bar-bg, var(--bg));
  transform: translateX(14px);
}
@media (min-width: 1024px) {
  html[data-site="fitsmode"] .site-footer .footer-word .site-logo {
    height: 36px; /* disque de 24 px, loin des bords */
  }
}

/* ============================================================
   Finitions (propriétaire, 2026-11-26 : « les boutons Standard et Top… les finitions globales ne sont pas très
   propres »). Le kit : « propre et photo, jamais criard » ; titres en majuscules très grasses, COURTS, en haut de l'écran ;
   texte en Figtree normal ; boutons verts en blanc, capitales grasses, pilule. Les choix de la fiche (tailles, qualité)
   quittent la Black des titres pour un gras simple, dans des cases aux coins de 12 px, contour fin ; les libellés blancs
   des boutons verts restent à 19 px (texte grand) mais plus à 23 ou 26 ; le ticket garde ses deux boutons côte à côte,
   en cases arrondies (rien ne déborde plus), et son second choix devient un contour ; badges, pied et titres de rangée alignés et allégés.
   ============================================================ */
html[data-site="fitsmode"] {
  --fm-choice-radius: 12px;
}

/* Tailles : six cases par ligne sur un téléphone de 393 px (EU 40 à 45 sur une seule ligne), contour de 1 px. */
html[data-site="fitsmode"] .pd-sizes {
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}
html[data-site="fitsmode"] .pd-options {
  gap: 8px;
}
/* Dans la grille seule, la case suit sa colonne (52 px au moins) : la puce du site maison garde 54 px au moins et
   débordait de 2 px à 384 px de large (FA-13, passe 2). Hors grille (option, taille unique), le plancher de 54 px reste :
   « S » seul tomberait sous les 44 px d'une cible (FA-16, relecteur Claude). */
html[data-site="fitsmode"] .pd-sizes .size-chip.pd-size {
  min-width: 0;
}
html[data-site="fitsmode"] .size-chip.pd-size {
  min-height: 48px;
  border-width: 1px;
  border-radius: var(--fm-choice-radius);
}

/* Qualité : deux cases égales, le nom en gras simple et le prix dessous, centrés (plus de Black en capitales collée au
   bord d'une pilule). */
html[data-site="fitsmode"] .pd-seg-option {
  align-items: center;
  gap: 3px;
  min-height: 60px;
  padding: 8px 12px;
  border-width: 1px;
  border-radius: var(--fm-choice-radius);
  text-align: center;
}
html[data-site="fitsmode"] :is(.pd-seg-name, .pd-q) {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}
html[data-site="fitsmode"] .pd-seg-price {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}
html[data-site="fitsmode"] .pd-seg-option[aria-pressed="true"] .pd-seg-price {
  color: inherit;
}
html[data-site="fitsmode"] .pd-quality-one {
  border-radius: var(--fm-choice-radius);
}

/* Barre d'achat du téléphone : prix à 24 px, bouton centré, « ACHETER » à 19 px, « via Lolobuy » à l'encre. */
html[data-site="fitsmode"] .bb-price {
  font-size: 1.5rem;
}
html[data-site="fitsmode"] .bb-sel {
  margin-top: 4px;
  font-size: 0.8125rem;
}
html[data-site="fitsmode"] .bb-cta {
  min-width: 176px;
  min-height: 54px;
  padding: 0 22px;
  align-items: center;
  gap: 4px;
  text-align: center;
}
html[data-site="fitsmode"] .bb-cta-label {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
html[data-site="fitsmode"] .bb-cta-via {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Ligne « Pas de compte ? · C'est quoi un agent ? » de la colonne : sur la même ligne de base. */
html[data-site="fitsmode"] .pd-buy-fine {
  align-items: baseline;
}

/* Ticket : les deux boutons côte à côte, en cases arrondies comme les choix de la fiche, le vert plus large ; leurs
   libellés tiennent dans la case sur deux lignes (en pilule, « J'AI UN COMPTE » à 19 px débordait ; empilés, ils
   poussaient la taille à copier sous le pied fixe du ticket : FA-08, passe 2) ; « Pas encore » en contour à l'encre, le
   vert reste le seul aplat ; titres de section en phrase, pas en capitales espacées sur deux lignes. */
html[data-site="fitsmode"] .bt-actions {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
html[data-site="fitsmode"] .bt-btn {
  gap: 8px;
  min-height: 56px;
  padding: 9px 12px 9px 14px;
  border-radius: var(--fm-choice-radius);
}
html[data-site="fitsmode"] .bt-btn > span {
  gap: 3px;
}
html[data-site="fitsmode"] .bt-btn b {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
/* Sous-libellés (« Ouvrir chez … », « … te le demandera ») hors de la vue, gardés pour les lecteurs d'écran : la question
   du pied les dit déjà, et sur trois lignes les boutons cachaient encore la taille à copier (FA-08, passe 2). */
html[data-site="fitsmode"] .bt-btn small {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
html[data-site="fitsmode"] .bt-btn.ink {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text);
}
html[data-site="fitsmode"] .bt-btn.ink b {
  font-size: 1rem;
}
html[data-site="fitsmode"] :is(.bt-tick, .bt-sec-title).type-meta {
  font-size: 0.9375rem;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

/* --- Ticket du téléphone court (393 × 659, SE 375 × 667) : les lignes à copier au-dessus du pied fixe au premier écran,
   trois comprises (版本 · Version, 尺码 · Taille, 颜色 · Couleur : « Couleur » passait sous le pied en production, lot
   `site-client-ouvert-suite`). La feuille monte plus haut (12 px d'écart au lieu de 44) et ses espaces se resserrent ;
   aucun texte retiré, cibles de 44 px gardées, mention du pied intacte. --- */
@media (max-width: 1023px) and (max-height: 720px) {
  html[data-site="fitsmode"] .sheet-ticket[data-size="full"] {
    height: calc(100% - 12px);
    max-height: calc(100% - 12px);
  }
  html[data-site="fitsmode"] .sheet-ticket .sheet-grab {
    margin-top: 6px;
  }
  html[data-site="fitsmode"] .sheet-ticket .sheet-head {
    padding-bottom: 8px;
  }
  html[data-site="fitsmode"] .sheet-ticket .sheet-body {
    padding-top: 10px;
  }
  html[data-site="fitsmode"] .bt-top {
    padding-block: 8px;
  }
  html[data-site="fitsmode"] .bt-facts {
    line-height: 1.25;
  }
  html[data-site="fitsmode"] .bt-listing {
    padding-top: 8px;
  }
  html[data-site="fitsmode"] .bt-listing .bt-tick + .bt-note,
  html[data-site="fitsmode"] .bt-listing .bt-rows {
    margin-top: 4px;
  }
  html[data-site="fitsmode"] .sheet-ticket .sheet-foot {
    padding-bottom: 10px;
  }
  html[data-site="fitsmode"] .bt-foot {
    gap: 6px;
  }
}

/* --- Même ticket dans le navigateur d'une appli (Instagram, TikTok : premier chemin d'arrivée d'un site de créateurs) :
   le bandeau « ouvre la page dans ton navigateur » (67 px et sa marge) repoussait encore « Taille » et « Couleur » sous
   le pied fixe. La feuille touche le haut de l'écran, sa poignée (un trait décoratif) s'efface, le bandeau et les
   espaces se resserrent d'un cran ; aucun texte retiré, cibles de 44 px gardées, mention du pied intacte. --- */
@media (max-width: 1023px) and (max-height: 720px) {
  html[data-site="fitsmode"] .sheet-ticket[data-size="full"]:has(.bt-inapp) {
    height: 100%;
    max-height: 100%;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .sheet-grab {
    display: none;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .sheet-head {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .sheet-eyebrow {
    margin-bottom: 2px;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .sheet-body {
    padding-top: 6px;
  }
  html[data-site="fitsmode"] .sheet-ticket .bt-inapp {
    gap: 8px;
    margin-bottom: 6px;
    padding: 4px 4px 4px 8px;
  }
  html[data-site="fitsmode"] .sheet-ticket .bt-inapp p {
    line-height: 1.2;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-top {
    padding-block: 4px;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-facts {
    line-height: 1.15;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-tick.type-meta {
    line-height: 1.2;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-listing {
    padding-top: 6px;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-listing .bt-tick + .bt-note,
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-listing .bt-rows {
    margin-top: 2px;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .sheet-foot {
    padding-top: 6px;
    padding-bottom: 8px;
  }
  html[data-site="fitsmode"] .sheet-ticket:has(.bt-inapp) .bt-foot {
    gap: 4px;
  }
}

/* Badges des cartes (« Nouveau », « QC ✓ ») : petites capitales en gras simple, plus en Black ; sur la photo, la même
   pastille blanche que le cœur (deux aplats noirs et blancs se heurtaient), encre dessus, dans les deux thèmes. */
html[data-site="fitsmode"] :is(.card-badge, .drop-tag) {
  padding: 5px 7px 4px;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
html[data-site="fitsmode"] .card-badge {
  background: var(--fav-bg);
  color: var(--fm-black);
}

/* Catalogue : le même contour fin que les cases de la fiche ; guide : son bouton secondaire (contour à l'encre, pas sur
   le vert) en gras simple, plus en Black à 19 px. */
html[data-site="fitsmode"] :is(.cat-chip, .cat-bar-chip, .sort-btn) {
  border-width: 1px;
}
html[data-site="fitsmode"] .guide-cta-secondary {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Réglage « € » de l'en-tête : un trait fin comme la loupe et le cœur, pas un gras qui pèse plus qu'eux. */
html[data-site="fitsmode"] .settings-trigger {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* Titre de rangée et « Voir tout » sur la même ligne de base. */
html[data-site="fitsmode"] .home-head {
  align-items: baseline;
}

/* Pied : sur le gris très clair des surfaces (un filet sur le même blanc venait se coller à celui de la barre d'achat
   au défilement), liens en ligne sans filets (trois liens sur deux colonnes laissaient des traits inégaux) ; sans
   rangées liées (aucune pièce voisine), pas de second blanc avant lui. */
html[data-site="fitsmode"] .site-footer {
  margin-top: var(--space-6);
  background: var(--surface);
}
html[data-site="fitsmode"] .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
html[data-site="fitsmode"] .footer-links a {
  border-top: 0;
}
html[data-site="fitsmode"] .related:not(:has(.pr-rail, .pr-loading)) {
  margin-top: 0;
}

/* Téléphone : pas de filet entre la photo et le nom (la tuile grise suffit). */
@media (max-width: 1023px) {
  html[data-site="fitsmode"] .pd-head {
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
  }
}

/* Ordinateur : prix à 40 px, bouton vert à 58 px de haut et 19 px. */
@media (min-width: 1024px) {
  html[data-site="fitsmode"] .detail-price-eur {
    font-size: 2.5rem;
  }
  html[data-site="fitsmode"] .pd-cta {
    min-height: 58px;
    font-size: 1.1875rem;
    letter-spacing: 0.04em;
  }
  html[data-site="fitsmode"] .pd-cta .type-display {
    font-weight: 800;
  }
}

/* ============================================================
   Bandeau de l'accueil de marque (sites/fitsmode/BrandHero.astro) : grand titre, phrase, bouton d'action, grande photo.
   Ici et non dans la feuille commune : seul ce site le rend (relecture Codex, FM-09). Téléphone : le texte, puis la photo
   bord à bord ; ordinateur (≥ 1024 px) : texte à gauche, photo à droite, à parts égales, assez basse pour que les noms
   et prix de la première rangée tiennent au premier écran de 1440 × 900 (FM-UI-04). La photo provisoire (une pièce de
   la sélection, en attendant les photos portées) est montrée ENTIÈRE sur la tuile des cartes (.scene : contain, fond
   gris, blanc fondu) et mène à sa fiche, légendée de sa marque et de son nom (FM-06, FM-UI-02). C'est l'image de
   partage de la fiche (1200 × 630, sur fond blanc) : sur téléphone, son cadre en prend la forme, une bande et non un
   carré à moitié blanc (FM-UI-14 ; pièce d'environ 200 px de haut, réserve jusqu'aux photos portées).
   ============================================================ */
.brand-hero {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.brand-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  min-width: 0;
}
.brand-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-page-title);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-transform: var(--display-case);
  text-wrap: balance;
}
.brand-hero-lead {
  max-width: 36ch;
  font-size: var(--fs-text);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}
.brand-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--h-cta);
  padding: 0 var(--space-6);
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: var(--accent-text);
  transition: background-color var(--transition-fast);
}
.brand-hero-cta:hover {
  background: var(--accent-hover);
}
.brand-hero-media {
  display: block;
  margin-inline: calc(-1 * var(--gutter));
  color: var(--text-muted);
}
.brand-hero-frame {
  display: block;
  aspect-ratio: 1200 / 630;
}
.brand-hero-caption {
  display: block;
  padding: var(--space-2) var(--gutter) 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.brand-hero-media:hover .brand-hero-caption {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1024px) {
  .brand-hero {
    align-items: center;
    gap: var(--space-8);
  }
  /* Deux colonnes seulement avec une photo : sans elle, le texte garde toute la largeur. */
  .brand-hero[data-photo] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .brand-hero-lead {
    font-size: 1.0625rem;
  }
  .brand-hero-media {
    margin-inline: 0;
  }
  .brand-hero-frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-img);
  }
  .brand-hero-caption {
    padding-inline: 0;
  }
  /* La rangée des derniers finds suit le bandeau de près (80 px entre les sections du site maison). */
  .brand-hero + .home-sec {
    margin-top: var(--space-8);
  }
}

/* ============================================================
   Créateurs (lot `fitsmode-createurs`) : l'annuaire (components/twin/Creators.astro) et la page d'un créateur
   (components/twin/CreatorPage.astro, îlot CreatorPieces). Ici et non dans la feuille commune : seul ce site les rend.
   Noir et blanc ; le vert, pour le seul bouton d'inscription chez l'agent. Téléphone d'abord : l'annuaire en une colonne
   de cartes-liens ; la page, le profil (initiale, nom, phrase, réseaux, inscription) puis « Mis en avant » en rail et
   toutes les pièces en grille de deux. Ordinateur (≥ 1024 px) : l'annuaire sur trois colonnes ; la page, le profil en
   colonne collante à gauche (l'inscription reste sous la main pendant qu'on parcourt les pièces), les pièces à droite :
   rangée de trois « mis en avant », grille de trois puis quatre colonnes. Cibles de 44 px (réseaux, cartes, boutons).
   ============================================================ */

/* --- Repère du créateur : son initiale dans un disque d'encre (l'API ne donne pas de photo) --- */
.creator-mono {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--display-weight);
  line-height: 1;
}

/* --- Annuaire : cartes-liens (la carte entière mène à la page ; les icônes des réseaux n'y sont que des repères) --- */
.creators-list,
.creator-socials ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.creators-list {
  display: grid;
  gap: var(--space-3);
}
/* Cartes d'une même rangée à la même hauteur (ordinateur). */
.creators-list > li {
  display: grid;
}
.creator-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 88px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition-fast);
}
@media (hover: hover) {
  .creator-card:hover {
    border-color: var(--text);
  }
}
.creator-card:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.creator-card-text {
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
  min-width: 0;
}
.creator-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-transform: var(--display-case);
  overflow-wrap: anywhere;
}
.creator-card-bio {
  font-size: 0.875rem;
  line-height: var(--lh-normal);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.creator-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-faint);
}
.creator-card-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.creator-card-go {
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
}
@media (min-width: 768px) {
  .creators-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }
}
@media (min-width: 1024px) {
  .creators-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .creator-card {
    min-height: 112px;
    padding: var(--space-5);
  }
  .creator-card .creator-mono {
    width: 64px;
    height: 64px;
    font-size: 1.75rem;
  }
}

/* --- Page d'un créateur : le profil (initiale et nom côte à côte, puis phrase, réseaux, inscription) --- */
.creator-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}
.creator-head > :not(.creator-mono, .creator-id) {
  grid-column: 1 / -1;
}
.creator-id {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.creator-id .page-eyebrow {
  margin-bottom: 0;
}
.creator-name {
  font-size: var(--fs-page-title);
  overflow-wrap: anywhere;
}
.creator-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-faint);
}
.creator-bio {
  max-width: 46ch;
  font-size: var(--fs-text);
  line-height: var(--lh-normal);
  color: var(--text-soft);
  overflow-wrap: anywhere;
}
.creator-socials ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.creator-social {
  display: grid;
  place-items: center;
  width: var(--size-touch-min);
  height: var(--size-touch-min);
  border: 1.5px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
@media (hover: hover) {
  .creator-social:hover {
    background: var(--text);
    color: var(--bg);
  }
}
.creator-social:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.creator-join {
  display: grid;
  gap: 8px;
}
/* Libellé grand (19 px en 800, blanc sur vert admis à 3,1:1) : il passe à la ligne plutôt que de déborder à 320 px. */
.creator-page .creator-join-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-block: 10px;
  line-height: 1.15;
  text-align: center;
}
.creator-join-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
}
.creator-main {
  display: grid;
  gap: var(--space-6);
  min-width: 0;
}
.creator-sec {
  min-width: 0;
}
.creator-empty .page-actions {
  margin-top: var(--space-3);
}

/* --- « Mis en avant » : rail qui défile sur téléphone et tablette (comme les rangées de l'accueil) --- */
.creator-featured {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 44vw, 220px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.creator-featured::-webkit-scrollbar {
  display: none;
}
.creator-featured > * {
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  /* Profil en colonne collante, pièces à droite (la page en pause garde une colonne). */
  .creator-page:not(.is-paused) {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    column-gap: 56px;
  }
  .creator-page:not(.is-paused) .creator-head {
    position: sticky;
    top: calc(var(--h-header) + var(--space-5));
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .creator-page .creator-mono {
    width: 96px;
    height: 96px;
    font-size: 2.5rem;
  }
  .creator-page:not(.is-paused) .creator-name {
    font-size: 2.5rem;
  }
  .creator-main {
    gap: var(--space-8);
  }
  .creator-featured {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 18px;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .product-grid.creator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .product-grid.creator-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
