/* Rodina — boutique « nuit d'oud » : un fond de nuit chaude, la lumière d'un projecteur, de l'or brossé et une
   fumée qui monte autour du flacon. Le seul moment spectaculaire est la vitrine de l'accueil ; le reste du site
   reste sombre, calme et lisible (mobile d'abord).
   Propriétés logiques (inline-start / inline-end) : la même feuille sert l'arabe (RTL) et le français (LTR).
   Les photos produit sont des JPEG/WebP sur fond blanc : shop.js détoure le blanc (img[data-cut] → .is-cut) ;
   si le fond n'est pas blanc, la photo est fondue dans une lumière douce (.is-boxed). */
:root {
  --on-gold: #141a2b;     /* texte sur l'or, dans les deux modes */
  --wa: #1f8f4e;
  --radius: 12px;
  --radius-lg: 20px;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* Bodoni pour le latin, Amiri pour l'arabe (Bodoni n'a pas de lettres arabes : le navigateur passe à Amiri) */
  --font-display: "Bodoni Moda", "Amiri", Georgia, serif;
  --font-brand: "Cinzel", "Bodoni Moda", Georgia, serif;   /* le nom de la maison (logo, vitrine, sceau) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gold-text: linear-gradient(100deg, #8c6a36 0%, #f2dcaa 32%, #c39550 52%, #f7e6bd 70%, #8c6a36 100%);
}
/* mode nuit (bleu nuit et or, couleurs de l'app Rodina) ; la vitrine, la barre du haut et le pied de page
   restent bleu nuit aussi en mode jour (la vitrine de l'accueil, elle, passe en ivoire et champagne) */
:root, [data-theme="light"] :is(.topbar, .row-packs) {
  --night: #0a0e19;      /* fond */
  --char: #10162a;       /* surfaces */
  --char-2: #172038;     /* surfaces surélevées, champs */
  --char-3: #1f2842;
  --line: rgba(242, 220, 170, .11);
  --line-2: rgba(242, 220, 170, .2);
  --ivory: #f5f0e6;      /* texte */
  --ivory-soft: #d8d5cc;
  --mist: #9da3b4;       /* texte secondaire */
  --gold: #cfa968;      /* l'or d'origine de la boutique */
  --gold-hi: #f2dcaa;
  --gold-lo: #8c6a36;
  --amber: #a8743c;      /* lueurs chaudes */
  --gold-ink: #f2dcaa;   /* texte en or (prix, liens) */
  --ok: #86cfa6;
  --danger: #ec8f80;
  --glass: rgba(16, 22, 42, .6);
  --glass-line: rgba(242, 220, 170, .16);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --tint: rgba(255, 255, 255, .05);       /* survol, champs */
  --tint-2: rgba(255, 255, 255, .08);
  --header-bg: rgba(10, 14, 25, .84);
  --menu-bg: rgba(16, 22, 42, .97);
  --deep: #070a13;                        /* barre du haut, pied de page, bande des coffrets */
  --card-top: #182036;
  --drop: rgba(0, 0, 0, .58);             /* ombre sous les flacons */
  --glow: rgba(242, 220, 170, .14);
  color-scheme: dark;
}
/* mode jour : thème « Rodina » de l'application (ivoire, bleu nuit, or) */
:root[data-theme="light"] {
  --night: #f6f4ef;
  --char: #ffffff;
  --char-2: #fbfaf6;
  --char-3: #efe9dd;
  --line: rgba(26, 32, 51, .1);
  --line-2: rgba(26, 32, 51, .18);
  --ivory: #1a2033;
  --ivory-soft: #3a4259;
  --mist: #6a6f80;
  --gold: #cfa968;
  --gold-hi: #f2dcaa;
  --gold-lo: #8c6a36;
  --amber: #a8743c;
  --gold-ink: #cfa968;   /* l'or pâle se lit mal sur l'ivoire */
  --ok: #2e7d4f;
  --danger: #b42318;
  --glass: rgba(255, 255, 255, .78);
  --glass-line: rgba(26, 32, 51, .12);
  --shadow: 0 30px 60px -30px rgba(26, 32, 51, .35);
  --tint: rgba(26, 32, 51, .045);
  --tint-2: rgba(26, 32, 51, .08);
  --header-bg: rgba(255, 255, 255, .88);
  --menu-bg: rgba(255, 255, 255, .98);
  --deep: #141a2b;
  --card-top: #f3eee4;
  --drop: rgba(26, 32, 51, .22);
  --glow: rgba(207, 169, 104, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ivory); font: 400 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: 0; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--on-gold); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; z-index: 100; background: var(--char-2); padding: 6px 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 900px) { .wrap { padding-inline: 32px; } }
.narrow { max-width: 720px; }
.muted { color: var(--mist); }
.small { font-size: .85rem; }
.center { text-align: center; display: block; }
.pre { white-space: pre-line; }
.only-desktop { display: none !important; }
@media (min-width: 900px) {
  .only-desktop { display: revert !important; }
  .only-mobile { display: none !important; }
}

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 0 28px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold);
  color: var(--on-gold); font-weight: 600; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s var(--ease), box-shadow .3s;
}
.btn:hover { background: var(--gold-hi); border-color: var(--gold-hi); box-shadow: 0 10px 30px -10px rgba(207, 169, 104, .55); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--gold-ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(207, 169, 104, .1); color: var(--gold-ink); border-color: var(--gold); box-shadow: none; }
.btn-block { width: 100%; }
.btn-buy { background: var(--gold-text); background-size: 200% 100%; background-position: 0 0; border: 0; color: #1a1208; }
.btn-buy:hover { background-position: 100% 0; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #16703c; border-color: #16703c; box-shadow: none; }
.link { color: var(--gold-ink); font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px;
  transition: text-decoration-color .2s, color .2s; }
.link:hover { text-decoration-color: currentColor; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0;
  background: transparent; border-radius: 50%; cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--tint-2); color: var(--gold-ink); }
.icon-btn svg, .wa-float svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 3px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.badge[hidden] { display: none; }

/* ---------------------------------------------------------------- en-tête */
.topbar {
  position: relative; z-index: 31; background: var(--deep); color: var(--gold); font-size: .78rem; text-align: center;
  padding: 7px 12px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line);
}
.topbar .dot { opacity: .5; }
.topbar-promo { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.header { position: sticky; top: 0; z-index: 30; background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(16px); -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid var(--line); transition: background .4s, border-color .4s; }
/* accueil : l'en-tête flotte sur la vitrine, puis se fonce dès qu'on défile */
.header-over { position: absolute; inset-inline: 0; top: 34px; background: transparent; border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.header-over.is-stuck { position: fixed; top: 0; background: var(--header-bg); border-color: var(--line);
  backdrop-filter: saturate(1.2) blur(16px); -webkit-backdrop-filter: saturate(1.2) blur(16px);
  animation: drop .45s var(--ease); }
@keyframes drop { from { transform: translateY(-100%); } }
.header-in { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-brand); font-size: 1.32rem;
  font-weight: 600; letter-spacing: .14em; color: var(--ivory); line-height: 1; white-space: nowrap; }
.logo-mark { width: auto; height: 40px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.logo-mark.tall { height: 52px; }   /* logo plus haut que large (flacon…) : un peu plus grand pour rester lisible */
.logo:hover .logo-mark { filter: drop-shadow(0 0 10px rgba(242, 220, 170, .35)); }
.logo-light { color: var(--gold-ink); }
@media (max-width: 520px) { .logo { font-size: .98rem; letter-spacing: .08em; gap: 7px; } .logo-mark { height: 32px; } .logo-mark.tall { height: 42px; } .header-in { gap: 4px; } .lang { padding: 5px 9px; } }
/* menu : une pilule de verre au centre (ordinateur) */
.nav { display: flex; gap: 2px; margin-inline: auto; padding: 5px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--tint); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav a { font-size: .9rem; padding: 6px 16px; border-radius: 999px; color: var(--ivory-soft); transition: color .2s, background .2s;
  white-space: nowrap; }
/* « Plus » : les catégories qui ne tiennent pas sur la ligne */
.nav { position: relative; align-items: center; }
.nav-more[hidden] { display: none; }
html:not(.js) .nav { flex-wrap: wrap; }
@media (min-width: 900px) { .nav.only-desktop { display: flex !important; } }   /* « revert » en ferait un bloc de texte */
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: .9rem;
  padding: 6px 14px; border-radius: 999px; color: var(--ivory-soft); white-space: nowrap; transition: color .2s, background .2s; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav-more[open] summary svg { transform: rotate(180deg); }
.nav-more summary:hover, .nav-more[open] summary { color: var(--ivory); background: var(--tint-2); }
.nav-more-list { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; min-width: 190px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: 18px; border: 1px solid var(--glass-line);
  background: var(--menu-bg); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.nav-more-list a { border-radius: 12px; padding: 9px 14px; }
.nav a:hover { color: var(--ivory); background: var(--tint-2); }
.nav a[aria-current] { color: var(--on-gold); background: var(--gold-hi); font-weight: 600; }
.header-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.nav + .header-tools { margin-inline-start: 0; }
.lang { font-size: .85rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ivory-soft); transition: border-color .2s, color .2s; }
.lang:hover { border-color: var(--gold); color: var(--gold-ink); }
.search input {
  width: 190px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--tint); transition: border-color .2s, background .2s, width .35s var(--ease);
}
.search input::placeholder { color: var(--mist); }
.search input:focus { outline: none; border-color: var(--gold); background: var(--tint-2); width: 240px; }

/* ---------------------------------------------------------------- panneaux latéraux */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(4, 3, 2, .66); backdrop-filter: blur(3px); }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 50; width: min(420px, 92vw); background: var(--char);
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .45s var(--ease);
  visibility: hidden; border-inline: 1px solid var(--line);
}
.drawer.open { transform: none !important; visibility: visible; }
.drawer-end { inset-inline-end: 0; transform: translateX(100%); }
.drawer-start { inset-inline-start: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer-end { transform: translateX(-100%); }
[dir="rtl"] .drawer-start { transform: translateX(100%); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.4rem; }
.drawer .search { padding: 16px 18px; }
.drawer .search input, .drawer .search input:focus { width: 100%; }
.menu-links { display: flex; flex-direction: column; padding: 0 18px; }
.menu-links a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.25rem;
  transition: color .2s, padding .3s var(--ease); }
.menu-links a:hover { color: var(--gold-ink); padding-inline-start: 12px; }
.cart-panel { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.spinner { width: 28px; height: 28px; margin: 40px auto; border: 2px solid var(--char-3); border-top-color: var(--gold);
  border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- photos détourées */
img[data-cut] { transition: opacity .35s; }
.js img[data-cut]:not(.is-cut):not(.is-boxed) { opacity: 0; }   /* pas d'éclair blanc avant le détourage */
img.is-boxed { border-radius: 14px;
  -webkit-mask: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask: radial-gradient(closest-side, #000 72%, transparent 100%); }
/* produit sans photo : silhouette de flacon dorée (la lettre reste dans le HTML mais est masquée) */
.ph { position: relative; z-index: 1; display: block; width: 56%; aspect-ratio: 3 / 4; font-size: 0; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 160'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23241d17'/%3E%3Cstop offset='.45' stop-color='%233d3228'/%3E%3Cstop offset='1' stop-color='%2317130f'/%3E%3C/linearGradient%3E%3ClinearGradient id='c' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%238c6a36'/%3E%3Cstop offset='.5' stop-color='%23f2dcaa'/%3E%3Cstop offset='1' stop-color='%238c6a36'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='44' y='8' width='32' height='26' rx='4' fill='url(%23c)'/%3E%3Crect x='52' y='34' width='16' height='12' fill='%23cfa968'/%3E%3Crect x='18' y='46' width='84' height='106' rx='14' fill='url(%23g)' stroke='%23cfa968' stroke-opacity='.4'/%3E%3Crect x='26' y='54' width='8' height='88' rx='4' fill='%23fff' opacity='.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-big { width: min(60%, 240px); }

/* ================================================================ VITRINE (accueil)
   Un projecteur, le nom de la maison en très grand derrière le flacon, une soie dorée qui ondule, de la fumée,
   le flacon sur un socle en bronze ; les voisins attendent sur les côtés, flous. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: 76px; min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(168, 116, 60, .28) 0%, transparent 70%),
    radial-gradient(50% 40% at 50% 62%, rgba(207, 169, 104, .14) 0%, transparent 70%),
    linear-gradient(180deg, #121a31 0%, var(--night) 70%); }
@media (min-width: 900px) { .hero { padding-top: 84px; min-height: max(660px, min(100svh, 900px)); } }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* faisceau de lumière qui tombe sur le socle */
.hero-beam { position: absolute; left: 50%; top: 0; width: min(560px, 90vw); height: 92%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(242, 220, 170, .20) 0%, rgba(242, 220, 170, .06) 55%, transparent 100%);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter: blur(18px); }
.smoke { position: absolute; inset: 0; width: 100%; height: 100%; }
.smoke-back { opacity: .9; }
/* le nom de la maison : très grand, en or brossé, derrière le flacon */
.hero-word { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--font-brand); font-weight: 600; line-height: .8; letter-spacing: .04em;
  font-size: clamp(3.2rem, calc(84vw / var(--n, 4)), 16rem); color: transparent;
  background: var(--gold-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  opacity: .9; }
@media (min-width: 900px) { .hero-word { top: 20%; } }
.silk { position: absolute; left: -5%; width: 110%; top: 42%; height: 34%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
@media (max-width: 899px) { .silk { top: 36%; height: 24%; } }
@media (min-width: 900px) { .silk { top: 36%; height: 40%; } }

.hero-top { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; }
.hero-title { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 400; color: var(--ivory-soft); }
.sc-cats { display: flex; gap: 4px; overflow-x: auto; max-width: 100%; padding: 4px; scrollbar-width: none;
  border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sc-cats::-webkit-scrollbar { display: none; }
.sc-cat { flex: 0 0 auto; padding: 6px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--ivory-soft);
  font-size: .88rem; cursor: pointer; transition: background .3s, color .3s; }
.sc-cat:hover { color: var(--ivory); }
.sc-cat.active { background: var(--gold-hi); color: var(--on-gold); font-weight: 600; }

.sc-stage { position: relative; z-index: 2; flex: 1; min-height: clamp(360px, 92vw, 470px); touch-action: pan-y;
  user-select: none; -webkit-user-select: none; cursor: grab; outline-offset: -4px; }
@media (min-width: 900px) { .sc-stage { min-height: 440px; } }
.sc-stage.dragging { cursor: grabbing; }
/* socle : trois cylindres de bronze poli empilés — dessus elliptique éclairé, flanc ombré
   (tailles en cqw = % de la largeur du socle ; --b = hauteur du bas de chaque étage) */
.podium { --pw: min(440px, 86vw); position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  width: var(--pw); aspect-ratio: 100 / 27.5; container-type: inline-size; }
.podium::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -5cqw; height: 14cqw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }
.podium i { position: absolute; left: 50%; transform: translateX(-50%); width: var(--w); bottom: var(--b);
  height: calc(var(--e) + var(--h)); }
.podium i::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--e) / 2); bottom: 0;
  border-radius: 0 0 50% 50% / 0 0 calc(var(--e) / 2) calc(var(--e) / 2);
  background: linear-gradient(180deg, rgba(255, 214, 160, .24) 0, transparent 24%, rgba(0, 0, 0, .4) 100%),
    linear-gradient(90deg, #1c1007 0%, #46280f 9%, #74481f 24%, #a26e3c 39%, #b07c48 44%, #8a5a2d 56%,
      #5c3818 74%, #2a170a 91%, #140b04 100%);
  box-shadow: 0 1.4cqw 2.6cqw -.6cqw rgba(0, 0, 0, .75); }
.podium i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--e); border-radius: 50%;
  background: radial-gradient(62% 85% at 44% 34%, #c08d58 0%, #9a6838 38%, #714722 70%, #4b2d13 100%);
  box-shadow: inset 0 -.32cqw 0 rgba(255, 212, 150, .6), inset 0 .5cqw 1.2cqw rgba(255, 230, 190, .2); }
.podium i:nth-child(1) { --w: 100cqw; --e: 11cqw; --h: 6cqw; --b: 0cqw; }
.podium i:nth-child(2) { --w: 81cqw; --e: 8.9cqw; --h: 6cqw; --b: 7.05cqw; }
.podium i:nth-child(3) { --w: 63cqw; --e: 6.9cqw; --h: 6.5cqw; --b: 14.1cqw; }
/* le plateau du haut reçoit la lumière du projecteur */
.podium i:nth-child(3)::after {
  background: radial-gradient(42% 62% at 50% 46%, rgba(255, 228, 186, .42), transparent 72%),
    radial-gradient(62% 85% at 44% 34%, #c08d58 0%, #9a6838 38%, #714722 70%, #4b2d13 100%); }
.sc-slide { position: absolute; left: 50%; bottom: calc(5% + min(440px, 86vw) * .232); width: min(300px, 56vw); aspect-ratio: 4 / 5;
  display: grid; place-items: end center; transform-origin: 50% 100%; will-change: transform, filter, opacity;
  transition: transform .8s var(--ease), filter .8s var(--ease), opacity .8s var(--ease); -webkit-user-drag: none; }
.sc-slide img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none;
  filter: drop-shadow(0 26px 22px var(--drop)); }
.sc-slide.is-active img { animation: float 7s ease-in-out infinite; }
.sc-slide .ph { align-self: end; width: 62%; margin-bottom: 4px; }
.sc-stage.dragging .sc-slide { transition: none; }
.sc-stage.switching .sc-slide, .sc-info-in.switching { opacity: 0 !important; transition: opacity .25s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.smoke-front { z-index: 12; pointer-events: none; opacity: .75; }
/* point de départ du jet (buse du flacon) : spray.js y dessine le cône de vaporisation à chaque changement */
.sc-mist { position: absolute; z-index: 11; left: 50%; bottom: calc(5% + min(440px, 86vw) * .232 + min(300px, 56vw) * 1.1); width: 0; height: 0;
  pointer-events: none; }
.sc-spray { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 11; pointer-events: none; }
.sc-arrow { position: absolute; z-index: 20; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ivory);
  cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .25s, border-color .25s, color .25s; }
.sc-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-arrow:hover { background: var(--gold-hi); color: var(--on-gold); border-color: var(--gold-hi); }
.sc-prev { inset-inline-start: calc(50% - min(300px, 56vw) / 2 - 64px); }
.sc-next { inset-inline-end: calc(50% - min(300px, 56vw) / 2 - 64px); }
@media (max-width: 520px) { .sc-prev { inset-inline-start: 8px; } .sc-next { inset-inline-end: 8px; } }
[dir="rtl"] .sc-arrow svg, [dir="rtl"] .flip { transform: scaleX(-1); }

/* bas de la vitrine : carte de verre (produit), navigation, sceau qui tourne */
.hero-foot { position: relative; z-index: 15; display: grid; gap: 14px; padding-bottom: 28px; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 380px) 1fr auto; align-items: end; gap: 24px; padding-bottom: 36px;
    margin-top: -120px; }
}
.sc-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-line); background: linear-gradient(160deg, rgba(31, 40, 66, .72), rgba(12, 17, 32, .62));
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow); }
.sc-info-in { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; transition: opacity .3s; width: 100%; }
.sc-info .brand { color: var(--gold); font-size: .8rem; letter-spacing: .04em; }
.sc-name { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0; color: var(--ivory); }
.sc-name a:hover { color: var(--gold-ink); }
.sc-family { margin: 0; color: var(--mist); font-size: .9rem; }
.tag-inline { display: inline-block; margin-bottom: 4px; padding: 2px 12px; border-radius: 999px; background: var(--gold-hi);
  color: var(--on-gold); font-size: .78rem; font-weight: 700; }
.sc-buyline { width: 100%; }
.sc-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.sc-size { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ivory-soft);
  cursor: pointer; font-size: .85rem; transition: background .2s, color .2s, border-color .2s; }
.sc-size:hover { border-color: var(--gold); }
.sc-size.active { background: var(--ivory); color: var(--on-gold); border-color: var(--ivory); font-weight: 600; }
.sc-size.out { text-decoration: line-through; opacity: .45; }
.sc-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; }
.sc-price { font-family: var(--font-display); font-size: 1.75rem; color: var(--gold-ink); }
.sc-actions { display: flex; align-items: center; gap: 16px; }
.sc-buy { flex: 1; }
.sc-buy .btn { width: 100%; }
.sc-details { font-size: .92rem; white-space: nowrap; }
.sc-nav { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sc-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 320px; }
.sc-dot { width: 7px; height: 7px; padding: 0; border-radius: 999px; border: 0; background: rgba(242, 220, 170, .28);
  cursor: pointer; transition: width .4s var(--ease), background .4s; }
.sc-dot.active { width: 26px; background: var(--gold-hi); }
.sc-count { font-family: "Bodoni Moda", Georgia, serif; color: var(--mist); font-size: .95rem; letter-spacing: .08em; }
.sc-count b { color: var(--ivory); font-weight: 500; }
.sc-next-cat { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass);
  color: var(--ivory); font-size: .88rem; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .25s, color .25s; }
.sc-next-cat:hover { border-color: var(--gold); color: var(--gold-ink); }
/* sceau : texte qui tourne autour d'une initiale */
.seal { position: relative; display: none; width: 132px; height: 132px; justify-self: end; color: var(--gold); }
@media (min-width: 900px) { .seal { display: block; } }
.seal svg { width: 100%; height: 100%; overflow: visible; direction: ltr; unicode-bidi: isolate; animation: spin 26s linear infinite; }
.seal text { fill: currentColor; font-family: var(--font-brand); font-size: 13px; font-weight: 500; }
.seal::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 1px solid var(--line-2); }
.seal-core { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-brand);
  font-weight: 600; font-size: 1.75rem; letter-spacing: .04em; padding-inline-start: .04em; color: var(--gold-ink); }
.seal:hover { color: var(--gold-ink); }
@media (max-width: 899px) {
  .sc-info { text-align: center; }
  .sc-info-in { align-items: center; }
  .sc-sizes { justify-content: center; }
  .sc-price-row { justify-content: center; flex-wrap: wrap; }
  [dir] .sc-name { text-align: center; }
  .sc-actions { flex-direction: column; gap: 10px; }
  .sc-buy { width: 100%; }
  .sc-nav { order: -1; }
}
/* le seul moment orchestré : la vitrine s'allume au chargement */
@media (prefers-reduced-motion: no-preference) {
  .hero-beam { animation: beam-in 1.6s var(--ease) both; }
  .hero-word { animation: word-in 1.6s .15s var(--ease) both, shimmer 9s 1.8s ease-in-out infinite alternate; }
  .silk { animation: fade-in 1.8s .3s var(--ease) both; }
  .podium { animation: rise 1.1s .35s var(--ease) both; }
  .hero-foot { animation: fade-up 1s .7s var(--ease) both; }
}
@keyframes beam-in { from { opacity: 0; } }
@keyframes word-in { from { opacity: 0; letter-spacing: .3em; filter: blur(12px); } }
@keyframes shimmer { to { background-position: 100% 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(40px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* ---------------------------------------------------------------- chiffres sous la vitrine */
.stats { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(207, 169, 104, .05), transparent); }
.stats-in { display: grid; grid-template-columns: 1fr 1fr; }
.stat { display: flex; align-items: center; gap: 12px; padding: 18px 8px; }
.stat svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round; }
.stat div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.stat strong { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--gold-ink); }
.stat span { color: var(--mist); font-size: .82rem; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .stats-in { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .stat { justify-content: center; padding: 26px 18px; }
  .stat:nth-child(n+3) { border-top: 0; }
  .stat + .stat { border-inline-start: 1px solid var(--line); }
  .stat strong { font-size: 1.9rem; }
}

/* bande de confiance (accueil sans vitrine) */
.trust { display: grid; padding-block: 8px; border-bottom: 1px solid var(--line); }
.trust div { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 14px 0; }
.trust div + div { border-top: 1px solid var(--line); }
.trust svg { grid-row: span 2; width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round; }
.trust strong { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; color: var(--ivory); line-height: 1.3; }
.trust span { color: var(--mist); font-size: .88rem; line-height: 1.5; }
@media (min-width: 760px) {
  .trust { grid-template-columns: repeat(3, 1fr); padding-block: 22px; }
  .trust div { padding: 4px 24px; }
  .trust div + div { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- rangées */
.row { padding-block: 56px 12px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.row-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0; color: var(--ivory); }
.row-head p { margin: 4px 0 0; }
.row-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ivory); transition: border-color .2s, background .2s, color .2s; }
.arrow:hover { border-color: var(--gold-hi); background: var(--gold-hi); color: var(--on-gold); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--char-3) transparent; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 31%; gap: 18px; } }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 4 * 18px) / 5); } }
/* rangée des coffrets : une bande éclairée d'améthyste */
.row-packs { margin-block: 40px 8px; padding-block: 56px 36px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(207, 169, 104, .16), transparent 70%), var(--deep);
  border-block: 1px solid var(--line); }

/* ---------------------------------------------------------------- cartes produit */
.card { position: relative; display: flex; flex-direction: column; background: var(--char); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color .35s, transform .45s var(--ease), box-shadow .45s; }
.card:hover { border-color: rgba(207, 169, 104, .4); transform: translateY(-4px); box-shadow: var(--shadow); }
/* la photo se tient dans un rond de lumière, au-dessus d'une ombre portée */
.card-media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 50% at 50% 42%, var(--glow), transparent 72%), linear-gradient(180deg, var(--card-top), var(--char)); }
.card-media::after { content: ""; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: 7%; height: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--drop), transparent); }
.card-media img { position: relative; width: 82%; height: 82%; object-fit: contain;
  filter: drop-shadow(0 14px 14px var(--drop)); transition: transform .6s var(--ease), opacity .35s; }
.card:hover .card-media img { transform: scale(1.05) translateY(-4px); }
.tag { position: absolute; z-index: 2; top: 10px; inset-inline-start: 10px; padding: 2px 10px; border-radius: 999px;
  background: var(--glass); color: var(--ivory-soft); border: 1px solid var(--line-2); font-size: .74rem; font-weight: 600; }
.tag-gold { background: var(--gold-hi); color: var(--on-gold); border-color: transparent; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; flex: 1; }
.brand { font-size: .76rem; color: var(--gold); letter-spacing: .03em; }
.pname { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; line-height: 1.3; margin: 0; }
/* nom latin (dir="auto") sur une page arabe : il reste aligné avec le reste de la page */
[dir="rtl"] .pname { text-align: right; }
[dir="ltr"] .pname { text-align: left; }
.card .pname a:hover { color: var(--gold-ink); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-weight: 600; font-size: .98rem; color: var(--gold-ink); }
.mini-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ivory); font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.mini-btn:hover { background: var(--gold-hi); color: var(--on-gold); border-color: var(--gold-hi); }
.card.is-out .card-media img { opacity: .4; filter: grayscale(.6); }

/* ---------------------------------------------------------------- catalogue */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 36px 16px; }
.page-head h1, .page-title { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0; color: var(--ivory); }
.page-title { padding-block: 36px 20px; }
.shop-layout { display: grid; gap: 22px; padding-bottom: 56px; }
.filters { display: none; flex-direction: column; gap: 18px; padding: 20px; background: var(--char);
  border: 1px solid var(--line); border-radius: var(--radius-lg); }
.filters.open { display: flex; }
html:not(.js) .filters { display: flex; }
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 250px 1fr; align-items: start; gap: 32px; }
  .filters { display: flex; position: sticky; top: 88px; }
}
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-weight: 500; font-size: .88rem; padding: 0; color: var(--ivory-soft); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--char-2); transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--mist); }
.field select option { background: var(--char-2); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207, 169, 104, .18); }
fieldset.field { display: flex; flex-wrap: wrap; flex-direction: row; gap: 6px; }
fieldset.field legend { margin-bottom: 6px; width: 100%; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .86rem;
  color: var(--ivory-soft); transition: border-color .2s, background .2s, color .2s; }
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--gold-hi); color: var(--on-gold); border-color: var(--gold-hi); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.filters-actions { display: flex; align-items: center; justify-content: space-between; }
.results-count { margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.more-wrap { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 14px; }
.results.htmx-request, .more-wrap.htmx-request { opacity: .55; transition: opacity .2s; }
.empty { text-align: center; padding: 48px 16px; color: var(--mist); }
.empty .btn { margin-top: 12px; }
.big-empty { padding-block: 90px; }

/* ---------------------------------------------------------------- fiche produit */
.crumbs { font-size: .85rem; color: var(--mist); padding-block: 20px; }
.crumbs a:hover { color: var(--gold-ink); }
.product-grid { display: grid; gap: 28px; padding-bottom: 40px; }
@media (min-width: 860px) { .product-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.gallery { min-width: 0; }
@media (min-width: 860px) { .gallery { position: sticky; top: 88px; align-self: start; } }
.gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-lg);
  overflow: hidden; isolation: isolate; border: 1px solid var(--line);
  background: radial-gradient(55% 50% at 50% 40%, var(--glow), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(168, 116, 60, .12), transparent 70%), var(--char); }
.gallery-main::after { content: ""; position: absolute; z-index: -1; left: 22%; right: 22%; bottom: 8%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--drop), transparent); }
.gallery-main img { position: relative; width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 24px 20px var(--drop)); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 66px; height: 66px; padding: 4px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--char); cursor: pointer; transition: border-color .2s; }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.info .brand { font-size: .85rem; }
.info .pname { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--ivory); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-static { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; color: var(--ivory-soft); }
.big-price { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-ink); }
.big-price s { font-family: var(--font-body); font-size: 1.05rem; color: var(--mist); }
.buy { display: flex; flex-direction: column; gap: 14px; padding-block: 18px; border-block: 1px solid var(--line); }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; }
.sizes legend { font-weight: 500; margin-bottom: 8px; color: var(--ivory-soft); }
.size { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--char); cursor: pointer; transition: border-color .2s, background .2s; }
.size:hover { border-color: var(--gold); }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size:has(input:checked) { border-color: var(--gold-hi); background: rgba(207, 169, 104, .1); box-shadow: inset 0 0 0 1px var(--gold-hi); }
.size:has(input:focus-visible) { outline: 2px solid var(--gold); }
.size-name { font-weight: 600; font-size: .92rem; }
.size-price { color: var(--mist); font-size: .86rem; }
.size.is-out { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.stock-line { margin: 0; font-size: .86rem; font-weight: 500; }
.stock-line .ok { color: var(--ok); }
.stock-line .low { color: var(--gold-ink); }
.stock-line .out { color: var(--danger); }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: var(--char); }
.stepper button { width: 42px; height: 48px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--gold-ink); }
.stepper input { width: 40px; border: 0; text-align: center; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.instore { padding: 14px 16px; border-radius: var(--radius); background: var(--char); border: 1px solid var(--line); }
.instore p { margin: 4px 0 0; color: var(--ivory-soft); }
/* extrait : prix de chaque taille (30 ml, 40 ml, 100 ml…) */
.ex-sizes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.ex-sizes li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 2px;
  border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums lining-nums; }
.ex-sizes li:last-child { border-bottom: 0; }
.ex-sizes b { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--gold-ink); }
.reassure { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ivory-soft); }
.reassure li { display: flex; align-items: baseline; gap: 10px; }
.reassure li::before { content: ""; flex: none; width: 6px; height: 6px; transform: rotate(45deg) translateY(-1px); background: var(--gold); }
.info section h2 { font-size: 1.45rem; margin-bottom: 12px; color: var(--ivory); }
.pack-box { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--char); }
.pack-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pack-box li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-2); }
.pack-box a { font-family: var(--font-display); font-size: 1.08rem; }
.pack-box a:hover { color: var(--gold-ink); }
.save-line { margin: 10px 0 0; color: var(--gold-ink); }
/* accords principaux (barres de couleur), juste sous le prix */
.scent { margin: 14px 0 18px; }
.scent h2 { font-size: .95rem; margin: 14px 0 8px; color: var(--ivory-soft); letter-spacing: .02em; }
.accords { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.accords li { width: var(--w); min-width: 120px; letter-spacing: .02em; max-width: 100%; background: var(--bg); color: var(--fg);
  border-radius: 0 10px 10px 0; padding: 5px 12px; font-size: .88rem; font-weight: 600; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(26, 32, 51, .08), inset 0 -1px 0 rgba(0, 0, 0, .1); transform-origin: left center;
  animation: accord-in .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms); }
[dir="rtl"] .accords li { border-radius: 10px 0 0 10px; transform-origin: right center; }
@keyframes accord-in { from { transform: scaleX(.15); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .accords li { animation: none; } }
.desc { color: var(--ivory-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- panier */
.flash { margin: 12px 18px 0; padding: 10px 14px; border-radius: 10px; background: rgba(134, 207, 166, .1); color: var(--ok);
  border: 1px solid rgba(134, 207, 166, .25); font-weight: 500; }
.notice, .notice-inline { color: var(--gold-ink); font-size: .85rem; }
.notice { margin: 12px 18px 0; }
.cart-lines { list-style: none; margin: 0; padding: 8px 18px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 64px; height: 80px; display: grid; place-items: center; border-radius: 10px; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 45%, rgba(242, 220, 170, .14), transparent 75%), var(--char-2); }
.cart-thumb img { width: 88%; height: 88%; object-fit: contain; }
.cart-thumb .ph { width: 70%; }
.cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-info .pname { font-size: 1.05rem; }
.cart-info .muted { font-size: .85rem; }
.cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-qty button:not(.link) { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; color: var(--gold-ink); }
.cart-qty button:not(.link):hover { border-color: var(--gold); }
.cart-qty button[disabled] { opacity: .35; cursor: not-allowed; }
.cart-remove { margin-inline-start: auto; }
.cart-remove .link { font-size: .82rem; color: var(--mist); }
.cart-amount { font-size: .95rem; font-weight: 600; white-space: nowrap; color: var(--gold-ink); }
.cart-foot { margin-top: auto; padding: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--char); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { font-size: 1.15rem; padding-top: 10px; border-top: 1px solid var(--line); }
.sum-total strong { color: var(--gold-ink); font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.card-box { background: var(--char); border: 1px solid var(--line); border-radius: var(--radius-lg); }
#cart-page { margin-bottom: 56px; }

/* ---------------------------------------------------------------- commande */
.checkout { padding-bottom: 56px; }
.checkout-grid { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .summary { position: sticky; top: 88px; }
}
.order-form { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
@media (min-width: 600px) { .order-form { padding: 28px; } }
.order-form h2, .summary h2 { font-size: 1.45rem; margin: 0; color: var(--ivory); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: 12px; cursor: pointer; background: var(--char-2); transition: border-color .2s, background .2s; }
.choice:hover { border-color: var(--gold); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--gold-hi); background: rgba(207, 169, 104, .1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); }
.choice span { font-weight: 600; }
.choice small { color: var(--mist); min-height: 1.4em; }
.choice.is-off { opacity: .4; cursor: not-allowed; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.summary { padding: 22px; display: grid; gap: 10px; }
.sum-lines { list-style: none; margin: 0; padding: 0 0 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.cod-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--char-2); border: 1px solid var(--line); font-size: .88rem; }
.alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: rgba(236, 143, 128, .1); color: var(--danger);
  border: 1px solid rgba(236, 143, 128, .3); font-weight: 500; }
.gift-box { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid rgba(207, 169, 104, .4); border-radius: var(--radius);
  background: rgba(207, 169, 104, .06); }
.gift-box .choice-line { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 44px; }
.gift-box input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--gold); }
.loyalty-box input { letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.loyalty-box input::placeholder { letter-spacing: .08em; text-transform: none; font-weight: 400; }
.code-ok { color: var(--gold-ink); font-weight: 600; }
.code-bad { color: #e88a8a; }

/* ---------------------------------------------------------------- merci */
.done { text-align: center; padding-block: 56px 64px; display: grid; gap: 18px; }
.done-mark { width: 84px; height: 84px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-ink); font-size: 2.1rem;
  background: radial-gradient(circle, rgba(207, 169, 104, .25), transparent 70%); }
.done h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0; color: var(--ivory); }
.ref-box { display: grid; gap: 2px; padding: 18px; border: 1px solid var(--gold); border-radius: var(--radius-lg); background: var(--char); }
.ref-box strong { font-size: 1.9rem; letter-spacing: .12em; font-family: "Bodoni Moda", Georgia, serif; font-weight: 500; color: var(--gold-ink); }
.done .summary { text-align: start; }
.done-actions { display: grid; gap: 10px; }
@media (min-width: 600px) { .done-actions { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- suivi de commande */
.track { padding-block: 40px 64px; display: grid; gap: 18px; }
.track h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0; color: var(--ivory); }
.track-form { padding: 22px; display: grid; gap: 14px; }
.track-result { padding: 22px; display: grid; gap: 18px; }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.track-head strong { font-size: 1.45rem; letter-spacing: .08em; font-family: "Bodoni Moda", Georgia, serif; font-weight: 500;
  color: var(--gold-ink); margin-inline-start: 6px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.tl-step { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 20px; color: var(--mist); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; inset-inline-start: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line-2); }
.tl-step:last-child::before { display: none; }
.tl-step.is-done::before { background: var(--gold); }
.tl-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--char-2); font-weight: 600; font-size: .9rem; z-index: 1; }
.tl-step.is-done { color: var(--ivory); }
.tl-step.is-done .tl-dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.tl-step.is-current .tl-text { font-weight: 600; }
.tl-step.is-current .tl-dot { box-shadow: 0 0 0 5px rgba(207, 169, 104, .22); }
.tl-step.is-bad.is-done .tl-dot { background: var(--danger); border-color: var(--danger); color: var(--on-gold); }
.tl-text { padding-top: 4px; line-height: 1.4; }
.tl-text small { display: block; font-weight: 400; }
.track-info { margin: 0; display: grid; gap: 8px; }
.track-info div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.track-info dt { color: var(--mist); }
.track-info dd { margin: 0; text-align: end; }

/* ---------------------------------------------------------------- contenu modifiable (panneau) */
.banners { margin-top: 28px; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-lg); border: 1px solid var(--line); }
.banner-track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 6; background: var(--char); }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-title { position: absolute; inset-inline-start: 16px; bottom: 14px; max-width: 80%; padding: 7px 16px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--ivory);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 500; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dots button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: var(--char-3); cursor: pointer; }
.banner-dots button.active { width: 22px; border-radius: 4px; background: var(--gold-hi); }
.hero-text { padding-block: 120px 8px; text-align: center; }
.hero-text h1 { color: var(--ivory); font-size: clamp(2rem, 5vw, 3rem); }
/* « comment commander » */
.how { margin-block: 56px 8px; padding: 32px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, rgba(207, 169, 104, .1), transparent 70%), var(--char); display: grid; gap: 4px; }
@media (min-width: 800px) { .how { grid-template-columns: 1fr 2fr; gap: 40px; padding: 44px; align-items: start; } }
.how h2 { color: var(--ivory); font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.how p { margin: 0; line-height: 2; color: var(--ivory-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- pied de page */
.footer { position: relative; margin-top: 72px; border-top: 1px solid var(--line); color: var(--mist);
  background: radial-gradient(60% 120% at 50% 0%, rgba(207, 169, 104, .12), transparent 70%), var(--deep); overflow: hidden; }
.footer-in { display: grid; gap: 30px; padding-block: 56px 30px; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { font-size: 1.7rem; margin-bottom: 14px; gap: 14px; }
.footer .logo-mark { height: 64px; }
.footer .logo-mark.tall { height: 84px; }
.footer h2 { color: var(--gold); font-family: var(--font-body); font-size: .95rem; font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .94rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--gold-ink); }
.footer p { max-width: 32em; line-height: 1.9; }
.footer-bottom { padding-block: 16px 24px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mist); }

/* ---------------------------------------------------------------- WhatsApp flottant */
.wa-float { position: fixed; z-index: 35; bottom: 18px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7);
  transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------------------------------------------------------------- mouvement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- fiche produit : brume de la couleur du flacon, puis flottement (bottle.js) ---------- */
@media (max-width: 859px) { .gallery { position: relative; } }  /* au-delà : sticky */
.pp-mist { position: absolute; left: 0; right: 0; top: -22%; height: 122%; width: 100%; z-index: 3; pointer-events: none; }
@media (min-width: 860px) { .pp-mist { left: -12%; width: 124%; } }
.gallery-main.is-floating img:not(.pp-nozzle) { animation: pp-float 3.6s ease-in-out infinite; }
/* bouchon soulevé (bottle.js) : le haut de la photo dans un canvas, la buse dessous */
.gallery-main .pp-cap, .gallery-main .pp-nozzle { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 10px 10px var(--drop)); }
.gallery-main .pp-nozzle { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.gallery-main.is-floating::after { animation: pp-shadow 3.6s ease-in-out infinite; }
@keyframes pp-float { 50% { transform: translateY(-14px); } }
@keyframes pp-shadow { 50% { transform: scale(.82); opacity: .6; } }

/* ---------- fond selon le public : homme (acier, capiton), femme (rose poudré, fleurs), mixte (ambre, étoiles) ---------- */
.card-media.g-men, .gallery-main.g-men { background:
    radial-gradient(60% 50% at 50% 42%, rgba(178, 204, 228, .17), transparent 72%),
    repeating-linear-gradient(45deg, rgba(170, 200, 230, .05) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(170, 200, 230, .05) 0 1px, transparent 1px 22px),
    linear-gradient(180deg, #152029 0%, #0c1218 100%); }
.card-media.g-women, .gallery-main.g-women { background:
    radial-gradient(60% 50% at 50% 42%, rgba(255, 196, 200, .18), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='rgb(255,206,210)' stroke-opacity='.11' stroke-width='.8'%3E%3Cg transform='translate(18 18)'%3E%3Cellipse rx='2.4' ry='6' cy='-6.2'/%3E%3Cellipse rx='2.4' ry='6' cy='6.2'/%3E%3Cellipse rx='6' ry='2.4' cx='-6.2'/%3E%3Cellipse rx='6' ry='2.4' cx='6.2'/%3E%3Ccircle r='1.5'/%3E%3C/g%3E%3Cg transform='translate(54 54) rotate(45) scale(.8)'%3E%3Cellipse rx='2.4' ry='6' cy='-6.2'/%3E%3Cellipse rx='2.4' ry='6' cy='6.2'/%3E%3Cellipse rx='6' ry='2.4' cx='-6.2'/%3E%3Cellipse rx='6' ry='2.4' cx='6.2'/%3E%3Ccircle r='1.5'/%3E%3C/g%3E%3Ccircle cx='54' cy='16' r='1.2'/%3E%3Ccircle cx='16' cy='56' r='1.2'/%3E%3C/g%3E%3C/svg%3E") center / 72px 72px,
    linear-gradient(180deg, #2d171e 0%, #170c10 100%); }
.card-media.g-unisex, .gallery-main.g-unisex { background:
    radial-gradient(60% 50% at 50% 42%, rgba(244, 214, 158, .2), transparent 72%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='rgb(242,214,160)' stroke-opacity='.10' stroke-width='.8'%3E%3Cg transform='translate(16 16)'%3E%3Crect x='-7' y='-7' width='14' height='14'/%3E%3Crect x='-7' y='-7' width='14' height='14' transform='rotate(45)'/%3E%3C/g%3E%3Cg transform='translate(48 48)'%3E%3Crect x='-7' y='-7' width='14' height='14'/%3E%3Crect x='-7' y='-7' width='14' height='14' transform='rotate(45)'/%3E%3C/g%3E%3Ccircle cx='48' cy='16' r='1.3'/%3E%3Ccircle cx='16' cy='48' r='1.3'/%3E%3C/g%3E%3C/svg%3E") center / 64px 64px,
    linear-gradient(180deg, #281d11 0%, #140f0a 100%); }
.gallery-main.g-men { border-color: rgba(170, 200, 230, .16); }
.gallery-main.g-women { border-color: rgba(255, 196, 200, .16); }
.gallery-main.g-unisex { border-color: rgba(242, 214, 160, .2); }
/* vitrine : la lumière prend la couleur du public du flacon affiché */
.hero-tint { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.ht-men { background: radial-gradient(75% 60% at 50% 0%, rgba(110, 150, 190, .3), transparent 70%),
  radial-gradient(60% 40% at 50% 100%, rgba(90, 130, 170, .14), transparent 70%); }
.ht-women { background: radial-gradient(75% 60% at 50% 0%, rgba(214, 120, 140, .28), transparent 70%),
  radial-gradient(60% 40% at 50% 100%, rgba(200, 110, 130, .13), transparent 70%); }
.ht-unisex { background: radial-gradient(75% 60% at 50% 0%, rgba(226, 178, 104, .28), transparent 70%),
  radial-gradient(60% 40% at 50% 100%, rgba(210, 160, 90, .13), transparent 70%); }
.hero[data-g="men"] .ht-men, .hero[data-g="women"] .ht-women, .hero[data-g="unisex"] .ht-unisex { opacity: 1; }

/* ---------- apparition au défilement (shop.js pose .in ; la classe rv est posée dans <head> si l'animation est permise)
   titres : montent en sortant d'une ligne ; textes et cartes : en cascade ; images : se précisent ---------- */
html.rv [data-rv], html.rv [data-rv-group] > * {
  transition: opacity .9s var(--ease) var(--rd, 0s), translate 1s var(--ease) var(--rd, 0s), scale 1s var(--ease) var(--rd, 0s),
    filter 1s var(--ease) var(--rd, 0s), clip-path 1.1s var(--ease) var(--rd, 0s),
    border-color .35s, transform .45s var(--ease), box-shadow .45s; }
html.rv [data-rv]:not(.in), html.rv [data-rv-group] > :not(.in) { opacity: 0; translate: 0 26px; }
html.rv [data-rv="title"] { clip-path: polygon(-10% -40%, 110% -40%, 110% 140%, -10% 140%); }
html.rv [data-rv="title"]:not(.in) { opacity: 1; translate: 0 .55em;
  clip-path: polygon(-10% 140%, 110% 140%, 110% 140%, -10% 140%); }
html.rv [data-rv="img"]:not(.in) { scale: .95; filter: blur(10px); }
html.rv [data-rv-group="cards"] > :not(.in) { translate: 0 44px; scale: .96; }
html.rv .rail[data-rv-group] > :not(.in) { translate: 0 14px; }   /* le rail défile : ne pas déborder en hauteur */
html.rv [data-rv-group="cards"] .card-media img { transition: transform .6s var(--ease), opacity .35s, scale 1.5s var(--ease) var(--rd, 0s); }
html.rv [data-rv-group="cards"] > :not(.in) .card-media img { scale: 1.16; }

/* ---------------------------------------------------------------- mode jour : retouches */
[data-theme="light"] :is(.card-media, .gallery-main).g-men { background: radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, .9), transparent 72%),
  linear-gradient(180deg, #eef3f8 0%, #dce5ee 100%); border-color: rgba(31, 40, 66, .14); }
[data-theme="light"] :is(.card-media, .gallery-main).g-women { background: radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, .9), transparent 72%),
  linear-gradient(180deg, #fbf0f2 0%, #f1dde2 100%); border-color: rgba(122, 45, 75, .14); }
[data-theme="light"] :is(.card-media, .gallery-main).g-unisex { background: radial-gradient(60% 50% at 50% 42%, rgba(255, 255, 255, .9), transparent 72%),
  linear-gradient(180deg, #fbf5e9 0%, #f0e3c9 100%); border-color: rgba(140, 106, 54, .22); }
[data-theme="light"] .accords li { box-shadow: inset 0 0 0 1px rgba(26, 32, 51, .1); }
[data-theme="light"] .header { box-shadow: 0 1px 0 var(--line); }

/* bouton jour / nuit */
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: block; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
.theme-switching, .theme-switching * { transition: none !important; }

/* ---------------------------------------------------------------- accueil : les collections */
.collections { padding-block: 64px 24px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--gold); font-size: .74rem;
  letter-spacing: .28em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.coll-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 400; line-height: 1.12; margin-bottom: 38px; color: var(--ivory); }
.coll-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.coll { position: relative; display: flex; flex-direction: column; min-height: 380px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); border-radius: 4px; background: var(--char);
  transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.coll:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.coll-media { position: relative; flex: 1; min-height: 230px; display: flex; align-items: flex-end; justify-content: center;
  padding: 26px 10px 0; background: radial-gradient(60% 55% at 50% 45%, var(--glow), transparent 75%),
  linear-gradient(180deg, var(--card-top), var(--char)); }
.coll-perfume .coll-media { background: radial-gradient(60% 55% at 50% 45%, rgba(207, 169, 104, .22), transparent 75%),
  linear-gradient(180deg, #f3e7cf, var(--char)); }
.coll-watch .coll-media { background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, .5), transparent 75%),
  linear-gradient(180deg, #e4e6ea, var(--char)); }
.coll-glasses .coll-media { background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, .5), transparent 75%),
  linear-gradient(180deg, #dbe7ef, var(--char)); }
.coll-bundle .coll-media { background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, .45), transparent 75%),
  linear-gradient(180deg, #f1dfe2, var(--char)); }
.coll-silver .coll-media { background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, .6), transparent 75%),
  linear-gradient(180deg, #e6e8ec, var(--char)); }
:root:not([data-theme="light"]) .coll .coll-media { background: radial-gradient(60% 55% at 50% 45%, var(--glow), transparent 75%),
  linear-gradient(180deg, var(--card-top), var(--char)); }
.coll-media img { position: relative; width: 58%; max-height: 210px; object-fit: contain; margin-inline: -9%;
  filter: drop-shadow(0 16px 14px var(--drop)); transition: transform .7s var(--ease); }
.coll-media.n3 img:nth-child(1), .coll-media.n3 img:nth-child(3) { width: 44%; max-height: 165px; opacity: .92; }
.coll-media.n3 img:nth-child(2) { z-index: 1; }
.coll-media.n2 img:nth-child(1) { width: 48%; max-height: 180px; }
.coll:hover .coll-media img { transform: translateY(-6px) scale(1.04); }
.coll-text { position: relative; padding: 18px 22px 24px; background: linear-gradient(180deg, transparent, var(--char) 22%); margin-top: -24px; }
.coll-n { display: flex; align-items: center; gap: 10px; color: var(--gold); font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; margin-bottom: 8px; }
.coll-n i { width: 26px; height: 1px; background: var(--gold); }
.coll h3 { font-size: 1.7rem; font-weight: 400; margin: 0 0 8px; color: var(--ivory); }
.coll p { margin: 0; color: var(--mist); font-size: .9rem; line-height: 1.65; }

/* ---------------------------------------------------------------- carte : la maison en étiquette sur la photo */
.tag-brand { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px);
  padding: 5px 10px; background: var(--char); color: var(--ivory); border: 1px solid var(--ivory);
  font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-media .tag { inset-inline-start: auto; inset-inline-end: 10px; }

/* ---------------------------------------------------------------- mode jour : vitrine de l'accueil ivoire et champagne */
[data-theme="light"] .hero { background:
    radial-gradient(70% 55% at 50% 0%, rgba(207, 169, 104, .26) 0%, transparent 70%),
    radial-gradient(50% 40% at 50% 62%, rgba(255, 255, 255, .85) 0%, transparent 70%),
    linear-gradient(180deg, #ece1cb 0%, #f4efe4 48%, var(--night) 82%); }
[data-theme="light"] .hero-beam { background: linear-gradient(180deg, rgba(255, 255, 255, .75) 0%, rgba(255, 250, 238, .3) 55%, transparent 100%); }
[data-theme="light"] .silk { filter: drop-shadow(0 18px 22px rgba(120, 90, 40, .22)); }
[data-theme="light"] .hero-word { opacity: .95; }
[data-theme="light"] .sc-info { background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(250, 246, 238, .74));
  border-color: rgba(140, 106, 54, .25); box-shadow: 0 24px 50px -28px rgba(80, 60, 20, .35); }
[data-theme="light"] .sc-cats { background: rgba(255, 255, 255, .7); border-color: rgba(140, 106, 54, .22); }
[data-theme="light"] .sc-arrow { background: rgba(255, 255, 255, .8); border-color: rgba(140, 106, 54, .3); color: var(--ivory); }
[data-theme="light"] .sc-dot { background: rgba(140, 106, 54, .3); }
[data-theme="light"] .ht-men { background: radial-gradient(75% 60% at 50% 0%, rgba(150, 185, 215, .3), transparent 70%); }
[data-theme="light"] .ht-women { background: radial-gradient(75% 60% at 50% 0%, rgba(230, 160, 175, .28), transparent 70%); }
[data-theme="light"] .ht-unisex { background: radial-gradient(75% 60% at 50% 0%, rgba(226, 190, 120, .3), transparent 70%); }
[data-theme="light"] .header-over:not(.is-stuck) { border-color: transparent; }
.coll-art { align-self: center; width: 46%; max-width: 150px; margin-bottom: 26px; fill: none; stroke: var(--gold);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .85; transition: transform .7s var(--ease); }
.coll:hover .coll-art { transform: translateY(-6px) scale(1.04); }
.coll-soon { display: inline-block; margin-top: 12px; padding: 3px 12px; border: 1px solid var(--gold); color: var(--gold);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; }

/* couvertures photo des collections (images choisies par la boutique) */
.coll-media.coll-cover { padding: 0; display: block; background: var(--char); overflow: hidden; }
.coll-media.coll-cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; margin: 0;
  object-fit: cover; opacity: 1; transition: transform .9s var(--ease); }
.coll:hover .coll-media.coll-cover img { transform: scale(1.06); }
.coll-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--char)); }
.coll-silver .coll-cover img { object-position: 55% 55%; }
/* fond blanc uni derrière les produits (plus de teinte homme / femme / mixte), en jour comme en nuit */
:root :is(.card-media, .gallery-main), :root[data-theme] :is(.card-media, .gallery-main):is(.g-men, .g-women, .g-unisex) { background: #fff; }
.gallery-main:is(.g-men, .g-women, .g-unisex) { border-color: var(--line); }

/* ---------------------------------------------------------------- finitions (polish) */
/* surfaces du navigateur aux couleurs de la maison */
html { scrollbar-color: var(--gold) var(--night); accent-color: var(--gold); }
input, textarea { caret-color: var(--gold); }
.price, .stat strong, .sc-price { font-variant-numeric: tabular-nums lining-nums; }

/* étiquette de la maison : fine, arrondie, dans le ton or au lieu du cadre noir */
.tag-brand { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--char); color: var(--ivory-soft); letter-spacing: .12em; font-size: .6rem; }

/* flèches et « + » dessinés (plus de caractères ‹ › +) */
.arrow { display: inline-grid; place-items: center; color: var(--ivory); }
.arrow svg, .mini-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }
.mini-btn:has(svg) { padding: 0; width: 38px; height: 38px; }
.mini-btn:active, .arrow:active { transform: scale(.94); }
[dir="rtl"] .arrow:active { transform: scaleX(-1) scale(.94); }

/* « comment commander » : quatre étapes côte à côte */
.how { display: block; }
.how h2 { margin: 0 0 26px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: none; }
.how-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 6px; align-items: center; }
.how-n { grid-row: 1 / 3; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-ink); min-width: 1ch; }
.how-steps svg { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.how-steps p { margin: 0; color: var(--ivory-soft); line-height: 1.7; font-size: .95rem; }
@media (min-width: 800px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .how-steps li { grid-template-columns: 1fr; padding-inline: 24px; align-content: start; row-gap: 12px; }
  .how-steps li + li { border-inline-start: 1px solid var(--line); }
  .how-steps li:first-child { padding-inline-start: 0; }
  .how-n { grid-row: auto; font-size: 3rem; }
}

/* téléphone : la barre de rubriques du haut s'efface sur les bords au lieu d'être coupée net */
@media (max-width: 640px) {
  .sc-cats { -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
             mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); padding-inline: 14px; }
  .wa-float { width: 48px; height: 48px; bottom: 14px; inset-inline-end: 14px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* vitrine : le flacon ne dépasse jamais l'espace au-dessus du socle (flacons larges/ronds compris) */
.sc-slide { width: min(270px, 52vw); aspect-ratio: auto;
  height: min(min(270px, 52vw) * 1.25, calc(95% - min(440px, 86vw) * .232 - 12px)); }
/* hauteur réelle mesurée par shop.js (--sc-h) : le flacon reste entre le socle et la barre des rubriques */
.sc-slide { width: min(250px, 50vw); height: min(min(250px, 50vw) * 1.25, var(--sc-h, 320px)); }

/* mode jour : le pied de page passe en ivoire champagne (plus de bleu nuit) */
[data-theme="light"] .footer { color: var(--ivory-soft); border-top-color: rgba(140, 106, 54, .22);
  background: radial-gradient(60% 120% at 50% 0%, rgba(207, 169, 104, .22), transparent 70%),
    linear-gradient(180deg, #f1e9d9 0%, #e9dcc2 100%); }
[data-theme="light"] .footer h2 { color: var(--gold-lo); font-weight: 600; }
[data-theme="light"] .footer a:hover { color: var(--gold-lo); }
[data-theme="light"] .footer-bottom { color: var(--mist); border-top-color: rgba(140, 106, 54, .2); }
[data-theme="light"] .footer .logo span { color: var(--ivory); }

/* logo du kit : or et noir en mode jour ; en mode nuit (fond bleu nuit) la version or reste lisible */
:root:not([data-theme="light"]) img.logo-mark[src^="/static/shop/logo.png"] { content: url("logo-gold.png?v=kit2"); }

/* ---------------------------------------------------------------- accueil : deux vitrines (Hersh Lahab, montres) */
.feat { display: grid; gap: clamp(64px, 9vw, 120px); padding-block: 40px 80px; }
.feat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feat-card { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 1124 / 1076;
  background: #120d08; box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .75), 0 10px 22px -14px rgba(0, 0, 0, .5);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 44px 70px -30px rgba(0, 0, 0, .8), 0 12px 26px -14px rgba(0, 0, 0, .5); }
[data-theme="light"] .feat-card { box-shadow: 0 34px 60px -30px rgba(60, 40, 10, .45), 0 10px 22px -14px rgba(60, 40, 10, .3); }
.feat-card > img, .hersh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-watch .fw-scene { transition: transform 1.4s var(--ease); }
.feat-watch:hover .fw-scene { transform: scale(1.04); }
.feat-text { max-width: 460px; }
.feat-text h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 400; line-height: 1.15;
  margin: 0 0 18px; color: var(--ivory); }
.feat-text p:not(.eyebrow) { margin: 0 0 12px; color: var(--mist); font-size: .95rem; line-height: 1.8; }
.feat-btn { display: inline-block; margin-top: 18px; padding: 14px 26px; border: 1px solid var(--ivory); color: var(--ivory);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s; }
.feat-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* Hersh Lahab : la boîte et le flacon flottent au-dessus de la pierre, un reflet passe sur l'or */
.hersh { position: absolute; inset: 0; }
.hl-float { position: absolute; inset: 0; }
.hl-shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 214, .55) 48%, rgba(255, 255, 255, .8) 50%, rgba(255, 246, 214, .55) 52%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 150% 0;
  -webkit-mask: url("/static/shop/feat/hersh-body.webp") center / 100% 100% no-repeat;
  mask: url("/static/shop/feat/hersh-body.webp") center / 100% 100% no-repeat; mask-mode: alpha; }
.hl-shadow { position: absolute; left: 12%; right: 11%; top: 82.5%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(4px); }
/* plus de boucle infinie : tout le mouvement (reflets compris) est joué une fois par le minutage de shop.js hershLahab() */
.hl-float > img.hl-lahab { opacity: 0; pointer-events: none; mix-blend-mode: screen;
  filter: drop-shadow(0 0 6px rgba(80, 240, 230, .9)) drop-shadow(0 0 14px rgba(80, 240, 230, .55)); }

@media (max-width: 820px) {
  .feat { gap: 56px; padding-block: 24px 56px; }
  .feat-row { grid-template-columns: 1fr; gap: 26px; }
  .feat-rev .feat-card { order: -1; }
  .feat-text { max-width: none; }
}

/* vitrines : cartes plus petites, rangées centrées */
.feat-row { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); max-width: 1000px; margin-inline: auto; width: 100%; }
.feat-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.feat-rev .feat-text { justify-self: end; }
/* Hersh : fumée et poussière d'or derrière le flacon (canvas, shop.js goldAir) */
.hl-air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
/* montre : la photo respire lentement et un reflet traverse le verre */
.fw-glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 236, 200, .28) 49%, rgba(255, 255, 255, .45) 50%, rgba(255, 236, 200, .28) 51%, transparent 60%) no-repeat;
  background-size: 280% 100%; background-position: 160% 0; }
@media (prefers-reduced-motion: no-preference) {
  .feat-watch .fw-scene { animation: fw-breathe 14s ease-in-out infinite; transform-origin: 45% 45%; }
  .fw-glint { animation: fw-glint 7s ease-in-out infinite 2s; }
}
@keyframes fw-breathe { 0%, 100% { transform: scale(1) translate(0, 0) rotate(0deg); } 50% { transform: scale(1.07) translate(-1.2%, -.8%) rotate(-.6deg); } }
@keyframes fw-glint { 0%, 60% { background-position: 160% 0; } 90%, 100% { background-position: -60% 0; } }
@media (max-width: 820px) {
  .feat-row, .feat-rev { grid-template-columns: 1fr; max-width: 460px; }
  .feat-rev .feat-text { justify-self: stretch; }
}

/* vitrines : pas de bord visible, la photo se fond dans la page (bords brumeux) */
.feat-card, [data-theme="light"] .feat-card, .feat-card:hover { border-radius: 0; box-shadow: none; background: transparent; }
.feat-card { --fade: 13%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
                      linear-gradient(180deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
              linear-gradient(180deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-composite: intersect; }
.hl-air { opacity: 1; }

/* Hersh : scène plus sombre, éclairage de studio (lumière chaude au-dessus du flacon, bords dans l'ombre) et fumée soyeuse du flacon */
.hersh .hl-bg, .hersh .hl-front { filter: brightness(1.18) contrast(.96) saturate(1.05); }
.hl-float > img { filter: brightness(1) contrast(1.06); }
/* place pour la fumée : la scène descend un peu, fond sombre autour (les bords restent brumeux) */
.feat-card:has(.hersh) { background: radial-gradient(ellipse at 60% 35%, #3a2c1c, #1c150e 75%); }
.hersh { transform: none; }
.hl-light { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 26% 40% at 74% 34%, rgba(255, 220, 160, .22), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(255, 240, 215, .12), transparent 80%); }
.hl-wisp { position: absolute; left: 0; top: -18%; width: 100%; height: 118%; pointer-events: none; filter: blur(.6px); }
.hl-air { opacity: .45; }
/* Hersh : bord du haut moins brumeux, pour laisser voir la fumée */
.feat-card:has(.hersh) {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
                      linear-gradient(180deg, transparent, #000 6%, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent),
              linear-gradient(180deg, transparent, #000 6%, #000 calc(100% - var(--fade)), transparent); }

/* Hersh : la couronne se soulève, la fumée sort, les notes (pamplemousse, basilic, poivre noir) jaillissent puis rentrent
   (boucle de 12 s ; shop.js wisp() pose .play et dessine fumée, poivre et étincelles au même rythme) */
.hl-cap, .hl-float > img.hl-cap { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 74.3% 25.8%; }
/* pompe dorée sous la couronne : visible seulement quand la couronne est levée (shop.js render) */
.hl-float > img.hl-spray { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hl-glow { position: absolute; left: 74.3%; top: 31.8%; width: 30%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 232, 180, .85), rgba(255, 196, 110, .35) 40%, transparent); }
.hl-burst { position: absolute; inset: 0; container-type: size; pointer-events: none; }
.hersh .hl-ing { position: absolute; inset: auto; left: 74.3%; top: 31.8%; width: var(--w); height: auto; opacity: 0; object-fit: contain;
  transform: translate(-50%, -50%) scale(.1); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
.feat-credit-unused { margin-top: 14px !important; font-size: .62rem !important; line-height: 1.5 !important; opacity: .55; }
/* le minutage (couronne, lueur, notes) est donné par shop.js wisp(), au même rythme que la fumée */

/* montre : la photo reste la même ; les rouages (découpés et redressés de la perspective) tournent à leur place,
   le balancier (en haut) va et vient. La transformation rend au rouage l'inclinaison du cadran (ellipse 0,887 à 21°). */
.fw-scene { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; translate: 0 -50%; }
.fw-scene .fw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fw-gear { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(21deg) scaleX(.887) rotate(-21deg); }
.fw-gear img { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .fw-balance img { animation: fw-balance 1.1s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .fw-cw img { animation: fw-spin 16s linear infinite; }
  .fw-cw2 img { animation: fw-spin 9s linear infinite; }
  .fw-ccw img { animation: fw-spin 38s linear infinite reverse; }
}
@keyframes fw-spin { to { transform: rotate(360deg); } }
@keyframes fw-balance { from { transform: rotate(-75deg); } to { transform: rotate(75deg); } }

/* disponibilité sur la carte : à droite (début de ligne), point vert « en ligne » ou point rouge */
.avail { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .74rem; font-weight: 600; line-height: 1.4; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.avail.is-ok { color: #1f9d55; }
.avail.is-ok::before { box-shadow: 0 0 0 0 rgba(31, 157, 85, .55); animation: avail-pulse 2s ease-out infinite; }
.avail.is-out { color: #d93025; }
@keyframes avail-pulse { 70% { box-shadow: 0 0 0 6px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .avail.is-ok::before { animation: none; } }
.stock-line .ok, .stock-line .out { display: inline-flex; align-items: center; gap: 7px; }
.stock-line .ok::before, .stock-line .out::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-line .ok { color: #1f9d55; }
.stock-line .out { color: #d93025; }
/* montre des collections : photo verticale montrée en entier (pas de recadrage, pas de flou sur les côtés) */
.coll-watch .coll-media.coll-cover { background: #140703; }
.coll-watch .coll-media.coll-cover img { object-fit: contain; object-position: 50% 0; }

/* vitrine : une photo très haute et étroite (flacon détouré au ras) ne doit pas agrandir la case — sans piste
   « minmax(0, 1fr) », la grille prenait la hauteur naturelle de l'image (largeur 100 %) et le flacon débordait du socle */
.sc-slide { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.sc-slide img { min-width: 0; min-height: 0; }

/* vitrine avec beaucoup de produits : barre d'avancement fine à la place des points */
.sc-progress { width: min(220px, 50vw); height: 3px; border-radius: 999px; background: rgba(242, 220, 170, .22); overflow: hidden; }
.sc-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gold-hi); transition: width .5s var(--ease); }
[data-theme="light"] .sc-progress { background: rgba(140, 106, 54, .22); }
