/**
 * Accueil, troisième version (en ligne le 30/09/2026). L'accueil d'origine est repris tel quel ; cette
 * feuille ne dessine que ce qui s'y ajoute : « Trouver mon soin », les trois héros avec l'effet de
 * mouvement 3D, « Ajouter au panier » sur chaque soin. Même langage que le thème (or, Fraunces,
 * boutons rectangulaires en capitales). Tout est rattaché à body.lds-accueil.
 */

/* Les chiffres des prix : Bodoni Moda, déclarée pour toute la boutique (assets/fonts.css, style.css). */

.lds-accueil .acc-titre { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: clamp(32px, 4.8vw, 52px); line-height: 1.05; letter-spacing: -.01em; color: var(--ivory); }
.lds-accueil .acc-titre em { font-style: italic; color: var(--gold); }

/* ─── « Ajouter au panier », partout où un soin se montre ─── */
.acc-panier {
  position: relative; z-index: 4; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r); background: transparent; color: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.acc-panier:hover { background: var(--gold); color: var(--bg); box-shadow: none; }
.acc-panier--or { background: var(--gold); color: var(--bg); box-shadow: none; }
.acc-panier--or:hover { background: var(--gold-warm); }
.acc-panier.loading { opacity: .6; pointer-events: none; }
.acc-panier.added::after { content: '✓'; font-size: 14px; letter-spacing: 0; }
.lds-accueil .added_to_cart { position: relative; z-index: 4; margin-left: 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-warm); }
.da-desires .products > li .acc-panier { width: 100%; min-height: 44px; margin-top: 14px; padding: 0 12px; font-size: 11px; }
.da-desires .products > li .added_to_cart { display: none; } /* le tiroir du panier s'ouvre : pas de lien en plus sous la carte */

/* ─── Le haut : un second bouton, comme sur YONA ─── */
.lds-accueil .acc-hero-soin { border-width: 1px; border-style: solid; }

/* ─── Trouver mon soin ─── */
.acc-diag { max-width: 980px; margin: 0 auto; padding: var(--space-section) var(--pad-x) 0; scroll-margin-top: 90px; }
.acc-diag__carte {
  padding: clamp(28px, 5vw, 56px); border-radius: 18px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(216, 181, 126, .16), rgba(201, 169, 110, .03) 60%, transparent), var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.acc-diag__zone { margin-top: 26px; }
.acc-diag__progres { margin: 0; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.acc-diag__question { margin: 10px 0 22px; font-family: var(--serif); font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; color: var(--ivory); }
.acc-diag__choix { display: grid; gap: 10px; max-width: 560px; margin: 0 auto; }
.acc-diag__choix button {
  min-height: 56px; padding: 12px 20px; border: 0; border-radius: var(--r); cursor: pointer; text-align: left;
  background: rgba(244, 238, 225, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory);
  font-family: var(--serif); font-size: 19px; line-height: 1.3;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.acc-diag__choix button:hover, .acc-diag__choix button:focus-visible { background: rgba(201, 169, 110, .14); box-shadow: inset 0 0 0 1px var(--gold); outline: none; }
.acc-diag__retour { margin-top: 18px; padding: 8px; border: 0; background: none; cursor: pointer; font-family: var(--sans); font-size: 13px; color: var(--ivory-faint); text-decoration: underline; text-underline-offset: 3px; }
.acc-diag__etape { animation: acc-apparait .45s var(--ease) both; }
@keyframes acc-apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.acc-diag__resultat { text-align: left; }
.acc-diag__soin { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-diag__photo { display: block; width: 112px; aspect-ratio: 4 / 5; border-radius: var(--r-photo); overflow: hidden; background: var(--media-bg); }
.acc-diag__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acc-diag__nom { margin: 4px 0 0; font-family: var(--serif-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; }
.acc-diag__nom a { color: var(--ivory); text-decoration: none; }
.acc-diag__prix { margin: 6px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-family: 'LDS Chiffres', var(--serif); font-optical-sizing: auto; font-synthesis: none; font-size: 21px; letter-spacing: .01em; color: var(--gold-pale); }
.acc-diag__prix del { font-size: .75em; opacity: .55; }
.acc-diag__prix ins { text-decoration: none; }
.acc-diag__ml { font-family: var(--sans); font-size: 13px; color: var(--ivory-faint); }
.acc-diag__pourquoi { margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.5; color: var(--ivory-soft); }
.acc-diag__actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.acc-diag__avec { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.acc-diag__avec .acc-diag__soin { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
.acc-diag__avec .acc-diag__photo { width: 76px; }
.acc-diag__avec .acc-diag__nom { font-size: 22px; }
.acc-diag__avec .acc-diag__prix { font-size: 18px; }
.acc-diag__avec .acc-diag__pourquoi { font-size: 16px; }
.acc-diag__refaire { margin-top: 24px; }
@media (min-width: 700px) {
  .acc-diag__soin { grid-template-columns: 170px minmax(0, 1fr); gap: 28px; }
  .acc-diag__photo { width: 170px; }
}

/* ─── La distinction : l'emblème du trophée en relief 3D, et son annotation (Rayan, 30/09) ───
   L'emblème du site et des fiches, au trait d'or, en trois plans (deux branches, l'étoile devant) : il entre en
   pivotant pendant que les lauriers se dessinent, se balance, tourne avec le défilement et suit le pointeur au
   bureau (--tour et --pente, posés par accueil.js) ; un éclat d'or parcourt le trait (dégradé animé du SVG). */
.acc-distinction {
  max-width: 920px; margin: 0 auto; padding: clamp(40px, 7vw, 64px) var(--pad-x) 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "embleme tete" "note note";
  align-items: center; column-gap: clamp(18px, 4vw, 44px); row-gap: 14px;
}
@media (min-width: 700px) {
  .acc-distinction { grid-template-areas: "embleme tete" "embleme note"; row-gap: 12px; }
  .acc-distinction__tete { align-self: end; }
  .acc-distinction__note { align-self: start; }
}
.acc-embleme { grid-area: embleme; position: relative; width: clamp(116px, 27vw, 168px); aspect-ratio: 1; perspective: 520px; }
.acc-embleme::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(216, 181, 126, .22), transparent 70%); }
.acc-embleme__entree, .acc-embleme__scene, .acc-embleme__balance { position: absolute; inset: 0; transform-style: preserve-3d; }
.acc-embleme__entree { transition: transform 1.5s var(--ease), opacity .8s var(--ease); }
.acc-embleme__scene { transform: rotateY(var(--tour, 0deg)) rotateX(var(--pente, 0deg)); transition: transform .35s linear; }
.acc-embleme__balance { animation: embleme-balance 6.5s ease-in-out infinite; }
@keyframes embleme-balance { 0%, 100% { transform: rotateY(-24deg) translateY(2px); } 50% { transform: rotateY(24deg) translateY(-3px); } }
.acc-embleme__couche { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.acc-embleme__branche--g { transform: translateZ(8px) rotateY(16deg); transform-origin: 40% 60%; }
.acc-embleme__branche--d { transform: translateZ(8px) rotateY(-16deg); transform-origin: 60% 60%; }
.acc-embleme__etoile { transform: translateZ(26px) scale(.92); filter: drop-shadow(0 0 6px rgba(255, 226, 170, .55)); transition: transform .8s var(--ease) 1.2s, opacity .6s var(--ease) 1.2s; }
.acc-embleme__trait { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.acc-embleme__trait--feuilles { transition-delay: .75s; }
.acc-distinction__tete { grid-area: tete; min-width: 0; }
.acc-distinction__sur { margin: 0 0 8px; }
.acc-distinction__sur::before { display: none; }
.acc-distinction__titre { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: clamp(25px, 6.4vw, 46px); line-height: 1.02; letter-spacing: -.01em; color: var(--ivory); }
.acc-distinction__titre em { display: block; margin-top: 6px; font-size: .56em; font-style: italic; line-height: 1.2; color: var(--gold); }
.acc-distinction__note { grid-area: note; position: relative; max-width: 44ch; margin: 0; padding-left: 26px; font-family: var(--serif); font-style: italic; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.45; color: var(--ivory-faint); }
.acc-distinction__note::before { content: ''; position: absolute; left: 0; top: .72em; width: 18px; height: 1px; background: var(--gold); }
.acc-distinction__tete, .acc-distinction__note { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.acc-distinction__tete { transition-delay: .25s; }
.acc-distinction__note { transition-delay: .45s; }
.acc-distinction.acc-js:not(.est-entre) .acc-embleme__entree { opacity: 0; transform: rotateY(-110deg) scale(.7); }
.acc-distinction.acc-js:not(.est-entre) .acc-embleme__trait { stroke-dashoffset: 1; }
.acc-distinction.acc-js:not(.est-entre) .acc-embleme__etoile { opacity: 0; transform: translateZ(26px) scale(0); }
.acc-distinction.acc-js:not(.est-entre) .acc-distinction__tete,
.acc-distinction.acc-js:not(.est-entre) .acc-distinction__note { opacity: 0; transform: translateX(16px); }

/* ─── Les trois héros, en carrousel : la vraie photo tourne en 3D selon sa place, un reflet de verre à sa silhouette ─── */
.acc-heros { max-width: var(--maxw); margin: 0 auto; padding: var(--space-section) 0 0; }
.acc-heros__tete { max-width: 640px; padding: 0 var(--pad-x); }
.acc-heros__rail {
  --carte: 88%;
  position: relative; display: flex; gap: 16px; margin-top: clamp(24px, 4vw, 40px); padding: 0 var(--pad-x);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-x);
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; contain: paint;
}
/* Un vide en bout de rail : la dernière fiche se cale à la même place que les autres, donc de face et nette. */
.acc-heros__rail::after { content: ''; flex: 0 0 calc(100% - var(--carte) - 16px); }
.acc-heros__rail::-webkit-scrollbar { display: none; }
.acc-heros__soin {
  --sens: 1; flex: 0 0 var(--carte); scroll-snap-align: start; display: grid; gap: 14px; align-content: start;
  padding: 16px 20px 28px; border-radius: 18px;
  background: radial-gradient(90% 55% at 50% 18%, rgba(216, 181, 126, .11), transparent 70%), var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
  .acc-heros__rail { --carte: min(1080px, 84%); }
  .acc-heros__soin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding: 28px clamp(28px, 4vw, 56px); }
}
.acc-heros__commandes { display: flex; align-items: center; gap: 10px; padding: 22px var(--pad-x) 0; }
.acc-heros__barre { flex: 1; height: 2px; border-radius: 1px; background: var(--line-soft); overflow: hidden; }
.acc-heros__barre i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.34); transition: transform .4s var(--ease); }
.acc-rond { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ivory); cursor: pointer; }
.acc-rond svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.acc-rond:hover { background: rgba(201, 169, 110, .1); }
@media (max-width: 699px) { .acc-rond { display: none; } } /* au téléphone on glisse du doigt ; les bulles du site couvriraient les flèches */

.acc-scene { --p: .5; --tx: 0; --ty: 0; position: relative; display: grid; place-items: center; min-height: clamp(300px, 72vw, 560px); }
.acc-scene--flacon { --h: clamp(260px, 58vw, 470px); }
/* Une lumière de studio derrière le soin : douce, sans bord visible. */
.acc-scene__halo {
  position: absolute; inset: 2% 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216, 181, 126, .3), rgba(201, 169, 110, .13) 40%, rgba(201, 169, 110, .04) 68%, transparent);
  transform: scale(calc(.92 + var(--p) * .16));
}
/* L'ombre de contact, posée juste sous la base du flacon, à sa largeur. */
.acc-scene__sol {
  position: absolute; left: 50%; top: calc(50% + var(--h, 260px) / 2 - 9px); width: calc(var(--h, 260px) * var(--ratio, .34) * 1.45); height: 18px;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, .32) 55%, transparent);
}
.acc-scene--photo .acc-scene__sol { display: none; }
.acc-scene__objet {
  position: relative; z-index: 1; display: block; perspective: 1100px;
  opacity: 0; transform: translateX(70px) rotateY(-28deg); /* la fiche arrive par la droite, comme le carrousel */
  transition: opacity 1s var(--ease), transform 1.3s var(--ease);
}
.est-entre .acc-scene__objet { opacity: 1; transform: none; }
.acc-scene__tourne {
  position: relative; display: block; transform-style: preserve-3d;
  transform: rotateY(calc((.5 - var(--p)) * 36deg * var(--sens) + var(--tx) * 16deg)) rotateX(calc(var(--ty) * -10deg)) translateY(calc((.5 - var(--p)) * 26px));
  transition: transform .25s linear;
}
.acc-scene--flacon .acc-scene__img { display: block; width: auto; height: var(--h); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)); }
.acc-scene--photo .acc-scene__img { display: block; width: min(100%, 580px); height: auto; border-radius: var(--r-photo); box-shadow: 0 34px 70px rgba(0, 0, 0, .55), 0 0 0 1px var(--line-media); }
/* Le reflet : une bande de lumière verticale et fine, comme une boîte à lumière sur le verre ; elle glisse quand le flacon tourne. */
.acc-scene__reflet {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent 43%, rgba(255, 238, 210, .14) 47%, rgba(255, 247, 232, .46) 50%, rgba(255, 238, 210, .14) 53%, transparent 57%) no-repeat;
  background-size: 260% 100%; background-position: calc(61% + (var(--p) - .5) * 50%) 0;
}
.acc-scene--flacon .acc-scene__reflet { -webkit-mask: var(--masque) center / contain no-repeat; mask: var(--masque) center / contain no-repeat; }
.acc-scene--photo .acc-scene__reflet { display: none; } /* la photo du coffret a déjà sa lumière */

.acc-heros__texte { max-width: 540px; }
.acc-heros__texte .eyebrow { display: block; letter-spacing: .3em; text-wrap: balance; } /* sans filet dans la fiche, deux lignes équilibrées */
.acc-heros__texte .eyebrow::before { display: none; }
.acc-heros__nom { margin: 10px 0 0; font-family: var(--serif-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.04; }
.acc-heros__nom a { color: var(--ivory); text-decoration: none; }
.acc-heros__desc { margin: 26px 0 0; font-family: var(--serif); font-size: clamp(17px, 1.9vw, 19px); line-height: 1.62; color: var(--ivory-soft); }
/* L'accroche : la question en italique doré, le bénéfice dessous. */
.acc-heros__accroche { display: block; margin-bottom: 6px; font-style: italic; font-size: 1.22em; line-height: 1.3; color: var(--gold-pale); }
/* Les actifs en une ligne, en pied de fiche : plus de pastilles. */
.acc-heros__actifs {
  list-style: none; margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; row-gap: 2px; font-family: var(--serif); font-style: italic; font-size: 16.5px; line-height: 1.5; color: var(--gold-pale);
}
.acc-heros__actifs li:not(:last-child)::after { content: '·'; margin: 0 .55em; font-style: normal; color: var(--gold); } /* le point finit la ligne, il ne l'ouvre jamais */
.acc-heros__prix {
  margin: 16px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
  font-family: 'LDS Chiffres', var(--serif-display); font-optical-sizing: auto; font-synthesis: none; font-size: 31px; letter-spacing: .01em; color: var(--ivory);
}
.acc-heros__prix del { font-size: .58em; opacity: .5; }
.acc-heros__prix ins { text-decoration: none; }
.acc-heros__ml { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--ivory-faint); }
.acc-heros__actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
/* Au téléphone, les fiches ont la hauteur de la plus longue : les actifs se calent en pied de fiche, sans trou sous le texte. */
@media (max-width: 899px) {
  .acc-heros__soin { grid-template-rows: auto 1fr; }
  .acc-heros__texte { display: flex; flex-direction: column; }
  .acc-heros__desc { margin-bottom: 24px; }
  .acc-heros__actifs { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .acc-scene__objet, .est-entre .acc-scene__objet { opacity: 1; transform: none; transition: none; }
  .acc-scene__tourne { transform: none; transition: none; }
  .acc-scene__halo { transform: none; }
  .acc-diag__etape { animation: none; }
  .acc-embleme__entree, .acc-embleme__scene, .acc-embleme__trait, .acc-embleme__etoile, .acc-distinction__tete, .acc-distinction__note { transition: none; }
  .acc-embleme__balance { animation: none; }
}
