@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);
}
.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; }
.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));
  -webkit-user-drag: none; user-select: none;
}
.tree-img.is-active { opacity: 1; z-index: 2; transition: opacity .7s ease; }
.tree-photo.no-fade .tree-img { transition: none; }
.tree-sparkle { position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen; }
.tree-sparkle i {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 214, .95) 0 12%, rgba(255, 214, 140, .45) 30%, transparent 70%);
  opacity: 0; animation: sparkle 3.6s ease-in-out infinite;
}
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.5); } 45% { opacity: .9; transform: scale(1); } 60% { opacity: .55; } }
.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: 4; left: 50%; top: 46%; 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; }
@media (hover: hover) { .tree-link:hover .tree-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.tree-hint { margin: 2px 0 0; font-size: 13.5px; color: var(--faint); text-align: center; }
.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; 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; }
.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: 24px; }
  .privacy { margin-bottom: 0; }
}
@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); }
  .tree-hint { font-size: 12.5px; }
  .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; }
  .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-sparkle { display: none; }
  .tree-img, .tree-photo { transition: none; }
}

/* 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; }
