/* ==========================================================================
   Thafath par Zyagency
   Direction claire et lumineuse : fond ivoire, surfaces blanches, filets fins,
   ombres très douces. Le jaune reste un accent rare : bouton principal,
   badges et focus clavier.
   Mobile d'abord, points de rupture : 750 px, 990 px, 1200 px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Palette (surchargée par les réglages du thème dans layout/theme.liquid) */
  --th-bg: #F7F5F0;
  --th-bg-alt: #EFECE4;
  --th-surface: #FFFFFF;
  --th-surface-high: #FBFAF7;
  --th-text: #0A0A0A;
  --th-text-soft: #555555;
  --th-text-muted: #7A7770;
  --th-accent: #FFC700;
  --th-accent-hover: #E6B300;
  --th-border: rgba(10, 10, 10, 0.12);
  --th-border-strong: rgba(10, 10, 10, 0.4);
  --th-success: #1E7A46;
  --th-warning: #8A5F00;
  --th-error: #B3261E;
  --th-dark-hover: #2B2B2B;

  /* Typographie */
  --th-font-heading: "Sentient", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --th-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --th-font-scale: 1;
  --th-heading-scale: 1;
  --th-lh-tight: 1.05;
  --th-lh-heading: 1.12;
  --th-lh-body: 1.6;
  --th-text-xs: 0.75rem;
  --th-text-s: 0.875rem;
  --th-text-base: 1rem;
  --th-text-m: 1.125rem;
  --th-text-l: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --th-h-s: calc(clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem) * var(--th-heading-scale));
  --th-h-m: calc(clamp(1.75rem, 1.45rem + 1.3vw, 2.75rem) * var(--th-heading-scale));
  --th-h-l: calc(clamp(2.125rem, 1.6rem + 2.4vw, 4rem) * var(--th-heading-scale));
  --th-h-xl: calc(clamp(2.625rem, 1.8rem + 4vw, 6rem) * var(--th-heading-scale));

  /* Espacements, base 4 px */
  --th-space-1: 0.25rem;
  --th-space-2: 0.5rem;
  --th-space-3: 0.75rem;
  --th-space-4: 1rem;
  --th-space-5: 1.5rem;
  --th-space-6: 2rem;
  --th-space-7: 3rem;
  --th-space-8: 4rem;
  --th-space-9: 6rem;
  --th-space-10: 9rem;
  --th-gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --th-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --th-section-space: 8rem;

  /* Conteneurs */
  --th-page-width: 1440px;
  --th-narrow: 760px;
  --th-text-width: 980px;

  /* Formes */
  --th-radius-card: 16px;
  --th-radius-field: 10px;
  --th-radius-pill: 999px;
  --th-radius-s: 6px;
  --th-card-ratio: 4 / 5;

  /* Ombres très douces, chaudes et diffuses */
  --th-shadow-s: 0 1px 2px rgba(10, 10, 10, 0.05);
  --th-shadow-m: 0 8px 24px rgba(10, 10, 10, 0.06);
  --th-shadow-l: 0 24px 64px rgba(10, 10, 10, 0.1);
  --th-shadow-hover: 0 16px 40px rgba(10, 10, 10, 0.08);

  /* Mouvement */
  --th-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --th-fast: 180ms;
  --th-base: 220ms;
  --th-slow: 240ms;

  /* Calques */
  --th-z-header: 50;
  --th-z-drawer: 80;

  --th-header-h: 4.5rem;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--th-header-h) + 1rem);
}

html.th-lock {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--th-bg);
  color: var(--th-text);
  font-family: var(--th-font-body);
  font-size: calc(var(--th-text-base) * var(--th-font-scale));
  line-height: var(--th-lh-body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.th-main {
  flex: 1 0 auto;
}

.th-main:focus {
  outline: none;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--th-font-heading);
  font-weight: 400;
  line-height: var(--th-lh-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button {
  cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

::selection {
  background: var(--th-accent);
  color: var(--th-text);
}

[hidden] {
  display: none !important;
}

/* Focus clavier : anneau jaune adossé à un liseré noir, lisible sur tous les fonds */
:focus-visible {
  outline: 3px solid var(--th-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--th-text);
}

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

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

.th-skip {
  position: absolute;
  top: var(--th-space-2);
  left: var(--th-space-2);
  z-index: 100;
  padding: var(--th-space-3) var(--th-space-5);
  background: var(--th-text);
  color: var(--th-bg);
  border-radius: var(--th-radius-pill);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--th-fast) var(--th-ease);
}

.th-skip:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
.th-h-xl {
  font-size: var(--th-h-xl);
  line-height: var(--th-lh-tight);
  letter-spacing: -0.03em;
}

.th-h-l {
  font-size: var(--th-h-l);
  line-height: var(--th-lh-tight);
  letter-spacing: -0.03em;
}

.th-h-m {
  font-size: var(--th-h-m);
  line-height: var(--th-lh-heading);
  letter-spacing: -0.025em;
}

.th-h-s {
  font-family: var(--th-font-heading);
  font-size: var(--th-h-s);
  font-weight: 400;
  line-height: var(--th-lh-heading);
  letter-spacing: -0.02em;
}

.th-eyebrow {
  display: inline-block;
  margin-bottom: var(--th-space-4);
  font-family: var(--th-font-body);
  font-size: var(--th-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--th-text-soft);
}

.th-eyebrow a {
  text-decoration: none;
}

.th-muted {
  color: var(--th-text-soft);
}

.th-rte > * + * {
  margin-top: 1em;
}

.th-rte a {
  text-decoration: underline;
}

.th-rte ul,
.th-rte ol {
  padding-left: 1.25em;
}

.th-rte img {
  border-radius: var(--th-radius-card);
}

.th-rte blockquote {
  padding-left: var(--th-space-5);
  border-left: 1px solid var(--th-border-strong);
  font-family: var(--th-font-heading);
  font-size: var(--th-text-l);
}

.th-rte--long {
  font-size: var(--th-text-m);
}

.th-rte--long h2,
.th-rte--long h3 {
  margin-top: 1.6em;
}

.th-rte--long h2 {
  font-size: var(--th-h-s);
}

.th-rte table td,
.th-rte table th {
  padding: var(--th-space-2) var(--th-space-3);
  border-bottom: 1px solid var(--th-border);
  text-align: left;
}

/* --------------------------------------------------------------------------
   4. Mise en page
   -------------------------------------------------------------------------- */
.th-container {
  width: 100%;
  max-width: calc(var(--th-page-width) + var(--th-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--th-gutter);
}

.th-container--narrow {
  max-width: calc(var(--th-narrow) + var(--th-gutter) * 2);
}

.th-container--text {
  max-width: calc(var(--th-text-width) + var(--th-gutter) * 2);
}

.th-section {
  padding-block: clamp(4rem, 2rem + 6vw, var(--th-section-space));
  background: var(--th-bg);
}

.th-section--compact {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, calc(var(--th-section-space) / 2));
}

.th-section--none {
  padding-block: 0;
}

.th-section--alt {
  background: var(--th-bg-alt);
}

.th-section--surface {
  background: var(--th-surface);
}

/* Deux sections consécutives au même fond : on évite la double respiration */
.th-section-featured + .th-section-featured .th-section--bg,
.th-section-richtext + .th-section-richtext .th-section--bg {
  padding-top: 0;
}

.th-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--th-space-4) var(--th-space-6);
  margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem);
}

.th-section__head > div {
  max-width: 44rem;
}

.th-section__head--center {
  justify-content: center;
  text-align: center;
}

.th-section__intro {
  margin-top: var(--th-space-4);
  color: var(--th-text-soft);
  font-size: var(--th-text-m);
}

.th-page-head {
  padding-top: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}

.th-page-head--compact {
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
}

.th-page-head__text {
  max-width: 42rem;
  margin-top: var(--th-space-5);
  color: var(--th-text-soft);
  font-size: var(--th-text-m);
}

.th-page-head__media {
  margin-top: var(--th-space-7);
}

.th-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--th-space-3) var(--th-space-5);
  margin-top: var(--th-space-6);
}

.th-actions--center {
  justify-content: center;
}

.th-empty {
  display: grid;
  justify-items: center;
  gap: var(--th-space-4);
  padding: var(--th-space-9) var(--th-space-5);
  text-align: center;
}

.th-empty .th-icon {
  color: var(--th-text-muted);
}

/* --------------------------------------------------------------------------
   5. Icônes
   -------------------------------------------------------------------------- */
.th-icon {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
}

.th-icon--xs {
  width: 0.875rem;
  height: 0.875rem;
}

.th-icon--s {
  width: 1.125rem;
  height: 1.125rem;
}

.th-icon--xl {
  width: 3rem;
  height: 3rem;
  stroke-width: 1;
}

.th-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--th-radius-pill);
  background: transparent;
  color: var(--th-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--th-fast) var(--th-ease);
}

.th-icon-btn:hover {
  background: var(--th-bg-alt);
}

.th-icon-btn:focus-visible {
  border-radius: var(--th-radius-pill);
}

/* --------------------------------------------------------------------------
   6. Boutons, liens, badges
   -------------------------------------------------------------------------- */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--th-space-2);
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--th-radius-pill);
  font-family: var(--th-font-body);
  font-size: var(--th-text-s);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--th-base) var(--th-ease),
    color var(--th-base) var(--th-ease),
    border-color var(--th-base) var(--th-ease),
    transform var(--th-base) var(--th-ease);
}

.th-btn:focus-visible {
  border-radius: var(--th-radius-pill);
}

.th-btn:active {
  transform: translateY(1px);
}

.th-btn[disabled],
.th-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.th-btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

.th-btn--primary {
  background: var(--th-accent);
  color: #0A0A0A;
}

.th-btn--primary:hover:not([disabled]) {
  background: var(--th-accent-hover);
}

.th-btn--dark {
  background: var(--th-text);
  color: var(--th-bg);
}

.th-btn--dark:hover:not([disabled]) {
  background: var(--th-dark-hover);
}

.th-btn--ghost {
  background: transparent;
  border-color: var(--th-border-strong);
  color: var(--th-text);
}

.th-btn--ghost:hover:not([disabled]) {
  border-color: var(--th-text);
  background: var(--th-surface);
}

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

.th-btn--l {
  min-height: 56px;
  font-size: var(--th-text-base);
}

.th-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-2);
  padding-block: var(--th-space-1);
  font-size: var(--th-text-s);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size var(--th-base) var(--th-ease);
}

.th-link-arrow:hover {
  background-size: 100% 1px;
}

.th-link-arrow .th-icon {
  transition: transform var(--th-base) var(--th-ease);
}

.th-link-arrow:hover .th-icon {
  transform: translateX(3px);
}

.th-link-arrow--back:hover .th-icon {
  transform: translateX(-3px);
}

.th-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--th-radius-pill);
  background: var(--th-accent);
  color: #0A0A0A;
  font-size: var(--th-text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.th-badge--muted {
  background: var(--th-surface);
  color: var(--th-text);
  box-shadow: inset 0 0 0 1px var(--th-border);
}

.th-notice {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding: var(--th-space-3) var(--th-space-4);
  border-radius: var(--th-radius-field);
  font-size: var(--th-text-s);
}

.th-notice--success {
  background: #E7F2EB;
  color: var(--th-success);
}

.th-notice--error {
  display: block;
  background: #FBEAE8;
  color: var(--th-error);
}

.th-notice--error ul {
  margin: var(--th-space-2) 0 0;
  padding-left: 1.25em;
}

/* --------------------------------------------------------------------------
   7. Formulaires
   -------------------------------------------------------------------------- */
.th-form {
  display: grid;
  gap: var(--th-space-5);
}

.th-form__row {
  display: grid;
  gap: var(--th-space-5);
}

.th-form__hint {
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

.th-field {
  display: grid;
  gap: var(--th-space-2);
}

.th-field__label {
  font-size: var(--th-text-s);
  font-weight: 500;
}

.th-field__input,
.th-select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--th-border-strong);
  border-radius: var(--th-radius-field);
  background: var(--th-surface);
  color: var(--th-text);
  font-size: var(--th-text-base);
  line-height: 1.4;
  transition: border-color var(--th-fast) var(--th-ease), box-shadow var(--th-fast) var(--th-ease);
}

.th-field__input::placeholder {
  color: var(--th-text-soft);
  opacity: 1;
}

.th-field__input:hover,
.th-select:hover {
  border-color: var(--th-text);
}

.th-field__input:focus-visible,
.th-select:focus-visible {
  border-color: var(--th-text);
  border-radius: var(--th-radius-field);
}

.th-field__input[aria-invalid="true"] {
  border-color: var(--th-error);
}

.th-field__input--area {
  min-height: 8rem;
  resize: vertical;
}

.th-select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
}

.th-select--s {
  width: auto;
  min-height: 40px;
  padding-block: 0.5rem;
  font-size: var(--th-text-s);
}

/* --------------------------------------------------------------------------
   8. Médias
   -------------------------------------------------------------------------- */
.th-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
}

.th-media > img,
.th-media > svg,
.th-media > picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-media--portrait {
  aspect-ratio: 3 / 4;
}

.th-media--square {
  aspect-ratio: 1 / 1;
}

.th-media--landscape {
  aspect-ratio: 3 / 2;
}

.th-media--wide {
  aspect-ratio: 16 / 9;
}

.th-placeholder {
  width: 100%;
  height: 100%;
  background: var(--th-bg-alt);
  fill: var(--th-text-muted);
  fill-opacity: 0.35;
}

/* --------------------------------------------------------------------------
   9. Bandeau d'annonce
   -------------------------------------------------------------------------- */
.th-announce {
  background: var(--th-bg-alt);
  color: var(--th-text);
  font-size: var(--th-text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.th-announce--surface {
  background: var(--th-surface);
  border-bottom: 1px solid var(--th-border);
}

.th-announce--dark {
  background: var(--th-text);
  color: var(--th-bg);
}

.th-announce__list {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
  gap: var(--th-space-6);
  text-align: center;
}

.th-announce__item:not(:first-child) {
  display: none;
}

.th-announce__link {
  text-decoration: none;
}

.th-announce__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   10. En-tête
   -------------------------------------------------------------------------- */
.th-header {
  position: relative;
}

.th-header__bar {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--th-bg) 88%, transparent);
  border-bottom: 1px solid var(--th-border);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.th-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--th-space-3);
  min-height: var(--th-header-h);
}

.th-header__logo {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  text-decoration: none;
}

.th-header__logo-img {
  max-width: 100%;
  height: auto;
}

.th-header__wordmark {
  font-family: var(--th-font-heading);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
}

.th-header__actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--th-space-1);
}

.th-header__account {
  display: none;
}

.th-header__count {
  position: absolute;
  top: 4px;
  right: 2px;
  display: grid;
  place-items: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding-inline: 0.3rem;
  border-radius: var(--th-radius-pill);
  background: var(--th-accent);
  color: #0A0A0A;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.th-header__count.is-empty {
  display: none;
}

/* Navigation principale (ordinateur) */
.th-nav {
  display: none;
}

.th-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--th-space-1) var(--th-space-2);
}

.th-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-1);
  padding: 0.625rem 0.875rem;
  font-size: var(--th-text-s);
  font-weight: 500;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
  background: linear-gradient(currentColor, currentColor) center calc(100% - 0.375rem) / 0 1px no-repeat;
  transition: background-size var(--th-base) var(--th-ease);
}

.th-nav__link::-webkit-details-marker {
  display: none;
}

.th-nav__link:hover,
.th-nav__link.is-active,
.th-nav__link[aria-current="page"] {
  background-size: calc(100% - 1.75rem) 1px;
}

.th-nav__drop {
  position: relative;
}

.th-nav__drop .th-icon {
  transition: transform var(--th-base) var(--th-ease);
}

.th-nav__drop[open] .th-icon {
  transform: rotate(180deg);
}

.th-nav__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  min-width: 15rem;
  padding: var(--th-space-3);
  background: var(--th-surface);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-card);
  box-shadow: var(--th-shadow-l);
  transform: translateX(-50%);
  animation: th-rise var(--th-base) var(--th-ease);
}

.th-nav__child {
  display: block;
  padding: 0.625rem 0.875rem;
  border-radius: var(--th-radius-field);
  font-size: var(--th-text-s);
  text-decoration: none;
  transition: background-color var(--th-fast) var(--th-ease);
}

.th-nav__child:hover,
.th-nav__child[aria-current="page"] {
  background: var(--th-bg);
}

.th-nav__child--all {
  margin-top: var(--th-space-2);
  border-top: 1px solid var(--th-border);
  border-radius: 0 0 var(--th-radius-field) var(--th-radius-field);
  font-weight: 600;
}

/* Menu mobile */
.th-mnav {
  grid-column: 1;
  justify-self: start;
}

.th-mnav__toggle {
  list-style: none;
}

.th-mnav__toggle::-webkit-details-marker {
  display: none;
}

.th-mnav__panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--th-z-drawer);
  display: flex;
  flex-direction: column;
  gap: var(--th-space-5);
  width: min(26rem, 88vw);
  padding: var(--th-space-4) var(--th-space-5) var(--th-space-6);
  overflow-y: auto;
  background: var(--th-surface);
  box-shadow: 0 0 0 100vmax rgba(10, 10, 10, 0.24), var(--th-shadow-l);
  animation: th-slide-left var(--th-slow) var(--th-ease);
}

.th-mnav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--th-space-3);
  border-bottom: 1px solid var(--th-border);
}

.th-mnav__brand {
  font-family: var(--th-font-heading);
  font-size: var(--th-text-l);
}

.th-mnav__list > li {
  border-bottom: 1px solid var(--th-border);
}

.th-mnav__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  font-family: var(--th-font-heading);
  font-size: 1.375rem;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

.th-mnav__link::-webkit-details-marker {
  display: none;
}

.th-mnav__sub[open] > summary .th-icon {
  transform: rotate(180deg);
}

.th-mnav__sub ul {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--th-space-4);
}

.th-mnav__child {
  display: block;
  padding: var(--th-space-2) 0;
  color: var(--th-text-soft);
  text-decoration: none;
}

.th-mnav__child:hover,
.th-mnav__child[aria-current="page"] {
  color: var(--th-text);
}

.th-mnav__account {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-2);
  margin-top: auto;
  font-size: var(--th-text-s);
  font-weight: 500;
  text-decoration: none;
}

/* Recherche */
.th-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  background: var(--th-surface);
  border-bottom: 1px solid var(--th-border);
  box-shadow: var(--th-shadow-m);
  animation: th-rise var(--th-base) var(--th-ease);
}

.th-search__form {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--th-space-2) var(--th-space-3);
  padding-block: var(--th-space-4);
}

.th-search__icon {
  color: var(--th-text-soft);
}

.th-search__input {
  width: 100%;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--th-font-heading);
  font-size: var(--th-text-l);
}

.th-search__input:focus-visible {
  outline: none;
  box-shadow: none;
}

.th-search__form:focus-within {
  box-shadow: inset 0 -2px 0 var(--th-accent);
}

.th-search__input::-webkit-search-cancel-button {
  display: none;
}

.th-search__submit {
  display: none;
}

.th-predictive {
  grid-column: 1 / -1;
  padding-top: var(--th-space-3);
  border-top: 1px solid var(--th-border);
}

.th-predictive ul {
  display: grid;
  gap: var(--th-space-1);
}

.th-predictive__item {
  display: flex;
  align-items: center;
  gap: var(--th-space-4);
  padding: var(--th-space-2);
  border-radius: var(--th-radius-field);
  text-decoration: none;
  transition: background-color var(--th-fast) var(--th-ease);
}

.th-predictive__item:hover,
.th-predictive__item:focus-visible {
  background: var(--th-bg);
}

.th-predictive__item img,
.th-predictive__ph {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--th-radius-s);
  background: var(--th-bg-alt);
  object-fit: cover;
}

.th-predictive__title {
  display: block;
  font-size: var(--th-text-s);
  font-weight: 500;
}

.th-predictive__price {
  display: block;
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

.th-predictive__all {
  margin-top: var(--th-space-3);
}

.th-predictive__empty {
  padding-block: var(--th-space-3);
  color: var(--th-text-soft);
}

/* --------------------------------------------------------------------------
   11. Panier en tiroir
   -------------------------------------------------------------------------- */
.th-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--th-z-drawer);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--th-slow);
}

.th-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.th-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.24);
  opacity: 0;
  transition: opacity var(--th-slow) var(--th-ease);
}

.th-drawer.is-open .th-drawer__overlay {
  opacity: 1;
}

.th-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(28rem, 100%);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-l);
  transform: translateX(100%);
  transition: transform var(--th-slow) var(--th-ease);
}

.th-drawer__panel:focus {
  outline: none;
}

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

.th-drawer.is-busy .th-drawer__body {
  opacity: 0.6;
  pointer-events: none;
}

.th-drawer__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  transition: opacity var(--th-fast) var(--th-ease);
}

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

.th-drawer__title {
  display: flex;
  align-items: baseline;
  gap: var(--th-space-3);
}

.th-drawer__count {
  font-family: var(--th-font-body);
  font-size: var(--th-text-s);
  color: var(--th-text-soft);
  letter-spacing: 0;
}

.th-drawer__empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--th-space-4);
  flex: 1;
  padding: var(--th-space-7) var(--th-space-5);
  text-align: center;
}

.th-drawer__empty .th-icon {
  color: var(--th-text-muted);
}

.th-ship {
  padding: var(--th-space-4) var(--th-space-5);
  background: var(--th-surface-high);
  border-bottom: 1px solid var(--th-border);
}

.th-ship__text {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  margin-bottom: var(--th-space-2);
  font-size: var(--th-text-s);
}

.th-ship__bar {
  height: 3px;
  overflow: hidden;
  border-radius: var(--th-radius-pill);
  background: var(--th-border);
}

.th-ship__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--th-text);
  transition: width var(--th-slow) var(--th-ease);
}

.th-lines {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--th-space-5);
  overscroll-behavior: contain;
}

.th-line {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: var(--th-space-4);
  padding-block: var(--th-space-5);
  border-bottom: 1px solid var(--th-border);
}

.th-line:last-child {
  border-bottom: 0;
}

.th-line__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--th-radius-field);
  background: var(--th-bg);
}

.th-line__media img,
.th-line__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-line__info {
  display: grid;
  align-content: start;
  gap: var(--th-space-1);
  min-width: 0;
}

.th-line__title {
  font-weight: 500;
  font-size: var(--th-text-s);
  text-decoration: none;
}

.th-line__title:hover {
  text-decoration: underline;
}

.th-line__meta {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-line__discount {
  color: var(--th-warning);
  font-size: var(--th-text-xs);
}

.th-line__row {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  margin-top: var(--th-space-2);
}

.th-line__remove {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--th-radius-pill);
  background: transparent;
  color: var(--th-text-soft);
  cursor: pointer;
  transition: color var(--th-fast) var(--th-ease), background-color var(--th-fast) var(--th-ease);
}

.th-line__remove:hover {
  background: var(--th-bg);
  color: var(--th-text);
}

.th-line__price {
  display: grid;
  justify-items: end;
  align-content: start;
  font-size: var(--th-text-s);
  font-weight: 500;
  white-space: nowrap;
}

.th-drawer__foot {
  display: grid;
  gap: var(--th-space-2);
  padding: var(--th-space-5);
  background: var(--th-surface-high);
  border-top: 1px solid var(--th-border);
}

.th-drawer__row {
  display: flex;
  justify-content: space-between;
  gap: var(--th-space-4);
}

.th-drawer__subtotal {
  font-weight: 600;
  font-size: var(--th-text-m);
}

.th-drawer__note {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-drawer__actions {
  display: grid;
  gap: var(--th-space-2);
  margin-top: var(--th-space-3);
}

/* --------------------------------------------------------------------------
   12. Quantité et prix
   -------------------------------------------------------------------------- */
.th-qty {
  display: inline-flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--th-border-strong);
  border-radius: var(--th-radius-pill);
  background: var(--th-surface);
}

.th-qty__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--th-radius-pill);
  background: transparent;
  color: var(--th-text);
}

.th-qty__btn .th-icon {
  width: 1rem;
  height: 1rem;
}

.th-qty__btn:hover {
  background: var(--th-bg);
}

.th-qty__input {
  width: 2.5rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 500;
  -moz-appearance: textfield;
  appearance: textfield;
}

.th-qty__input::-webkit-outer-spin-button,
.th-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.th-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--th-space-1) var(--th-space-2);
  font-size: var(--th-text-s);
}

.th-price__current {
  font-weight: 500;
}

.th-price--sale .th-price__current {
  color: var(--th-warning);
}

.th-price__compare {
  color: var(--th-text-soft);
  font-size: 0.92em;
}

.th-price__unit {
  flex-basis: 100%;
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-price--l {
  font-size: var(--th-text-l);
}

/* --------------------------------------------------------------------------
   13. Grilles, cartes produit, tuiles
   -------------------------------------------------------------------------- */
.th-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--th-space-7) var(--th-gap);
}

.th-grid--m1 {
  grid-template-columns: minmax(0, 1fr);
}

.th-grid--scroll {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 72%;
  margin-inline: calc(var(--th-gutter) * -1);
  padding-inline: var(--th-gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--th-gutter);
  scrollbar-width: none;
}

.th-grid--scroll::-webkit-scrollbar {
  display: none;
}

.th-grid--scroll > .th-grid__item {
  scroll-snap-align: start;
}

.th-grid--tiles {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--th-gap);
}

.th-grid__item {
  min-width: 0;
}

.th-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--th-space-4);
}

.th-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--th-card-ratio);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-s);
  transition: box-shadow var(--th-slow) var(--th-ease);
}

.th-card__img,
.th-card__media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--th-ease), opacity var(--th-slow) var(--th-ease);
}

.th-card__img--alt {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.th-card__badge {
  position: absolute;
  top: var(--th-space-3);
  left: var(--th-space-3);
}

.th-card__info {
  display: grid;
  gap: var(--th-space-1);
}

.th-card__vendor {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-card__title {
  font-family: var(--th-font-heading);
  font-size: var(--th-text-m);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.th-card__link {
  text-decoration: none;
}

.th-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--th-radius-card);
}

.th-card__link:focus-visible {
  outline: none;
  box-shadow: none;
}

.th-card__link:focus-visible::after {
  outline: 3px solid var(--th-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--th-text);
}

.th-tile {
  display: grid;
  gap: var(--th-space-4);
  text-decoration: none;
}

.th-tile__media img,
.th-tile__media svg {
  transition: transform 600ms var(--th-ease);
}

.th-tile__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--th-space-3);
}

.th-tile__count {
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

@media (hover: hover) {
  .th-card:hover .th-card__media {
    box-shadow: 0 0 0 1px var(--th-border), var(--th-shadow-hover);
  }

  .th-card:hover .th-card__img {
    transform: scale(1.03);
  }

  .th-card--swap:hover .th-card__img--alt {
    opacity: 1;
  }

  .th-card__link:hover {
    text-decoration: underline;
  }

  .th-tile:hover .th-tile__media img,
  .th-tile:hover .th-tile__media svg {
    transform: scale(1.03);
  }

  .th-tile:hover .th-tile__title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }
}

/* --------------------------------------------------------------------------
   14. Bannière principale
   -------------------------------------------------------------------------- */
.th-hero {
  position: relative;
  display: grid;
  background: var(--th-bg);
}

.th-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--th-bg-alt);
}

.th-hero__media picture,
.th-hero__img {
  width: 100%;
  height: 100%;
}

.th-hero__img {
  object-fit: cover;
}

.th-hero__content {
  display: flex;
  align-items: center;
  padding: var(--th-space-7) var(--th-gutter) var(--th-space-8);
}

.th-hero__inner {
  width: 100%;
  max-width: 40rem;
}

.th-hero--center .th-hero__content {
  justify-content: center;
  text-align: center;
}

.th-hero--center .th-actions {
  justify-content: center;
}

.th-hero__text {
  max-width: 34rem;
  margin-top: var(--th-space-5);
  color: var(--th-text-soft);
  font-size: var(--th-text-l);
}

.th-hero--center .th-hero__text {
  margin-inline: auto;
}

/* Disposition côte à côte */
.th-hero--split .th-hero__media {
  aspect-ratio: 4 / 5;
}

/* Disposition texte sur l'image */
.th-hero--overlay {
  min-height: 80svh;
  isolation: isolate;
}

.th-hero--overlay .th-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.th-hero--overlay .th-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--th-bg);
  opacity: var(--th-hero-overlay, 0.2);
}

.th-hero--overlay.th-hero--light {
  color: #FFFFFF;
}

.th-hero--overlay.th-hero--light .th-hero__media::after {
  background: #0A0A0A;
}

.th-hero--overlay.th-hero--light .th-hero__text,
.th-hero--overlay.th-hero--light .th-eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.th-hero--overlay.th-hero--light .th-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #FFFFFF;
}

.th-hero--overlay.th-hero--light .th-btn--ghost:hover {
  background: #FFFFFF;
  color: #0A0A0A;
}

.th-hero--overlay .th-hero__text {
  color: inherit;
}

.th-hero--overlay .th-hero__content {
  align-items: flex-end;
}

.th-hero--overlay.th-hero--medium {
  min-height: 64svh;
}

.th-hero--overlay.th-hero--full {
  min-height: calc(100svh - var(--th-header-h));
}

/* --------------------------------------------------------------------------
   15. Image avec texte, texte enrichi, valeurs
   -------------------------------------------------------------------------- */
.th-iwt {
  display: grid;
  gap: var(--th-space-7);
  align-items: center;
}

.th-iwt__text {
  max-width: 34rem;
  margin-top: var(--th-space-5);
  color: var(--th-text-soft);
  font-size: var(--th-text-m);
}

.th-richtext {
  display: grid;
  gap: var(--th-space-5);
}

.th-richtext .th-eyebrow {
  margin-bottom: 0;
}

.th-richtext .th-actions {
  margin-top: var(--th-space-2);
}

.th-richtext--center {
  justify-items: center;
  text-align: center;
}

.th-richtext--center .th-actions {
  justify-content: center;
}

.th-richtext__text {
  color: var(--th-text-soft);
  font-size: var(--th-text-l);
}

.th-values__heading {
  margin-bottom: var(--th-space-7);
  text-align: center;
}

.th-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--th-space-6) var(--th-gap);
}

.th-values--1 {
  grid-template-columns: minmax(0, 1fr);
}

.th-values__item {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: var(--th-space-2);
  text-align: center;
}

.th-values__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--th-space-2);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-pill);
  background: var(--th-surface-high);
}

.th-values__title {
  font-size: var(--th-text-m);
  letter-spacing: -0.01em;
}

.th-values__text {
  max-width: 18rem;
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

/* --------------------------------------------------------------------------
   16. Témoignages et questions fréquentes
   -------------------------------------------------------------------------- */
.th-quotes {
  display: grid;
  gap: var(--th-gap);
}

.th-quote figure {
  display: flex;
  flex-direction: column;
  gap: var(--th-space-5);
  height: 100%;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-s);
}

.th-quote__stars {
  display: flex;
  gap: 2px;
  color: var(--th-text);
}

.th-quote__stars .th-icon {
  fill: currentColor;
  stroke-width: 1;
}

.th-quote__text {
  flex: 1;
  font-family: var(--th-font-heading);
  font-size: var(--th-text-l);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.th-quote__author {
  display: grid;
  gap: 2px;
  padding-top: var(--th-space-4);
  border-top: 1px solid var(--th-border);
  font-size: var(--th-text-s);
}

.th-quote__name {
  font-weight: 600;
}

.th-quote__detail {
  color: var(--th-text-soft);
}

.th-faq {
  display: grid;
  gap: var(--th-space-7);
}

.th-faq__intro .th-rte {
  margin-top: var(--th-space-5);
}

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

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

.th-accordion__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--th-space-4);
  min-height: 64px;
  padding-block: var(--th-space-4);
  font-family: var(--th-font-heading);
  font-size: var(--th-text-l);
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.th-accordion__summary::-webkit-details-marker {
  display: none;
}

.th-accordion__summary:hover span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.th-accordion__icon {
  transition: transform var(--th-base) var(--th-ease);
}

.th-accordion__item[open] .th-accordion__icon {
  transform: rotate(45deg);
}

.th-accordion__content {
  padding-bottom: var(--th-space-5);
  color: var(--th-text-soft);
  animation: th-fade var(--th-base) var(--th-ease);
}

.th-accordion__item--product .th-accordion__summary {
  min-height: 56px;
  font-family: var(--th-font-body);
  font-size: var(--th-text-s);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.th-accordion__label {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-3);
}

/* --------------------------------------------------------------------------
   17. Newsletter
   -------------------------------------------------------------------------- */
.th-newsletter {
  display: grid;
  justify-items: center;
  gap: var(--th-space-5);
  text-align: center;
}

.th-newsletter .th-eyebrow {
  margin-bottom: 0;
}

.th-news-form {
  width: 100%;
  max-width: 34rem;
}

.th-news-form__row {
  display: grid;
  gap: var(--th-space-2);
}

.th-news-form__row .th-field__input {
  border-radius: var(--th-radius-pill);
  padding-inline: 1.25rem;
}

.th-news-form__row .th-field__input:focus-visible {
  border-radius: var(--th-radius-pill);
}

.th-news-form__legal {
  margin-top: var(--th-space-3);
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-news-form .th-notice {
  margin-top: var(--th-space-2);
}

/* --------------------------------------------------------------------------
   18. Lookbook
   -------------------------------------------------------------------------- */
.th-lookbook {
  display: grid;
  gap: var(--th-gap);
}

.th-look {
  display: grid;
  gap: var(--th-space-3);
}

.th-look__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--th-radius-card);
  background: var(--th-bg-alt);
}

.th-look__media > img,
.th-look__media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-look--portrait .th-look__media {
  aspect-ratio: 4 / 5;
}

.th-look--landscape .th-look__media {
  aspect-ratio: 3 / 2;
}

.th-look--square .th-look__media {
  aspect-ratio: 1 / 1;
}

.th-look__caption {
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

.th-spot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: var(--th-radius-pill);
  text-decoration: none;
}

.th-spot__dot {
  width: 22px;
  height: 22px;
  border: 6px solid var(--th-surface);
  border-radius: var(--th-radius-pill);
  background: var(--th-text);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.12), 0 6px 16px rgba(10, 10, 10, 0.18);
  transition: transform var(--th-base) var(--th-ease);
}

.th-spot::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.45);
  animation: th-pulse 2.4s var(--th-ease) infinite;
}

.th-spot__card {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  width: max-content;
  max-width: 15rem;
  padding: var(--th-space-2) var(--th-space-4) var(--th-space-2) var(--th-space-2);
  border-radius: var(--th-radius-field);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-l);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity var(--th-base) var(--th-ease), transform var(--th-base) var(--th-ease), visibility 0s linear var(--th-base);
}

.th-spot__card img {
  width: 48px;
  height: 56px;
  border-radius: var(--th-radius-s);
  object-fit: cover;
}

.th-spot__text {
  display: grid;
}

.th-spot__title {
  font-size: var(--th-text-s);
  font-weight: 500;
  line-height: 1.3;
}

.th-spot__price {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-spot:hover .th-spot__card,
.th-spot:focus-visible .th-spot__card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.th-spot:hover .th-spot__dot,
.th-spot:focus-visible .th-spot__dot {
  transform: scale(1.12);
}

.th-spot--left .th-spot__card {
  left: auto;
  right: -0.5rem;
  transform: translateY(6px);
}

.th-spot--left:hover .th-spot__card,
.th-spot--left:focus-visible .th-spot__card {
  transform: none;
}

/* --------------------------------------------------------------------------
   19. Fiche produit
   -------------------------------------------------------------------------- */
.th-product {
  padding-top: var(--th-space-4);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.th-product__grid {
  display: grid;
  gap: var(--th-space-6);
}

.th-gallery {
  display: grid;
  gap: var(--th-space-3);
  min-width: 0;
  margin-inline: calc(var(--th-gutter) * -1);
}

.th-gallery__stage {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.th-gallery__stage::-webkit-scrollbar {
  display: none;
}

.th-gallery__stage:focus-visible {
  outline-offset: -3px;
}

.th-gallery__slide {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--th-surface);
  scroll-snap-align: start;
}

.th-product--square .th-gallery__slide {
  aspect-ratio: 1 / 1;
}

.th-product--natural .th-gallery__slide {
  aspect-ratio: auto;
}

.th-gallery__img,
.th-gallery__slide > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-product--natural .th-gallery__img {
  height: auto;
  object-fit: contain;
}

.th-gallery__video,
.th-gallery__model,
.th-gallery__slide iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.th-gallery__nav {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  padding-inline: var(--th-gutter);
}

.th-gallery__arrow {
  display: none;
}

.th-gallery__thumbs {
  display: flex;
  gap: var(--th-space-2);
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: none;
}

.th-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.th-gallery__thumb {
  flex: none;
  width: 4rem;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-field);
  background: var(--th-surface);
  opacity: 0.6;
  transition: opacity var(--th-fast) var(--th-ease), border-color var(--th-fast) var(--th-ease);
}

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

.th-gallery__thumb:hover {
  opacity: 1;
}

.th-gallery__thumb[aria-current="true"] {
  border-color: var(--th-text);
  opacity: 1;
}

.th-gallery__thumb:focus-visible {
  border-radius: var(--th-radius-field);
}

.th-product__info {
  display: grid;
  align-content: start;
  gap: var(--th-space-5);
  min-width: 0;
}

.th-product__head .th-eyebrow {
  margin-bottom: var(--th-space-3);
}

.th-product__title {
  font-size: calc(clamp(2rem, 1.6rem + 1.8vw, 3.25rem) * var(--th-heading-scale));
}

.th-product__price {
  display: grid;
  gap: var(--th-space-1);
}

.th-product__tax {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-product__text--muted {
  color: var(--th-text-soft);
}

.th-product__text--eyebrow {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.th-product__qty {
  display: grid;
  justify-items: start;
  gap: var(--th-space-2);
}

.th-product__buy {
  display: grid;
  gap: var(--th-space-3);
}

.th-product-form {
  display: grid;
  gap: var(--th-space-3);
}

.th-product-form__actions {
  display: grid;
  gap: var(--th-space-3);
}

.shopify-payment-button__button {
  min-height: 56px;
  border-radius: var(--th-radius-pill) !important;
  overflow: hidden;
}

.shopify-payment-button__button--unbranded {
  background: var(--th-text) !important;
  color: var(--th-bg) !important;
  font-family: var(--th-font-body);
  font-size: var(--th-text-s) !important;
  font-weight: 600;
}

.shopify-payment-button__button--unbranded:hover:not([disabled]) {
  background: var(--th-dark-hover) !important;
}

.shopify-payment-button__more-options {
  margin-top: var(--th-space-2);
  font-size: var(--th-text-s);
  text-decoration: underline;
}

.th-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-2);
  font-size: var(--th-text-s);
}

.th-stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--th-radius-pill);
  background: currentColor;
}

.th-stock--in {
  color: var(--th-success);
}

.th-stock--low {
  color: var(--th-warning);
}

.th-stock--out {
  color: var(--th-text-soft);
}

.th-variants {
  display: grid;
  gap: var(--th-space-5);
}

.th-variants__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.th-variants__legend {
  margin-bottom: var(--th-space-3);
  padding: 0;
  font-size: var(--th-text-s);
  font-weight: 600;
}

.th-variants__current {
  margin-left: var(--th-space-2);
  color: var(--th-text-soft);
  font-weight: 400;
}

.th-variants__values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-2);
}

.th-chip-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.th-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--th-border-strong);
  border-radius: var(--th-radius-pill);
  background: var(--th-surface);
  font-size: var(--th-text-s);
  cursor: pointer;
  transition: border-color var(--th-fast) var(--th-ease), background-color var(--th-fast) var(--th-ease), color var(--th-fast) var(--th-ease);
}

.th-chip:hover {
  border-color: var(--th-text);
}

.th-chip-input:checked + .th-chip {
  border-color: var(--th-text);
  background: var(--th-text);
  color: var(--th-bg);
}

.th-chip-input:focus-visible + .th-chip {
  outline: 3px solid var(--th-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--th-text);
}

.th-chip.is-unavailable {
  color: var(--th-text-soft);
  background-image: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--th-border-strong) 50%, transparent calc(50% + 0.5px));
}

.th-chip-input:checked + .th-chip.is-unavailable {
  color: var(--th-bg);
  background-image: none;
  opacity: 0.6;
}

.th-material {
  padding: var(--th-space-5);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: inset 0 0 0 1px var(--th-border);
}

.th-material__title {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  margin-bottom: var(--th-space-4);
  font-family: var(--th-font-body);
  font-size: var(--th-text-s);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.th-material__list {
  display: grid;
  gap: var(--th-space-4);
}

.th-material__list > div {
  display: grid;
  gap: var(--th-space-1);
}

.th-material__list > div + div {
  padding-top: var(--th-space-4);
  border-top: 1px solid var(--th-border);
}

.th-material__list dt {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.th-material__list dd {
  font-size: var(--th-text-s);
}

.th-product__info .th-accordion__item:first-of-type {
  border-top: 1px solid var(--th-border);
}

.th-product__info > .th-accordion__item + .th-accordion__item {
  margin-top: calc(var(--th-space-5) * -1);
}

.th-recos:not(:has([data-recos-content])) {
  padding: 0;
}

/* --------------------------------------------------------------------------
   20. Collection, recherche, pagination
   -------------------------------------------------------------------------- */
.th-toolbar {
  display: grid;
  gap: var(--th-space-4);
  margin-bottom: var(--th-space-7);
  padding-bottom: var(--th-space-4);
  border-bottom: 1px solid var(--th-border);
}

.th-toolbar__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--th-space-3) var(--th-space-5);
}

.th-toolbar__count {
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

.th-tags__list {
  display: flex;
  gap: var(--th-space-2);
  overflow-x: auto;
  margin-inline: calc(var(--th-gutter) * -1);
  padding: 4px var(--th-gutter);
  scrollbar-width: none;
}

.th-tags__list::-webkit-scrollbar {
  display: none;
}

.th-page-head .th-tags {
  margin-top: var(--th-space-5);
}

.th-tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 40px;
  padding: 0.375rem 1rem;
  border: 1px solid var(--th-border-strong);
  border-radius: var(--th-radius-pill);
  font-size: var(--th-text-s);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--th-fast) var(--th-ease), background-color var(--th-fast) var(--th-ease), color var(--th-fast) var(--th-ease);
}

.th-tag:hover {
  border-color: var(--th-text);
}

.th-tag[aria-current="page"] {
  border-color: var(--th-text);
  background: var(--th-text);
  color: var(--th-bg);
}

.th-tag:focus-visible {
  border-radius: var(--th-radius-pill);
}

.th-sort {
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
}

.th-sort__label {
  font-size: var(--th-text-s);
  color: var(--th-text-soft);
}

/* Filtres de collection : barre latérale sur ordinateur, tiroir sur mobile */
.th-facets-open {
  justify-self: start;
  min-height: 44px;
  padding-inline: 1.25rem;
}

.no-js .th-facets-open {
  display: none;
}

.th-facets-open__count:empty {
  display: none;
}

.th-facets-open__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.375rem;
  height: 1.375rem;
  padding-inline: 0.375rem;
  border-radius: var(--th-radius-pill);
  background: var(--th-accent);
  color: #0A0A0A;
  font-size: var(--th-text-xs);
  font-weight: 700;
  line-height: 1;
}

.th-collection__layout {
  display: grid;
  gap: var(--th-space-6);
}

.th-collection__results {
  min-width: 0;
  transition: opacity var(--th-fast) var(--th-ease);
}

.th-collection__results:focus {
  outline: none;
  box-shadow: none;
}

[data-facets].is-loading .th-collection__results {
  opacity: 0.5;
  pointer-events: none;
}

.th-facets__overlay,
.th-facets__close {
  display: none;
}

.th-facets__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--th-space-4);
  padding-bottom: var(--th-space-3);
}

.th-facets__title {
  margin: 0;
  font-family: var(--th-font-heading);
  font-size: var(--th-text-l);
  font-weight: 400;
  line-height: var(--th-lh-heading);
}

.th-facets__panel:focus {
  outline: none;
  box-shadow: none;
}

.th-facet {
  min-width: 0;
  margin: 0;
  padding: var(--th-space-3) 0 var(--th-space-4);
  border: 0;
  border-top: 1px solid var(--th-border);
}

.th-facet__legend {
  float: left;
  width: 100%;
  padding: 0;
}

.th-facet__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--th-space-3);
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--th-text-s);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
}

.th-facet__toggle:focus-visible {
  border-radius: var(--th-radius-s);
}

.th-facet__chevron {
  flex: none;
  transition: transform var(--th-fast) var(--th-ease);
}

.th-facet__toggle[aria-expanded="true"] .th-facet__chevron {
  transform: rotate(180deg);
}

.no-js .th-facet__toggle {
  cursor: default;
}

.no-js .th-facet__chevron {
  display: none;
}

.th-facet__content {
  clear: both;
  padding-top: var(--th-space-2);
}

.th-facet__list {
  display: grid;
  gap: var(--th-space-1);
  max-height: 18rem;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.th-facet__check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.th-facet__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--th-space-3);
  min-height: 40px;
  padding-block: 0.25rem;
  border-radius: var(--th-radius-s);
  font-size: var(--th-text-s);
  cursor: pointer;
}

.th-facet__option::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 1px solid var(--th-border-strong);
  border-radius: 4px;
  background: var(--th-surface);
  transition: background-color var(--th-fast) var(--th-ease), border-color var(--th-fast) var(--th-ease);
}

.th-facet__option::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.4rem;
  width: 0.35rem;
  height: 0.625rem;
  border: solid var(--th-bg);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: translateY(-60%) rotate(45deg);
}

.th-facet__option:hover::before {
  border-color: var(--th-text);
}

.th-facet__check:checked + .th-facet__option::before {
  border-color: var(--th-text);
  background: var(--th-text);
}

.th-facet__check:checked + .th-facet__option::after {
  opacity: 1;
}

.th-facet__check:focus-visible + .th-facet__option {
  outline: 3px solid var(--th-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--th-text);
}

.th-facet__option.is-disabled {
  color: var(--th-text-muted);
  cursor: not-allowed;
}

.th-facet__option.is-disabled::before {
  border-color: var(--th-border);
  background: var(--th-bg-alt);
}

.th-facet__name {
  flex: 1;
  min-width: 0;
}

.th-facet__count {
  color: var(--th-text-muted);
  font-size: var(--th-text-xs);
  font-variant-numeric: tabular-nums;
}

.th-facet__swatch {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--th-border);
  border-radius: 50%;
  background: var(--th-swatch) center / cover no-repeat;
}

.th-facet__price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--th-space-3);
}

.th-facet__field {
  display: grid;
  gap: var(--th-space-1);
  min-width: 0;
}

.th-facet__field-label {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-facet__money {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
}

.th-facet__currency {
  flex: none;
  color: var(--th-text-soft);
  font-size: var(--th-text-s);
}

.th-facet__input {
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.th-facet__input::-webkit-outer-spin-button,
.th-facet__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.th-facet__apply {
  min-height: 40px;
  margin-top: var(--th-space-3);
  padding: 0.5rem 1.25rem;
}

.th-facets__foot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--th-space-2);
  padding-top: var(--th-space-4);
  border-top: 1px solid var(--th-border);
}

.th-facets__foot .th-btn {
  padding-inline: var(--th-space-4);
}

.th-facets-active {
  margin-bottom: var(--th-space-6);
}

.th-facets-active__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--th-space-2);
  margin: 0;
  padding: 0;
}

.th-facets-active__pill {
  gap: var(--th-space-2);
  background: var(--th-surface);
  white-space: normal;
}

.th-facets-active__pill .th-icon {
  flex: none;
}

.th-facets-active__clear {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: var(--th-space-2);
  font-size: var(--th-text-s);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.th-facets-active__clear:focus-visible {
  border-radius: var(--th-radius-s);
}

@media (max-width: 989px) {
  .js .th-facets {
    position: fixed;
    inset: 0;
    z-index: var(--th-z-drawer);
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear var(--th-slow);
  }

  .js .th-facets.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }

  .js .th-facets__overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.24);
    opacity: 0;
    transition: opacity var(--th-slow) var(--th-ease);
  }

  .js .th-facets.is-open .th-facets__overlay {
    opacity: 1;
  }

  .js .th-facets__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: min(26rem, 100%);
    background: var(--th-surface);
    box-shadow: var(--th-shadow-l);
    transform: translateX(-100%);
    transition: transform var(--th-slow) var(--th-ease);
  }

  .js .th-facets.is-open .th-facets__panel {
    transform: none;
  }

  .js .th-facets__head {
    padding: var(--th-space-3) var(--th-space-4) var(--th-space-3) var(--th-space-5);
    border-bottom: 1px solid var(--th-border);
  }

  .js .th-facets__close {
    display: inline-grid;
  }

  .js .th-facets__form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  .js .th-facets__body {
    flex: 1;
    min-height: 0;
    padding-inline: var(--th-space-5);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .js .th-facets__body .th-facet:first-child {
    border-top: 0;
  }

  .js .th-facets__foot {
    padding: var(--th-space-4) var(--th-space-5);
    background: var(--th-surface-high);
  }
}

@media (min-width: 990px) {
  .th-facets-open {
    display: none;
  }

  .th-collection__layout--facets {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: var(--th-space-7);
  }

  .th-facets__panel {
    position: sticky;
    top: calc(var(--th-header-h) + var(--th-space-4));
    max-height: calc(100vh - var(--th-header-h) - var(--th-space-6));
    padding-right: var(--th-space-2);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .js .th-facets__foot {
    display: none;
  }
}

.th-pagination {
  margin-top: var(--th-space-8);
}

.th-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--th-space-1);
}

.th-pagination a,
.th-pagination span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: var(--th-space-2);
  border-radius: var(--th-radius-pill);
  font-size: var(--th-text-s);
  text-decoration: none;
  transition: background-color var(--th-fast) var(--th-ease);
}

.th-pagination a:hover {
  background: var(--th-bg-alt);
}

.th-pagination [aria-current="page"],
.th-pagination .current {
  background: var(--th-text);
  color: var(--th-bg);
}

.th-pagination__gap {
  color: var(--th-text-muted);
}

.th-pagination__arrow {
  border: 1px solid var(--th-border-strong);
}

.th-pagination--simple {
  display: flex;
  justify-content: center;
  gap: var(--th-space-1);
}

.th-search-page__form {
  display: flex;
  gap: var(--th-space-2);
  max-width: 40rem;
  margin-top: var(--th-space-5);
}

.th-search-page__form + .th-muted {
  margin-top: var(--th-space-4);
}

.th-search-page {
  padding-bottom: var(--th-space-9);
}

.th-result {
  display: grid;
  gap: var(--th-space-2);
  height: 100%;
  padding: var(--th-space-5);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-s);
}

.th-result .th-eyebrow {
  margin-bottom: 0;
}

.th-result__title a {
  text-decoration: none;
}

.th-result__title a:hover {
  text-decoration: underline;
}

.th-collection,
.th-collections,
.th-blog {
  padding-bottom: var(--th-space-9);
}

/* --------------------------------------------------------------------------
   21. Panier (page)
   -------------------------------------------------------------------------- */
.th-cart {
  padding-bottom: var(--th-space-9);
}

.th-cart__layout {
  display: grid;
  gap: var(--th-space-7);
  align-items: start;
}

.th-cart__items {
  display: grid;
  justify-items: start;
  gap: var(--th-space-5);
}

.th-cart__table thead {
  border-bottom: 1px solid var(--th-border);
}

.th-cart__table th {
  padding-bottom: var(--th-space-3);
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.th-cart__table thead th:not(:first-child) {
  display: none;
}

.th-cart__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--th-space-3) var(--th-space-4);
  padding-block: var(--th-space-5);
  border-bottom: 1px solid var(--th-border);
}

.th-cart__product {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: var(--th-space-4);
}

.th-cart__qty {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
}

.th-cart__total {
  display: grid;
  justify-items: end;
  align-content: center;
  font-weight: 500;
}

.th-cart__summary {
  display: grid;
  gap: var(--th-space-3);
  padding: var(--th-space-6);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-s);
}

.th-cart__summary .th-btn--primary {
  margin-top: var(--th-space-2);
}

.th-cart__express {
  display: grid;
  gap: var(--th-space-2);
}

/* --------------------------------------------------------------------------
   22. Pages, contact, blog, article, 404
   -------------------------------------------------------------------------- */
.th-page {
  padding-bottom: var(--th-space-9);
}

.th-contact {
  padding-bottom: var(--th-space-9);
}

.th-contact__grid {
  display: grid;
  gap: var(--th-space-7);
}

.th-contact__aside {
  display: grid;
  align-content: start;
  gap: var(--th-space-5);
}

.th-contact__line {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
  font-weight: 500;
}

.th-contact__form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-s);
}

.th-contact__form .th-btn {
  justify-self: start;
}

.th-articles {
  display: grid;
  gap: var(--th-space-8) var(--th-gap);
}

.th-article-card {
  display: grid;
  gap: var(--th-space-4);
}

.th-article-card__media img,
.th-article-card__media svg {
  transition: transform 600ms var(--th-ease);
}

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

.th-article-card__info {
  display: grid;
  justify-items: start;
  gap: var(--th-space-3);
}

.th-article-card__meta {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.th-article-card__title a {
  text-decoration: none;
}

.th-article-card__title a:hover {
  text-decoration: underline;
}

.th-article__head {
  text-align: center;
}

.th-article__head .th-article-card__meta {
  margin-top: var(--th-space-5);
}

.th-article__media {
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}

.th-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-2);
  margin-top: var(--th-space-7);
}

.th-article__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--th-space-4);
  margin-block: var(--th-space-7);
  padding-top: var(--th-space-5);
  border-top: 1px solid var(--th-border);
}

.th-article__nav a:only-child {
  margin-left: auto;
}

.th-comments {
  display: grid;
  gap: var(--th-space-5);
  padding-bottom: var(--th-space-9);
}

.th-comments__list {
  display: grid;
  gap: var(--th-space-4);
}

.th-comment {
  display: grid;
  gap: var(--th-space-2);
  padding: var(--th-space-5);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
}

.th-comments__form .th-btn {
  justify-self: start;
}

.th-404 {
  display: grid;
  justify-items: center;
  gap: var(--th-space-4);
  padding-block: clamp(4rem, 2rem + 6vw, 8rem);
  text-align: center;
}

.th-404__code {
  font-family: var(--th-font-heading);
  font-size: clamp(5rem, 3rem + 10vw, 11rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--th-text-muted);
}

.th-404 .th-search-page__form {
  width: 100%;
}

/* --------------------------------------------------------------------------
   23. Pied de page
   -------------------------------------------------------------------------- */
.th-footer {
  margin-top: auto;
  padding-top: clamp(3.5rem, 2rem + 5vw, 6rem);
  background: var(--th-bg-alt);
  border-top: 1px solid var(--th-border);
  font-size: var(--th-text-s);
}

.th-footer__grid {
  display: grid;
  gap: var(--th-space-7) var(--th-gap);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.th-footer__col {
  display: grid;
  align-content: start;
  gap: var(--th-space-4);
}

.th-footer__brand {
  font-family: var(--th-font-heading);
  font-size: var(--th-h-s);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.th-footer__text {
  max-width: 24rem;
  color: var(--th-text-soft);
}

.th-footer__title {
  font-family: var(--th-font-body);
  font-size: var(--th-text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.th-footer__links {
  display: grid;
  gap: var(--th-space-1);
}

.th-footer__links a,
.th-footer__social a {
  display: inline-block;
  padding-block: var(--th-space-1);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 2px) / 0 1px no-repeat;
  transition: background-size var(--th-base) var(--th-ease);
}

.th-footer__links a:hover,
.th-footer__links a[aria-current="page"],
.th-footer__social a:hover {
  background-size: 100% 1px;
}

.th-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-1) var(--th-space-5);
}

.th-footer .th-news-form__row .th-field__input {
  background: var(--th-surface);
}

.th-footer__bottom {
  display: grid;
  gap: var(--th-space-4);
  padding-block: var(--th-space-5);
  border-top: 1px solid var(--th-border);
}

.th-footer__locales {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-3) var(--th-space-5);
}

.th-locale {
  display: flex;
  align-items: center;
  gap: var(--th-space-2);
}

.th-locale__label {
  display: inline-flex;
  align-items: center;
  gap: var(--th-space-2);
  color: var(--th-text-soft);
}

.th-locale .th-select {
  background-color: transparent;
}

.th-pay {
  display: flex;
  flex-wrap: wrap;
  gap: var(--th-space-2);
}

.th-pay__icon {
  width: 38px;
  height: 24px;
}

.th-footer__copy {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-footer__copy a {
  text-decoration: none;
}

.th-footer__copy a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   24. Page mot de passe
   -------------------------------------------------------------------------- */
.th-password__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--th-space-4);
  min-height: var(--th-header-h);
  border-bottom: 1px solid var(--th-border);
}

.th-password__brand {
  font-family: var(--th-font-heading);
  font-size: var(--th-h-s);
}

.th-password__login {
  position: relative;
}

.th-password__login > summary {
  list-style: none;
}

.th-password__login > summary::-webkit-details-marker {
  display: none;
}

.th-password__panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 10;
  display: grid;
  gap: var(--th-space-4);
  width: min(24rem, calc(100vw - 2.5rem));
  padding: var(--th-space-6);
  border-radius: var(--th-radius-card);
  background: var(--th-surface);
  box-shadow: var(--th-shadow-l);
  animation: th-rise var(--th-base) var(--th-ease);
}

.th-password__admin {
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
}

.th-password__main {
  display: grid;
  align-content: center;
}

.th-password__foot {
  padding-block: var(--th-space-5);
  border-top: 1px solid var(--th-border);
  color: var(--th-text-soft);
  font-size: var(--th-text-xs);
  text-align: center;
}

/* --------------------------------------------------------------------------
   25. Animations
   -------------------------------------------------------------------------- */
@keyframes th-rise {
  from {
    opacity: 0;
    transform: translate(var(--th-rise-x, 0), 6px);
  }
}

.th-nav__menu {
  --th-rise-x: -50%;
}

@keyframes th-fade {
  from {
    opacity: 0;
  }
}

@keyframes th-slide-left {
  from {
    transform: translateX(-100%);
  }
}

@keyframes th-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   26. Points de rupture
   -------------------------------------------------------------------------- */
@media (min-width: 750px) {
  .th-announce__item:not(:first-child) {
    display: block;
  }

  .th-announce__item + .th-announce__item::before {
    content: "\00B7";
    margin-inline-end: var(--th-space-6);
    color: var(--th-text-soft);
  }

  .th-announce--dark .th-announce__item + .th-announce__item::before {
    color: inherit;
  }

  .th-header__account {
    display: inline-grid;
  }

  .th-search__submit {
    display: inline-flex;
  }

  .th-grid,
  .th-grid--m1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-grid--scroll {
    grid-template-columns: none;
    grid-auto-columns: 40%;
  }

  .th-grid--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-values {
    grid-template-columns: repeat(var(--th-values-cols, 2), minmax(0, 1fr));
  }

  .th-values--1 {
    --th-values-cols: 1;
  }

  .th-values--3 {
    --th-values-cols: 3;
  }

  .th-values--4 {
    --th-values-cols: 4;
  }

  .th-quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-lookbook--2,
  .th-lookbook--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-lookbook--2 .th-look:nth-child(2) {
    margin-top: var(--th-space-9);
  }

  .th-lookbook--3,
  .th-lookbook--5,
  .th-lookbook--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-news-form__row {
    grid-template-columns: 1fr auto;
  }

  .th-gallery {
    margin-inline: 0;
  }

  .th-gallery__stage {
    border-radius: var(--th-radius-card);
  }

  .th-gallery__nav {
    padding-inline: 0;
  }

  .th-gallery__arrow {
    display: inline-grid;
    flex: none;
  }

  .th-gallery__thumb {
    width: 4.5rem;
  }

  .th-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .th-tags__list {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 4px;
  }

  .th-cart__table thead th:not(:first-child) {
    display: table-cell;
  }

  .th-cart__table .th-cart__total-head {
    text-align: right;
  }

  .th-cart__row {
    display: table-row;
  }

  .th-cart__row > td {
    padding-block: var(--th-space-5);
    border-bottom: 1px solid var(--th-border);
    vertical-align: middle;
  }

  .th-cart__qty {
    display: table-cell;
    width: 1%;
    padding-inline: var(--th-space-5);
    white-space: nowrap;
  }

  .th-cart__qty .th-qty,
  .th-cart__qty .th-line__remove {
    vertical-align: middle;
  }

  .th-cart__qty .th-line__remove {
    display: inline-grid;
    margin-left: var(--th-space-1);
  }

  .th-cart__total {
    display: table-cell;
    text-align: right;
  }

  .th-cart__total s {
    display: block;
  }

  .th-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-article-card--feature {
    grid-column: 1 / -1;
  }

  .th-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-footer__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .th-footer__copy {
    grid-column: 1 / -1;
  }
}

@media (min-width: 990px) {
  :root {
    --th-header-h: 5rem;
  }

  .th-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--th-space-6);
  }

  .th-mnav {
    display: none;
  }

  .th-header__logo {
    grid-column: 1;
    justify-self: start;
  }

  .th-nav {
    display: block;
    grid-column: 2;
  }

  .th-header--center .th-header__inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 0;
    padding-top: var(--th-space-3);
  }

  .th-header--center .th-header__logo {
    grid-column: 2;
    justify-self: center;
  }

  .th-header--center .th-header__actions {
    grid-column: 3;
    grid-row: 1;
  }

  .th-header--center .th-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-block: var(--th-space-1);
  }

  .th-grid--4,
  .th-grid--m1.th-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .th-grid--scroll {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .th-grid--scroll.th-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-grid--scroll.th-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-grid--scroll.th-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .th-grid--tiles.th-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-grid--tiles.th-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .th-hero--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: 72svh;
  }

  .th-hero--split.th-hero--large {
    min-height: 84svh;
  }

  .th-hero--split.th-hero--full {
    min-height: calc(100svh - var(--th-header-h));
  }

  .th-hero--split .th-hero__media {
    order: 2;
    aspect-ratio: auto;
  }

  .th-hero--split .th-hero__content {
    padding: var(--th-space-9) var(--th-space-8) var(--th-space-9) max(var(--th-gutter), calc((100vw - var(--th-page-width)) / 2));
  }

  .th-hero--overlay .th-hero__content {
    padding: var(--th-space-9) max(var(--th-gutter), calc((100vw - var(--th-page-width)) / 2));
  }

  .th-hero--overlay.th-hero--center .th-hero__content {
    align-items: center;
  }

  .th-iwt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 1rem + 5vw, 8rem);
  }

  .th-iwt--right .th-iwt__media {
    order: 2;
  }

  .th-quotes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 1rem + 5vw, 8rem);
  }

  .th-faq__intro {
    position: sticky;
    top: calc(var(--th-header-h) + 2rem);
    align-self: start;
  }

  .th-product {
    padding-top: var(--th-space-6);
  }

  .th-product__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2.5rem, 1rem + 4vw, 6rem);
    align-items: start;
  }

  .th-product__info--sticky {
    position: sticky;
    top: calc(var(--th-header-h) + 1.5rem);
  }

  .th-cart__layout {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  }

  .th-cart__summary {
    position: sticky;
    top: calc(var(--th-header-h) + 1.5rem);
  }

  .th-contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 1rem + 5vw, 8rem);
  }

  .th-articles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-article-card--feature {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: var(--th-space-8);
  }

  .th-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  }

  .th-lookbook--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .th-lookbook--1 .th-look__media {
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 1200px) {
  .th-grid--4.th-grid--scroll,
  .th-grid--4 {
    gap: var(--th-space-8) var(--th-gap);
  }

  .th-hero__text {
    font-size: 1.375rem;
  }
}

/* --------------------------------------------------------------------------
   27. Mouvement réduit et impression
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .th-spot::before {
    display: none;
  }

  .th-facets__panel,
  .th-facets__overlay,
  .th-facet__chevron {
    transition: none !important;
  }

  .th-card:hover .th-card__img,
  .th-tile:hover .th-tile__media img,
  .th-article-card:hover .th-article-card__media img {
    transform: none;
  }
}

@media (forced-colors: active) {
  .th-btn,
  .th-chip,
  .th-tag,
  .th-qty,
  .th-facet__option::before {
    border: 1px solid ButtonText;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .th-section-header,
  .th-section-announce,
  .th-section-footer,
  .th-drawer,
  .th-skip {
    display: none !important;
  }

  body {
    background: #FFFFFF;
  }
}

/* Bouton d'application des filtres, pleine largeur en pied de tiroir */
.th-facets__apply { flex: 1 1 auto; justify-content: center; }
.th-facets__foot { display: flex; gap: .75rem; align-items: center; }
