@property --glow { syntax: '<color>'; inherits: true; initial-value: #C8102E; }
@property --glow2 { syntax: '<color>'; inherits: true; initial-value: #D4AF37; }

:root {
  --glow: #C8102E;
  --glow2: #D4AF37;
  --bg: #08111d;
  --ink: #f7f0e3;
  --muted: rgba(247, 240, 227, .7);
  --faint: rgba(247, 240, 227, .5);
  --gold: #e4c273;
  --gold-2: #c99a3e;
  --card: rgba(255, 255, 255, .05);
  --card-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .11);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: --glow 1.1s ease, --glow2 1.1s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #08111d; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #0c1a2c 0, #08111d 900px, #08111d calc(100% - 400px), #060b14 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(42vw 46vh at 50% 46%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 70%),
    radial-gradient(28vw 26vh at 50% 22%, color-mix(in srgb, var(--glow2) 16%, transparent), transparent 70%),
    radial-gradient(80vw 30vh at 50% 108%, rgba(200, 220, 240, .10), transparent 70%);
}

/* ---------- barre du haut ---------- */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1440px; margin: 0 auto; padding: 18px 40px 6px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.brand svg { width: 22px; height: 22px; color: var(--gold); filter: drop-shadow(0 0 8px rgba(228, 194, 115, .6)); }
.brand em { font-style: italic; font-weight: 500; color: var(--gold); }
.topnav { display: flex; gap: 6px; }
.topnav a { text-decoration: none; font-size: 14.5px; color: var(--muted); padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--ink); background: var(--card-2); }
.topnav .nav-try { color: var(--ink); border: 1px solid rgba(228, 194, 115, .45); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(0, 1fr) minmax(300px, 360px);
  grid-template-rows: auto auto;
  grid-template-areas: "intro tree picker" "panel tree picker";
  column-gap: 36px;
  align-content: center;
  max-width: 1440px; margin: 0 auto;
  padding: 0 40px 28px;
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  overflow-x: clip; /* le canvas des lumières déborde un peu du sapin */
}
.hero-intro { grid-area: intro; align-self: end; padding-bottom: 22px; }
.hero-panel { grid-area: panel; align-self: start; }
.hero-tree { grid-area: tree; }
.hero-picker { grid-area: picker; align-self: center; }

.eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 3.3vw, 50px); line-height: 1.06; letter-spacing: -.01em; }
h1 em, h2 em { white-space: nowrap; font-style: italic; font-weight: 500; color: var(--gold); }
.lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* sapin */
.hero-tree { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.tree-link { position: relative; display: block; border-radius: 30px; outline: none; -webkit-tap-highlight-color: transparent; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; max-width: 100%; }
.tree-photo {
  position: relative; display: block; isolation: isolate;
  height: min(80vh, 780px); width: auto; max-width: 100%;
  aspect-ratio: 794 / 1300;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.tree-photo::before { /* halo chaud derrière le sapin, teinté par le style */
  content: ""; position: absolute; inset: 8% -6% 4%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow2) 26%, transparent), color-mix(in srgb, var(--glow) 12%, transparent) 60%, transparent);
  filter: blur(18px); pointer-events: none;
}
.tree-img {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .45s ease .32s; /* l'ancien sapin s'efface après l'arrivée du nouveau */
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .45)) brightness(1.05) saturate(1.08);
  -webkit-user-drag: none; user-select: none;
}
.tree-img.is-active { opacity: 1; z-index: 2; transition: opacity .7s ease, filter .9s ease; }
/* sapin éteint : un peu plus sombre et désaturé ; allumé : lumineux + halo chaud */
.tree-photo.is-off .tree-img { filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .45)) brightness(.8) saturate(.82); }
.tree-photo::after { /* halo chaud quand le sapin est allumé */
  content: ""; position: absolute; inset: 4% -14% 2%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 100, .42), rgba(255, 160, 70, .16) 55%, transparent);
  filter: blur(26px); pointer-events: none; opacity: 0; transform: scale(.92);
  transition: opacity 1.2s ease, transform 1.2s ease;
}
.tree-photo.is-lit::after { opacity: 1; transform: scale(1); }
.tree-photo.is-off::before { opacity: .55; }
.tree-photo::before { transition: opacity 1s ease; }
.tree-glowmask { /* lueur chaude posée uniquement sur le sapin (masque = la photo détourée) */
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 52%, rgba(255, 200, 120, .55), rgba(255, 170, 80, .22) 65%, rgba(255, 160, 70, .08));
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 1s ease;
}
.tree-photo.is-lit .tree-glowmask { opacity: 1; }
.tree-lights { position: absolute; top: -80px; left: -80px; z-index: 4; width: calc(100% + 160px); height: calc(100% + 80px); pointer-events: none; mix-blend-mode: screen; }
.tree-photo.no-fade .tree-img { transition: none; }
.tree-link:hover .tree-photo { transform: scale(1.012); }
.tree-link:focus-visible { box-shadow: 0 0 0 3px rgba(228, 194, 115, .6); }
.tree-badge {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.92);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(10, 18, 30, .78); backdrop-filter: blur(6px);
  border: 1px solid rgba(228, 194, 115, .55);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.tree-badge svg { width: 16px; height: 16px; }
.tree-badge .badge-off, .tree-link[aria-pressed="true"] .badge-on { display: none; }
.tree-link[aria-pressed="true"] .badge-off { display: inline; }
@media (hover: hover) { .tree-link:hover .tree-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.lights-toggle {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 9px; margin: 4px 0 0;
  padding: 8px 16px 8px 12px; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(228, 194, 115, .4);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.lights-toggle:hover { background: rgba(255, 255, 255, .11); border-color: rgba(228, 194, 115, .7); }
.lights-toggle:focus-visible, .tree-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lt-dot { width: 10px; height: 10px; border-radius: 50%; background: #8a7a5a; box-shadow: 0 0 0 3px rgba(228, 194, 115, .15); transition: background .4s, box-shadow .4s; }
.lights-toggle:not(.is-on) .lt-dot { animation: ltPulse 2.2s ease-in-out infinite; }
@keyframes ltPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(228, 194, 115, .12); background: #b59a5e; } 50% { box-shadow: 0 0 0 7px rgba(228, 194, 115, .05), 0 0 12px rgba(255, 210, 130, .7); background: #ffd98a; } }
.lights-toggle.is-on { border-color: rgba(255, 210, 130, .75); box-shadow: 0 0 22px rgba(255, 190, 100, .25); }
.lights-toggle.is-on .lt-dot { background: #fff1c9; box-shadow: 0 0 0 3px rgba(255, 214, 140, .3), 0 0 14px 3px rgba(255, 200, 110, .9); }
.lt-when-on, .lights-toggle.is-on .lt-when-off { display: none; }
.lights-toggle.is-on .lt-when-on { display: inline; }
.hint-touch { display: none; }
@media (hover: none) { .hint-touch { display: inline; } .hint-hover { display: none; } }

.nav-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s;
}
.nav-arrow svg { width: 20px; height: 20px; }
.nav-arrow:hover { background: rgba(255, 255, 255, .12); border-color: rgba(228, 194, 115, .5); }
.nav-arrow.prev { left: 0; }
.nav-arrow.next { right: 0; }

/* animations du sapin */
/* ---------- sélecteur de style ---------- */
.picker-title { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.style-card {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 62px; padding: 9px 11px 9px 9px;
  text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.style-card:hover { background: var(--card-2); transform: translateY(-1px); }
.style-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.style-card[aria-checked="true"] {
  background: linear-gradient(135deg, rgba(228, 194, 115, .16), rgba(228, 194, 115, .05));
  border-color: rgba(228, 194, 115, .75);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 0 1px rgba(228, 194, 115, .25) inset;
}
.swatch { position: relative; flex: 0 0 auto; width: 38px; height: 42px; }
.swatch::before { /* attache */
  content: ''; position: absolute; left: 50%; top: 0; width: 9px; height: 6px; transform: translateX(-50%);
  border-radius: 2px; background: linear-gradient(90deg, #f3dc9a, #a7802f);
}
.swatch i {
  position: absolute; left: 1px; top: 5px; width: 36px; height: 36px; border-radius: 50%;
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, .35), 0 3px 8px rgba(0, 0, 0, .35);
}
.swatch i::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .75) 0, rgba(255, 255, 255, .15) 22%, transparent 45%);
}
.card-text { display: flex; flex-direction: column; min-width: 0; }
.card-num { font-size: 11px; letter-spacing: .12em; color: var(--faint); font-weight: 700; }
.card-name { font-size: 13.5px; font-weight: 500; line-height: 1.22; }

/* ---------- panneau du style ---------- */
.panel {
  padding: 22px 22px 18px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.panel > * { transition: opacity .3s ease, transform .3s ease; }
.panel.is-changing > *:not(.cta):not(.cta-note) { opacity: 0; transform: translateY(6px); }
.panel-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.panel-title { margin: 0 0 10px; font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.15; }
.palette { display: flex; gap: 6px; margin-bottom: 12px; }
.palette span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.panel-desc { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; }
.chips li { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: rgba(247, 240, 227, .85); }

.cta, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border-radius: 999px; border: 0; transition: transform .2s, box-shadow .2s, filter .2s, background .2s;
}
.cta {
  width: 100%; padding: 15px 20px; color: #2a1b05;
  background: linear-gradient(135deg, #f6dc94, #d6a648 55%, #b8862d);
  box-shadow: 0 10px 28px rgba(214, 166, 72, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.cta svg, .btn svg { width: 18px; height: 18px; }
.cta:hover, .btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px rgba(214, 166, 72, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.cta-note { margin: 9px 0 0; font-size: 12px; color: var(--faint); text-align: center; }
.try-link { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0 6px; font-size: 14.5px; color: var(--gold); text-decoration: none; font-weight: 500; }
.try-link svg { width: 20px; height: 20px; }
.try-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- produits Amazon du style ---------- */
.products-block { margin: 0 0 14px; }
.products-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.products-total { letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--faint); font-size: 12.5px; }
.products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.product-link {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas: "thumb role role" "thumb name name" "thumb price btn";
  column-gap: 10px; align-items: center;
  padding: 7px 9px 7px 7px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  transition: background .2s, border-color .2s, transform .2s;
}
.product-link:hover { background: rgba(255, 255, 255, .09); border-color: rgba(228, 194, 115, .45); transform: translateY(-1px); }
.product-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.product-thumb { grid-area: thumb; width: 48px; height: 48px; align-self: center; border-radius: 10px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-thumb.no-img { background: rgba(255, 255, 255, .1); }
.product-text { display: contents; }
.product-role { grid-area: role; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; line-height: 1.3; }
.product-name { grid-area: name; font-size: 13.5px; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price { grid-area: price; display: flex; flex-direction: column; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: 1.3; margin-top: 2px; }
.product-price small { font-size: 10.5px; font-weight: 500; color: var(--faint); line-height: 1.2; }
.product-btn { grid-area: btn; align-self: end; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #2a1b05; background: linear-gradient(135deg, #f6dc94, #d6a648); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.product-btn svg { width: 12px; height: 12px; }
.price-note { margin: 8px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--faint); text-align: left; }
.hero-panel .cta { padding: 12px 18px; font-size: 14.5px; }
@media (max-width: 1180px) { .products-title { justify-content: center; } .price-note { text-align: center; } }

/* ---------- étapes ---------- */
.steps { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 40px 40px 30px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { display: flex; gap: 14px; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.step-n { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 600; color: #2a1b05; background: linear-gradient(135deg, #f6dc94, #c99a3e); }
.steps h3 { margin: 4px 0 6px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- essayage ---------- */
.tryon {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-areas: "text stage" "controls stage";
  column-gap: 48px; row-gap: 0; align-content: center;
  max-width: 1280px; margin: 0 auto 56px; padding: 70px 40px 80px;
}
.tryon h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.tryon-text > p { color: var(--muted); line-height: 1.6; font-size: 16px; margin: 0 0 22px; }
.btn { padding: 13px 22px; }
.btn-gold { color: #2a1b05; background: linear-gradient(135deg, #f6dc94, #d6a648 55%, #b8862d); box-shadow: 0 8px 22px rgba(214, 166, 72, .3), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { background: var(--card-2); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .13); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; filter: none; }
.privacy { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 24px; padding: 12px 14px; border-radius: 14px; background: rgba(127, 183, 126, .1); border: 1px solid rgba(127, 183, 126, .3); color: rgba(247, 240, 227, .88); font-size: 14px; line-height: 1.5; }
.tryon-text > .privacy { margin: 22px 0 26px; } /* l'ancien « .tryon-text > p » collait le bloc au bouton d'envoi */
.upload-row { margin: 0; }
.privacy svg { flex: 0 0 auto; width: 20px; height: 20px; color: #9fd09e; margin-top: 1px; }
.tryon-text { grid-area: text; align-self: end; }
.controls { grid-area: controls; align-self: start; display: grid; gap: 12px; }
.stage-wrap { grid-area: stage; }
.range { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.range input { width: 100%; accent-color: var(--gold); }
.mini-label { font-size: 14px; color: var(--muted); }
.mini-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.mini-dot {
  width: 31px; height: 31px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: inset -3px -5px 8px rgba(0, 0, 0, .35);
  transition: transform .2s, border-color .2s;
}
.mini-dot:hover { transform: scale(1.08); }
.mini-dot[aria-checked="true"] { border-color: var(--gold); box-shadow: inset -3px -5px 8px rgba(0, 0, 0, .35), 0 0 0 3px rgba(228, 194, 115, .3); }
.ctrl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.stage-wrap { display: flex; justify-content: center; align-items: center; min-width: 0; }
.stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, .035);
  border: 1.5px dashed rgba(228, 194, 115, .45);
  user-select: none; -webkit-user-select: none;
  transition: border-color .2s, background .2s;
}
.stage.drag-over { border-color: var(--gold); background: rgba(228, 194, 115, .08); }
.stage.has-photo { border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); aspect-ratio: auto; }
.stage-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 24px; cursor: pointer; color: var(--muted);
}
.stage-empty svg { width: 64px; height: 64px; color: var(--gold); opacity: .85; margin-bottom: 6px; }
.stage-empty strong { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.stage-empty span { font-size: 14px; }
.stage.has-photo .stage-empty { display: none; }
#photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#treeOverlay {
  position: absolute; left: 50%; top: 92%; width: 40%; height: auto;
  transform: translate(-50%, -100%);
  cursor: grab; touch-action: none;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35));
}
#treeOverlay.dragging { cursor: grabbing; }
.stage-tip { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(8, 14, 24, .7); backdrop-filter: blur(6px); font-size: 13px; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.stage-tip.fade { opacity: 0; }

/* ---------- pied de page ---------- */
.footer { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; padding: 30px 40px 40px; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: 6px 0; }
.disclosure { font-size: 14px; color: rgba(247, 240, 227, .8); }
.footer .small { font-size: 12.5px; color: var(--faint); }

/* ---------- idées déco : un bloc texte indexable par style ---------- */
.ideas { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 40px 40px 70px; }
.ideas-head { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.ideas h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.ideas-lead { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.affiliate-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--faint); }
.ideas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.idea {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.idea-img { width: 112px; height: auto; aspect-ratio: 464 / 760; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .4)); }
.idea-kicker { margin: 2px 0 4px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.idea h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.idea-palette { margin-bottom: 10px; }
.idea-palette span { width: 18px; height: 18px; }
.idea-body > p:not(.idea-kicker) { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.idea-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--ink);
  background: var(--card-2); border: 1px solid rgba(228, 194, 115, .45); transition: background .2s, border-color .2s;
}
.idea-btn svg { width: 15px; height: 15px; }
.idea-btn:hover { background: rgba(228, 194, 115, .16); border-color: var(--gold); }

/* ---------- mentions légales ---------- */
.footer a { color: rgba(247, 240, 227, .85); text-underline-offset: 3px; }
.legal { margin: 18px auto 0; max-width: 820px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .03); }
.legal summary { cursor: pointer; padding: 13px 18px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.legal summary:hover { color: var(--ink); }
.legal-body { padding: 0 22px 18px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.legal-body h2 { margin: 18px 0 6px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.legal-body h3 { margin: 14px 0 4px; font-size: 14px; font-weight: 700; color: var(--ink); }
.legal-body p { margin: 0 0 8px; }
.legal { scroll-margin-top: 20px; }

@media (max-width: 860px) {
  .ideas-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ideas { padding: 26px 16px 50px; }
  .idea { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .idea-img { width: 78px; }
  .idea h3 { font-size: 20px; }
  .legal-body { padding: 0 16px 14px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "intro" "tree" "picker" "panel";
    row-gap: 18px; min-height: 0; padding-top: 12px;
  }
  .hero-intro { text-align: center; max-width: 640px; margin: 0 auto; padding: 0; }
  .tree-photo { height: min(70vh, 720px); }
  .hero-picker { width: 100%; max-width: 900px; margin: 0 auto; }
  .picker-title { text-align: center; }
  .picker { grid-template-columns: repeat(5, 1fr); }
  .hero-panel { max-width: 560px; width: 100%; margin: 0 auto; text-align: center; }
  .palette, .chips { justify-content: center; }
  .nav-arrow.prev { left: max(0px, calc(50% - 330px)); }
  .nav-arrow.next { right: max(0px, calc(50% - 330px)); }
  .tryon { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "stage" "controls"; row-gap: 28px; }
  .tryon-text > .privacy { margin-bottom: 6px; }
}
@media (max-width: 860px) {
  .picker { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { padding: 14px 18px 4px; }
  .brand { font-size: 19px; }
  .topnav a:not(.nav-try) { display: none; }
  .topnav a { font-size: 13.5px; padding: 8px 12px; }
  .hero { padding: 6px 0 20px; row-gap: 10px; }
  .hero-intro { padding: 0 20px; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  h1 { font-size: 31px; margin-bottom: 0; }
  .hero-intro .lead { display: none; }
  .tree-photo { height: min(57vh, 560px); height: min(57svh, 560px); }
  .lights-toggle { font-size: 12.5px; padding: 7px 14px 7px 11px; margin-top: 2px; }
  .nav-arrow { width: 40px; height: 40px; background: rgba(8, 14, 24, .55); }
  .nav-arrow.prev { left: 8px; }
  .nav-arrow.next { right: 8px; }
  .picker-title { display: none; }
  .hero-picker { padding: 0; }
  .picker {
    display: flex; overflow-x: auto; gap: 9px; padding: 4px 20px 10px;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .picker::-webkit-scrollbar { display: none; }
  .style-card { flex: 0 0 auto; width: 128px; min-height: 0; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 8px 10px; scroll-snap-align: center; }
  .card-text { align-items: center; }
  .card-name { font-size: 12.5px; }
  .hero-panel { padding: 0 16px; }
  .panel { padding: 20px 18px 16px; }
  .panel-title { font-size: 24px; }
  .steps { padding: 26px 16px 10px; }
  .tryon { padding: 50px 16px 60px; margin-bottom: 36px; }
  .footer { padding: 26px 20px 34px; }
  .mini-picker { gap: 5px; }
  .mini-dot { width: 29px; height: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tree-img, .tree-photo { transition: none; }
  .lights-toggle .lt-dot { animation: none !important; }
}

/* tablette paysage : sapin + sélecteur côte à côte */
@media (min-width: 861px) and (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-areas: "intro intro" "tree picker" "panel panel";
    column-gap: 24px; row-gap: 14px; padding: 4px 28px 28px;
  }
  .hero-intro { padding-bottom: 0; }
  .hero-intro .lead { display: none; }
  .tree-photo { height: min(66vh, 680px); }
  .hero-picker { align-self: center; }
  .picker-title { text-align: left; font-size: 19px; margin-bottom: 10px; }
  .picker { grid-template-columns: 1fr 1fr; gap: 8px; }
  .style-card { min-height: 56px; padding: 7px 9px 7px 7px; }
  .card-name { font-size: 13px; }
  .nav-arrow.prev { left: 0; }
  .nav-arrow.next { right: 0; }
}
.idea .idea-palette { justify-content: flex-start; }

/* grand écran : le sapin et son bouton « allumer » tiennent au-dessus de la ligne de flottaison */
@media (min-width: 1181px) {
  .hero-tree { justify-content: flex-start; padding-top: 6px; }
  .tree-photo { height: min(calc(100vh - 150px), 780px); height: min(calc(100svh - 150px), 780px); min-height: 520px; }
  .hero-tree .nav-arrow { top: calc(6px + max(520px, min(calc(100vh - 150px), 780px)) / 2); }
}

/* lien discret vers l'autre page de styles (sous la grille) */
.more-styles { margin: .7rem 0 0; font-size: .8rem; line-height: 1.4; text-align: center; opacity: .72; }
.more-styles a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.more-styles a:hover, .more-styles a:focus-visible { opacity: 1; color: var(--gold, #d4af37); }

/* ---------- Autour du sapin (accessoires) ---------- */
.acc { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 46px 40px 20px; }
.acc-head { max-width: 760px; margin: 0 auto 22px; text-align: center; }
.acc h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; }
.acc h2 em { color: var(--gold); font-style: italic; }
.acc-lead { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.acc-chips {
  display: flex; justify-content: center; gap: 10px; margin: 0 auto 24px; flex-wrap: wrap; width: fit-content; max-width: 100%;
  padding: 7px; border-radius: 999px; background: rgba(8, 17, 29, .72); border: 1px solid rgba(228, 194, 115, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.acc-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid rgba(228, 194, 115, .55); background: rgba(228, 194, 115, .1);
  font-family: var(--sans); font-size: 15.5px; font-weight: 700; letter-spacing: .01em; color: #fbf3e2; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}
.acc-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(228, 194, 115, .6); flex: none; transition: background .2s, box-shadow .2s; }
.acc-chip:hover { border-color: var(--gold); background: rgba(228, 194, 115, .2); color: #fff; transform: translateY(-1px); }
.acc-chip[aria-selected="true"] {
  color: #2a1b05; background: linear-gradient(135deg, #fbe6a8, #e0b155 55%, #c99a3e); border-color: #fbe6a8;
  box-shadow: 0 0 0 3px rgba(228, 194, 115, .28), 0 8px 24px rgba(228, 194, 115, .35);
}
.acc-chip[aria-selected="true"]::before { background: #C8102E; box-shadow: 0 0 8px rgba(200, 16, 46, .8); }
.acc-chip:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.acc:not(.acc-js) .acc-chips { display: none; }
.acc-panel { margin: 0 0 18px; }
.acc-panel h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; text-align: center; }
.acc.acc-js .acc-panel h3 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acc-intro { max-width: 760px; margin: 0 auto 18px; text-align: center; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.acc-cards {
  list-style: none; margin: 0; padding: 4px 2px 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(228, 194, 115, .4) transparent;
}
.acc-card {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding: 10px 10px 12px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s;
}
.acc-card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(228, 194, 115, .45); transform: translateY(-2px); }
.acc-img { aspect-ratio: 1; border-radius: 12px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.acc-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.acc-name { margin: 0 0 6px; font-family: var(--sans); font-size: 13.5px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(13.5px * 1.3 * 3); }
.acc-price { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.acc-price small { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); }
.acc-btn {
  margin-top: auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #2a1b05; background: linear-gradient(135deg, #fbe6a8, #e0b155 55%, #c99a3e); text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(228, 194, 115, .25), inset 0 1px 0 rgba(255, 255, 255, .5); transition: box-shadow .2s, filter .2s;
}
.acc-card:hover .acc-btn { box-shadow: 0 8px 24px rgba(228, 194, 115, .45), inset 0 1px 0 rgba(255, 255, 255, .5); filter: brightness(1.06); }
.acc-btn::after { content: ''; position: absolute; inset: 0; border-radius: 18px; }
.acc-btn svg { width: 14px; height: 14px; }
.acc-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.acc-note { margin: 0; text-align: center; font-size: 12px; color: var(--faint); }
@media (max-width: 720px) {
  .acc { padding: 34px 0 12px; }
  .acc-head, .acc-intro, .acc-note { padding: 0 20px; }
  .acc-chips {
    flex-wrap: wrap; justify-content: center; gap: 8px; width: auto; margin: 0 14px 20px; padding: 10px; border-radius: 22px;
  }
  .acc-chip { font-size: 14.5px; padding: 10px 15px; min-height: 44px; }
  .acc-chip::before { width: 7px; height: 7px; }
  .acc-cards { grid-auto-columns: 58%; padding: 4px 20px 12px; scroll-padding: 0 20px; }
}

/* ---------- Musique d'ambiance (bouton flottant) ---------- */
.music-btn {
  position: fixed; z-index: 60; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px; height: 48px; min-width: 48px; padding: 0 16px 0 13px; border-radius: 999px;
  border: 1.5px solid rgba(228, 194, 115, .55); background: rgba(8, 17, 29, .82); color: #fbf3e2;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  font: 600 13.5px/1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .3s;
}
.music-btn svg { width: 22px; height: 22px; flex: none; }
.music-btn:hover { border-color: var(--gold); background: rgba(20, 32, 50, .92); }
.music-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.music-btn.is-on { color: #2a1b05; background: linear-gradient(135deg, #fbe6a8, #e0b155 55%, #c99a3e); border-color: #fbe6a8; box-shadow: 0 0 0 4px rgba(228, 194, 115, .2), 0 10px 28px rgba(0, 0, 0, .45); }
@media (prefers-reduced-motion: no-preference) {
  .music-btn.is-on svg path:last-child { animation: music-wave 1.6s ease-in-out infinite; transform-origin: 12px 12px; }
}
@keyframes music-wave { 50% { opacity: .45; } }
@media (max-width: 720px) {
  .music-btn { padding: 0; width: 48px; justify-content: center; right: calc(12px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  .music-btn-label { display: none; }
}

/* ---------- Popup newsletter (guide offert) ---------- */
.nl[hidden] { display: none; }
.nl { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nl-backdrop { position: absolute; inset: 0; background: rgba(4, 9, 16, .55); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.nl-card {
  position: relative; pointer-events: auto; display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center;
  width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px 30px 26px 26px; border-radius: 24px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(200, 16, 46, .18), transparent 55%), linear-gradient(160deg, #13233a, #0a1524 70%);
  border: 1px solid rgba(228, 194, 115, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .26s ease, transform .26s ease;
}
.nl.is-open .nl-backdrop { opacity: 1; }
.nl.is-open .nl-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nl-card, .nl-backdrop { transition: none; } }
.nl-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 17, 29, .85); color: #fbf3e2; cursor: pointer;
}
.nl-close svg { width: 18px; height: 18px; }
.nl-close:hover { border-color: var(--gold); }
.nl-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nl-cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.nl-eyebrow { margin: 0 0 8px; }
.nl h2 { margin: 0 0 10px; padding-right: 36px; font-family: var(--serif); font-weight: 600; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.15; outline: none; }
.nl h2 em { color: var(--gold); font-style: italic; }
.nl-desc { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.nl-desc strong { color: var(--ink); }
.nl-row { display: flex; gap: 8px; }
.nl-row input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(228, 194, 115, .45);
  background: rgba(255, 255, 255, .06); color: var(--ink); font: 500 16px var(--sans);
}
.nl-row input::placeholder { color: rgba(247, 240, 227, .5); }
.nl-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(228, 194, 115, .25); }
.nl-submit, .nl-download {
  flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px var(--sans); color: #2a1b05; background: linear-gradient(135deg, #fbe6a8, #e0b155 55%, #c99a3e); text-decoration: none;
  box-shadow: 0 8px 22px rgba(228, 194, 115, .3);
}
.nl-submit:disabled { opacity: .7; cursor: wait; }
.nl-submit:focus-visible, .nl-download:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nl-download svg { width: 20px; height: 20px; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-consent { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.nl-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.nl-msg { margin: 8px 0 0; min-height: 1em; font-size: 13.5px; font-weight: 600; color: var(--gold); }
.nl-msg:empty { margin: 0; min-height: 0; }
.nl-msg.is-error { color: #ff9b9b; }
.nl-legal { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--faint); }
.nl-legal a { color: var(--muted); }
@media (max-width: 720px) {
  .nl { align-items: flex-end; padding: 0 0 env(safe-area-inset-bottom); }
  .nl-card { grid-template-columns: 1fr; gap: 0; width: 100%; max-height: 88vh; padding: 22px 18px 20px; border-radius: 22px 22px 0 0; }
  .nl-cover { display: none; }
  .nl-row { flex-direction: column; }
  .nl-row input { flex: none; width: 100%; }
  .nl-submit, .nl-download { width: 100%; }
}

/* Lien « guide offert » + crédit musique (pied de page) */
.footer .credit { font-size: 11.5px; color: var(--faint); }
.footer .credit a { color: var(--faint); }
.footer .guide-link { color: var(--gold); font-weight: 700; }

/* ---------- v9 : panier Amazon en un clic ---------- */
.cta-cart { width: 100%; justify-content: center; text-align: center; }
.cart-note { margin: 8px 2px 0; font-size: 11.5px; line-height: 1.4; color: var(--faint); text-align: center; }
.cta-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 11px 16px;
  border-radius: 999px; border: 1px solid rgba(228, 194, 115, .45); background: rgba(255, 255, 255, .04);
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s;
}
.cta-secondary svg { width: 16px; height: 16px; }
.cta-secondary:hover { background: rgba(228, 194, 115, .12); border-color: var(--gold); }
.panel.is-changing > .cart-note, .panel.is-changing > .cta-secondary { opacity: 1; transform: none; }

/* ---------- v9 : avant / après dans l'essayage ---------- */
.ba-before { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ba-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#treeOverlay { z-index: 2; }
.stage-tip { z-index: 6; }
.stage.ba-only-before #treeOverlay { pointer-events: none; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; z-index: 5; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; outline: none;
}
.ba-handle::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
.ba-knob {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: #1a1206; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.ba-knob svg { width: 22px; height: 22px; }
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 4px rgba(228, 194, 115, .7), 0 6px 18px rgba(0, 0, 0, .45); }
.ba-tag { position: absolute; top: 12px; z-index: 4; padding: 5px 12px; border-radius: 999px; background: rgba(8, 14, 24, .72); backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; pointer-events: none; }
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
.ba-modes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); }
.ba-modes button {
  flex: 1 1 0; min-width: 0; padding: 9px 8px; border: 0; border-radius: 999px; background: none; color: var(--muted);
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.ba-modes button[aria-pressed="true"] { background: linear-gradient(135deg, #f6dc94, #d6a648 55%, #b8862d); color: #2a1b05; }
.ba-modes button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 400px) { .ba-modes button { font-size: 12.5px; padding: 9px 4px; } }

/* ---------- v10 : compte à rebours « Noël dans X jours » ---------- */
.countdown {
  display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 8px 18px 8px 10px;
  border-radius: 999px; border: 1px solid rgba(228, 194, 115, .38);
  background: linear-gradient(135deg, rgba(228, 194, 115, .12), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px rgba(0, 0, 0, .25);
}
.cd-star { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #2a1b05; background: radial-gradient(circle at 35% 30%, #fbe6a8, #d6a648 60%, #b8862d); box-shadow: 0 0 14px rgba(228, 194, 115, .45); }
.cd-star svg { width: 18px; height: 18px; }
.cd-text { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.cd-pre, .cd-unit, .cd-sub { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cd-num { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.cd-big { font-family: var(--serif); font-size: 21px; font-weight: 600; font-style: italic; color: var(--gold); line-height: 1.1; }
.cd-text[data-mode="xmas"], .cd-text[data-mode="ny"] { flex-direction: column; align-items: flex-start; gap: 2px; }
.cd-sub { letter-spacing: .06em; text-transform: none; font-weight: 500; font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .cd-star { animation: cdTwinkle 3.6s ease-in-out infinite; }
  @keyframes cdTwinkle { 0%, 100% { box-shadow: 0 0 10px rgba(228, 194, 115, .35); } 50% { box-shadow: 0 0 22px rgba(228, 194, 115, .75); } }
}
@media (max-width: 720px) {
  .countdown { margin-top: 10px; padding: 4px 14px 4px 5px; gap: 9px; }
  .cd-star { width: 26px; height: 26px; }
  .cd-star svg { width: 14px; height: 14px; }
  .cd-num { font-size: 22px; }
  .cd-pre, .cd-unit { font-size: 10.5px; }
  .cd-big { font-size: 17px; }
}

/* ---------- Pied du sapin : cadeaux + lutins (calques détourés posés devant la photo) ---------- */
.tree-floor { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.tree-floor img { -webkit-user-drag: none; user-select: none; }
.floor-gifts, .floor-elf {
  position: absolute; bottom: 1.6%; height: auto; opacity: 0;
  transition: opacity .45s ease .32s, filter .9s ease;
}
.floor-gifts {
  left: 50%; transform: translateX(-50%);
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)) brightness(1.03) saturate(1.05);
}
.floor-gifts.is-active, .floor-elf.is-active { opacity: 1; transition: opacity .7s ease, filter .9s ease; }
.tree-floor.no-fade .floor-gifts, .tree-floor.no-fade .floor-elf { transition: none; }
.floor-elf { bottom: 1.3%; z-index: 2; filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .5)); }
.floor-elf.side-left { left: 0; }
.floor-elf.side-right { right: 0; }


.floor-elf .elf-move { display: block; transform-origin: 50% 100%; }
.floor-elf .elf-img { display: block; width: 100%; height: auto; }
/* le lutin couché a la tête à gauche : on le retourne à gauche pour qu'il regarde vers le sapin */
.floor-elf.pose-lie.side-left .elf-img { transform: scaleX(-1); }
.floor-elf.pose-wave.side-left .elf-img { transform: scaleX(-1); }
/* sapin éteint : cadeaux un peu dans l'ombre ; allumé : reflets chauds */
.tree-photo.is-off .floor-gifts { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)) brightness(.78) saturate(.85); }
.tree-photo.is-off .floor-elf { filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .5)) brightness(.82) saturate(.9); }
.tree-photo.is-lit .floor-gifts { filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)) drop-shadow(0 -4px 18px rgba(255, 190, 100, .28)) brightness(1.08) saturate(1.08); }
.tree-photo.is-lit .floor-elf { filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .45)) brightness(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .floor-elf .elf-move { animation: elf-peek 9s ease-in-out infinite; }
  .floor-elf.pose-lie .elf-move { animation-name: elf-rock; }
  .floor-elf.is-cheering .elf-move { animation: elf-cheer 1.3s ease-out 1; }
}
@keyframes elf-peek {
  0%, 82%, 100% { transform: translateY(0) rotate(0); }
  86% { transform: translateY(-9%) rotate(-5deg); }
  90% { transform: translateY(0) rotate(0); }
  93% { transform: translateY(-5%) rotate(4deg); }
  96% { transform: translateY(0) rotate(0); }
}
@keyframes elf-rock {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(-4deg); }
  90% { transform: rotate(3deg); }
  95% { transform: rotate(-1.5deg); }
}
@keyframes elf-cheer {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(-22%) scale(1.04) rotate(-6deg); }
  40% { transform: translateY(0) scale(.98, 1.02); }
  60% { transform: translateY(-12%) rotate(5deg); }
  80% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* mobile : le bas de page ne passe plus sous le bouton musique flottant */
@media (max-width: 720px) {
  .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ---------- v12 : emballage assorti (papier cadeau + accessoire) dans le kit et le panier ---------- */
.products-sub { list-style: none; margin: 6px 2px 0; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.products-sub::before, .products-sub::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(228, 194, 115, .45), transparent); }
.product.is-gift .product-link { border-style: dashed; border-color: rgba(228, 194, 115, .32); }
.product.is-gift .product-role { color: var(--gold); opacity: .85; }
.cta-cart .cart-text { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2; }
.cta-cart .cart-sub { margin-top: 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; opacity: .78; }
.cta-cart .cart-sub:empty { display: none; }

/* v19 mobile (Search Console / Lighthouse) : liens « plus de styles » assez grands pour le doigt */
.more-styles a { display: inline-block; padding: 7px 4px; min-height: 24px; }
