/* ==========================================================
   Hery — Products : page vitrine statique
   Réglages rapides : voir :root ci-dessous et main.js
   ========================================================== */

:root {
  --bg: #E3E3E1;
  --ink: #111111;
  --muted: #555555;
  --accent: #D9413E;
  --bar: clamp(90px, 11.5vw, 170px); /* largeur de la barre rouge, du haut à la roue */
  --dur: 8s; /* durée d'un tour complet de l'ADN — celle des vidéos video/dna-* */
  --spin: calc(var(--dur) / 0.85); /* tour de roue : 15 % plus lent que l'ADN */
}

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

html {
  scrollbar-gutter: stable;  /* la grille bloque le défilement : sans ça, la page sursaute à l'ouverture */
  /* Une section = un écran : un cran de molette passe du hero à la roue. */
  scroll-snap-type: y mandatory;
}
.hero, .wheel-wrap, .contact { scroll-snap-align: start; scroll-snap-stop: always; }   /* et chaque main des produits */
/* À la molette, main.js prend le relais avec un glissement plus lent */
html.is-gliding { scroll-snap-type: none; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Unbounded', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }

/* ---------- HERO (et le contact, bâti sur le même cadre) ---------- */

.hero, .contact {
  position: relative;
  max-width: 1440px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px clamp(24px, 10vw, 150px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  /* La vidéo du mot se fond dans le fond et la barre (multiply) : on donne ce
     fond à toute la section, isolée — sur téléphone la vidéo déborde du milieu. */
  background: var(--bg);
  isolation: isolate;
}

.cross {
  position: absolute;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}
.cross.t { top: 56px; }
.cross.b { bottom: 56px; }
.cross.c1 { left: 3%; }
.cross.c2 { left: 36%; }
.cross.c3 { left: 63%; }
.cross.c4 { right: 3%; }

.arrow { position: absolute; top: 50%; margin-top: -8px; }
.arrow.l { left: 2.4%; }
.arrow.r { right: 2.4%; }

.hero-head,
.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.hero-head { align-items: flex-start; }
.hero-foot { align-items: flex-end; flex-wrap: wrap; }

.welcome {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.welcome span { display: block; }   /* deux lignes sans <br> : la traduction ne remplace que du texte */

.foot-label {
  margin: 0;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.foot-label.upper { text-transform: uppercase; }

/* ---------- ADN (texte qui roule) ---------- */

.dna-stage {
  --fs: clamp(38px, 8.6vw, 124px);  /* corps du mot : la vidéo est taillée en em */
  position: relative;
  flex: 1 1 auto;
  min-height: min(420px, 48vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dna-red {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bar);
  height: clamp(200px, 24vw, 360px);
  transform: translate(-50%, -50%);
  background: var(--accent);
}

/* Le mot en texte : lu par les lecteurs d'écran, montré seulement si la vidéo
   ne se lit pas. */
.dna-word {
  position: relative;
  margin: 0;
  font-size: var(--fs);
  font-weight: 900;
  line-height: 0.82em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dna-stage:not(.no-video) .dna-word {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Image de 9 × 1,4 em, mot centré : elle tombe pile là où était le mot en 3D. */
.dna-video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--fs) * 9);
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.no-video .dna-video { display: none; }

/* ---------- CONTACT ---------- */

.contact-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 6vh, 64px);
}

.contact-title {
  position: relative;
  isolation: isolate;   /* la barre passe sous le texte, pas sous la page */
  margin: 0;
  font-size: clamp(24px, 7vw, 108px);
  font-weight: 900;
  line-height: 1.1;   /* de quoi loger l'accent de « VÔTRE » sous la ligne du dessus */
  text-align: center;
  text-transform: uppercase;
}
.contact-title span { display: block; white-space: nowrap; }
/* La barre rouge de la roue continue jusque sous le premier mot (une ligne
   de 1,1em), puis s'arrête : elle part d'au-dessus de la section, que son
   overflow coupe au bord. Portée par le titre et non par le mot, pour
   descendre avant que le mot n'apparaisse. */
.contact-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -100vh;
  height: calc(100vh + 1.04em);
  left: 50%;
  width: var(--bar);
  transform: translateX(-50%);
  background: var(--accent);
}
/* Le second mot en creux, comme les faces de profil du mot qui roule. Un
   simple contour transparent tracerait aussi les morceaux de lettre qui se
   chevauchent dans la police : on trace un trait double, puis on le recouvre
   de la couleur du fond — il n'en reste que la moitié extérieure. Le mot est
   sous la barre, sur le gris : ce remplissage ne se voit pas. */
.contact-hollow {
  color: var(--bg);
  -webkit-text-stroke: max(1.6px, 0.024em) var(--ink);  /* ≈ 2,6px en grand, plus fin sur téléphone */
  paint-order: stroke fill;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px clamp(32px, 5vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.contact-links a {
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 600;
}
.contact-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- ROUE DE CARTES ---------- */

.wheel-wrap {
  /* Un éventail : le moyeu de la roue est posé en bas de l'écran (--hub, depuis
     le haut), on n'en voit que la moitié du dessus. Tout se déduit de la largeur
     d'une carte : à --R = 1,65 × --cw, deux voisines (30° d'écart) ont leurs
     centres à 0,85 × --cw et se chevauchent un peu. La carte du haut monte
     jusqu'à --R + --ch / 2 ≈ 2,34 × --cw au-dessus du moyeu : elle est donc
     taillée sur la hauteur d'écran, et sur la largeur pour un téléphone, où
     l'éventail déborde sur les côtés plutôt que de rapetisser. */
  --cw: clamp(104px, min(28vh, 40vw), 300px);
  --ch: calc(var(--cw) * 1.38);
  --R: calc(var(--cw) * 1.65);
  --hub: calc(100% - 10vh);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  /* Rien à sélectionner dans la roue : sans ça, le moindre clic dessus surligne
     les libellés des cartes, et les rectangles bleus tournent ensuite avec la
     roue jusqu'au prochain clic ailleurs. */
  user-select: none;
  -webkit-user-select: none;
}
/* La barre rouge du haut reprend ici, sur toute la hauteur : elle passe
   derrière la roue et le disque, comme si elle traversait la page. */
.wheel-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--bar);
  transform: translateX(-50%);
  background: var(--accent);
}
.wheel-wrap .cross.t { top: 56px; }

/* « Mes produits » à gauche, l'invitation à défiler à droite, au-dessus de l'éventail */
.wheel-head {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 10vw, 150px);
  pointer-events: none;
}
.wheel-cue {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin: 0;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.wheel-cue svg { animation: cue-bob 1.8s ease-in-out infinite; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(4px); }
}

.wheel {
  position: absolute;
  left: 50%;
  top: var(--hub);
  width: 0;
  height: 0;
  will-change: transform;
  animation: wheel-spin var(--spin) linear infinite;
}
.wheel-wrap.is-still .wheel,
.wheel-wrap.is-still .ring-txt { animation-play-state: paused; }
/* Pendant la donne, le paquet se forme sur le disque : la roue passe devant,
   et un clic sur le paquet ne doit pas ouvrir le lien d'une carte. */
.wheel-wrap.is-dealing .wheel { z-index: 3; }
.wheel-wrap.is-dealing .card { pointer-events: none; }

@keyframes wheel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.card {
  position: absolute;
  left: calc(var(--cw) / -2);
  top: calc(var(--ch) / -2);
  width: var(--cw);
  height: var(--ch);
  border-radius: calc(var(--cw) * 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.18);
  transform: rotate(var(--a)) translateY(calc(var(--R) * -1));
  /* Chaque carte dans sa propre couche. Sans ça la roue entière — ombres portées
     comprises — est repeinte à chaque image au lieu d'être rastérisée une fois :
     c'était l'essentiel des saccades (~2 cœurs de peinture en continu). */
  will-change: transform;
}
/* Carte cliquable : la roue s'arrête au survol, on vise donc une cible immobile */
a.card { color: inherit; -webkit-user-drag: none; }
a.card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
a.card:hover .card-name,
a.card:focus-visible .card-name { background: var(--accent); color: #FFFFFF; }

/* Au survol, la carte sort de l'éventail et passe devant ses voisines. C'est
   scale, et non transform, qui s'en charge : posé avant transform, il agrandit
   aussi le rayon, et la carte s'éloigne du moyeu en grandissant — sans toucher
   à la transformation que la donne anime. */
.wheel .card { transition: scale 0.35s cubic-bezier(0.2, 0.8, 0.25, 1); }
.wheel-wrap:not(.is-dealing) .wheel a.card:hover,
.wheel-wrap:not(.is-dealing) .wheel a.card:focus-visible { scale: 1.07; z-index: 1; }

/* Captures recadrées au format carte dans images/ : cover ne rogne presque rien */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.card-logo { width: 72%; height: auto; -webkit-user-drag: none; }

/* Nom du produit, en pastille : reste lisible sur n'importe quelle capture */
.card-name {
  position: absolute;
  left: 9%;
  bottom: 7%;
  padding: 0.55em 0.8em;
  background: #F4F4F2;
  color: var(--ink);
  font-size: calc(var(--cw) * 0.056);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.skin-red    { background: var(--accent); }
.skin-lakile { background: #F4EFE8; }
.skin-term   { background: #282C34; }
.skin-lead {
  flex-direction: column;
  gap: 8%;
  padding: 0 10%;
  background:
    radial-gradient(circle, #2A2A2A 1px, transparent 1.5px) 0 0 / 10px 10px,
    #0E0E10;
  color: #FFFFFF;
  text-align: center;
}
.lead-title { margin: 0; color: #FFFFFF; font-size: calc(var(--cw) * 0.1); font-weight: 900; line-height: 1.1; }
.lead-title span { color: #C0D9E8; }
.lead-stack { margin: 0; font-size: calc(var(--cw) * 0.045); letter-spacing: 0.08em; color: #B8B8B8; text-transform: uppercase; }

/* Le moyeu : l'anneau qui tourne, et au centre le petit « Me ». Le paquet s'y
   forme quand on défile plus bas. */
.disc {
  position: absolute;
  left: 50%;
  top: var(--hub);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc((var(--R) - var(--ch) / 2 - 10px) * 2);
  height: calc((var(--R) - var(--ch) / 2 - 10px) * 2);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #EFEFED 0%, #DADAD8 70%, #CFCFCD 100%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.10);
}
.ring-txt {
  position: absolute;
  inset: 6%;
  will-change: transform;
  animation: ring-spin calc(var(--spin) * 2) linear infinite;
}
/* Petit, en capitales espacées : la même étiquette que « By Hery » en pied de
   page. Le triangle se balance doucement pour dire qu'on peut y aller. */
.disc-me {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
  padding: 0.6em 0.9em;
  font-size: clamp(11px, calc(var(--cw) * 0.06), 15px);
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-user-drag: none;
}
.disc-me span { margin-right: -0.22em; }   /* l'espacement final décentrerait le mot */
.disc-me svg { animation: me-bob 2.6s ease-in-out infinite; }
.disc-me:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
@keyframes me-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -4px; }
}

/* ---------- BASCULE DE LANGUE ---------- */

/* Fixe dans la marge haute : les deux sections occupent tout l'écran chacune,
   et la grille passe par-dessus — il fallait un coin qui ne bouge jamais.
   Au-dessus de tout le reste, pour rester cliquable. */
.lang {
  position: fixed;
  top: clamp(12px, 1.3vw, 20px);
  right: clamp(14px, 1.6vw, 26px);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #A0A09E;
}
.lang[hidden] { display: none; }
.lang-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-btn[aria-pressed="true"] { color: var(--ink); }
.lang-btn:hover { color: var(--accent); }
.lang-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- PRODUITS ---------- */

/* Une section de la page, sous la roue : une main de quatre cartes par écran,
   et la barre rouge qui continue derrière elles. */
.products {
  position: relative;
  isolation: isolate;
  background: var(--bg);
}
.products[hidden] { display: none; }
.products::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: var(--bar);
  transform: translateX(-50%);
  background: var(--accent);
}

/* Le titre suit les mains tant qu'on est dans la section : collé en haut, sans
   hauteur, il passe au-dessus d'elles (cf. le haut de .hand, laissé libre). */
.products-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 0;
  pointer-events: none;
}
.products-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 56px);
  padding-top: clamp(44px, 3.4vw, 56px);   /* sous la bascule de langue, fixée dans le coin */
}
.products-title {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 60px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.products-count { margin-left: 0.3em; color: var(--muted); font-size: 0.32em; font-weight: 400; letter-spacing: 0.1em; vertical-align: middle; }
.products-page {
  margin: 0;
  color: var(--muted);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.products-hands {
  /* --cw redéfini ici : les cartes copiées en tirent leur taille de texte et
     leur arrondi. Quatre cartes et leurs légendes tiennent dans un écran, en
     largeur comme en hauteur. */
  --cw: clamp(110px, min(19vw, 40svh), 280px);
  --gap: clamp(16px, 2.4vw, 38px);
}
.hand {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(108px, 9vw, 150px) clamp(20px, 3.4vw, 56px) clamp(24px, 3vw, 48px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.hand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* une main incomplète reste au milieu */
  gap: var(--gap);
  max-width: calc(var(--cw) * 4 + var(--gap) * 3);
}
/* Pas encore donnée : la main attend qu'on arrive sur son écran (cf. main.js) */
.hand:not(.is-dealt) .tile { visibility: hidden; }

/* Une tuile, c'est la carte de la roue remise à plat */
.tile { width: var(--cw); margin: 0; }
.products .card {
  /* En flux, mais toujours positionnée : l'image et la pastille du nom sont
     posées en absolu dessus et s'échapperaient d'une carte statique. */
  position: relative;
  inset: auto;        /* le décalage qui centre la carte sur la roue n'a plus cours */
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.38;
  transform: none;
  will-change: auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.products a.card:hover,
.products a.card:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(0, 0, 0, 0.3); }
/* La place de la prochaine carte : un emplacement vide, en pointillés comme
   l'anneau du disque, plutôt qu'une carte de plus. */
.products .skin-soon {
  padding: 0 12%;
  border: 2px dashed #8A8A88;
  background: none;
  box-shadow: none;
  text-align: center;
}
.soon-title { margin: 0; font-size: calc(var(--cw) * 0.088); font-weight: 900; line-height: 1.15; text-transform: uppercase; }
.soon-title::after {
  content: "";
  display: block;
  width: 18%;
  height: 0.22em;
  margin: 0.8em auto 0;
  background: var(--accent);
}
.tile-note {
  margin: 0.95em 0 0;
  font-size: clamp(10px, 0.95vw, 12.5px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #2E2E2E; /* plus foncé que --muted : la légende doit se lire sur le fond clair */
}

/* ---------- FICHE PRODUIT (product/) ---------- */

/* Une page qui se lit en continu : pas d'arrêt écran par écran ici */
html.page-product { scroll-snap-type: none; }

.pd-bar {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.4vw, 56px) clamp(20px, 8vw, 150px) 0;
  position: relative;
  z-index: 1;   /* le retour passe devant la barre rouge */
}
/* Un rond noir, avec son libellé à côté */
.pd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.pd-back svg {
  flex: none;
  box-sizing: content-box;
  padding: clamp(12px, 1.4vw, 19px);
  border-radius: 50%;
  background: var(--ink);
  color: #F4F4F2;
  transition: background 0.2s ease, transform 0.25s ease;
}
.pd-back:hover svg, .pd-back:focus-visible svg { background: var(--accent); transform: translateX(-3px); }
.pd-back:focus-visible, .pd-home:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.pd-home { display: block; line-height: 0; }

/* La carte à gauche reste à l'écran pendant que le texte défile à droite,
   jusqu'à précédent / suivant, qui court sous les deux colonnes. */
.pd {
  /* --cw : la carte, dont la pastille et l'arrondi suivent la taille. Taillée
     aussi sur la hauteur : collée à l'écran, elle doit y tenir entière. */
  --cw: clamp(200px, min(23vw, calc((100vh - 96px) / 1.38)), 340px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 80px) clamp(20px, 8vw, 150px) clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: var(--cw) minmax(0, 1fr);
  column-gap: clamp(32px, 6vw, 110px);
  position: relative;
  isolation: isolate;   /* la barre rouge passe sous tout le contenu */
}
/* La barre rouge de l'accueil, derrière la colonne de la carte : elle part du
   haut de la page (au-dessus de la fiche) et la longe jusqu'au bout. */
.pd::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -200px;
  bottom: 0;
  left: calc(clamp(20px, 8vw, 150px) + var(--cw) / 2);
  width: var(--bar);
  transform: translateX(-50%);
  background: var(--accent);
}
.pd-card {
  position: sticky;
  top: max(24px, calc(50vh - var(--cw) * 0.69));   /* centrée dans l'écran */
  align-self: start;
}
.pd-head { padding-bottom: clamp(40px, 5vw, 72px); }
.pd-nav, .pd-missing { grid-column: 1 / -1; }
.pd-card .card {
  /* Remise à plat comme sur le tapis */
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.38;
  transform: rotate(-3deg);
  will-change: auto;
  animation: pd-deal 0.7s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes pd-deal { from { transform: translateY(60px) rotate(-12deg); opacity: 0; } }

.pd-index {
  margin: 0 0 1.2em;
  color: var(--muted);
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.pd-name {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 78px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.pd-name::after {
  content: "";
  display: block;
  width: 1.1em;
  height: 0.12em;
  margin-top: 0.32em;
  background: var(--accent);
}
.pd-about {
  margin: 0.9em 0 0;
  max-width: 34ch;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 600;
  line-height: 1.4;
}

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.6vw, 36px); }
.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 1.25em 1.9em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #F4F4F2;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pd-btn svg { transition: transform 0.25s ease; }
.pd-btn:hover, .pd-btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pd-btn:hover svg, .pd-btn:focus-visible svg { transform: translate(2px, -2px); }
.pd-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.pd-btn.is-ghost { background: none; color: var(--ink); }
.pd-btn.is-ghost:hover, .pd-btn.is-ghost:focus-visible { background: var(--ink); border-color: var(--ink); color: #F4F4F2; }

.pd-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(28px, 3.4vw, 56px);
  margin: clamp(28px, 3vw, 44px) 0 0;
}
.pd-facts dt, .pd-label, .pd-step-dir {
  color: var(--muted);
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.pd-facts dd { margin: 0.6em 0 0; font-size: clamp(12px, 1vw, 14px); }

/* Une rubrique : son nom, puis le contenu, un filet au-dessus */
.pd-block {
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid #C9C9C7;
}
.pd-label { margin: 0 0 clamp(18px, 1.8vw, 26px); }
.pd-text { max-width: 62ch; }
.pd-text p { margin: 0 0 1.1em; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.75; }
.pd-text p:first-child { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.6; }
.pd-text p:last-child { margin-bottom: 0; }

.pd-feats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(28px, 3.4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feat;
}
.pd-feats li { counter-increment: feat; }
.pd-feats li::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  margin-bottom: 0.9em;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.pd-feats h3 { margin: 0 0 0.7em; font-size: clamp(13px, 1.05vw, 15px); font-weight: 900; line-height: 1.35; text-transform: uppercase; }
.pd-feats p { margin: 0; color: #333333; font-size: clamp(12px, 0.95vw, 14px); line-height: 1.7; }

.pd-stack { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pd-stack li {
  padding: 0.8em 1.15em;
  background: #F4F4F2;
  font-size: clamp(10px, 0.85vw, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Précédent / suivant : les deux voisins sur la roue */
.pd-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #C9C9C7;
}
.pd-step { display: flex; flex-direction: column; gap: 0.8em; padding: clamp(28px, 3.4vw, 52px) 0 0; }
.pd-step.is-next { align-items: flex-end; text-align: right; border-left: 1px solid #C9C9C7; }
.pd-step.is-prev { padding-right: 16px; }
.pd-step.is-next { padding-left: 16px; }
.pd-step-dir::before { content: "← "; }
.is-next .pd-step-dir::before { content: none; }
.is-next .pd-step-dir::after { content: " →"; }
.pd-step-name {
  font-size: clamp(18px, 2.6vw, 40px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}
.pd-step:hover .pd-step-name, .pd-step:focus-visible .pd-step-name { color: var(--accent); }
.pd-step:hover, .pd-step:focus-visible { color: var(--ink); }
.pd-step:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.pd-missing { padding: 12vh 0; text-align: center; }
.pd-missing p { margin: 0 0 2em; font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; }

@media (max-width: 760px) {
  /* Sous la bascule de langue, fixée dans le coin */
  .pd-bar { padding-top: 48px; }
  /* Une seule colonne : collée, la carte cacherait le texte qui défile dessous */
  .pd { --cw: clamp(170px, 52vw, 240px); grid-template-columns: minmax(0, 1fr); }
  .pd-card { position: static; justify-self: center; width: var(--cw); margin-bottom: 44px; }
  /* Au centre, elle passerait sous le texte : elle descend jusqu'à la carte et s'y arrête */
  .pd::before {
    left: 50%;
    bottom: auto;
    height: calc(200px + clamp(36px, 5vw, 80px) + var(--cw) * 0.69);
  }
  .pd-head { text-align: center; }
  /* « BoulangeHery » tient sur une ligne d'un téléphone */
  .pd-name { font-size: min(7vw, 44px); }
  .pd-name::after { margin-left: auto; margin-right: auto; }
  .pd-about { margin-left: auto; margin-right: auto; }
  .pd-actions, .pd-facts { justify-content: center; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 600px) {
  .hero, .contact { padding-top: 40px; padding-bottom: 40px; }
  .cross.t { top: 40px; }
  .cross.b { bottom: 40px; }
  .cross.c2, .cross.c3 { display: none; }
  .dna-stage { min-height: min(300px, 40vh); }
  /* Les mains passent en 2 × 2 */
  .products-hands { --cw: clamp(96px, min(40vw, 27svh), 200px); }
  .hand-row { max-width: calc(var(--cw) * 2 + var(--gap)); }
}

/* ---------- Apparition, écran par écran ----------
   Quand un écran arrive, main.js lui met .is-in et ses éléments .rv entrent
   l'un après l'autre : --i est leur rang, --step l'écart entre deux. Quand il
   repart, .is-in tombe et la séquence se rejouera au retour. Rien n'est caché
   sans la classe .js (posée en tête de page) ni en mouvement réduit.
   Les animations utilisent translate / scale, et non transform, pour se
   composer avec le placement des éléments ; fill-mode backwards seulement,
   pour rendre la main au survol et à la donne une fois finies. */
@keyframes rv-in   { from { opacity: 0; translate: 0 28px; } }
@keyframes rv-pop  { from { opacity: 0; scale: 0.82; } }
/* Les cartes glissent jusqu'à leur place le long de l'anneau, en éventail :
   mêmes fonctions qu'au repos, le navigateur fait tourner l'angle. */
@keyframes rv-fan  { from { opacity: 0; transform: rotate(calc(var(--a) - 55deg)) translateY(calc(var(--R) * -1)); } }
@keyframes rv-wipe { from { clip-path: inset(0 0 100% 0); } }
@keyframes rv-drop { from { translate: 0 -100%; } }

@media (prefers-reduced-motion: no-preference) {
  .js .rv,
  .js .wheel-wrap:not(.is-in) .wheel .card { opacity: 0; }
  .js .is-in .rv {
    opacity: 1;
    animation: rv-in 0.8s cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
    animation-delay: calc(var(--base, 0ms) + var(--i, 0) * var(--step, 140ms));   /* --base : de quoi attendre son tour */
  }
  .js .is-in .rv-pop  { animation-name: rv-pop; }
  .js .is-in .rv-wipe { animation-name: rv-wipe; animation-duration: 0.9s; }

  /* Roue : la barre se déroule, le disque paraît, puis les cartes en sortent
     une à une (--i posé par main.js) */
  .js .wheel-wrap:not(.is-in)::before { clip-path: inset(0 0 100% 0); }
  .js .wheel-wrap.is-in::before { animation: rv-wipe 1s cubic-bezier(0.6, 0, 0.2, 1) backwards; }
  .js .wheel-wrap.is-in .wheel .card {
    animation: rv-fan 1s cubic-bezier(0.2, 0.8, 0.25, 1) backwards;
    animation-delay: calc(var(--i, 0) * 140ms);
  }

  /* Le paquet est sorti (main.js) : les cartes ne réapparaissent pas, elles
     repartent du paquet vers leur place, ou y sont déjà. */
  .js .wheel-wrap.has-deck .wheel .card { opacity: 1; animation: none; }

  /* Fiche produit : la barre se déroule pendant que la carte tombe */
  .js .pd:not(.is-ready)::before { clip-path: inset(0 0 100% 0); }
  .js .pd.is-ready::before { animation: rv-wipe 1s cubic-bezier(0.6, 0, 0.2, 1) backwards; }

  /* Contact : la barre descend de la roue et se pose sous le premier mot */
  .js .contact:not(.is-in) .contact-title::before { translate: 0 -100%; }
  .js .contact.is-in .contact-title::before { animation: rv-drop 1s cubic-bezier(0.6, 0, 0.2, 1) 0.14s backwards; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .wheel, .ring-txt { animation: none; }
  .wheel-cue svg, .disc-me svg { animation: none; }
  .wheel .card, .products .card { transition: none; }
  .pd-card .card { animation: none; }
}
