/* ==========================================================================
   TEXTILA — Design system
   Maison Bekkhoucha · Tlemcen · depuis 1954
   Identité 2026 : ivoire, encre chaude, cuivre de Tlemcen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — palette claire et aérée : le produit doit porter la couleur. */
  --tx-ivory:      #F7F3EE;
  --tx-paper:      #EFE8E1;
  --tx-paper-deep: #E4DBD2;
  --tx-ink:        #2A2521;
  --tx-ink-raised: #332C27;

  /* Encre */
  --tx-text:       #2A2521;
  --tx-text-soft:  #5B534B;
  --tx-text-muted: #8C8279;
  --tx-on-dark:        #F7F3EE;
  --tx-on-dark-soft:   rgba(247, 243, 238, 0.78);
  --tx-on-dark-muted:  rgba(247, 243, 238, 0.55);

  /* Accents */
  --tx-copper:       #A9765C;
  --tx-copper-warm:  #C08D71;
  --tx-sand:         #D9C3AE;
  --tx-sand-soft:    #EBDBCB;
  --tx-forest:       #4A7A62;

  /* Traits — très fins, ce sont eux qui structurent la page */
  --tx-line:        #E4DCD3;
  --tx-line-strong: #D3C8BC;
  --tx-line-dark:   rgba(247, 243, 238, 0.18);

  /* Typographie */
  --tx-display: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
  --tx-sans:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --tx-step--2: clamp(0.66rem, 0.63rem + 0.14vw, 0.72rem);
  --tx-step--1: clamp(0.78rem, 0.75rem + 0.16vw, 0.86rem);
  --tx-step-0:  clamp(0.95rem, 0.92rem + 0.18vw, 1.03rem);
  --tx-step-1:  clamp(1.12rem, 1.05rem + 0.35vw, 1.32rem);
  --tx-step-2:  clamp(1.45rem, 1.28rem + 0.85vw, 2rem);
  --tx-step-3:  clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --tx-step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --tx-step-5:  clamp(3.2rem, 2rem + 5.6vw, 7rem);

  /* Rythme */
  --tx-gutter:  clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
  --tx-section: clamp(4.5rem, 3rem + 6.5vw, 9rem);
  --tx-max:     1360px;
  --tx-max-narrow: 780px;

  /* Mouvement */
  --tx-ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --tx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Ombres */
  --tx-shadow-sm: 0 2px 10px -4px rgba(18, 16, 14, 0.14);
  --tx-shadow-md: 0 18px 40px -24px rgba(18, 16, 14, 0.35);
  --tx-shadow-lg: 0 40px 90px -48px rgba(18, 16, 14, 0.5);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--tx-ivory);
  color: var(--tx-text);
  font-family: var(--tx-sans);
  font-size: var(--tx-step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Un display: grid/flex sur un composant l'emporterait sur l'attribut hidden :
   plusieurs blocs du panier resteraient visibles. */
[hidden] { display: none !important; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; padding: 0; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--tx-copper);
  outline-offset: 3px;
}

.tx-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Mise en page
   -------------------------------------------------------------------------- */
.tx-container {
  width: 100%;
  max-width: var(--tx-max);
  margin-inline: auto;
  padding-inline: var(--tx-gutter);
}

.tx-container--narrow { max-width: var(--tx-max-narrow); }

.tx-section { padding-block: var(--tx-section); }
.tx-section--tight { padding-block: calc(var(--tx-section) * 0.6); }
.tx-section--paper { background: var(--tx-paper); }
.tx-section--dark  { background: var(--tx-ink); color: var(--tx-on-dark); }

.tx-section--dark .tx-eyebrow { color: var(--tx-sand); }
.tx-section--dark .tx-title   { color: var(--tx-on-dark); }
.tx-section--dark .tx-lede    { color: var(--tx-on-dark-soft); }

/* --------------------------------------------------------------------------
   4. Typographie
   -------------------------------------------------------------------------- */
.tx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--tx-sans);
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx-copper);
}

.tx-eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.tx-eyebrow--center { justify-content: center; }
.tx-eyebrow--center::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.tx-title {
  font-family: var(--tx-display);
  font-weight: 400;
  font-size: var(--tx-step-4);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.tx-title em {
  font-style: italic;
  color: var(--tx-copper);
}

.tx-title--sm { font-size: var(--tx-step-3); }
.tx-title--xl { font-size: var(--tx-step-5); }

.tx-lede {
  font-size: var(--tx-step-1);
  font-weight: 300;
  line-height: 1.7;
  color: var(--tx-text-soft);
  max-width: 56ch;
  text-wrap: pretty;
}

.tx-body { color: var(--tx-text-soft); max-width: 62ch; }

/* Texte d'aide discret — ne jamais utiliser une étiquette en capitales pour ça. */
.tx-note {
  font-size: var(--tx-step--1);
  color: var(--tx-text-muted);
  line-height: 1.6;
}

.tx-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.tx-section-head__text { display: grid; gap: 1.1rem; }

.tx-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.tx-section-head--center .tx-section-head__text { justify-items: center; }
.tx-section-head--center .tx-lede { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.tx-btn {
  --btn-bg: var(--tx-ink);
  --btn-fg: var(--tx-on-dark);
  --btn-bd: var(--tx-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.05rem 2.2rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-size: var(--tx-step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform 0.4s var(--tx-ease), box-shadow 0.4s var(--tx-ease),
              background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.tx-btn svg { flex-shrink: 0; transition: transform 0.4s var(--tx-ease); }
.tx-btn:hover { transform: translateY(-2px); box-shadow: var(--tx-shadow-md); }
.tx-btn:hover svg { transform: translateX(4px); }
.tx-btn:active { transform: translateY(0); }

.tx-btn--copper { --btn-bg: var(--tx-copper); --btn-bd: var(--tx-copper); --btn-fg: #FFF8F1; }
.tx-btn--copper:hover { --btn-bg: var(--tx-copper-warm); --btn-bd: var(--tx-copper-warm); }

.tx-btn--light { --btn-bg: var(--tx-ivory); --btn-fg: var(--tx-ink); --btn-bd: var(--tx-ivory); }

.tx-btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--tx-ink);
  --btn-bd: var(--tx-line-strong);
}
.tx-btn--outline:hover { --btn-bg: var(--tx-ink); --btn-fg: var(--tx-on-dark); --btn-bd: var(--tx-ink); }

.tx-btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--tx-on-dark);
  --btn-bd: rgba(247, 243, 234, 0.4);
}
.tx-btn--outline-light:hover { --btn-bg: rgba(247, 243, 234, 0.12); --btn-bd: rgba(247, 243, 234, 0.75); }

.tx-btn--block { width: 100%; }
.tx-btn--lg { padding: 1.25rem 2.6rem; }

/* Pastille — bouton compact du haut de page (panier, actions discrètes) */
.tx-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tx-pill:hover { background: var(--tx-ink); color: var(--tx-ivory); border-color: var(--tx-ink); }

.tx-pill__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.35em;
  padding: 0 0.3em;
  border-radius: 999px;
  background: var(--tx-copper);
  color: #FFF8F3;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0;
}
.tx-pill__count[data-empty='true'] { display: none; }

.tx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--tx-step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--tx-line-strong);
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s var(--tx-ease);
}
.tx-link:hover { color: var(--tx-copper); border-color: var(--tx-copper); gap: 0.9rem; }

/* --------------------------------------------------------------------------
   6. En-tête
   -------------------------------------------------------------------------- */
.tx-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  transition: background-color 0.45s var(--tx-ease), box-shadow 0.45s var(--tx-ease),
              border-color 0.45s var(--tx-ease);
  border-bottom: 1px solid transparent;
}

.tx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(0.9rem, 1.6vw, 1.35rem);
}

.tx-header__logo img {
  height: clamp(34px, 3.4vw, 46px);
  width: auto;
  transition: filter 0.45s var(--tx-ease);
}

.tx-nav { display: flex; gap: clamp(1.4rem, 2.6vw, 2.6rem); align-items: center; }

.tx-nav__link {
  position: relative;
  font-size: var(--tx-step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  transition: color 0.3s ease;
}

.tx-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--tx-ease);
}
.tx-nav__link:hover::after,
.tx-nav__link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.tx-header__actions { display: flex; align-items: center; gap: 1rem; }

.tx-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--tx-step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tx-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.tx-burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--tx-ease), opacity 0.3s ease;
}

/* État transparent : uniquement au-dessus d'un héros sombre.
   Le logo garde ses couleurs — on ajoute seulement une ombre portée pour qu'il
   reste lisible sur une photo claire. Ne jamais le recolorer au filtre :
   un logo sur fond opaque deviendrait un bloc plein. */
.tx-header--over-hero { color: var(--tx-on-dark); }
.tx-header--over-hero .tx-header__logo img {
  filter: drop-shadow(0 2px 10px rgba(18, 16, 14, 0.55));
}

/* État posé : dès 40 px de défilement, fond blanc opaque + trait */
.tx-header--pinned {
  background: var(--tx-ivory);
  border-bottom-color: var(--tx-line);
  color: var(--tx-ink);
  box-shadow: var(--tx-shadow-sm);
}
.tx-header--pinned .tx-header__logo img { filter: none; }

/* Menu mobile */
.tx-drawer {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--tx-ink);
  color: var(--tx-on-dark);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.6rem;
  padding: var(--tx-gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 0.4s var(--tx-ease), transform 0.5s var(--tx-ease), visibility 0.4s;
}
.tx-drawer[data-open='true'] { opacity: 1; visibility: visible; transform: none; }

.tx-drawer__link {
  font-family: var(--tx-display);
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  line-height: 1.1;
  transition: color 0.3s ease;
}
.tx-drawer__link:hover { color: var(--tx-sand); }

.tx-drawer__close { position: absolute; top: 1.2rem; right: 1.2rem; padding: 0.6rem; }

.tx-drawer__meta {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  font-size: var(--tx-step--2);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tx-on-dark-muted);
}

/* --------------------------------------------------------------------------
   7. Héros
   -------------------------------------------------------------------------- */
.tx-hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--tx-ink);
  isolation: isolate;
}

/* Le zoom au défilement porte sur le conteneur, pas sur les images :
   celles-ci gardent leur propre transformation pour le fondu enchaîné. */
.tx-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: scale(var(--tx-zoom, 1.12));
  transform-origin: 50% 45%;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .tx-hero__media { transform: none; }
}

.tx-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease-in-out, transform 7s linear;
}
.tx-hero__slide[data-active='true'] { opacity: 1; transform: scale(1); }

.tx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(18, 16, 14, 0.94) 0%, rgba(18, 16, 14, 0.62) 34%, rgba(18, 16, 14, 0.24) 62%, rgba(18, 16, 14, 0.1) 100%),
    linear-gradient(100deg, rgba(18, 16, 14, 0.72) 0%, rgba(18, 16, 14, 0.28) 52%, transparent 82%);
}

.tx-hero__inner {
  position: relative;
  padding-block: clamp(7rem, 14vw, 9rem) clamp(2.5rem, 5vw, 4rem);
  color: var(--tx-on-dark);
  display: grid;
  gap: clamp(1.4rem, 2.4vw, 2rem);
}

/* Le bloc reste calé à gauche du conteneur, sans se recentrer sur grand écran. */
.tx-hero__inner > * { max-width: 46rem; }

.tx-hero .tx-eyebrow { color: var(--tx-sand-soft); }

.tx-hero__title {
  font-family: var(--tx-display);
  font-size: var(--tx-step-5);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.tx-hero__title em { font-style: italic; color: var(--tx-sand-soft); }

.tx-hero__lede {
  font-size: var(--tx-step-1);
  font-weight: 300;
  color: var(--tx-on-dark-soft);
  max-width: 42ch;
}

.tx-hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; }

.tx-hero__dots {
  position: absolute;
  right: var(--tx-gutter);
  bottom: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  gap: 0.6rem;
}
.tx-hero__dot {
  width: 30px; height: 2px;
  background: rgba(247, 243, 234, 0.3);
  transition: background-color 0.4s ease;
}
.tx-hero__dot[aria-selected='true'] { background: var(--tx-sand); }

/* --------------------------------------------------------------------------
   8. Bandeau de confiance
   -------------------------------------------------------------------------- */
/* Bandeau clair, structuré par de simples filets verticaux. */
.tx-trust {
  background: var(--tx-ivory);
  color: var(--tx-text);
  border-bottom: 1px solid var(--tx-line);
}

.tx-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.tx-trust__item {
  padding: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1rem, 2vw, 1.8rem);
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
}
.tx-trust__item + .tx-trust__item { border-left: 1px solid var(--tx-line); }

.tx-trust__item svg { color: var(--tx-copper); margin-bottom: 0.35rem; }

.tx-trust__title {
  font-size: var(--tx-step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tx-trust__note {
  font-size: var(--tx-step--2);
  letter-spacing: 0.04em;
  color: var(--tx-text-muted);
}

@media (max-width: 900px) {
  /* En 2×2, le filet gauche de la 3e case ferait un T disgracieux. */
  .tx-trust__item:nth-child(odd) { border-left: 0; }
  .tx-trust__item:nth-child(n + 3) { border-top: 1px solid var(--tx-line); }
}

/* --------------------------------------------------------------------------
   9. Carte produit
   -------------------------------------------------------------------------- */
.tx-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 2rem) clamp(0.8rem, 1.8vw, 1.6rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr));
}

.tx-card { position: relative; display: flex; flex-direction: column; }

.tx-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tx-paper-deep);
}

.tx-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--tx-ease);
}
.tx-card:hover .tx-card__img { transform: scale(1.05); }

.tx-card__badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  z-index: 2;
  padding: 0.42rem 0.8rem;
  background: var(--tx-ivory);
  color: var(--tx-ink);
  font-size: var(--tx-step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tx-card__badge[data-badge='PROMO']      { background: var(--tx-copper); color: #FFF8F1; }
.tx-card__badge[data-badge='BESTSELLER'] { background: var(--tx-ink);    color: var(--tx-on-dark); }
.tx-card__badge[data-badge='NOUVEAU']    { background: var(--tx-sand);   color: var(--tx-ink); }

.tx-card__quick {
  position: absolute;
  inset: auto 0 0;
  /* Au-dessus de .tx-card__link, sinon le lien avalerait le clic. */
  z-index: 4;
  width: 100%;
  padding: 0.95rem 1rem;
  background: rgba(42, 37, 33, 0.92);
  color: var(--tx-on-dark);
  font-size: var(--tx-step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  transform: translateY(101%);
  transition: transform 0.45s var(--tx-ease);
}
.tx-card:hover .tx-card__quick,
.tx-card:focus-within .tx-card__quick { transform: none; }

.tx-card__body { display: grid; gap: 0.35rem; padding-top: 1rem; }

.tx-card__cat {
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-text-muted);
}

/* Italique : c'est la signature typographique de la référence. */
.tx-card__name {
  font-family: var(--tx-display);
  font-style: italic;
  font-size: var(--tx-step-1);
  font-weight: 500;
  line-height: 1.2;
}

.tx-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.2rem;
  font-size: var(--tx-step-1);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.tx-card__price del {
  font-size: var(--tx-step--1);
  font-weight: 500;
  color: var(--tx-text-muted);
}

.tx-card__link { position: absolute; inset: 0; z-index: 3; }

/* ── Photos détourées sur fond uni ───────────────────────────────────
   Le produit ne doit plus être recadré : on le laisse entier et le fond
   de la vignette se confond avec celui de la page, il semble flotter. */
.tx-packshots .tx-card__media {
  aspect-ratio: 1;
  background: transparent;
}
.tx-packshots .tx-card__img {
  object-fit: contain;
  transform: none;
}
.tx-packshots .tx-card:hover .tx-card__img { transform: scale(1.04); }

/* La galerie n'est plus recadrée par défaut : il reste juste à effacer le fond
   pour que le produit détouré paraisse posé sur la page. */
.tx-packshots .tx-gallery__main,
.tx-packshots .tx-gallery__thumb { background: transparent; }

/* Plus d'air entre les produits : c'est le vide qui fait le luxe. */
.tx-packshots .tx-grid {
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}

/* Nuancier */
.tx-swatches { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.tx-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--tx-line-strong);
}

/* --------------------------------------------------------------------------
   10. Mosaïque des gammes
   -------------------------------------------------------------------------- */
.tx-gammes {
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(2, 1fr);
}
.tx-gamme--wide { grid-column: span 2; }

.tx-gamme {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(260px, 34vw, 440px);
  background: var(--tx-paper-deep);
  isolation: isolate;
}

.tx-gamme img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s var(--tx-ease);
}
.tx-gamme:hover img { transform: scale(1.06); }

.tx-gamme::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 16, 14, 0.92) 0%, rgba(18, 16, 14, 0.6) 28%, rgba(18, 16, 14, 0.18) 55%, transparent 80%);
}

.tx-gamme__body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.3rem, 2.6vw, 2.2rem);
  color: var(--tx-on-dark);
  display: grid;
  gap: 0.45rem;
}

.tx-gamme__index {
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tx-sand-soft);
}

.tx-gamme__name {
  font-family: var(--tx-display);
  font-size: var(--tx-step-2);
  line-height: 1.1;
}

.tx-gamme__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx-on-dark-soft);
  transition: gap 0.35s var(--tx-ease), color 0.3s ease;
}
.tx-gamme:hover .tx-gamme__cta { gap: 0.95rem; color: var(--tx-on-dark); }

/* --------------------------------------------------------------------------
   9 bis. Rail produits — la signature de la référence :
   une rangée séparée par de simples filets verticaux, nom en italique,
   l'article survolé se détache pendant que les autres s'effacent.
   -------------------------------------------------------------------------- */
.tx-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-block: 1px solid var(--tx-line);
}

.tx-rail__item {
  position: relative;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(0.8rem, 1.6vw, 1.6rem);
  transition: opacity 0.5s var(--tx-ease);
}
.tx-rail__item + .tx-rail__item { border-left: 1px solid var(--tx-line); }

.tx-rail__name {
  font-family: var(--tx-display);
  font-style: italic;
  font-size: var(--tx-step-1);
  font-weight: 400;
  line-height: 1.15;
}

.tx-rail__media {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tx-rail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.86);
  transition: transform 0.7s var(--tx-ease);
}

.tx-rail__price { font-size: var(--tx-step--1); font-weight: 700; letter-spacing: 0.02em; }

.tx-rail__cta {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--tx-line-strong);
  border-radius: 999px;
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--tx-ease), transform 0.4s var(--tx-ease),
              background-color 0.3s ease, color 0.3s ease;
}
.tx-rail__cta:hover { background: var(--tx-ink); color: var(--tx-ivory); border-color: var(--tx-ink); }

.tx-rail__link { position: absolute; inset: 0; z-index: 1; }

/* Article mis en avant : le sien grandit, les voisins reculent. */
.tx-rail__item[data-focus='true'] .tx-rail__media img { transform: scale(1.05); }
.tx-rail__item[data-focus='true'] .tx-rail__cta { opacity: 1; transform: none; }
.tx-rail:has(.tx-rail__item[data-focus='true']) .tx-rail__item:not([data-focus='true']) { opacity: 0.45; }

/* Sans :has(), on garde un survol simple — aucune régression. */
@supports not selector(:has(*)) {
  .tx-rail__item:hover .tx-rail__media img { transform: scale(1.05); }
  .tx-rail__item:hover .tx-rail__cta { opacity: 1; transform: none; }
}

/* Le CTA doit rester cliquable au-dessus du lien pleine surface. */
.tx-rail__cta { position: relative; z-index: 2; }

@media (max-width: 900px) {
  /* Défilement horizontal au doigt plutôt qu'un empilement de colonnes étroites. */
  .tx-rail {
    grid-auto-flow: column;
    grid-auto-columns: 60%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .tx-rail::-webkit-scrollbar { display: none; }
  .tx-rail__item { scroll-snap-align: center; }
  .tx-rail__item[data-focus='true'] .tx-rail__cta { opacity: 1; transform: none; }
  .tx-rail:has(.tx-rail__item[data-focus='true']) .tx-rail__item:not([data-focus='true']) { opacity: 1; }
}

@media (max-width: 640px) {
  .tx-rail { grid-auto-columns: 78%; }
}

/* --------------------------------------------------------------------------
   10 bis. Vitrine épinglée — la scène change au défilement
   Sur mobile (et en mouvement réduit) : simple liste verticale, aucun
   épinglage. Seuls transform et opacity sont animés.
   -------------------------------------------------------------------------- */
.tx-showcase { position: relative; background: var(--tx-ink); }

.tx-showcase__stage { position: relative; }

.tx-showcase__slide { position: relative; isolation: isolate; }

.tx-showcase__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.tx-showcase__media img { width: 100%; height: 100%; object-fit: cover; }

.tx-showcase__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(18, 16, 14, 0.92) 0%, rgba(18, 16, 14, 0.55) 32%, rgba(18, 16, 14, 0.15) 62%, transparent 85%);
}

.tx-showcase__body {
  position: relative;
  color: var(--tx-on-dark);
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.tx-showcase__index {
  font-size: var(--tx-step--2);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tx-sand-soft);
}

.tx-showcase__name {
  font-family: var(--tx-display);
  font-size: var(--tx-step-4);
  font-weight: 400;
  line-height: 1.02;
}

.tx-showcase__text { color: var(--tx-on-dark-soft); max-width: 44ch; }

/* Rail de progression */
.tx-showcase__rail { display: none; }

/* ── Version épinglée : écrans larges, mouvement autorisé ────────────── */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {

  /* Hauteur = un écran par diapositive : c'est ce défilement qui pilote la scène. */
  .tx-showcase { height: calc(var(--tx-slides, 4) * 100vh); }

  .tx-showcase__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    perspective: 1400px;
    perspective-origin: 50% 45%;
  }

  .tx-showcase__slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: end;
    padding-bottom: clamp(4rem, 9vh, 7rem);
    opacity: 0;
    pointer-events: none;
    transform-style: preserve-3d;
    transition: opacity 0.7s var(--tx-ease);
  }

  .tx-showcase__slide[data-active='true'] { opacity: 1; pointer-events: auto; }

  /* L'image recule puis avance : c'est là que naît la sensation de profondeur. */
  .tx-showcase__media {
    transform: translateZ(-180px) scale(1.18);
    transition: transform 1.3s var(--tx-ease);
  }
  .tx-showcase__slide[data-active='true'] .tx-showcase__media {
    transform: translateZ(0) scale(1);
  }

  .tx-showcase__body {
    transform: translate3d(0, 48px, 60px);
    opacity: 0;
    transition: transform 1s var(--tx-ease) 0.1s, opacity 0.8s var(--tx-ease) 0.1s;
  }
  .tx-showcase__slide[data-active='true'] .tx-showcase__body {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }

  .tx-showcase__rail {
    position: absolute;
    right: var(--tx-gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: grid;
    gap: 1.1rem;
  }

  .tx-showcase__tick {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: var(--tx-step--2);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--tx-on-dark-muted);
    transition: color 0.4s ease;
    /* Le rail flotte au centre, souvent sur une zone claire de la photo. */
    text-shadow: 0 1px 8px rgba(18, 16, 14, 0.75);
    filter: drop-shadow(0 1px 6px rgba(18, 16, 14, 0.6));
  }
  .tx-showcase__tick::after {
    content: '';
    width: 26px;
    height: 1px;
    background: currentColor;
    transition: width 0.5s var(--tx-ease);
  }
  .tx-showcase__tick[aria-current='true'] { color: var(--tx-sand); }
  .tx-showcase__tick[aria-current='true']::after { width: 54px; }
}

/* ── Version repliée : mobile, ou mouvement réduit ───────────────────── */
@media (max-width: 767.98px), (prefers-reduced-motion: reduce) {
  .tx-showcase__slide {
    min-height: clamp(320px, 62vh, 520px);
    display: grid;
    align-content: end;
    padding: clamp(1.4rem, 5vw, 2.5rem) 0;
  }
  .tx-showcase__slide + .tx-showcase__slide { border-top: 1px solid var(--tx-line-dark); }
  .tx-showcase__name { font-size: var(--tx-step-3); }
}

/* --------------------------------------------------------------------------
   11. Récit / duo image-texte
   -------------------------------------------------------------------------- */
.tx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.tx-split--reverse .tx-split__media { order: 2; }

.tx-split__media { position: relative; }
.tx-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.tx-split__inset {
  position: absolute;
  right: clamp(-1rem, -2vw, -2.5rem);
  bottom: clamp(-1rem, -2vw, -2.5rem);
  width: clamp(120px, 32%, 230px);
  box-shadow: var(--tx-shadow-lg);
  border: 6px solid var(--tx-ivory);
}
.tx-split__inset img { aspect-ratio: 1 / 1; }

.tx-split__stamp {
  position: absolute;
  top: clamp(-0.8rem, -1.6vw, -1.6rem);
  left: clamp(-0.8rem, -1.6vw, -1.6rem);
  background: var(--tx-ivory);
  padding: 1rem 1.4rem;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  box-shadow: var(--tx-shadow-md);
}
.tx-split__stamp b {
  font-family: var(--tx-display);
  font-size: var(--tx-step-2);
  font-weight: 500;
  line-height: 1;
}
.tx-split__stamp span {
  font-size: var(--tx-step--2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tx-text-muted);
}

.tx-split__text { display: grid; gap: 1.4rem; align-content: center; }

/* Piliers */
.tx-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.8rem;
  margin-top: 0.6rem;
}
.tx-pillar { display: flex; gap: 0.9rem; align-items: flex-start; }
.tx-pillar svg { flex-shrink: 0; color: var(--tx-copper); margin-top: 0.15rem; }
.tx-pillar b { display: block; font-size: var(--tx-step-0); font-weight: 700; }
.tx-pillar span { font-size: var(--tx-step--1); color: var(--tx-text-muted); }

/* --------------------------------------------------------------------------
   12. Bandeau défilant
   -------------------------------------------------------------------------- */
.tx-marquee {
  overflow: hidden;
  padding-block: 1.1rem;
  background: var(--tx-paper);
  border-block: 1px solid var(--tx-line);
  white-space: nowrap;
}
.tx-marquee__track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: tx-marquee 38s linear infinite;
}
.tx-marquee span {
  font-family: var(--tx-display);
  font-size: var(--tx-step-1);
  font-style: italic;
  color: var(--tx-text-soft);
}
@keyframes tx-marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   13. Témoignages
   -------------------------------------------------------------------------- */
.tx-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}

.tx-quote {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--tx-ivory);
  border: 1px solid var(--tx-line);
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.tx-quote__stars { display: flex; gap: 0.2rem; color: var(--tx-copper); }

.tx-quote__text {
  font-family: var(--tx-display);
  font-style: italic;
  font-size: var(--tx-step-1);
  line-height: 1.5;
  color: var(--tx-text);
}

.tx-quote__who { display: grid; gap: 0.15rem; }
.tx-quote__who b { font-size: var(--tx-step-0); font-weight: 600; }
.tx-quote__who span {
  font-size: var(--tx-step--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tx-text-muted);
}

/* Sur fond sombre (si la section repasse en --dark) */
.tx-section--dark .tx-quote { background: rgba(247, 243, 238, 0.05); border-color: var(--tx-line-dark); }
.tx-section--dark .tx-quote__text { color: var(--tx-on-dark); }
.tx-section--dark .tx-quote__who span { color: var(--tx-on-dark-muted); }
.tx-section--dark .tx-quote__stars { color: var(--tx-sand); }

/* --------------------------------------------------------------------------
   14. Pied de page
   -------------------------------------------------------------------------- */
.tx-footer {
  background: var(--tx-ink);
  color: var(--tx-on-dark);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
}

.tx-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.tx-footer__logo img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.tx-footer__about { color: var(--tx-on-dark-soft); font-size: var(--tx-step--1); max-width: 34ch; }

.tx-footer h3 {
  font-size: var(--tx-step--2);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tx-sand);
  margin-bottom: 1.2rem;
}

.tx-footer li + li { margin-top: 0.6rem; }
.tx-footer a { color: var(--tx-on-dark-soft); font-size: var(--tx-step--1); transition: color 0.3s ease; }
.tx-footer a:hover { color: var(--tx-on-dark); }

.tx-footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--tx-line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--tx-step--2);
  color: var(--tx-on-dark-muted);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   15. Fiche produit
   -------------------------------------------------------------------------- */
.tx-product {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.tx-gallery { display: grid; gap: 0.8rem; position: sticky; top: 6rem; }

/* Aucun recadrage : sur une fiche produit, le client doit voir la pièce
   entière. La hauteur suit donc la proportion réelle de la photo. */
.tx-gallery__main {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--tx-paper);
}
.tx-gallery__main img {
  width: 100%;
  height: auto;
  max-height: 78svh;
  object-fit: contain;
}

.tx-gallery__thumbs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tx-gallery__thumb {
  width: 76px; aspect-ratio: 1;
  overflow: hidden;
  background: var(--tx-paper);
  border: 1px solid transparent;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.tx-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.tx-gallery__thumb[aria-selected='true'] { opacity: 1; border-color: var(--tx-copper); }

.tx-product__head { display: grid; gap: 0.7rem; }

.tx-product__price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: 0.5rem;
  color: var(--tx-copper);
  font-size: var(--tx-step-3);
  font-family: var(--tx-display);
  font-weight: 500;
}
.tx-product__price del { font-size: var(--tx-step-1); color: var(--tx-text-muted); }

/* Texte sous le prix — court, aéré, un cran plus lisible que le corps. */
.tx-product__desc { color: var(--tx-text-soft); max-width: 46ch; }
.tx-product__desc p { margin-bottom: 0.55rem; }
.tx-product__desc p:last-child { margin-bottom: 0; }

/* Liste à puces = fiche technique : filets fins et pastille cuivre.
   Pour du texte de vente, écrire des paragraphes plutôt qu'une liste. */
.tx-product__desc ul {
  display: grid;
  border-top: 1px solid var(--tx-line);
  margin-block: 0.2rem;
}
.tx-product__desc li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--tx-line);
  font-size: var(--tx-step-0);
  letter-spacing: 0.01em;
}
/* Une phrase de vente placée après la fiche technique a besoin de respirer. */
.tx-product__desc ul + p { margin-top: 0.9rem; }

.tx-product__desc li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tx-copper);
  transform: translateY(-2px);
}

.tx-field { display: grid; gap: 0.55rem; }
.tx-field__label {
  font-size: var(--tx-step--2);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tx-text-muted);
}

.tx-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tx-chip {
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--tx-line-strong);
  background: transparent;
  font-size: var(--tx-step--1);
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}
.tx-chip:hover { border-color: var(--tx-ink); }
.tx-chip[aria-pressed='true'] {
  background: var(--tx-ink);
  border-color: var(--tx-ink);
  color: var(--tx-on-dark);
}

.tx-chip--color {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  position: relative;
}
.tx-chip--color[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--tx-ivory), 0 0 0 3px var(--tx-copper); }

.tx-qty { display: inline-flex; align-items: center; border: 1px solid var(--tx-line-strong); }
.tx-qty button { width: 46px; height: 46px; display: grid; place-items: center; transition: background-color 0.25s ease; }
.tx-qty button:hover { background: var(--tx-paper); }
.tx-qty output { min-width: 42px; text-align: center; font-weight: 700; }

/* --------------------------------------------------------------------------
   16. Formulaire de commande
   -------------------------------------------------------------------------- */
.tx-order {
  background: var(--tx-paper);
  border: 1px solid var(--tx-line);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.2rem;
}

.tx-order__head { display: grid; gap: 0.4rem; }

.tx-cod {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background: rgba(46, 107, 79, 0.1);
  color: var(--tx-forest);
  font-size: var(--tx-step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  justify-self: start;
}

.tx-input,
.tx-select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--tx-ivory);
  border: 1px solid var(--tx-line-strong);
  font-size: var(--tx-step-0);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.tx-input:focus,
.tx-select:focus {
  outline: none;
  border-color: var(--tx-copper);
  box-shadow: 0 0 0 3px rgba(126, 74, 50, 0.12);
}
.tx-input[aria-invalid='true'] { border-color: #B3402F; }

.tx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.tx-form-grid > .tx-span-2 { grid-column: span 2; }

.tx-ship { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.tx-ship__opt {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--tx-line-strong);
  background: var(--tx-ivory);
  text-align: left;
  transition: all 0.25s ease;
}
.tx-ship__opt b { font-size: var(--tx-step--1); font-weight: 700; }
.tx-ship__opt span { font-size: var(--tx-step--2); color: var(--tx-text-muted); }
.tx-ship__opt[aria-pressed='true'] { border-color: var(--tx-copper); background: rgba(126, 74, 50, 0.06); }

.tx-summary { display: grid; gap: 0.5rem; padding-top: 0.4rem; border-top: 1px solid var(--tx-line-strong); }
.tx-summary__row { display: flex; justify-content: space-between; font-size: var(--tx-step--1); color: var(--tx-text-soft); }
.tx-summary__row--total {
  padding-top: 0.5rem;
  border-top: 1px solid var(--tx-line);
  font-family: var(--tx-display);
  font-size: var(--tx-step-2);
  font-weight: 500;
  color: var(--tx-text);
}

.tx-hp { position: absolute; left: -9999px; opacity: 0; }

.tx-form-msg { font-size: var(--tx-step--1); font-weight: 600; }
.tx-form-msg[data-tone='error']   { color: #B3402F; }
.tx-form-msg[data-tone='success'] { color: var(--tx-forest); }

.tx-order__done { display: grid; gap: 0.8rem; justify-items: center; text-align: center; padding-block: 1.5rem; }
.tx-order__done svg { color: var(--tx-forest); }

/* --------------------------------------------------------------------------
   17. Filtres collection
   -------------------------------------------------------------------------- */
.tx-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}
.tx-filter {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--tx-line-strong);
  font-size: var(--tx-step--1);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.tx-filter:hover { border-color: var(--tx-ink); }
.tx-filter[aria-current='true'] { background: var(--tx-ink); border-color: var(--tx-ink); color: var(--tx-on-dark); }

/* --------------------------------------------------------------------------
   18. États vides & notices
   -------------------------------------------------------------------------- */
.tx-empty {
  padding: clamp(2.5rem, 6vw, 5rem) var(--tx-gutter);
  text-align: center;
  border: 1px dashed var(--tx-line-strong);
  display: grid;
  gap: 0.9rem;
  justify-items: center;
}

.tx-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 900;
  transform: translate(-50%, 160%);
  padding: 0.95rem 1.8rem;
  background: var(--tx-ink);
  color: var(--tx-on-dark);
  font-size: var(--tx-step--1);
  letter-spacing: 0.04em;
  box-shadow: var(--tx-shadow-lg);
  transition: transform 0.5s var(--tx-ease);
}
.tx-toast[data-show='true'] { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   18 bis. Panier — tiroir latéral
   -------------------------------------------------------------------------- */
.tx-cart {
  position: fixed;
  inset: 0;
  z-index: 800;
  visibility: hidden;
  transition: visibility 0.4s;
}
.tx-cart[data-open='true'] { visibility: visible; }

.tx-cart__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(42, 37, 33, 0.42);
  opacity: 0;
  transition: opacity 0.4s var(--tx-ease);
  cursor: pointer;
}
.tx-cart[data-open='true'] .tx-cart__scrim { opacity: 1; }

.tx-cart__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(440px, 100%);
  background: var(--tx-ivory);
  border-left: 1px solid var(--tx-line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 0.5s var(--tx-ease);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  gap: 1.2rem;
}
.tx-cart[data-open='true'] .tx-cart__panel { transform: none; }

.tx-cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tx-line);
}
.tx-cart__title {
  font-family: var(--tx-display);
  font-size: var(--tx-step-2);
  font-weight: 400;
}

.tx-cart__empty { display: grid; gap: 1rem; justify-items: start; padding-block: 1.5rem; }

.tx-cart__list { display: grid; gap: 1rem; }

.tx-cart__line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tx-line);
}

.tx-cart__thumb { aspect-ratio: 1; overflow: hidden; background: var(--tx-paper-deep); }
.tx-cart__thumb img { width: 100%; height: 100%; object-fit: cover; }

.tx-cart__info { display: grid; gap: 0.2rem; align-content: start; }
.tx-cart__name { font-family: var(--tx-display); font-size: var(--tx-step-0); font-style: italic; }
.tx-cart__meta { font-size: var(--tx-step--2); color: var(--tx-text-muted); }
.tx-cart__price { font-weight: 700; font-size: var(--tx-step--1); }

.tx-cart__actions { display: grid; gap: 0.4rem; justify-items: end; align-content: start; }

.tx-qty--sm { border-color: var(--tx-line-strong); }
.tx-qty--sm button { width: 30px; height: 30px; font-size: 1rem; }
.tx-qty--sm output { min-width: 28px; font-size: var(--tx-step--1); }

.tx-cart__remove {
  font-size: var(--tx-step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}
.tx-cart__remove:hover { color: var(--tx-copper); }

.tx-cart__foot { display: grid; gap: 1rem; margin-top: auto; }
.tx-cart__form { display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--tx-line); }
.tx-cart__done { display: grid; gap: 0.8rem; justify-items: center; text-align: center; padding-block: 2rem; }
.tx-cart__done svg { color: var(--tx-forest); }

/* --------------------------------------------------------------------------
   19. Animations d'apparition
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--tx-ease-out), transform 0.9s var(--tx-ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Adaptatif
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tx-footer__grid { grid-template-columns: 1fr 1fr; }
  .tx-quotes { grid-template-columns: 1fr; }
  .tx-product { grid-template-columns: 1fr; }
  .tx-gallery { position: static; }
}

@media (max-width: 900px) {
  .tx-nav,
  .tx-header__phone { display: none; }
  .tx-burger { display: flex; }

  .tx-split,
  .tx-split--reverse { grid-template-columns: 1fr; }
  .tx-split--reverse .tx-split__media { order: 0; }
  .tx-split__inset { right: 1rem; bottom: -1.5rem; width: 34%; }

  .tx-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tx-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 0.8rem; }
  .tx-gammes { grid-template-columns: 1fr; }
  .tx-gamme--wide { grid-column: span 1; }
  .tx-footer__grid { grid-template-columns: 1fr; }
  .tx-form-grid { grid-template-columns: 1fr; }
  .tx-form-grid > .tx-span-2 { grid-column: span 1; }
  .tx-ship { grid-template-columns: 1fr; }
  .tx-pillars { grid-template-columns: 1fr; }
  .tx-hero__dots { display: none; }
  /* Pas de survol au doigt : le bouton reste visible en permanence. */
  .tx-card__quick { transform: none; padding: 0.7rem 0.6rem; font-size: 0.62rem; }
  .tx-section-head { flex-direction: column; align-items: flex-start; }
}
