:root {
  --paper: #f6f1e8;
  --canvas: #efe6d6;
  --ink: #1b1a17;
  --ink-soft: #5b564c;
  --line: #ddd2bf;
  --accent: #1f4d3a; /* vert basque */
  --white: #fffdf9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

.announce {
  background: var(--ink); color: var(--paper);
  text-align: center; font-size: .8rem; letter-spacing: .06em;
  padding: .55rem 1rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 241, 232, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .02em; }
.logo span { font-style: italic; font-weight: 400; }
.nav { display: flex; gap: 2rem; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 1px; background: var(--ink); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.cart-btn { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: .5rem; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem;
  background: var(--ink); color: var(--paper); border-radius: 999px; font-size: .75rem;
}
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.burger { display: none; width: 28px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: .25s; }
.burger span:first-child { top: 5px; } .burger span:last-child { bottom: 5px; }
.burger[aria-expanded="true"] span:first-child { top: 9px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { bottom: 9px; transform: rotate(-45deg); }

/* Common */
.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .75rem; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h4 { font-size: 1.35rem; margin-bottom: .35rem; }
em { font-style: italic; }
.muted { color: var(--ink-soft); margin-top: .75rem; }
.script-sign { font-family: var(--script); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.script-sign.big { font-size: 3.6rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 2rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }
.btn-link { border-color: transparent; padding-left: 0; padding-right: 0; }
.btn-link:hover { color: var(--accent); }
.btn-wide { width: 100%; }

.section { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3rem); max-width: 1240px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3.5rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1400px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); margin-bottom: 1.5rem; }
.hero h1 em { font-family: var(--script); font-style: normal; font-size: 1.35em; line-height: .8; }
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 32rem; margin-bottom: 2.25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.hero-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 62%; }

/* Hero animation : rideau d'ouverture, travelling lent, néon qui scintille */
.hero-img { position: relative; overflow: hidden; animation: heroReveal 1.4s cubic-bezier(.77,0,.18,1) both; }
.hero-img img { transform-origin: 50% 70%; animation: heroDrift 18s ease-in-out 1.2s infinite alternate both; }
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(40% 30% at 22% 18%, rgba(255,170,80,.55), transparent 70%),
              radial-gradient(25% 20% at 68% 10%, rgba(255,190,110,.45), transparent 70%);
  animation: neonFlicker 6s steps(1) 1.4s infinite;
}
.hero-text > * { animation: riseIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(1) { animation-delay: .5s; }
.hero-text > :nth-child(2) { animation-delay: .65s; }
.hero-text > :nth-child(3) { animation-delay: .8s; }
.hero-text > :nth-child(4) { animation-delay: .95s; }
@keyframes heroReveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes heroDrift {
  0%   { transform: scale(1.18) translate(2%, 4%); }
  100% { transform: scale(1.04) translate(-2%, -3%); }
}
@keyframes neonFlicker {
  0%, 100% { opacity: .9; } 8% { opacity: .35; } 9% { opacity: .9; }
  43% { opacity: .55; } 44% { opacity: 1; } 71% { opacity: .4; } 72% { opacity: .85; } 73% { opacity: .5; } 74% { opacity: .95; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-img img, .hero-glow, .hero-text > * { animation: none !important; }
  .hero-glow { opacity: .8; }
}

/* Product */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.product-main-img { background: var(--canvas); overflow: hidden; }
.product-main-img img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 62% 60%; transition: transform .6s, filter .4s; }
.product-main-img:hover img { transform: scale(1.04); }
.product-main-img img { object-position: center 68%; }
.thumbs { display: flex; gap: .75rem; margin-top: .75rem; }
.thumb { width: 84px; height: 84px; padding: 0; border: 1px solid var(--line); opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:last-child img { object-position: 62% 60%; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--ink); }
.product-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.product-badges span { border: 1px solid var(--line); padding: .35rem .8rem; font-size: .75rem; letter-spacing: .08em; }
.product-info { position: sticky; top: 6rem; }
.product-title { font-size: clamp(2rem, 3.5vw, 2.8rem); }
.product-info .script-sign { margin: .25rem 0 1rem; }
.price { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 1.25rem; }
.product-desc { color: var(--ink-soft); margin-bottom: 2rem; }
.product-dims { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: -1rem 0 1.75rem; }
.product-dims span:last-child { color: var(--ink-soft); font-size: .95rem; }
.option { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.option-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.option-value { color: var(--ink-soft); font-size: .9rem; }
.swatches { display: flex; gap: .6rem; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.swatch.active { outline-color: var(--ink); }
.buy-row { display: flex; gap: .75rem; margin-bottom: 1.75rem; }
.qty { display: flex; border: 1px solid var(--ink); }
.qty button { width: 2.75rem; font-size: 1.1rem; }
.qty input { width: 2.5rem; text-align: center; border: 0; background: transparent; font: inherit; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.reassure { list-style: none; border-top: 1px solid var(--line); padding-top: 1.25rem; display: grid; gap: .5rem; font-size: .9rem; color: var(--ink-soft); }
.reassure li::before { content: "✦"; margin-right: .6rem; color: var(--ink); font-size: .7rem; }

.coming { margin-top: 6rem; text-align: center; }
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.coming-card {
  border: 1px dashed var(--ink-soft); padding: 3rem 1.5rem; display: grid; gap: .5rem;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(27,26,23,.03) 14px 15px);
}
.coming-name { font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.coming-tag { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* Atelier */
.atelier { max-width: none; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding-left: max(clamp(1rem, 4vw, 3rem), calc((100vw - 1240px) / 2)); padding-right: max(clamp(1rem, 4vw, 3rem), calc((100vw - 1240px) / 2)); }
.atelier .eyebrow { color: #b9b1a2; }
.atelier h2 { margin-bottom: 1.5rem; }
.atelier p { color: #d8d0c2; margin-bottom: 1rem; max-width: 34rem; }
.atelier .script-sign { color: var(--paper); }
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; align-content: center; }
.step { border-top: 1px solid #45423b; padding-top: 1rem; }
.step-n { font-family: var(--serif); font-style: italic; color: #b9b1a2; }
.step p { font-size: .92rem; }

/* Details */
.details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.details-grid > div { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.details-grid p { color: var(--ink-soft); font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 0; font-family: var(--serif); font-size: 1.35rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-soft); }

/* Forms */
.contact { max-width: 820px; }
.contact-form, .checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
label { display: grid; gap: .4rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
label.full, .full { grid-column: 1 / -1; }
input, textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  padding: .85rem 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem clamp(1rem, 4vw, 3rem); text-align: center; display: grid; gap: 1rem; justify-items: center; color: var(--ink-soft); }
.site-footer .logo { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: .85rem; }
.site-footer nav a:hover { color: var(--ink); }
.copy { font-size: .8rem; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(27, 26, 23, .45); z-index: 50; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 60;
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
}
.cart.open { transform: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-size: 1.7rem; }
.close { font-size: 2rem; line-height: 1; width: 2.25rem; height: 2.25rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: grid; gap: 1.25rem; align-content: start; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 3rem 0; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; align-items: center; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; background: var(--canvas); }
.cart-item.dark img { filter: invert(.9) hue-rotate(180deg) brightness(.85); }
.cart-item h4 { font-size: 1.15rem; margin: 0; }
.cart-item small { color: var(--ink-soft); display: block; }
.mini-qty { display: inline-flex; border: 1px solid var(--line); margin-top: .4rem; }
.mini-qty button { width: 1.8rem; height: 1.8rem; }
.mini-qty span { min-width: 1.6rem; display: grid; place-items: center; font-size: .9rem; }
.remove { font-size: .75rem; text-decoration: underline; color: var(--ink-soft); }
.cart-item-right { text-align: right; display: grid; gap: .4rem; justify-items: end; }
.cart-foot { border-top: 1px solid var(--line); padding: 1.5rem; display: grid; gap: .6rem; }
.cart-line { display: flex; justify-content: space-between; font-size: .95rem; }
.cart-line.total { font-family: var(--serif); font-size: 1.4rem; margin: .4rem 0 .8rem; }
.ship-progress { font-size: .85rem; color: var(--accent); margin-bottom: .4rem; }
.ship-bar { height: 3px; background: var(--line); margin-top: .4rem; }
.ship-bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
#checkoutBtn:disabled { opacity: .4; cursor: not-allowed; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(27, 26, 23, .55); display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: var(--paper); width: min(620px, 100%); max-height: 92vh; overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.75rem); }
.modal-box .close { position: absolute; top: 1rem; right: 1rem; }
.modal-box h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.checkout-summary { background: var(--canvas); padding: 1rem 1.25rem; font-size: .95rem; display: grid; gap: .3rem; }
.checkout-summary div { display: flex; justify-content: space-between; }
.checkout-summary .total { font-family: var(--serif); font-size: 1.25rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; }
.thanks { text-align: center; padding: 1rem 0; }
.thanks .script-sign { margin: 0 0 1rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80;
  transform: translate(-50%, 150%); background: var(--ink); color: var(--paper);
  padding: .9rem 1.5rem; font-size: .9rem; transition: transform .3s; max-width: calc(100% - 2rem);
}
.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .hero, .product, .atelier { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .product-info { position: static; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 400px; }
  .nav a { padding: 1rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
  .coming-grid, .details-grid, .steps, .contact-form, .checkout-form { grid-template-columns: 1fr; }
  .logo { font-size: 1.25rem; }
}
