/* ============================================================
   huemi — corrections de la fiche produit (chargé après style.css)
   ============================================================ */

/* Les attributs width/height servent au ratio (pas de saut de mise en page) : la hauteur réelle vient du CSS */
:where(img[width][height]) { height: auto; }

/* Rythme vertical uniforme entre sections (96px ordinateur / 56px mobile) */
.section { padding: 96px 0; }
#reviews { padding-top: 32px; padding-bottom: 0; }
@media (max-width: 900px) {
  .section { padding: 56px 0; }
  #reviews { padding-top: 24px; padding-bottom: 0; }
}

/* Paragraphe de bénéfice sous le prix */
.pdp-desc { margin: 4px 0 18px; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--muted); max-width: 520px; }
@media (max-width: 900px) { .pdp-desc { font-size: 15px; margin: 2px 0 14px; } }

/* Surlignage terracotta : une seule pastille, jamais coupée en deux */
.hl { white-space: nowrap; }
@media (max-width: 900px) {
  .h-section, .split h2 { font-size: clamp(24px, 7vw, 34px); }
}

/* « Loved by 2,400+ » : ellipse dessinée à la main, trait terracotta */
.circled { position: relative; display: inline-block; white-space: nowrap; color: var(--accent); padding: 0 6px; margin-left: 14px; }
.circled::after {
  content: ""; position: absolute; inset: -10px -16px; transform: rotate(-3deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M38 10C80 1 160 3 188 24c16 13 4 34-40 44-46 10-118 8-138-14C-6 34 22 14 70 8' fill='none' stroke='%23B4441C' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@media (max-width: 900px) { .circled::after { inset: -8px -12px; } }

/* Badge Experts' Choice : simple étiquette, plus un lien */
.expert-pill { cursor: default; }
@media (max-width: 900px) { .ep-main b { font-size: 12px; } .ep-main span { font-size: 11px; } }
@media (max-width: 400px) { .ep-main span { display: none; } }

/* Pastille SOLD lisible */
.hb-round small { font-size: 10px; letter-spacing: .03em; padding-left: 0; }
@media (max-width: 900px) {
  .hb-round { width: 76px; height: 76px; padding: 3px; }
  .hb-round b { font-size: 19px; }
  .hb-round small { font-size: 9px; letter-spacing: 0; white-space: normal; line-height: 1.1; max-width: 60px; margin: 2px auto 0; }
}

/* Textes informatifs : plancher de 12px sur mobile */
@media (max-width: 900px) {
  .refill b { white-space: normal; font-size: 14px; }
  .refill small { white-space: normal; font-size: 12px; letter-spacing: 0; line-height: 1.35; display: block; }
  .price-head .badge { font-size: 12px; }
  .legal { font-size: 12px; }
  .ba-tag { font-size: 13px; }
}
@media (max-width: 360px) { .refill small { font-size: 12px; } }


/* Avant / après : prêts à recevoir les photos (ratio fixe 4:5, pas de saut de mise en page) */
.ba-slot, .ba-slot + .ba-slot { aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--prod-bg); }
.ba-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ba-ph { position: absolute; inset: 0; display: grid; place-content: center; z-index: 0; font-size: 14px; font-weight: 800; color: var(--muted); }
.ba-tag { z-index: 2; }
@media (max-width: 900px) { .ba-slot, .ba-slot + .ba-slot { aspect-ratio: 4 / 5; } .ba-ph { font-size: 12px; } }

/* Photos des avis : 4:3, cadrées sur le visage */
.rv-photo img { object-position: center 25%; }

/* « How does it work? » : flacon entier sur fond produit, logo lisible */
.split-img--product { background: var(--prod-bg); }
.split-img--product img, .split-img--product img[src] { aspect-ratio: 4 / 3; object-fit: contain; display: block; }
@media (max-width: 900px) { .split-img--product img { aspect-ratio: 4 / 3; } }

/* What's inside — 3 cartes ingrédients */
.ingr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ingr-card { background: var(--soft); border-radius: var(--r); overflow: hidden; padding-bottom: 20px; }
.ingr-img { background: var(--prod-bg); aspect-ratio: 4 / 3; overflow: hidden; }
.ingr-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ingr-card h3 { margin: 18px 22px 4px; font-size: 19px; font-weight: 900; }
.ingr-card p { margin: 0 22px; color: var(--muted); font-size: 15px; font-weight: 700; }
@media (max-width: 900px) {
  .ingr { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; scroll-padding-left: 16px; }
  .ingr::-webkit-scrollbar { display: none; }
  .ingr-card { flex: 0 0 72%; scroll-snap-align: start; padding-bottom: 16px; }
  .ingr-card:last-child { margin-right: 16px; }
  .ingr-card h3 { font-size: 17px; margin: 14px 16px 4px; }
  .ingr-card p { margin: 0 16px; font-size: 14px; }
}

/* Footer : cibles tactiles de 44px, liens légaux, réseaux, paiements */
.footer ul:not(.pay-logos) { gap: 0; }
.footer li a { display: inline-block; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
.socials { display: flex; gap: 8px; margin-top: 4px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; background: var(--soft); color: var(--ink); }
.socials a:hover { background: var(--tint); }
.socials svg { width: 20px; height: 20px; }
.legal-links { margin-bottom: 4px; }
.legal-links a { display: inline-block; padding: 12px 2px; min-height: 44px; box-sizing: border-box; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* Logos de paiement injectés par app.js : la règle .footer ul (colonne) ne doit pas les empiler */
.footer ul.pay-logos { display: grid; flex-direction: row; gap: 6px; }

/* Ordinateur : la galerie suit le défilement du bloc d'achat (pas de grand vide sous les vignettes) */
@media (min-width: 901px) { .pdp > .gallery { position: sticky; top: 24px; align-self: start; } }

/* Mobile : mention « Korean Beauty » lisible, logo d'en-tête cliquable sur 44px */
@media (max-width: 900px) { .hb-txt { font-size: 11px; line-height: 1.2; } }
.header .logo { display: inline-flex; align-items: center; min-height: 44px; }
.ep-main span { font-size: 12px; } @media (max-width: 900px) { .ep-main span { font-size: 11px; } }

/* Moins de vide entre le dernier appel et la newsletter */
main > section:last-child { padding-bottom: 48px; }
@media (max-width: 900px) { main > section:last-child { padding-bottom: 28px; } }

/* ===== Tour 3 ===== */

/* Pastilles de bénéfices sous la description (2 colonnes mobile, 4 ordinateur) */
.pdp-benefits { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pdp-benefits li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; text-align: center; background: var(--soft); border-radius: var(--r-sm); padding: 12px 8px; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink); min-width: 0; }
.pdp-benefits svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
@media (max-width: 900px) {
  .pdp-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
  .pdp-benefits li { flex-direction: row; justify-content: flex-start; text-align: left; padding: 10px 12px; min-height: 48px; }
}

/* Note globale sous « Loved by » (même ligne que l'accueil) */
.rv-summary { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--ink); }
.rv-sum-stars { color: var(--accent); font-size: 19px; letter-spacing: 1px; line-height: 1; }
@media (max-width: 900px) { .rv-summary { margin-top: 14px; font-size: 14px; } .rv-sum-stars { font-size: 17px; } }

/* Avant / après : toujours visible ; emplacement illustré tant que la vraie photo n'est pas là */
#results .ba-slot { background: #e2e1df; }
#results .ba-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--accent); text-align: center; padding: 12px; }
#results .ba-ph { gap: 6px; padding: 10px 10px 44px; }
#results .ba-ph svg.bai { width: min(80%, 240px); height: auto; aspect-ratio: 1; opacity: 1; }
#results .ba-ph b { font-size: 16px; font-weight: 900; letter-spacing: 0; color: var(--ink); }
.bai-bad { fill: #8a7d75; stroke: #fff; stroke-width: 3; }
.bai-ok { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.bai-mk { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
#results .ba-tag .t-real { display: none; }
#results .ba-slot.has-photo .ba-tag .t-ill { display: none; }
#results .ba-slot.has-photo .ba-tag .t-real { display: inline; }
#results .ba-slot + .ba-slot .ba-tag { background: var(--accent); color: #fff; }
#results .ba-slot.has-photo + .ba-slot.has-photo .ba-tag { background: #fff; color: var(--ink); }
.ba-note { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); font-style: italic; }
#results.all-photos .ba-note { display: none; }

#results .ba-slot img { opacity: 0; transition: opacity .5s ease; }
#results .ba-slot.has-photo img { opacity: 1; }
#results .ba-slot.has-photo .ba-ph { visibility: hidden; }
@media (max-width: 600px) { #results .ba-ph { padding: 6px 6px 40px; gap: 2px; } #results .ba-ph svg.bai { width: 86%; } #results .ba-ph b { font-size: 14px; } #results .ba-tag { left: 50%; transform: translateX(-50%); bottom: 10px; white-space: nowrap; font-size: 12px; padding: 5px 11px; } }
@media (prefers-reduced-motion: reduce) { #results .ba-slot img { transition: none; } }

/* Ligne livraison sous le bouton : suit l'offre choisie (gratuite dès 2 flacons, $4.90 pour 1) */
.ship-line .sl-paid { display: none; }
body:has(input[name="offer"][value="1"]:checked) .ship-line .sl-free { display: none; }
body:has(input[name="offer"][value="1"]:checked) .ship-line .sl-paid { display: inline-flex; align-items: center; gap: 6px; }
.sl-paid .flag { font-size: 18px; line-height: 1; }
.sl-paid u { text-underline-offset: 3px; }

/* Pastille « Loved by » au-dessus du titre des avis */
.rv-eyebrow { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; font-size: 14px; font-weight: 900; color: var(--accent); }
.rv-eyebrow svg { width: 18px; height: 18px; }

/* Chiffres du panel : 3 anneaux */
#stats { padding-top: 0; }
.stats-card { background: var(--tint); border-radius: var(--r); padding: 56px 40px 32px; text-align: center; }
.stats-card .h-section { margin-bottom: 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; }
.stat { position: relative; display: flex; flex-direction: column; align-items: center; }
.stat .ring { width: 140px; height: 140px; transform: rotate(-90deg); }
.stat .ring circle { fill: none; stroke: #f1d8cb; stroke-width: 9; }
.stat .ring .ring-val { stroke: var(--accent); stroke-linecap: round; }
.stat b { position: absolute; top: 0; left: 50%; width: 140px; height: 140px; margin-left: -70px; display: grid; place-content: center; font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.stat span { margin-top: 14px; font-size: 16px; font-weight: 800; line-height: 1.3; max-width: 220px; }
.stats-note { margin-top: 28px; font-size: 12px; font-weight: 700; color: var(--muted); }
@media (max-width: 900px) {
  .stats-card { padding: 36px 16px 22px; margin: 0; }
  .stats-card .h-section { margin-bottom: 24px; }
  .stats-grid { gap: 10px; }
  .stat .ring { width: 92px; height: 92px; }
  .stat b { width: 92px; height: 92px; margin-left: -46px; font-size: 22px; }
  .stat span { margin-top: 10px; font-size: 13px; }
  .stats-note { margin-top: 20px; }
}

/* Plancher de lecture sur mobile : mention Korean Beauty, pastille SOLD, barre collante */
@media (max-width: 900px) {
  .hb-txt { font-size: 12px; line-height: 1.2; }
  .hb-round { width: 84px; height: 84px; }
  .hb-round b { font-size: 21px; }
  .hb-round small { font-size: 10px; letter-spacing: 0; padding-left: 0; white-space: nowrap; max-width: none; line-height: 1; margin: 3px auto 0; }
  .sticky-bar .meta .sb-price, .sticky-bar .sb-price s, .sticky-bar .sb-price em { font-size: 13px; }
  .sb-stars { font-size: 12px; }
}
@media (max-width: 400px) { .hb-txt { display: none; } }
/* Pastille SOLD en mobile : le mot ne doit plus toucher le bord du rond (≤ 80 % du cercle, ≥ 7 px de marge) */
@media (max-width: 600px) {
  .hb-round { width: 94px; height: 94px; }
  .hb-round b { font-size: 23px; }
  .hb-round small { font-size: 9px; letter-spacing: 0; }
}

/* Avis → section suivante : l'espace vient des avis (l'avant/après peut être masqué) */
#reviews { padding-bottom: 96px; }
#results { padding-top: 0; }
@media (max-width: 900px) { #reviews { padding-bottom: 56px; } }
.stats-note, .stat span { text-wrap: balance; }

/* Logos cliquables (en-tête ET pied de page) : zone tactile de 44px, identique à l'accueil (home-fix.css) */
.header .logo, .footer .logo { display: inline-flex; align-items: center; min-height: 44px; }
.footer .logo { margin-bottom: 8px; }
.footer .logo img { margin-bottom: 0; }

/* « 4-week » ne se coupe jamais au trait d'union */
.nowrap { white-space: nowrap; }

/* ===== Tour 4 — « expliquer par l'image » ===== */

/* Pastille SOLD entre 601 et 900 px : cercle 96 px, mot en 9 px (largeur du mot ≈ 0,7 × le cercle) */
@media (min-width: 601px) and (max-width: 900px) {
  .hb-round { width: 96px; height: 96px; padding: 4px; }
  .hb-round b { font-size: 23px; }
  .hb-round small { font-size: 9px; letter-spacing: 0; padding-left: 0; }
  .hero-badges { width: 128px; }
}

/* Accordéon et FAQ : puces courtes et mini-étapes au lieu de paragraphes */
.acc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.acc-list li { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.acc-list li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4441c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.acc-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-steps li { display: inline-flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 900; color: var(--ink); }
.acc-steps li + li::before { content: "→"; color: var(--accent); font-weight: 900; margin: 0 4px 0 -2px; order: -1; }
.acc-steps li + li { padding-left: 6px; }
.acc-steps b { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; font-size: 13px; }
.faq .acc-steps li { background: #fff; }

/* « Still haven't found your shade? » : mini-comparaisons dessinées */
.pain-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 28px 20px 24px; }
.pain-vis { width: 150px; height: 64px; }
.pv-arrow { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pv-x { fill: var(--accent); stroke: #fff; stroke-width: 2.5; }
.pv-xm { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.pain-card h3 { margin: 0; font-size: 20px; }
.answer { font-size: 24px; }
@media (max-width: 900px) {
  .pain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pain-card { padding: 16px 6px 14px; gap: 10px; border-radius: var(--r-sm); }
  .pain-vis { width: 100%; max-width: 110px; height: auto; }
  .pain-card h3 { font-size: 14px; line-height: 1.2; }
  .answer { margin-top: 24px; font-size: 20px; }
}

/* « Foundation that adapts to you » : schéma 1 teinte → 3 carnations + 3 icônes */
.adapt-vis { display: flex; align-items: center; gap: 14px; background: var(--soft); border-radius: var(--r); padding: 18px 20px; margin: 4px 0 22px; }
.adapt-vis small { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.av-dot { display: block; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.av-neutral { background: radial-gradient(circle at 35% 35%, #e6c3a6, #c8946f); }
.av-arrow { width: 40px; height: 24px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.av-many { display: flex; gap: 12px; flex: 1; justify-content: space-around; }
.icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.icon-list li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; }
.icon-list svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--tint); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .adapt-vis { gap: 8px; padding: 14px 12px; margin-bottom: 18px; }
  .av-dot { width: 42px; height: 42px; }
  .av-arrow { width: 28px; }
  .av-many { gap: 6px; }
  .adapt-vis small { font-size: 12px; }
  .icon-list li { font-size: 16px; }
}

/* « Pump. Dot. Blend. » : 3 images carrées, numéros, flèches */
#how .lede { margin-bottom: 36px; }
.pdb { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.pdb li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pdb li + li::before { content: ""; position: absolute; left: -32px; top: calc(50% - 30px); width: 24px; height: 24px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4441c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pdb-img { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--prod-bg); }
.pdb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdb-dot { position: absolute; left: var(--x); top: var(--y); width: 5%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #f6dcc8 0 18%, #d9a07a 60%, #b97650); box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 2px 4px rgba(60,30,15,.3); }
.pdb b { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; }
.pdb i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; font-size: 16px; }
@media (max-width: 900px) {
  #how .lede { margin-bottom: 22px; }
  .pdb { gap: 14px; }
  .pdb li { gap: 8px; }
  .pdb li + li::before { left: -14px; width: 14px; height: 14px; top: calc(50% - 20px); }
  .pdb-img { border-radius: var(--r-sm); }
  .pdb-dot { width: 6%; }
  .pdb b { flex-direction: column; gap: 5px; font-size: 13px; text-align: center; line-height: 1.15; }
  .pdb i { width: 24px; height: 24px; font-size: 12px; }
}

/* ===== Tour 5 — textes propres à huemi + visuels ===== */

/* Pastille huemi sur le packshot (remplace l'ancien badge à lauriers) : 3 pastilles de teinte qui se chevauchent */
.hu-pill { gap: 8px; padding: 7px 14px 7px 9px; }
.hp-dots { display: inline-flex; flex: none; }
.hp-dots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; }
.hp-dots i + i { margin-left: -6px; }
.hp-dots i:nth-child(1) { background: #6b3f26; }
.hp-dots i:nth-child(2) { background: #9a6440; }
.hp-dots i:nth-child(3) { background: #c08a5e; }
.hu-pill .ep-main b { font-size: 13px; }
.hu-pill .ep-main span { font-size: 12px; }
@media (max-width: 900px) {
  .hu-pill { gap: 6px; padding: 5px 11px 5px 7px; }
  .hp-dots i { width: 15px; height: 15px; }
  .hp-dots i + i { margin-left: -5px; }
  .hu-pill .ep-main b { font-size: 12px; }
}
/* Petit mobile : le sous-titre reste (il porte le sens), plancher 12 px, pas de chevauchement avec la pastille SOLD */
@media (max-width: 400px) {
  .hu-pill .ep-main span { display: block; font-size: 12px; }
  .hu-pill .ep-main b { font-size: 12px; }
}

/* Titre des avis : plus de chiffre entouré */
#reviews .h-section .hl { white-space: nowrap; }

/* « Your tone, automatically » en ordinateur : le schéma et les icônes remplissent la hauteur de la photo */
@media (min-width: 901px) {
  #adapts .split { align-items: stretch; }
  #adapts .split > div:last-child { display: flex; flex-direction: column; justify-content: center; }
  #adapts .split h2 { margin-bottom: 26px; }
  #adapts .adapt-vis { padding: 30px 28px; gap: 20px; margin: 0 0 30px; }
  #adapts .av-dot { width: 78px; height: 78px; }
  #adapts .av-arrow { width: 54px; height: 30px; }
  #adapts .adapt-vis small { font-size: 15px; margin-top: 10px; }
  #adapts .icon-list { gap: 18px; }
  #adapts .icon-list li { font-size: 19px; gap: 16px; }
  #adapts .icon-list svg { width: 52px; height: 52px; padding: 12px; }
}

/* ===== Tour 6 — boutique en stock (plus de précommande), réassurance, animations ===== */

/* Accroche huemi sous le titre */
.pdp-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: none; }
.pd-hook { color: var(--ink); font-weight: 900; font-size: 18px; }
.pd-no { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: 900; font-size: 16px; white-space: nowrap; }
.pd-x { display: inline-grid; place-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tint); color: var(--accent); font-size: 11px; line-height: 1; }
.pd-no .pd-x:not(:first-child) { margin-left: 4px; }
@media (max-width: 900px) { .pd-hook { font-size: 16px; } .pd-no { font-size: 15px; } }

/* Sous-titres d'offre : une icône + 2 à 4 mots */
.offer-sub { display: flex; align-items: center; gap: 6px; }
.os-ic { width: 17px; height: 17px; flex: none; color: var(--accent); }
.os-gift { color: var(--accent-dark); font-weight: 900; }
.offer-best .gift-row b { color: var(--ink); }

/* Encadré abonnement : sous-titre validé, sur UNE seule ligne, jamais coupé */
.refill > span:last-child { min-width: 0; }
.refill small, #refillSub { display: block; white-space: nowrap !important; overflow: visible !important; letter-spacing: 0; }
@media (max-width: 900px) {
  .refill { padding: 12px 12px; gap: 10px; }
  .refill small, #refillSub { font-size: 11.5px !important; letter-spacing: -.01em !important; }
}
@media (max-width: 370px) { .refill small, #refillSub { font-size: 10.5px !important; } }

/* Réassurance sous le bouton : 4 icônes au trait terracotta + logos de paiement */
.pdp-trust { list-style: none; margin: 4px 0 0; padding: 14px 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--soft); border-radius: var(--r-sm, 16px); }
.pdp-trust li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 800; line-height: 1.2; color: var(--ink); min-width: 0; }
.pdp-trust svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.pdp-pay { margin-top: -2px; }
.pdp-pay .pay-logos { max-width: 420px; margin: 0 auto; }
@media (max-width: 900px) {
  .pdp-trust { padding: 12px 6px; gap: 4px; }
  .pdp-trust li { font-size: 12px; }
  .pdp-trust svg { width: 24px; height: 24px; }
}

/* Version réelle : pas d'étoiles dans la barre fixe tant qu'il n'y a pas de vrais avis */
.pdp-real .sb-stars { display: none !important; }

/* --- Animations discrètes (désactivées si l'utilisateur limite les animations) --- */
@media (prefers-reduced-motion: no-preference) {
  /* Offres : la carte choisie « respire » légèrement */
  .offer { transition: border-color .2s, background-color .25s, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
  .offer:has(input:checked) { box-shadow: 0 6px 18px rgba(180,68,28,.10); }
  .offer:active { transform: scale(.985); }
  .offer input::before { transition: transform .28s cubic-bezier(.34,1.56,.64,1); }
  /* Cadeaux qui « se débloquent » quand on passe à 2 flacons */
  .offer-best.gifts-pop .gift-row { animation: pfGift .5s cubic-bezier(.34,1.56,.64,1) both; }
  .offer-best.gifts-pop .gift-row:nth-child(2) { animation-delay: .07s; }
  .offer-best.gifts-pop .gift-row:nth-child(3) { animation-delay: .14s; }
  .offer-best.gifts-pop .gift-row:nth-child(4) { animation-delay: .21s; }
  .offer-best.gifts-pop .os-gift { animation: pfPulse .6s ease both; }
  /* Coche de l'abonnement */
  .rf-box { transition: background-color .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
  .refill:active .rf-box { transform: scale(.9); }
  /* Point vert « Shipped today » qui pulse doucement */
  .sl-ship i { animation: pfDot 2.4s ease-in-out infinite; }
  /* Réassurance : légère montée en cascade au chargement */
  .pdp-trust li { animation: pfUp .5s ease both; }
  .pdp-trust li:nth-child(2) { animation-delay: .06s; } .pdp-trust li:nth-child(3) { animation-delay: .12s; } .pdp-trust li:nth-child(4) { animation-delay: .18s; }
  /* Apparitions au défilement (classes posées par le script de la fiche) */
  .pf-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); transition-delay: var(--pf-d, 0ms); }
  .pf-rv.pf-in { opacity: 1; transform: none; }
}
@keyframes pfGift { 0% { opacity: 0; transform: translateY(8px) scale(.96); } 100% { opacity: 1; transform: none; } }
@keyframes pfPulse { 0%, 100% { transform: none; } 40% { transform: scale(1.06); } }
@keyframes pfUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pfDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,199,154,.6); } 60% { box-shadow: 0 0 0 6px rgba(139,199,154,0); } }

/* Offres : on VOIT 1 ou 2 flacons (vignette fond produit) */
.offer-mid { display: flex; align-items: center; gap: 12px; min-width: 0; }
.offer-mid > div { min-width: 0; }
.ov { flex: none; position: relative; width: 52px; height: 52px; border-radius: 12px; background: var(--prod-bg, #e2e1df); overflow: hidden; }
.ov img { position: absolute; top: 0; height: 100%; width: auto; left: 50%; transform: translateX(-50%); }
.ov-2 { width: 64px; }
.ov-3 { width: 76px; }   /* 3 flacons (img/offer-3.jpg, 590×390) */
.ov-2 img:first-child { transform: translateX(-78%); }
.ov-2 img:last-child { transform: translateX(-22%); }
@media (max-width: 900px) {
  .offer-mid { gap: 10px; }
  .ov { width: 44px; height: 44px; border-radius: 10px; }
  .ov-2 { width: 54px; }
  .ov-3 { width: 64px; }
}

/* Barre fixe mobile : nom du produit jamais coupé (2 lignes possibles), prix entier ; étoiles retirées (déjà en haut de fiche) */
@media (max-width: 900px) {
  .sticky-bar .meta b { white-space: normal; overflow: visible; text-overflow: clip; font-size: 14px; line-height: 1.15; }
  .sticky-bar .meta .sb-price { overflow: visible; text-overflow: clip; }
  .sticky-bar .sb-stars { display: none; }
}
/* comparatif mobile : colonne des libellés plus large (2 lignes max) */
@media (max-width: 600px) { .compare th:first-child, .compare td:first-child { width: 46%; } .compare .us { width: 27%; } }

/* 21/10 — Abonnement plus discret : fine bordure, petite case, texte plus léger */
.refill { border: 1px solid var(--line) !important; background: #fff !important; border-radius: 12px !important; padding: 8px 12px !important; gap: 10px !important; }
.refill .rf-box { width: 18px !important; height: 18px !important; border: 1.5px solid #cdbfb6 !important; border-radius: 5px !important; }
.refill input:checked + .rf-box { background: var(--accent) !important; border-color: var(--accent) !important; }
.refill input:checked + .rf-box::after { width: 8px; height: 4px; border-left-width: 2px; border-bottom-width: 2px; transform: rotate(-45deg) translate(1px, -1px); }
.refill b { font-size: clamp(12.5px, 3.4vw, 14px) !important; font-weight: 800 !important; color: var(--ink); }
.refill small { font-size: clamp(9.5px, 2.7vw, 12px) !important; font-weight: 600 !important; color: #9b8f88 !important; }

/* Offres : vignettes composées (1 flacon / 2 flacons côte à côte, ombres au sol) — img/offer-1.jpg, img/offer-2.jpg */
.ov img, .ov-2 img:first-child, .ov-2 img:last-child { position: static; width: 100%; height: 100%; object-fit: cover; transform: none; left: auto; display: block; }

/* Barre d'achat fixe : vignette flacon entier, prix lisible, bouton avec flèche */
.sticky-bar img { object-fit: contain; background: #e2e1df; }
.sticky-bar .sb-price em { font-style: normal; color: var(--accent); font-weight: 900; }
.sticky-bar .btn svg { width: 18px; height: 18px; margin-left: 2px; transition: transform .2s; }
.sticky-bar .btn:hover svg { transform: translateX(3px); }
.sticky-bar .sb-price s { color: var(--muted); font-weight: 700; }
.sticky-bar img { object-fit: cover; }

/* Galerie sur ordinateur : glisser à la souris + flèches au survol */
.gallery-main { cursor: grab; user-select: none; -webkit-user-select: none; }
.gallery-main.is-grabbing { cursor: grabbing; }
.gallery-main img { transition: transform .25s ease; }
.gallery-main.is-grabbing img { transition: none; }
.gallery-main:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.g-arrow { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.14); display: none; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s, transform .2s; }
.g-arrow svg { width: 22px; height: 22px; }
.g-arrow-prev { left: 14px; } .g-arrow-next { right: 14px; }
.g-arrow:hover { transform: scale(1.08); }
@media (hover: hover) and (pointer: fine) {
  .g-arrow { display: inline-flex; }
  .gallery-main:hover .g-arrow, .gallery-main:focus-within .g-arrow { opacity: 1; }
}

/* Zone cliquable posée sur le bouton « Get 3 for $79 » dessiné dans l'image de l'offre (img/s-offer.jpg, 1200×1200 : x 735–1130, y 1058–1163) */
.g-offer-btn { position: absolute; z-index: 4; left: 61.2%; top: 88.1%; width: 33%; height: 8.8%; border: 0; border-radius: 999px; background: transparent; cursor: pointer; transition: box-shadow .2s, transform .15s; }
.g-offer-btn:hover { box-shadow: 0 0 0 4px rgba(180, 68, 28, .45); }
.g-offer-btn:active { transform: scale(.97); }
.g-offer-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Téléphone (02/11/2026) : les 3 choix prenaient trop de hauteur.
   Les cadeaux ne s'affichent que sous le choix coché (la ligne « + 4 free gifts » reste visible partout),
   et ils passent en 2 colonnes compactes. */
@media (max-width: 640px) {
  .offers { gap: 12px; }
  .offers .offer { padding: 14px 14px 14px 12px; }
  .offers .offer-title { font-size: 18px; gap: 6px; }
  .offers .offer-title .pill { font-size: 12.5px; padding: 4px 10px; }
  .offers .offer-sub { font-size: 14.5px; }
  .offers .os-per { display: none; }          /* prix au flacon masqué : une seule ligne claire, « + 2 free gifts » */
  .offers .offer-price { font-size: 20px; }
  .offers .offer-price s { font-size: 14px; }
  .offers .offer:not(:has(input:checked)) .gifts { display: none; }
  .offers .gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding-top: 12px; }
  .offers .gift-row { grid-template-columns: 32px 1fr; gap: 8px; font-size: 14px; line-height: 1.2; }
  .offers .gift-row s, .offers .g-plus, .offers .g-brand { display: none; }
  .offers .gift-img { width: 32px; height: 32px; padding: 2px; border-radius: 8px; }
}
