/* BENBEZI — boutique. Le site est l'étiquetage du vêtement :
   étiquette tissée, cartons suspendus, étiquette d'entretien satinée, onglets de taille. */

:root {
  --encre: #231f20;
  --encre-2: #3b3637;
  --fil: #f4f2ee;
  --fond: #e4e6e5;
  --fond-2: #d8dbda;
  --carton: #f4f6f6;
  --ligne-fond: var(--str);
  --ligne-fil: var(--str-fil);
  --texte-2: #57524f;
  --trait: #c9c8c2;

  --str: #231f20; --str-fil: #f4f2ee; --str-motif: url(../marque/motif-ton-noir.svg);
  --atl: #d9cdb5; --atl-fil: #4a4139;  --atl-motif: url(../marque/motif-ton-ecru.svg);
  --spt: #2246c4; --spt-fil: #f4f2ee;  --spt-motif: url(../marque/motif-ton-bleu.svg);

  --gouttiere: clamp(16px, 4vw, 48px);
  --large: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ombre-carton: 0 1px 1px rgb(35 31 32 / .14), 0 14px 28px -12px rgb(35 31 32 / .38);
  --ombre-tissu: 0 1px 2px rgb(35 31 32 / .25), 0 18px 40px -22px rgb(35 31 32 / .6);

  color-scheme: light;
  accent-color: var(--encre);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--encre-2) var(--fond-2); scrollbar-width: thin; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fond);
  color: var(--encre);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  caret-color: var(--encre);
}
main { flex: 1; }
::selection { background: var(--encre); color: var(--fil); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--encre); outline-offset: 3px; }
.tisse :focus-visible, .tisse:focus-visible { outline-color: var(--encre); }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: var(--fond-2); }
::-webkit-scrollbar-thumb { background: var(--encre-2); border-radius: 4px; }

.capitales { text-transform: uppercase; font-stretch: 118%; font-weight: 600; letter-spacing: .14em; font-size: .75rem; }
.code-ligne { font-stretch: 118%; font-weight: 700; letter-spacing: .16em; font-size: .72rem; }

/* Logos en masque : une seule source SVG, n'importe quelle couleur de fil. */
.logo-masque {
  display: block;
  background: currentColor;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
}
.logo-masque--wordmark { --logo: url(../marque/logo.svg); aspect-ratio: 6003.6 / 624.2; }
.logo-masque--monogramme { --logo: url(../marque/monogramme.svg); aspect-ratio: 4503.3 / 2274.6; }
.logo-masque--cadre { --logo: url(../marque/logo-cadre.svg); aspect-ratio: 1305 / 309; }

.icone { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- matières ---------- */
/* Jacquard : trame, chaîne, monogramme ton sur ton. */
.tisse {
  --tisse-fond: var(--encre);
  --tisse-fil: var(--fil);
  --tisse-motif: url(../marque/motif-ton-noir.svg);
  --trame: rgb(255 255 255 / .05);
  --chaine: rgb(0 0 0 / .2);
  background-color: var(--tisse-fond);
  background-image:
    repeating-linear-gradient(0deg, var(--trame) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--chaine) 0 1px, transparent 1px 3px),
    var(--tisse-motif);
  background-size: auto, auto, 82px 51px;
  color: var(--tisse-fil);
}
.tisse--street { --tisse-fond: var(--str); --tisse-fil: var(--str-fil); --tisse-motif: var(--str-motif); }
.tisse--atelier { --tisse-fond: var(--atl); --tisse-fil: var(--atl-fil); --tisse-motif: var(--atl-motif); }
/* Écru : chaîne et trame ton sur ton, sinon le fond clair se raye. */
.tisse--atelier, .carton[data-ligne="atelier"] .tisse { --trame: rgb(255 255 255 / .16); --chaine: rgb(74 65 57 / .07); }
.tisse--sport { --tisse-fond: var(--spt); --tisse-fil: var(--spt-fil); --tisse-motif: var(--spt-motif); }

/* Couture au fil : deux lignes pointillées cousues dans l'épaisseur. */
.cousu { position: relative; }
.cousu::before, .cousu::after {
  content: '';
  position: absolute;
  inset-inline: var(--couture-marge, 10px);
  border-top: 1.5px dashed currentColor;
  opacity: .55;
  pointer-events: none;
}
.cousu::before { top: var(--couture-marge, 10px); }
.cousu::after { bottom: var(--couture-marge, 10px); }

/* Satin d'étiquette d'entretien. */
.satin {
  background-color: #f1f3f2;
  background-image: repeating-linear-gradient(0deg, rgb(35 31 32 / .04) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 1px 0 rgb(35 31 32 / .07), inset 0 -1px 0 rgb(35 31 32 / .07), 0 1px 0 rgb(35 31 32 / .08), 0 10px 26px -18px rgb(35 31 32 / .5);
  color: var(--encre);
}

/* Bande motif BB (tringle, ruban, rail de la boutique) : un nombre entier de motifs
   (répétition « round », tuile de 176 × 104.425), terminé par un ourlet plié et piqué. */
.bande-bb, .grille-cartons .carton::before {
  --h: 22px;
  --ourlet: 11px;
  --ourlet-g:
    repeating-linear-gradient(180deg, rgb(35 31 32 / .5) 0 3px, transparent 3px 6px) left 4px top 0 / 1.5px 100% no-repeat border-box,
    linear-gradient(90deg, #e7e4dd calc(100% - 1px), rgb(35 31 32 / .3) 0) left 0 top 0 / var(--ourlet) 100% no-repeat border-box;
  --ourlet-d:
    repeating-linear-gradient(180deg, rgb(35 31 32 / .5) 0 3px, transparent 3px 6px) right 4px top 0 / 1.5px 100% no-repeat border-box,
    linear-gradient(270deg, #e7e4dd calc(100% - 1px), rgb(35 31 32 / .3) 0) right 0 top 0 / var(--ourlet) 100% no-repeat border-box;
  height: var(--h);
  padding-inline: var(--ourlet);
  background:
    var(--ourlet-g), var(--ourlet-d),
    url(../marque/motif-bande.svg) 0 0 / calc(var(--h) * 176 / 104.425) 100% round no-repeat content-box border-box;
  background-color: #f4f2ee;
  box-shadow: 0 1px 0 rgb(35 31 32 / .25), 0 4px 10px -6px rgb(35 31 32 / .5);
}

/* ---------- en-tête ---------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--fond);
  border-bottom: 1px solid var(--trait);
}
.entete__barre {
  max-width: calc(var(--large) + 2 * var(--gouttiere));
  margin: 0 auto;
  padding: 0 var(--gouttiere);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.entete__logo { display: block; text-decoration: none; border-radius: 2px; }
/* Griffe : le wordmark en fil blanc sur une étiquette tissée, comme une étiquette de col. */
.griffe {
  --couture-marge: 4px;
  display: flex;
  align-items: center;
  padding: 13px 18px;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgb(35 31 32 / .3), 0 8px 16px -10px rgb(35 31 32 / .7);
  transition: transform .25s var(--ease);
}
.entete__logo:hover .griffe { transform: translateY(-1px); }
.griffe__logo { display: block; width: 210px; height: auto; shape-rendering: geometricPrecision; }
.entete__nav { display: flex; gap: 4px; margin-inline-start: auto; }
.entete__nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .1em; font-size: .78rem;
  border-radius: 2px;
}
.entete__nav a:hover { background: var(--fond-2); }
.entete__nav a[aria-current="page"] { background: var(--encre); color: var(--fil); }
.puce-ligne { width: 10px; height: 10px; border-radius: 1px; background: var(--puce); box-shadow: inset 0 0 0 1px rgb(35 31 32 / .25); }
.entete__panier {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px;
  text-decoration: none;
  text-transform: uppercase; font-stretch: 112%; font-weight: 700; letter-spacing: .1em; font-size: .78rem;
  background: var(--encre); color: var(--fil);
  border-radius: 2px;
}
.entete__panier:hover { background: var(--encre-2); }
.compteur { display: inline-grid; min-width: 1.4em; text-align: center; overflow: hidden; }
.compteur > span { grid-area: 1 / 1; }
.compteur .entre { animation: chiffre-entre .45s var(--ease); }
.compteur .sort { animation: chiffre-sort .45s var(--ease) forwards; }
@keyframes chiffre-entre { from { opacity: 0; transform: translateY(70%); filter: blur(2px); } }
@keyframes chiffre-sort { to { opacity: 0; transform: translateY(-70%); filter: blur(2px); } }
.entete__menu {
  display: none;
  align-items: center; gap: 6px;
  border: 1px solid var(--encre); background: none; border-radius: 2px;
  padding: 7px 10px;
  text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .1em; font-size: .75rem;
  cursor: pointer;
}
.menu-mobile { display: none; }

/* ---------- carton suspendu ---------- */
.carton {
  --largeur: 240px;
  --ficelle: 44px;
  --ligne-fond: var(--str); --ligne-fil: var(--str-fil); --ligne-motif: var(--str-motif);
  position: relative;
  width: var(--largeur);
  flex: none;
  padding-top: var(--ficelle);
  transform: rotate(var(--balance, 0deg));
  transform-origin: 50% 0;
}
.carton[data-ligne="atelier"] { --ligne-fond: var(--atl); --ligne-fil: var(--atl-fil); --ligne-motif: var(--atl-motif); }
.carton[data-ligne="sport"] { --ligne-fond: var(--spt); --ligne-fil: var(--spt-fil); --ligne-motif: var(--spt-motif); }

/* Ficelle : du point d'accroche jusqu'à l'œillet, avec la boucle passée dans le trou. */
.carton__ficelle {
  position: absolute;
  top: 0; left: 50%;
  width: 1.5px;
  height: calc(var(--ficelle) + 22px);
  translate: -50% 0;
  background: linear-gradient(#4a4445, #7c7572);
  border-radius: 1px;
}
.carton__ficelle::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -3px;
  width: 12px; height: 26px;
  translate: -50% 0;
  border: 1.5px solid #6a6461;
  border-radius: 50%;
  border-top-color: transparent;
}
.carton__corps { position: relative; filter: drop-shadow(0 1px 1px rgb(35 31 32 / .18)) drop-shadow(0 14px 16px rgb(35 31 32 / .2)); }
.carton__faces { position: relative; display: grid; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.carton.est-retourne .carton__faces { transform: perspective(1400px) rotateY(180deg); }
.carton__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  background-color: var(--carton);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .12 0 0 0 0 .12 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23f)'/%3E%3C/svg%3E");
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
  -webkit-mask: radial-gradient(circle 7px at 50% 22px, #0000 97%, #000 100%);
  mask: radial-gradient(circle 7px at 50% 22px, #0000 97%, #000 100%);
  backface-visibility: hidden;
}
.carton__face--verso { transform: rotateY(180deg); }
/* Renfort d'œillet autour du trou. */
.carton__corps::after {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  width: 22px; height: 22px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #0000 7px, #cfcdc6 7.5px, #e9e8e3 9px, #b9b7b0 10.5px, #0000 11px);
  pointer-events: none;
}
.carton__tete {
  --tisse-fond: var(--ligne-fond); --tisse-fil: var(--ligne-fil); --tisse-motif: var(--ligne-motif);
  padding: 40px 16px 12px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  text-transform: uppercase;
}
.carton__tete .code-ligne { opacity: .9; }
.carton__image {
  display: block;
  text-decoration: none;
  aspect-ratio: 4 / 5;
  padding: 14px 16px 6px;
}
.carton__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.carton__image:hover img { transform: scale(1.04); }
.carton__texte { padding: 4px 16px 16px; display: grid; gap: 2px; }
.carton__nom { font-size: 1rem; font-weight: 700; line-height: 1.25; }
.carton__nom a { text-decoration: none; }
.carton__nom a:hover { text-decoration: underline; }
.carton__coloris { color: var(--texte-2); font-size: .875rem; }
.carton__pied {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1.5px dashed var(--trait);
}
.prix { font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.bouton-retourner {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  border: 0; background: none; padding: 6px 0; cursor: pointer;
  text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .08em; font-size: .72rem;
  color: var(--encre);
}
.bouton-retourner:hover { text-decoration: underline; text-underline-offset: .3em; }
.carton__verso-corps { padding: 18px 16px 16px; display: grid; gap: 14px; align-content: start; flex: 1; }
.carton__verso-corps h3 { font-size: 1rem; line-height: 1.25; }
.carton__verso-corps .note { color: var(--texte-2); font-size: .8rem; }
.carton__statut { min-height: 1.4em; font-size: .85rem; font-weight: 600; }

/* Échantillon de tissu au coloris, en attendant la photo : bords crantés. */
.echantillon { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 16px; }
.echantillon__tissu { width: 64%; aspect-ratio: 1; filter: drop-shadow(0 1px 1px rgb(35 31 32 / .2)) drop-shadow(0 10px 12px rgb(35 31 32 / .22)); rotate: -3deg; }
.echantillon__tissu::before {
  --dent: 11px;
  content: '';
  display: block;
  height: 100%;
  background-color: var(--teinte);
  background-image:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / .1) 0 1px, transparent 1px 2.5px),
    url(../marque/motif-ombre.svg);
  background-size: auto, auto, 62px 38.5px;
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--dent) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--dent) 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--dent) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--dent) 51% repeat-x;
}
.echantillon__mention { text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .12em; font-size: .68rem; color: var(--texte-2); }
.echantillon--petit .echantillon__tissu { width: 72%; }
.echantillon--petit .echantillon__tissu::before { --dent: 7px; }
.carton__image:hover .echantillon__tissu { rotate: 0deg; transition: rotate .5s var(--ease); }
.echantillon__tissu { transition: rotate .5s var(--ease); }

/* Carton de ligne : écusson tissé au monogramme. */
.carton__tissu { --couture-marge: 9px; margin: 18px 20px 6px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 2px; }
.carton__tissu::before, .carton__tissu::after { inset-inline: 9px; }
.carton__tissu .logo-masque { width: 58%; }

/* ---------- onglets de taille (étiquettes pliées) ---------- */
.tailles { display: flex; flex-wrap: wrap; gap: 8px; }
.onglet {
  position: relative;
  min-width: 48px; min-height: 44px;
  padding: 14px 14px 9px;
  display: inline-grid; place-items: center;
  border: 0;
  border-radius: 1px 1px 3px 3px;
  cursor: pointer;
  font-stretch: 112%; font-weight: 700; letter-spacing: .08em; font-size: .85rem;
  color: var(--encre);
  background-color: #eaecec;
  background-image:
    repeating-linear-gradient(0deg, rgb(35 31 32 / .05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(35 31 32 / .035) 0 1px, transparent 1px 3px);
  box-shadow: 0 1px 1px rgb(35 31 32 / .2), 0 4px 8px -6px rgb(35 31 32 / .45);
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.onglet::before { /* pli en haut de l'étiquette */
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 7px;
  background: linear-gradient(rgb(35 31 32 / .22), rgb(35 31 32 / .06));
  border-bottom: 1px solid rgb(255 255 255 / .55);
  border-radius: 1px 1px 0 0;
}
.onglet::after { /* piqûre */
  content: '';
  position: absolute; inset: 11px 4px 4px;
  border: 1px dashed currentColor;
  opacity: .28;
  border-radius: 1px;
  pointer-events: none;
}
.onglet:hover { transform: translateY(-2px); box-shadow: 0 1px 1px rgb(35 31 32 / .25), 0 8px 12px -6px rgb(35 31 32 / .5); }
.onglet[aria-pressed="true"], input:checked + .onglet {
  background-color: var(--ligne-fond);
  background-image:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(0 0 0 / .16) 0 1px, transparent 1px 3px);
  color: var(--ligne-fil);
  box-shadow: 0 6px 12px -6px rgb(35 31 32 / .6);
  transform: translateY(-2px);
}
.onglet[aria-pressed="true"]::after, input:checked + .onglet::after { opacity: .5; }
.fiche[data-ligne="atelier"] { --ligne-fond: var(--atl); --ligne-fil: var(--atl-fil); }
.fiche[data-ligne="sport"] { --ligne-fond: var(--spt); --ligne-fil: var(--spt-fil); }
input:focus-visible + .onglet { outline: 2px solid var(--encre); outline-offset: 3px; }
.onglet:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- boutons ---------- */
.bouton-tisse {
  --couture-marge: 5px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0; border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase; font-stretch: 118%; font-weight: 700; letter-spacing: .14em; font-size: .82rem;
  box-shadow: var(--ombre-tissu);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bouton-tisse::before, .bouton-tisse::after { inset-inline: 6px; }
.bouton-tisse:hover { transform: translateY(-2px); box-shadow: 0 2px 3px rgb(35 31 32 / .25), 0 22px 40px -20px rgb(35 31 32 / .7); }
.bouton-tisse:active { transform: translateY(0); }
.bouton-tisse[disabled], .bouton-tisse[aria-busy="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.bouton-tisse .icone { width: 18px; height: 18px; }
.bouton-satin {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 1px; cursor: pointer; text-decoration: none;
  text-transform: uppercase; font-stretch: 118%; font-weight: 700; letter-spacing: .12em; font-size: .75rem;
  transition: transform .25s var(--ease);
}
.bouton-satin:hover { transform: translateY(-2px); }
.lien-fleche {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; font-stretch: 112%; font-weight: 700; letter-spacing: .1em; font-size: .78rem;
  text-decoration: none;
}
.lien-fleche .icone { transition: translate .3s var(--ease); }
.lien-fleche:hover .icone { translate: 4px 0; }

/* ---------- accueil : étiquette géante ---------- */
.hero { padding: clamp(18px, 3vw, 32px) var(--gouttiere) 0; max-width: calc(var(--large) + 2 * var(--gouttiere)); margin: 0 auto; }
.etiquette-hero {
  --couture-marge: 12px;
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 6vw, 80px) clamp(40px, 5vw, 60px);
  border-radius: 2px;
  box-shadow: var(--ombre-tissu);
}
/* Bords repliés aux deux extrémités. */
.etiquette-hero > .pli {
  position: absolute; top: 0; bottom: 0; width: 16px;
  background: linear-gradient(90deg, rgb(0 0 0 / .45), rgb(0 0 0 / .15));
  pointer-events: none;
}
.etiquette-hero > .pli--g { left: 0; box-shadow: 1px 0 0 rgb(255 255 255 / .12); }
.etiquette-hero > .pli--d { right: 0; transform: scaleX(-1); box-shadow: 1px 0 0 rgb(255 255 255 / .12); }
.etiquette-hero__wordmark { width: clamp(230px, 42vw, 600px); }
.etiquette-hero__ligne { text-align: center; opacity: .9; }
.etiquette-hero__onglet {
  position: absolute;
  left: 33.333%;
  bottom: 0;
  translate: -50% 50%;
}
.etiquette-hero__onglet .bouton-satin { white-space: nowrap; box-shadow: 0 1px 0 rgb(35 31 32 / .2), 0 10px 20px -10px rgb(35 31 32 / .55); }

.hero__cartons {
  display: flex;
  justify-content: space-evenly;
  gap: clamp(16px, 3vw, 40px);
  margin-top: -2px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.carton--ligne { --largeur: clamp(250px, 24vw, 310px); }
.carton--ligne:nth-child(1) { --ficelle: 54px; }
.carton--ligne:nth-child(2) { --ficelle: 92px; }
.carton--ligne:nth-child(3) { --ficelle: 66px; }
.carton--ligne .carton__tete { padding: 42px 18px 14px; }
.carton--ligne .carton__titre { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: .95; letter-spacing: -.005em; }
.carton--ligne .carton__image { aspect-ratio: 1 / 1; padding: 18px 22px 4px; }
.carton--ligne .carton__texte { padding: 4px 18px 10px; color: var(--texte-2); font-size: .9rem; }
.carton--ligne .carton__pied { padding: 12px 18px 16px; }
.lien-etendu::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.carton--ligne .carton__face { position: relative; }

/* ---------- sections ---------- */
.section { max-width: calc(var(--large) + 2 * var(--gouttiere)); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gouttiere) 0; }
.section__tete { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section__tete h2 { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: .95; }

.tringle { position: relative; }
.tringle__bande { border-radius: 1px; }
.rangee {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 4px 40px;
  margin-top: -1px;
  overscroll-behavior-x: contain;
}
.rangee .carton { --largeur: 226px; scroll-snap-align: start; }
.rangee .carton:nth-child(3n + 2) { --ficelle: 58px; }
.rangee .carton:nth-child(3n) { --ficelle: 36px; }

/* Le motif BB : les bandes fournies par la marque, posées comme des rubans. */
.motif { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.motif__bande { margin: 0; display: grid; gap: 28px; }
.ruban-motif {
  --couture-marge: 7px;
  position: relative;
  background: #f4f2ee;
  box-shadow: 0 1px 1px rgb(35 31 32 / .2), 0 16px 26px -14px rgb(35 31 32 / .45);
  color: var(--encre);
}
.ruban-motif img { width: 100%; height: auto; }
.ruban-motif::before, .ruban-motif::after { content: ''; position: absolute; inset-inline: 0; border-top: 1.5px dashed var(--encre); opacity: .45; }
.ruban-motif::before { top: 7px; }
.ruban-motif::after { bottom: 7px; }
.emplacements { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.emplacements li { padding: 9px 14px 8px; border-radius: 1px; text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .1em; font-size: .72rem; }
.motif__texte { display: grid; gap: 18px; max-width: 46ch; }
.motif__texte h2 { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: .95; }
.motif__texte p { color: var(--texte-2); font-size: 1.05rem; }
.ruban { --h: 34px; --ourlet: 14px; margin-top: clamp(48px, 7vw, 96px); }

.cloture {
  --couture-marge: 12px;
  display: grid; justify-items: center; gap: 22px;
  padding: clamp(44px, 6vw, 80px) 24px;
  border-radius: 2px;
  text-align: center;
  box-shadow: var(--ombre-tissu);
}
.cloture__cadre { width: min(420px, 78%); }
.cloture p { max-width: 42ch; }

/* ---------- boutique ---------- */
.boutique-tete { display: grid; gap: 20px; }
.boutique-tete h1 { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .92; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.filtre {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border-radius: 2px;
  text-decoration: none;
  background: var(--carton);
  box-shadow: inset 0 0 0 1px var(--trait);
  font-stretch: 112%; font-weight: 600; font-size: .85rem;
  transition: box-shadow .2s, transform .2s var(--ease);
}
.filtre:hover { box-shadow: inset 0 0 0 1px var(--encre); transform: translateY(-1px); }
.filtre[aria-current="true"] { background: var(--encre); color: var(--fil); box-shadow: none; }
.filtre .nombre { opacity: .7; font-weight: 500; }
.filtres-groupe { display: grid; gap: 8px; }
.filtres-groupe > span { color: var(--texte-2); }

.grille-cartons {
  --gap: clamp(20px, 2.6vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  margin-top: 34px;
  padding-bottom: 24px;
}
.grille-cartons .carton { --largeur: 100%; --ficelle: 40px; }
.grille-cartons .carton:nth-child(odd) { --ficelle: 52px; }
/* Tringle de chaque rangée : un segment par carton, jointifs ; l'ourlet n'apparaît
   qu'aux deux bouts de la rangée (data-rail posé par app.js). */
.grille-cartons .carton::before {
  content: '';
  position: absolute;
  top: -11px; left: calc(var(--gap) / -2 - 1px); right: calc(var(--gap) / -2 - 1px);
  box-sizing: border-box;
  box-shadow: 0 4px 8px -6px rgb(35 31 32 / .55);
  transform: rotate(calc(-1 * var(--balance, 0deg)));
}
.grille-cartons .carton:not([data-rail~="debut"])::before { --ourlet-g: none; padding-left: 0; }
.grille-cartons .carton:not([data-rail~="fin"])::before { --ourlet-d: none; padding-right: 0; }
.grille-cartons .carton[data-rail~="debut"]::before { left: 0; }
.grille-cartons .carton[data-rail~="fin"]::before { right: 0; }
.vide { padding: 48px 0; color: var(--texte-2); }

/* ---------- fiche produit ---------- */
.fiche { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.fiche__visuel { position: sticky; top: 84px; display: grid; justify-items: center; gap: 16px; }
.fiche__visuel .carton { --largeur: min(100%, 520px); --ficelle: 36px; }
.fiche__visuel .carton__image { aspect-ratio: 1 / 1; padding: 24px 28px 18px; }
.crochet { width: 46px; height: 12px; border-radius: 6px 6px 2px 2px; background: linear-gradient(#5b5555, #2f2a2b); margin-bottom: -14px; position: relative; z-index: 1; }
.vues { display: flex; gap: 8px; }
.fiche__infos { display: grid; gap: 22px; padding-top: clamp(0px, 3vw, 40px); }
.fiche__etiquette {
  --couture-marge: 8px;
  padding: 26px 28px 24px;
  border-radius: 2px;
  box-shadow: var(--ombre-tissu);
  display: grid; gap: 8px;
}
.fiche__etiquette h1 { font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: .98; }
.fiche__prix { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fiche__prix .prix { font-size: 1.75rem; }
.mention-provisoire { font-size: .78rem; color: var(--texte-2); text-transform: uppercase; letter-spacing: .1em; font-stretch: 112%; font-weight: 600; }
.champ { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.champ legend, .champ > .capitales { padding: 0; margin-bottom: 10px; }
.champ + .champ { margin-top: 12px; } /* les onglets de taille se soulèvent de 2px une fois choisis */
.tailles input { position: absolute; opacity: 0; pointer-events: none; }
.quantite { justify-self: start; display: inline-flex; align-items: center; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--trait); background: var(--carton); }
.quantite button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 2px; }
.quantite button:hover { background: var(--fond-2); }
.quantite button:disabled { opacity: .35; cursor: not-allowed; background: none; }
.quantite output { min-width: 2.2em; text-align: center; font-weight: 700; }
.fiche__action { display: grid; gap: 10px; }
.fiche__action .bouton-tisse { width: 100%; }
.statut { min-height: 1.5em; font-weight: 600; }
.statut--erreur { color: #8c1d24; }
.etiquette-entretien { position: relative; padding: 26px 24px 22px; border-radius: 1px; display: grid; gap: 14px; }
.etiquette-entretien::before, .pied__etiquette::before { /* pli cousu de l'étiquette */
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 11px;
  background: linear-gradient(rgb(35 31 32 / .08), rgb(35 31 32 / 0));
  border-bottom: 1px dashed rgb(35 31 32 / .28);
  pointer-events: none;
}
.etiquette-entretien dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .9rem; }
.etiquette-entretien dt { text-transform: uppercase; letter-spacing: .1em; font-stretch: 112%; font-weight: 600; font-size: .72rem; padding-top: .2em; color: var(--texte-2); }
.etiquette-entretien dd { margin: 0; }
.a-confirmer { color: var(--texte-2); font-style: italic; }

/* ---------- panier ---------- */
.panier { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 28px; }
.panier__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ligne-panier {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 18px 14px 14px;
  border-radius: 2px;
}
.ligne-panier__image { background: var(--carton); border-radius: 2px; aspect-ratio: 1; padding: 6px; box-shadow: inset 0 0 0 1px var(--trait); }
.ligne-panier__image img { width: 100%; height: 100%; object-fit: contain; }
.ligne-panier h2 { font-size: 1rem; line-height: 1.3; }
.ligne-panier h2 a { text-decoration: none; }
.ligne-panier h2 a:hover { text-decoration: underline; }
.ligne-panier__meta { color: var(--texte-2); font-size: .875rem; }
.ligne-panier__actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.ligne-panier__prix { font-weight: 800; text-align: right; }
.lien-discret { min-height: 44px; display: inline-flex; align-items: center; border: 0; background: none; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; color: var(--texte-2); font-size: .85rem; }
.lien-discret:hover { color: var(--encre); }
.recap {
  --couture-marge: 9px;
  position: sticky; top: 84px;
  padding: 28px 26px 26px;
  border-radius: 2px;
  box-shadow: var(--ombre-tissu);
  display: grid; gap: 16px;
}
.recap h2 { font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 1.8rem; line-height: 1; }
.recap dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.recap dd { margin: 0; text-align: right; font-weight: 700; }
.recap .total { font-size: 1.35rem; font-weight: 800; padding-top: 10px; border-top: 1.5px dashed rgb(244 242 238 / .45); }
.recap .note { opacity: .8; font-size: .85rem; }
.recap .bouton-satin { justify-content: center; min-height: 52px; font-size: .82rem; }
.panier-vide { display: grid; justify-items: start; gap: 18px; padding: 48px 0; }
.panier-vide p { font-size: 1.15rem; }

/* ---------- pied de page : étiquette d'entretien ---------- */
.pied { margin-top: clamp(48px, 6vw, 88px); padding: 0 var(--gouttiere) 28px; }
.pied__etiquette {
  position: relative;
  max-width: var(--large);
  margin: 0 auto;
  padding: 34px clamp(22px, 4vw, 44px) 26px;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px);
  border-radius: 1px;
}
.pied__monogramme { width: 92px; color: var(--encre); }
.pied h2 { margin-bottom: 10px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied__bas { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; border-top: 1.5px dashed var(--trait); color: var(--texte-2); font-size: .82rem; }

.page { max-width: calc(var(--large) + 2 * var(--gouttiere)); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gouttiere) 0; width: 100%; }
.fil-ariane { font-size: .85rem; color: var(--texte-2); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.fil-ariane a { color: inherit; }

/* ---------- compléments de pages ---------- */
.carton--ligne .carton__titre { color: var(--encre); }
.carton--ligne .carton__titre a { text-decoration: none; }
.carton--ligne:hover .lien-fleche .icone { translate: 4px 0; }
.titre-page { font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 5rem); line-height: .92; }
.boutique-texte { color: var(--texte-2); font-size: 1.05rem; max-width: 52ch; }
.section--pleine { padding-inline: 0; }
.cloture__monogramme { width: clamp(96px, 12vw, 150px); }
.cloture h2 { font-size: .85rem; }
.cloture .titre-page { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .entete__nav { display: none; }
  .entete__menu { display: inline-flex; margin-inline-start: auto; }
  .menu-mobile:not([hidden]) {
    display: grid; gap: 2px;
    padding: 8px var(--gouttiere) 16px;
    border-top: 1px solid var(--trait);
  }
  .menu-mobile a {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px; padding: 0 4px;
    text-decoration: none;
    text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .1em; font-size: .85rem;
    border-bottom: 1px dashed var(--trait);
  }
  .fiche, .panier, .motif { grid-template-columns: minmax(0, 1fr); }
  .fiche__visuel { position: static; }
  .recap { position: relative; top: auto; }
  .pied__etiquette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied__monogramme { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .etiquette-hero__onglet { position: static; translate: none; margin-top: 6px; }
  .hero__cartons {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gouttiere));
    padding-inline: var(--gouttiere);
    scrollbar-width: none;
  }
  .hero__cartons::-webkit-scrollbar { display: none; }
  .carton--ligne { --largeur: min(46vw, 310px); scroll-snap-align: center; }
}
@media (max-width: 760px) {
  .entete__barre { height: 62px; gap: 12px; }
  .griffe { padding: 10px 12px; }
  .griffe__logo { width: 148px; }
  .entete__panier .libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .etiquette-hero { padding-inline: 28px; }
  .carton--ligne { --largeur: 74vw; }
  .grille-cartons { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .grille-cartons .carton__texte, .grille-cartons .carton__pied { padding-inline: 12px; }
  .grille-cartons .carton__tete { padding-inline: 12px; }
  .grille-cartons .carton__image { padding: 10px; }
  .grille-cartons .carton__pied { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rangee .carton { --largeur: 62vw; }
  .ligne-panier { grid-template-columns: 72px minmax(0, 1fr); }
  .ligne-panier__prix { grid-column: 2; text-align: left; }
  .pied__etiquette { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- ajout au panier : étiquette volante, panier qui l'accroche, volet ---------- */
.etiquette-volante {
  position: fixed; z-index: 60;
  width: 44px; height: 60px;
  pointer-events: none;
  transform-origin: 50% 6px;
  filter: drop-shadow(0 1px 1px rgb(35 31 32 / .25)) drop-shadow(0 10px 12px rgb(35 31 32 / .3));
}
.etiquette-volante__corps {
  display: grid; grid-template-rows: 17px 1fr;
  height: 100%;
  background: var(--carton);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%, 0 8px);
  -webkit-mask: radial-gradient(circle 3.5px at 50% 8px, #0000 96%, #000 100%);
  mask: radial-gradient(circle 3.5px at 50% 8px, #0000 96%, #000 100%);
}
.etiquette-volante__tete { background-size: auto, auto, 41px 25.5px; }
.etiquette-volante__tissu {
  margin: 7px 8px 9px;
  background-color: var(--teinte);
  background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / .08) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgb(0 0 0 / .1) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 0 1px rgb(35 31 32 / .12);
}
.entete__panier { transform-origin: 50% 0; }
.entete__panier.accroche { animation: accroche .9s linear; }
@keyframes accroche {
  0% { transform: rotate(0); }
  12% { transform: translateY(3px) rotate(-7deg); }
  32% { transform: translateY(1px) rotate(5deg); }
  52% { transform: rotate(-3deg); }
  72% { transform: rotate(1.5deg); }
  100% { transform: rotate(0); }
}

.sac {
  position: fixed; z-index: 30;
  top: calc(72px + 10px); right: max(var(--gouttiere), calc((100vw - var(--large)) / 2));
  width: min(380px, calc(100vw - 2 * var(--gouttiere)));
  display: grid; gap: 14px;
  padding: 24px 22px 14px;
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgb(35 31 32 / .07), 0 1px 2px rgb(35 31 32 / .2), 0 24px 48px -24px rgb(35 31 32 / .65);
  clip-path: inset(0 0 100% 0);
  transform: translateY(-8px);
  transition: clip-path .45s var(--ease), transform .45s var(--ease);
}
.sac::before { /* pli cousu en tête, comme l'étiquette d'entretien */
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 11px;
  background: linear-gradient(rgb(35 31 32 / .08), rgb(35 31 32 / 0));
  border-bottom: 1px dashed rgb(35 31 32 / .28);
  pointer-events: none;
}
.sac.est-ouvert { clip-path: inset(0 -40px -60px -40px); transform: none; }
.sac__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.sac__titre { font-stretch: 78%; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.sac__fermer { width: 44px; height: 44px; margin: -10px -12px -10px 0; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 2px; color: var(--encre); }
.sac__fermer:hover { background: var(--fond-2); }
.sac__piece { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.sac__vignette { display: block; aspect-ratio: 1; padding: 5px; background: var(--carton); border-radius: 2px; box-shadow: inset 0 0 0 1px var(--trait); }
.sac__vignette img { width: 100%; height: 100%; object-fit: contain; }
.sac__nom { font-weight: 700; line-height: 1.3; }
.sac__meta { color: var(--texte-2); font-size: .85rem; margin-top: 2px; }
.sac__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1.5px dashed var(--trait); text-transform: uppercase; font-stretch: 112%; font-weight: 600; letter-spacing: .1em; font-size: .75rem; }
.sac__total .prix { font-size: 1.15rem; letter-spacing: .01em; }
.sac .note { color: var(--texte-2); font-size: .78rem; margin-top: -6px; }
.sac .bouton-tisse { width: 100%; }
.sac .lien-discret { justify-self: center; }

/* Rappel de taille : la rangée d'onglets se secoue sur sa couture. */
.tailles--rappel { animation: rappel .5s var(--ease); }
.tailles--rappel .onglet { box-shadow: 0 0 0 1.5px #8c1d24, 0 4px 8px -6px rgb(35 31 32 / .45); }
@keyframes rappel {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* Barre d'achat collante de la fiche (une colonne). */
.barre-achat { display: none; }
@media (max-width: 1020px) {
  .barre-achat {
    position: fixed; z-index: 25; inset: auto 0 0 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px var(--gouttiere) calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 rgb(35 31 32 / .2), 0 -14px 30px -18px rgb(35 31 32 / .55);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
  }
  .barre-achat::before { content: ''; position: absolute; inset: 5px 0 auto; border-top: 1.5px dashed currentColor; opacity: .4; }
  .barre-achat.est-visible { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
  .barre-achat__texte { display: grid; min-width: 0; }
  .barre-achat__nom { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .barre-achat .bouton-satin { flex: none; min-height: 48px; }
  body.a-barre-achat { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .sac { top: calc(62px + 8px); }
}

/* ---------- tissage de l'étiquette d'accueil (première visite) ---------- */
@property --epaisseur-fil { syntax: '<length>'; inherits: false; initial-value: 3px; }
.navette { display: none; }
.tissage .etiquette-hero { animation: tisser 1.05s steps(15, end) .15s backwards; }
.tissage .navette {
  display: block;
  position: absolute; inset-inline: 0; top: -2px; z-index: 3;
  height: 2px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgb(244 242 238 / .9) 18% 82%, transparent);
  box-shadow: 0 0 12px rgb(244 242 238 / .4);
  pointer-events: none;
  animation: navette 1.05s steps(15, end) .15s backwards;
}
.tissage .etiquette-hero__wordmark {
  background: repeating-linear-gradient(180deg, currentColor 0 var(--epaisseur-fil), transparent var(--epaisseur-fil) 3px);
  animation: fil .8s cubic-bezier(.3, .6, .2, 1) 1s backwards;
}
.tissage .etiquette-hero__ligne { animation: apparaitre .5s var(--ease) 1.5s backwards; }
.tissage .etiquette-hero__onglet { animation: onglet-pose .6s var(--ease) 1.6s backwards; }
.tissage .hero__cartons > .carton { animation: descendre .8s var(--ease) 1.15s backwards; }
.tissage .hero__cartons > .carton:nth-child(2) { animation-delay: 1.25s; }
.tissage .hero__cartons > .carton:nth-child(3) { animation-delay: 1.35s; }
@keyframes tisser { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes navette { from { top: -2px; opacity: 1; } to { top: calc(100% - 2px); opacity: 1; } }
@keyframes fil { from { --epaisseur-fil: 0px; } to { --epaisseur-fil: 3px; } }
@keyframes apparaitre { from { opacity: 0; translate: 0 6px; } }
@keyframes onglet-pose { from { opacity: 0; transform: translateY(-10px); } }
@keyframes descendre { from { opacity: 0; translate: 0 -28px; } }

/* ---------- boutique : un portant par type ---------- */
.portants { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); margin-top: 34px; }
.portant { min-width: 0; }
.portant__titre { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-stretch: 72%; font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1; }
.portant__titre .nombre { font-stretch: 118%; font-weight: 600; letter-spacing: .14em; font-size: .75rem; color: var(--texte-2); }
.portant .grille-cartons { margin-top: 0; }

/* ---------- panier : le portant ---------- */
.portant-panier { margin-top: 22px; }
.portant-panier .rangee { --marge-ombre: min(24px, var(--gouttiere)); padding: 0 var(--marge-ombre) 48px; margin-inline: calc(-1 * var(--marge-ombre)); }
.portant-panier .tringle__bande { margin-inline: 0; }
.portant-panier .rangee .carton { --largeur: 150px; --ficelle: 30px; text-decoration: none; color: inherit; }
.portant-panier .rangee .carton:nth-child(even) { --ficelle: 44px; }
.portant-panier .carton__tete { padding: 32px 10px 8px; }
.portant-panier .carton__image { aspect-ratio: 1; padding: 10px 16px 2px; }
.portant-panier .carton__texte { padding: 2px 10px 12px; }
.portant-panier .carton__nom { font-size: .85rem; }
.portant-panier .carton__coloris { font-size: .78rem; }
.portant-panier .carton:hover .echantillon__tissu { rotate: 0deg; }

/* ---------- merci : griffe numérotée ---------- */
.griffe-commande {
  --couture-marge: 6px;
  display: grid; justify-items: center; gap: 10px;
  padding: 24px clamp(24px, 5vw, 40px) 20px;
  color: var(--encre);
  animation: tisser .9s steps(12, end) .1s backwards;
}
.griffe-commande__wordmark { width: clamp(150px, 30vw, 200px); }
.griffe-commande__numero { display: flex; align-items: baseline; gap: 12px; }
.griffe-commande__numero b { font-stretch: 72%; font-weight: 800; font-size: 2.4rem; line-height: 1; letter-spacing: .02em; }
#texte-griffe { font-size: .9rem; opacity: .85; }

@media (max-width: 760px) {
  .portant .grille-cartons {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--gouttiere));
    padding: 12px var(--gouttiere) 28px;
    scroll-padding-inline: var(--gouttiere);
  }
  .portant .grille-cartons::-webkit-scrollbar { display: none; }
  .portant .grille-cartons .carton { --largeur: 64vw; scroll-snap-align: start; }
  .portant .grille-cartons .carton__pied { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .carton { transform: none !important; }
}
