/* Nour Atelier — palette : nuit, laiton, ivoire */
:root {
  --night: #15120e;
  --brass: #c9a25e;
  --ivory: #f3eee6;
  --soft: rgba(243, 238, 230, .68);
  --line: rgba(243, 238, 230, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(38px, 8vw, 64px); }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }
.muted { color: var(--soft); }
.head { margin-bottom: 40px; max-width: 640px; }
section[id] { scroll-margin-top: 70px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--brass); color: var(--night); box-shadow: 0 10px 40px -10px rgba(201, 162, 94, .6); }
.btn-wa:hover { background: #d8b373; box-shadow: 0 14px 50px -8px rgba(201, 162, 94, .75); }
.btn-big { min-height: 58px; font-size: 17px; width: 100%; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 14.5px; background: transparent; color: var(--ivory); border: 1px solid var(--line); }
.btn-small:hover { border-color: var(--brass); }

.demo-bar { background: var(--brass); color: var(--night); font-size: 12.5px; font-weight: 500; text-align: center; padding: 7px 16px; }

.header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad);
  background: rgba(21, 18, 14, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { font: 500 24px/1 var(--serif); text-decoration: none; letter-spacing: .02em; }
.logo span { font-style: italic; color: var(--brass); }

/* Accroche */
.hero { position: relative; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 40svh; min-height: 280px; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--night) 100%);
}
.glow {
  position: absolute; left: 53%; top: 32%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 110, .35), rgba(255, 196, 110, 0) 65%);
  mix-blend-mode: screen;
}
.hero-content { position: relative; padding: 0 var(--pad) 40px; margin-top: -24px; }
.hero .badge { position: absolute; left: var(--pad); top: -58px; background: rgba(21, 18, 14, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(201, 162, 94, .5); color: var(--brass); font-size: 13px; font-weight: 500;
}
.hero h1 { font-size: clamp(38px, 10.4vw, 84px); margin-bottom: 12px; }
.hero-sub { color: var(--soft); font-size: 16px; margin-bottom: 16px; max-width: 30em; }
.price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.price { font: 500 46px/1 var(--serif); color: var(--ivory); }
.old-price { color: var(--soft); font-size: 18px; }
.save { padding: 4px 10px; border-radius: 8px; background: rgba(201, 162, 94, .16); color: var(--brass); font-weight: 600; font-size: 14px; }
.trust { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--soft); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 22px; height: 22px; color: var(--brass); flex: none; }

/* Bandeau défilant */
.ticker { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { padding: 0 28px; font: italic 500 22px/1 var(--serif); white-space: nowrap; color: var(--ivory); }
.ticker span::after { content: "✦"; margin-left: 56px; font-style: normal; font-size: 12px; color: var(--brass); vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Bénéfices */
.benefits { padding-block: clamp(80px, 13vw, 150px); }
.benefit-grid { display: grid; gap: 14px; }
.benefit { padding: 28px; border-radius: var(--radius); background: rgba(243, 238, 230, .04); border: 1px solid var(--line); }
.benefit svg { width: 30px; height: 30px; color: var(--brass); margin-bottom: 20px; }
.benefit h3 { font-size: 30px; margin-bottom: 8px; }
.benefit p { color: var(--soft); }

/* Effet signature : la lampe s'allume */
.light-on { height: 220svh; position: relative; }
.light-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.light-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 70%; }
.light-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 52% 55%, rgba(255, 190, 100, .28), transparent 55%);
  opacity: var(--lit, 1); mix-blend-mode: screen;
}
.light-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: #070604; opacity: calc(.82 - var(--lit, 1) * .82);
}
.light-stage::before, .light-stage::after { pointer-events: none; }
.light-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: 8svh; text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.light-text p { font: 500 clamp(30px, 7.6vw, 72px)/1.08 var(--serif); }
.light-off-line { color: var(--soft); }
/* Lampe 3D : remplace la photo une fois prête ; le texte reçoit la lumière chaude */
.lampe-3d { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .9s ease; }
.lampe-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.light-stage picture { transition: opacity .9s ease; }
.light-stage.est-3d { background: #0b0907; }
.light-stage.est-3d .lampe-3d { opacity: 1; }
.light-stage.est-3d picture, .light-stage.est-3d::before, .light-stage.est-3d::after { opacity: 0; }
.light-stage.est-3d .light-text { text-shadow: 0 0 calc(var(--lit, 0) * 40px) rgba(255, 196, 120, calc(var(--lit, 0) * .4)); }
.light-stage.est-3d .light-on-line { color: color-mix(in srgb, var(--brass) 70%, #ffe1b0 calc(var(--lit, 0) * 30%)); }
.light-on-line { font-style: italic; color: var(--brass); margin-top: 6px; }

/* Photos */
.photos { padding-block: clamp(80px, 13vw, 150px) 0; }
.photo-grid { display: grid; gap: 14px; }
.photo-grid figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figure:first-child img { aspect-ratio: 4 / 5; }
.photo-grid figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(21, 18, 14, .65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px;
}

/* Fiche produit */
.specs { padding-block: clamp(80px, 13vw, 150px); }
.specs-grid { display: grid; gap: 32px; }
.specs h2 { margin-bottom: 14px; }
.spec-list { margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--soft); }
.spec-list dd { margin: 0; text-align: right; font-weight: 500; }

/* Commande */
.order { padding: 0 max(12px, calc(var(--pad) - 8px)) clamp(80px, 13vw, 150px); }
.order-card {
  max-width: 1000px; margin: 0 auto; display: grid; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #221c14, #17130e); border: 1px solid rgba(201, 162, 94, .25);
}
.order-card > img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 35%; }
.order-body { padding: 26px 22px; }
.order-body .btn-big { padding: 0 16px; }
.order h2 { font-size: 46px; margin-bottom: 12px; }
.qty { display: inline-flex; align-items: center; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ivory); font-size: 22px; cursor: pointer; border-radius: 50%; }
.qty button:hover { color: var(--brass); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; font-size: 17px; }
.steps { margin: 22px 0 0; padding-left: 22px; color: var(--soft); display: grid; gap: 6px; font-size: 15px; }
.steps li::marker { color: var(--brass); font-weight: 600; }

/* FAQ */
.faq { padding-bottom: clamp(80px, 13vw, 150px); max-width: 860px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 500 24px/1.2 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 300 28px/1 var(--sans); color: var(--brass); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--soft); max-width: 40em; }

/* Appel final */
.final {
  text-align: center; padding: clamp(90px, 14vw, 160px) var(--pad);
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 94, .22), transparent 60%);
  border-top: 1px solid var(--line);
}
.final-content { max-width: 560px; margin: 0 auto; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--soft); margin-bottom: 30px; }
.final strong { color: var(--ivory); }

.footer { padding: 36px var(--pad) 190px; font-size: 13.5px; text-align: center; color: var(--soft); display: grid; gap: 6px; }
.footer strong { color: var(--ivory); }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; z-index: 50;
  right: max(16px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px); /* au-dessus du badge Netlify */
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.wa-circle {
  position: relative; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.wa-circle svg { width: 30px; height: 30px; }
.wa-circle::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover .wa-circle { transform: scale(1.08); }
.wa-label {
  opacity: 0; visibility: hidden; transform: translateX(12px); pointer-events: none; transition: opacity .35s ease, transform .35s ease, visibility .35s;
  padding: 10px 16px; border-radius: 999px; background: var(--ivory); color: var(--night);
  font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.wa-float.show-label .wa-label { opacity: 1; visibility: visible; transform: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

.anim .reveal, .anim .hero-in { opacity: 0; }
.anim .wa-float { opacity: 0; transform: translateY(20px); }
.anim .glow { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-circle::before, .ticker-track { animation: none; }
  .light-on { height: auto; }
  .light-stage { --lit: 1; }
  .light-stage { position: relative; height: 80svh; }
}

/* Ordinateur */
@media (min-width: 900px) {
  .hero { min-height: calc(100vh - 100px); display: flex; align-items: center; overflow: hidden; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { height: 100%; min-height: 0; object-position: 50% 50%; }
  .hero-media::after { background: linear-gradient(90deg, rgba(21, 18, 14, .92) 0%, rgba(21, 18, 14, .55) 34%, transparent 58%), linear-gradient(180deg, transparent 75%, var(--night)); }
  .glow { left: 51%; top: 42%; width: 50vw; height: 50vw; }
  .hero-content { margin: 0; padding: 60px var(--pad); max-width: 700px; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 84px); }
  .hero .badge { position: static; background: transparent; }
  .hero h1 { margin-bottom: 16px; }
  .btn-big { width: auto; padding: 0 34px; }
  .trust { grid-template-columns: auto auto; justify-content: start; gap: 24px; }
  .benefit-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .photo-grid { grid-template-columns: 1fr 1.25fr; grid-template-rows: auto auto; gap: 18px; }
  .photo-grid figure:first-child { grid-row: span 2; }
  .photo-grid figure:first-child img { height: 100%; }
  .specs-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .order-card { grid-template-columns: 1fr 1fr; }
  .order-card > img { aspect-ratio: auto; height: 100%; }
  .order-body { padding: 48px; align-self: center; }
  .footer { padding-bottom: 48px; }
}

/* Bouton flottant effacé quand il passerait sur un bouton, un lien ou un texte */
.wa-float > * { transition: opacity .25s ease, transform .25s ease; }
.wa-float.is-hidden { pointer-events: none; }
.wa-float.is-hidden > * { opacity: 0; }

.wa-float.is-hidden > *, .wa-float.is-hidden .wa-label { opacity: 0 !important; }
