/* Dar Tmer Nador · boutique de dattes prestige (démo OREN) */

:root {
  --bg: #f4eee3;
  --paper: #fbf8f2;
  --ink: #2a1a12;
  --ink-2: #5c4436;
  --line: rgba(42, 26, 18, .14);
  --gold: #b08d57;
  --gold-ink: #7d5f2e;
  --gold-light: #dcc08b;
  --wine: #7a1e2b;
  --dark: #1e130d;
  --dark-2: #2a1b13;
  --cream-on-dark: #efe5d3;
  --muted-on-dark: #bba78e;

  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ar: "Aref Ruqaa", "Amiri", serif;
  --script: "Great Vibes", cursive;

  --wrap: 1240px;
  --gutter: 20px;
  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:focus { left: 8px; }
.hide-sm, .promo .dot.hide-sm { display: none; }

[lang="ar"] { font-family: var(--ar); letter-spacing: 0; }
/* Les accents arabes suivent l'alignement de la mise en page française */
[dir="rtl"] { text-align: left; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(180deg, #d5b67c, #b48e52); color: #22150d; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.btn--gold:hover { background: linear-gradient(180deg, #dfc38c, #bd9759); }
.btn--line { border-color: rgba(239, 229, 211, .45); color: var(--cream-on-dark); }
.btn--line:hover { border-color: var(--gold-light); color: #fff; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #3d271b; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; justify-content: space-between; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: none; border-radius: 50%; cursor: pointer; position: relative; color: inherit;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(42, 26, 18, .06); }

.eyebrow { font-family: var(--ar); color: var(--gold-ink); font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.eyebrow:not([lang]) { font-family: var(--sans); font-size: 14px; font-weight: 600; }
.eyebrow--light { color: var(--gold-light); }

/* Bandeau */
.promo { background: var(--dark); color: var(--muted-on-dark); font-size: 13px; text-align: center; padding: 8px var(--gutter); }
.promo .dot { display: inline-block; width: 4px; height: 4px; margin: 0 12px 2px; border-radius: 50%; background: var(--gold); vertical-align: middle; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 40; background: rgba(244, 238, 227, .88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold-ink); }
.brand__mark { width: 34px; height: 34px; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__word { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.brand__city { font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); margin-top: 4px; }
.header__actions { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }

.nav { position: fixed; inset: 64px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav a { padding: 14px 0; font-family: var(--serif); font-size: 24px; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:last-child { border: 0; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 20%, #3a2418 0%, var(--dark) 62%); color: var(--cream-on-dark); overflow: hidden; }
.hero__inner { display: grid; gap: 44px; padding-top: 28px; padding-bottom: 64px; }
.hero__text { order: 2; }
.hero__ar { font-size: 34px; color: var(--gold-light); line-height: 1; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 11vw, 84px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; color: #f7efe1; }
.hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero__lead { margin-top: 22px; font-size: 17px; color: #d7c8b2; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 auto; padding: 0 18px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 10px 18px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(220, 192, 139, .2); font-size: 13px; line-height: 1.4; color: var(--muted-on-dark); }
.hero__facts strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; color: #f4e9d6; margin-bottom: 2px; }

.hero__visual { position: relative; order: 1; margin: 0 auto; width: min(82%, 460px); }
.arch { position: relative; border-radius: 999px 999px 4px 4px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.arch::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30, 19, 13, .55) 0%, rgba(30, 19, 13, 0) 38%); pointer-events: none; }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(232, 205, 150, .55); border-radius: inherit; pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; animation: heroIn 1.6s var(--ease) both; }
.hero__visual::before { content: ""; position: absolute; inset: -14px 0 auto 22px; height: 70%; border: 1px solid rgba(220, 192, 139, .28); border-bottom: 0; border-radius: 999px 999px 0 0; }
.hero__inset { position: absolute; left: -10%; bottom: -22px; width: 36%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 5px solid var(--dark); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); }
.hero__inset img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.seal { position: absolute; right: -9%; top: 10%; width: 30%; font-family: var(--sans); font-weight: 600; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
@keyframes heroIn { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }

/* Engagements */
.promise { background: var(--dark-2); color: var(--cream-on-dark); border-top: 1px solid rgba(220, 192, 139, .14); }
.promise__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.promise__list li { padding: 20px 14px 20px 0; font-size: 13px; color: var(--muted-on-dark); line-height: 1.45; }
.promise__list li:nth-child(n+3) { border-top: 1px solid rgba(220, 192, 139, .14); }
.promise__k { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-light); margin-bottom: 2px; }
.promise__list--dup { display: none; }

/* Introduction */
.intro { padding: 72px 0 84px; overflow: hidden; }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "body body" "a b"; gap: 40px 14px; align-items: start; }
.intro__body { grid-area: body; text-align: center; }
.intro__body [dir="rtl"] { text-align: center; }
.intro__text { font-family: var(--serif); font-size: clamp(27px, 7vw, 42px); line-height: 1.2; letter-spacing: -.015em; }
.intro__sub { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 4.8vw, 25px); line-height: 1.3; color: var(--gold-ink); }
.intro__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro__stats li { display: flex; flex-direction: column; gap: 2px; padding: 16px 6px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.intro__stats li + li { border-left: 1px solid var(--line); }
.intro__stats strong { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.1; color: var(--ink); }
.intro__fig { position: relative; margin: 0; }
.intro__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); }
.intro__fig::after { content: ""; position: absolute; inset: 7px 7px auto; aspect-ratio: 3 / 4.3; border: 1px solid rgba(255, 246, 228, .6); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.intro__fig figcaption { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(251, 248, 242, .92); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink); }
.intro__fig--a { grid-area: a; }
.intro__fig--b { grid-area: b; margin-top: 54px; }

/* Titres de section */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(36px, 8vw, 60px); }
.section-head__note { max-width: 26em; color: var(--ink-2); font-size: 15px; }

/* Boutique */
.shop { padding-bottom: 96px; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 26px; padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e8dfcf; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card__media .alt { opacity: 0; }
.card__badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(251, 248, 242, .92); color: var(--wine); font-size: 12px; font-weight: 600; }
.card__body { display: flex; flex-direction: column; padding-top: 12px; flex: 1; }
.card__cat { font-size: 12px; color: var(--gold-ink); font-weight: 600; }
.card__title { font-size: 19px; line-height: 1.15; margin-top: 3px; }
.card__ar { font-size: 15px; color: var(--ink-2); margin-top: 3px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.card__price { font-size: 15px; font-weight: 600; }
.card__price small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
.card__add { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.card__add svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.card__add:hover { background: var(--ink); color: var(--paper); }
.card--cta { justify-content: flex-end; gap: 10px; padding: 22px 18px; border-radius: 999px 999px var(--radius) var(--radius); background: radial-gradient(120% 80% at 50% 0%, #3a2418, var(--dark)); color: var(--cream-on-dark); min-height: 340px; text-align: center; align-items: center; }
.card--cta h3 { font-size: 24px; color: #f7efe1; }
.card--cta p { font-size: 14px; color: var(--muted-on-dark); line-height: 1.45; }
.card--cta__ar[dir="rtl"] { font-size: 26px; color: var(--gold-light) !important; text-align: center; }
.card--cta .btn { margin-top: 8px; min-height: 44px; padding: 0 18px; font-size: 14px; }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__media .alt { opacity: 1; }
}

/* Sur mesure */
.builder { background: radial-gradient(100% 80% at 10% 10%, #34201a 0%, var(--dark) 70%); color: var(--cream-on-dark); padding: 84px 0; }
.builder__inner { display: grid; gap: 34px; grid-template-areas: "head" "preview" "form"; }
.builder__head { grid-area: head; }
.builder__preview { grid-area: preview; }
.builder__form { grid-area: form; }
.builder__preview { text-align: center; }
.stage { position: relative; width: min(86%, 460px); margin: 0 auto; }
.stage svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
#lidNames { transition: font-size .2s; }
#boxSvg .scale-g { transform: scale(var(--k, 1)); transform-origin: 200px 196px; transition: transform .8s var(--ease); }
#lidG { opacity: 0; transform: translateY(-46px) scale(1.08); transform-origin: 200px 196px; transition: opacity .45s var(--ease), transform .7s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.stage[data-view="lid"] #lidG { opacity: 1; transform: none; }
.dt { transform-box: fill-box; transform-origin: center; animation: dtIn .55s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes dtIn { from { opacity: 0; transform: translateY(-16px) scale(.3); } to { opacity: 1; transform: none; } }
.orn { transform-box: fill-box; transform-origin: center; animation: dtIn .7s cubic-bezier(.34, 1.56, .64, 1) both; }
#centerOrn:empty { display: none; }
.tp--in { transform-box: fill-box; transform-origin: center; animation: tpIn .4s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes tpIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.extra { opacity: 0; transform: scale(.55); transform-box: fill-box; transform-origin: center; transition: opacity .4s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.extra.is-on { opacity: 1; transform: none; }
#veil { opacity: 0; transition: opacity .5s var(--ease); }
#veil.is-on { opacity: .95; }
.view-toggle { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border: 1px solid rgba(220, 192, 139, .28); border-radius: 999px; }
.view-toggle button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--muted-on-dark); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s; }
.view-toggle button[aria-pressed="true"] { background: var(--gold-light); color: #22150d; }
.builder__hint { font-size: 13px; color: var(--muted-on-dark); margin-top: 14px; }
.builder h2 { font-size: clamp(36px, 8vw, 56px); color: #f7efe1; }
.builder__lead { color: #d0bfa7; margin-top: 12px; }

.field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field legend, .field--text > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.field__sub { font-weight: 400; opacity: .7; }
.field--text { display: block; }
.field--text input, .field--text select, .field--text textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.field--text textarea { resize: vertical; min-height: 70px; }
.field--text input:focus, .field--text select:focus, .field--text textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, .25); }
.builder .field--text input { background: rgba(255, 255, 255, .06); border-color: rgba(220, 192, 139, .3); color: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px; border: 1px solid rgba(220, 192, 139, .28); border-radius: 999px; cursor: pointer; font-size: 14px; transition: border-color .2s, background .2s; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch__dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.swatch__dot--brocart { background: repeating-linear-gradient(45deg, #ebe0cb 0 5px, #c9ad79 5px 7px); }
.swatch__dot--ivoire { background: radial-gradient(circle at 35% 30%, #fbf6ec, #e2d5bd); }
.swatch__dot--velours { background: radial-gradient(circle at 35% 30%, #93303c, #4a0f18); }
.swatch:has(input:checked) { border-color: var(--gold-light); background: rgba(220, 192, 139, .12); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills--col { flex-direction: column; }
.pill { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; transition: all .2s; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill b { font-weight: 600; white-space: nowrap; }
.pill:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.pill:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.builder .pill { border-color: rgba(220, 192, 139, .28); }
.builder .pill:has(input:checked) { background: var(--gold-light); border-color: var(--gold-light); color: #22150d; }
.pills--col .pill { border-radius: var(--radius); }

.builder__total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 22px; border-top: 1px solid rgba(220, 192, 139, .2); }
.builder__total p span { display: block; font-size: 13px; color: var(--muted-on-dark); }
.builder__total strong { font-family: var(--serif); font-size: 34px; font-weight: 500; color: #f7efe1; }

/* Occasions */
.occasions { padding: 96px 0 40px; }
.occ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.occ { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 3 / 4; padding: 16px; border: 0; border-radius: var(--radius); overflow: hidden; text-align: left; color: #fff; cursor: pointer; background: var(--dark); }
.occ img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.occ::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, 0) 35%, rgba(20, 12, 8, .85) 100%); }
.occ > span { position: relative; z-index: 1; }
.occ__ar { font-size: 20px; color: var(--gold-light); line-height: 1.5; margin-bottom: 4px; }
.occ__title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.occ__text { font-size: 13px; color: #e6d9c5; margin-top: 6px; line-height: 1.4; display: none; }
.occ:hover img { transform: scale(1.05); }

/* Calligraphie */
.quote { position: relative; overflow: hidden; padding: 84px 0 90px; background: radial-gradient(120% 90% at 85% 15%, #7d1d2e 0%, #4b0e1a 52%, #2a060d 100%); color: #f6e7d6; }
.quote::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 2l20 20-20 20L2 22z' fill='none' stroke='%23e8c98f' stroke-width='1.2'/%3E%3Cpath d='M22 13l9 9-9 9-9-9z' fill='%23e8c98f'/%3E%3C/svg%3E"); }
.quote__grid { position: relative; display: grid; gap: 52px; align-items: center; }
.quote__body, .quote__body [dir="rtl"] { text-align: center; }
.quote__kicker { font-size: 13px; font-weight: 600; color: #e9cd94; }
.quote__ar { margin: 8px 0 6px; font-size: clamp(56px, 15.5vw, 118px); line-height: 1.45; background: linear-gradient(100deg, #a9793a 0%, #f7e2aa 28%, #c99a52 48%, #f5dba0 66%, #9d7334 100%); background-size: 220% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote__body.is-in .quote__ar { animation: foil 2.6s var(--ease) .2s both; }
@keyframes foil { from { background-position: 100% 0; } to { background-position: 0 0; } }
.quote__fr { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 5.6vw, 30px); color: #fbefe0; }
.quote__text { max-width: 30em; margin: 16px auto 28px; font-size: 15px; color: #dcbfb4; }
.quote__fig { position: relative; margin: 0 auto; width: min(84%, 420px); }
.quote__fig::before { content: ""; position: absolute; inset: -12px -12px 28px; border: 1px solid rgba(233, 205, 148, .35); border-radius: 999px 999px 0 0; border-bottom: 0; }
.quote__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .75); }
.quote__frame img { width: 100%; height: 100%; object-fit: cover; }
.quote__fig figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: #e9cd94; }

/* Savoir-faire */
.craft { padding: 40px 0 96px; }
.craft__inner { display: grid; gap: 40px; }
.craft__img { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-width: 520px; }
.craft__img img { width: 100%; height: 100%; object-fit: cover; }
.craft h2 { font-size: clamp(34px, 7.5vw, 54px); max-width: 12em; }
.steps { margin-top: 30px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps__n { font-family: var(--serif); font-size: 20px; color: var(--gold-ink); font-style: italic; }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* Instagram */
.insta { background: var(--paper); padding: 88px 0; }
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.insta__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }

/* FAQ */
.faq { padding: 96px 0; }
.faq__inner { display: grid; gap: 36px; }
.faq h2 { font-size: clamp(34px, 7.5vw, 54px); }
.faq__lead { color: var(--ink-2); margin: 14px 0 22px; max-width: 24em; }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--gold-ink); border-bottom: 1.5px solid var(--gold-ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 36em; }

/* Pied de page */
.footer { background: var(--dark); color: var(--muted-on-dark); padding: 72px 0 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 36px; }
.footer__ar { font-size: 40px; color: var(--gold-light); line-height: 1; }
.footer__word { font-family: var(--serif); font-size: 26px; color: #f4e9d6; margin: 10px 0 10px; }
.footer__brand p:last-child { max-width: 24em; }
.footer__h { font-family: var(--sans); font-size: 13px; font-weight: 600; color: #f4e9d6; margin-bottom: 12px; }
.footer ul li { padding: 5px 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(220, 192, 139, .14); font-size: 13px; }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #1f9e57; color: #fff; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }

/* Fiche produit */
.modal { width: min(100% - 24px, 980px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(20, 12, 8, .62); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: 10px; top: 10px; z-index: 3; background: rgba(251, 248, 242, .9); }
.modal__inner { display: grid; }
.modal__gallery { background: #e8dfcf; }
.modal__gallery > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 58vh; }
.modal__thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.modal__thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; background: none; opacity: .7; }
.modal__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 24px 20px 28px; }
.modal__info h2 { font-size: 32px; }
.modal__ar { font-size: 20px; color: var(--ink-2); margin-top: 4px; }
.modal__desc { margin: 14px 0 22px; color: var(--ink-2); }
.modal__buy { display: flex; gap: 10px; align-items: center; }
.modal__note { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.qty { display: flex; align-items: center; height: 50px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }

/* Panier */
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(20, 12, 8, .5); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(100%, 440px); display: flex; flex-direction: column; background: var(--paper); transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 26px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 20px 20px; }
.drawer__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total strong { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.drawer__fine { font-size: 13px; color: var(--ink-2); margin: 2px 0 14px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 90px; object-fit: cover; border-radius: 3px; }
.line__name { font-family: var(--serif); font-size: 18px; line-height: 1.15; }
.line__opt { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.line__qty { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.line__qty button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; }
.line__qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.line__price { font-weight: 600; white-space: nowrap; }
.empty__ar[dir="rtl"] { text-align: center; }
.empty { text-align: center; padding: 56px 0; color: var(--ink-2); }
.empty__ar { font-size: 30px; color: var(--gold-ink); margin-bottom: 6px; }
.empty .btn { margin-top: 20px; }
.checkout { padding-top: 22px; }
.checkout h3 { font-size: 22px; margin-bottom: 16px; }
.checkout .field { margin-bottom: 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s var(--ease); white-space: nowrap; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Mobile et tablette : l'aperçu du coffret reste visible pendant qu'on fait ses choix */
@media (max-width: 999px) {
  .builder__preview { position: sticky; top: 64px; z-index: 3; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) 10px; background: rgba(30, 19, 13, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 22px -18px rgba(0, 0, 0, .9); }
  .stage { width: min(70vw, 320px); }
  .view-toggle { margin-top: 8px; }
  .builder__hint { margin-top: 6px; font-size: 12px; }
  .stage { transition: width .35s var(--ease); }
  .builder__preview.is-typing .stage { width: 34vw; }
  .builder__preview.is-typing .view-toggle, .builder__preview.is-typing .builder__hint { display: none; }
}

/* Tablette */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hide-sm { display: inline; }
  .promo .dot.hide-sm { display: inline-block; }
  .show-sm { display: none; }
  .icon-btn.hide-sm { display: inline-grid; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .promise__list { grid-template-columns: repeat(4, 1fr); }
  .promise__list li { border-top: 0 !important; padding: 26px 18px 26px 0; }
  .promise__list li + li { border-left: 1px solid rgba(220, 192, 139, .14); padding-left: 18px; }
  .occ-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .occ { padding: 20px; }
  .occ__text { display: block; }
  .insta__grid { grid-template-columns: repeat(6, 1fr); }
  .modal__inner { grid-template-columns: 1.05fr 1fr; }
  .modal__gallery > img { max-height: none; }
  .modal__info { padding: 44px 36px; align-self: center; }
}

/* Bureau */
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav { position: static; inset: auto; flex-direction: row; gap: 30px; padding: 0; background: none; border: 0; opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 6px 0; font-family: var(--sans); font-size: 15px; font-weight: 500; border: 0; position: relative; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav a:hover::after { transform: scaleX(1); }
  .header__inner { height: 76px; }

  .hero__inner { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; padding-top: 72px; padding-bottom: 110px; }
  .hero__text { order: 0; }
  .hero__cta .btn { flex: none; padding: 0 28px; }
  .hero__facts { display: flex; justify-content: flex-start; gap: 10px 40px; font-size: 14px; }
  .hero__ar { font-size: 42px; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 76px); }
  .hero__visual { order: 0; width: 88%; max-width: 480px; margin-right: 6%; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 48px 24px; }
  .card__title { font-size: 21px; }
  .builder { padding: 120px 0; }
  .builder__inner { grid-template-columns: 1fr 1fr; grid-template-areas: "preview head" "preview form"; gap: 30px 80px; align-items: center; }
  .builder__head { align-self: end; }
  .builder__form { align-self: start; }
  .builder__preview { align-self: start; position: sticky; top: 104px; }
  .stage { width: 100%; }
  .craft__inner { grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
  .faq__inner { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .intro { padding: 130px 0 120px; }
  .intro__grid { grid-template-columns: 1fr 1.55fr 1fr; grid-template-areas: "a body b"; gap: 64px; align-items: center; }
  .intro__fig--a { margin-top: -90px; }
  .intro__fig--b { margin-top: 150px; }
  .intro__stats strong { font-size: 36px; }
  .quote { padding: 120px 0; }
  .quote__grid { grid-template-columns: 1.1fr .9fr; gap: 90px; }
  .quote__ar { font-size: clamp(64px, 5.6vw, 84px); }
  .quote__fig { width: 100%; }
}

/* Téléphone uniquement : moins de vide, bandeau défilant, intro photos en tête */
@media (max-width: 639px) {
  .hero__inner { gap: 36px; padding-bottom: 40px; }
  /* Chiffres du hero : trois colonnes égales, centrées, séparées par un filet */
  .hero__facts { grid-template-columns: repeat(3, 1fr); justify-content: stretch; gap: 0; margin-top: 26px; padding-top: 18px; text-align: center; font-size: 12.5px; }
  .hero__facts li { padding: 0 6px; }
  .hero__facts li + li { border-left: 1px solid rgba(220, 192, 139, .2); }
  .hero__facts strong { font-size: 20px; }

  .promise { overflow: hidden; }
  .promise__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
  .promise__list, .promise__list.wrap, .promise__list--dup { display: flex; flex: none; width: auto; max-width: none; margin: 0; padding: 0; }
  .promise__list li { display: flex; align-items: baseline; gap: 8px; padding: 15px 0; border: 0 !important; white-space: nowrap; }
  .promise__list li::after { content: ""; align-self: center; width: 5px; height: 5px; margin: 0 20px 0 12px; background: var(--gold); transform: rotate(45deg); }
  .promise__k { display: inline; margin: 0; font-size: 18px; }

  .intro { padding: 44px 0 56px; }
  .intro__grid { grid-template-columns: 1.12fr .88fr; grid-template-areas: "a b" "body body"; gap: 30px 0; }
  .intro__fig--a { z-index: 1; }
  .intro__fig--b { z-index: 2; margin: 70px 0 0 -26px; }
  .intro__fig--b img { border: 5px solid var(--bg); }
  .intro__fig--b::after { inset: 12px 12px auto; }
  .intro__body, .intro__body [dir="rtl"] { text-align: left; }
  .intro__text { font-size: 27px; }
  .intro__sub { font-size: 20px; }
  .intro__stats { margin-top: 26px; }
  .intro__stats li { align-items: center; justify-content: flex-start; padding: 16px 6px 14px; text-align: center; font-size: 12.5px; }
  .intro__stats strong { font-size: 28px; }

  .shop { padding-bottom: 64px; }
  .builder { padding: 60px 0; }
  .occasions { padding: 52px 0 24px; }
  .section-head { margin-bottom: 22px; }
  .quote { padding: 60px 0 64px; }
  .craft { padding: 52px 0 60px; }
  .insta { padding: 56px 0; }
  .faq { padding: 56px 0 64px; }
  .footer { padding-top: 56px; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .promise__track { animation: none !important; }
  .promise { overflow-x: auto; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
