/* Ser & Kammoun — boutique */
:root {
  --cacao: #3B241D;
  --or: #BF9252;
  --ivoire: #F8F1E5;
  --rose: #C47D8C;
  --cacao-doux: rgba(59, 36, 29, 0.74);
  --filet: rgba(191, 146, 82, 0.45);
  --ivoire-doux: rgba(248, 241, 229, 0.82);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "DM Serif Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --max: 1200px;
  --pad: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivoire);
  color: var(--cacao);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--or); }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; z-index: 50; padding: 0.7rem 1rem; background: var(--cacao); color: var(--ivoire); }
.skip:focus { left: 0; }

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

.eyebrow { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--or); margin-bottom: 1rem; }
.rule { display: block; width: 56px; height: 1px; background: var(--or); margin: 1.4rem 0; }

/* Photos produit sur fond blanc : « multiply » fond le blanc dans l'ivoire. */
.card-media img, .gallery img, .noel-media img, .coupe-image img, .line img, .track-items img {
  mix-blend-mode: multiply;
  filter: brightness(1.06);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem 2rem;
  padding: 0.7rem var(--pad);
  background: rgba(248, 241, 229, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--filet);
}
.brand { display: inline-flex; align-items: flex-end; gap: 0.35rem; text-decoration: none; color: var(--cacao); }
.brand-mark { width: 34px; height: 36px; flex: none; margin-bottom: 0.35rem; }
.brand-word { font-family: var(--display); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.brand-word .amp { color: var(--or); margin: 0 0.04em; }

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.8rem; margin-left: auto; }
.nav a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 0.3rem 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--rose); border-color: var(--rose); }

.cart-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; background: var(--cacao); color: var(--ivoire);
  border: 1px solid var(--cacao); cursor: pointer;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}
.cart-btn:hover { background: var(--or); border-color: var(--or); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count { min-width: 1.5em; padding: 0 0.35em; border-radius: 1em; background: var(--rose); color: #fff; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: 0.95rem 1.8rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; text-align: center; border: 1px solid var(--cacao); background: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--cacao); color: var(--ivoire); }
.btn-primary:hover { background: var(--or); border-color: var(--or); }
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-rose { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn-rose:hover { background: var(--cacao); border-color: var(--cacao); }
.btn-wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn-wa:hover { background: var(--cacao); border-color: var(--cacao); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-block { display: block; width: 100%; }

/* ---------- Accueil : image en fond ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(84vh, 780px); border-bottom: 1px solid var(--filet); }
.hero-text { align-self: center; padding: clamp(2.5rem, 6vw, 5rem) var(--pad); max-width: 640px; margin-left: auto; }
.hero-media { position: relative; min-height: 340px; overflow: hidden; background: #e9e4dc; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead { margin-top: 1.5rem; max-width: 30em; color: var(--cacao-doux); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.promises div { padding: 1.8rem 1rem; text-align: center; border-left: 1px solid var(--filet); }
.promises div:first-child { border-left: 0; }
.promises strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; font-style: italic; color: var(--cacao); }
.promises span { font-size: 0.92rem; color: var(--cacao-doux); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--pad); }
.section-head { text-align: center; }
.section-head .rule { margin-left: auto; margin-right: auto; }
.section-lead { color: var(--cacao-doux); max-width: 36em; margin: 0 auto; }
.shop { border-top: 1px solid var(--filet); }
section[id] { scroll-margin-top: 70px; }
.empty { text-align: center; color: var(--cacao-doux); padding: 2rem 0; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.tab {
  padding: 0.5rem 1.1rem; background: none; border: 1px solid var(--filet); cursor: pointer;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { border-color: var(--cacao); }
.tab.is-active { background: var(--cacao); border-color: var(--cacao); color: var(--ivoire); }

/* ---------- Cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2.5rem); margin-top: 2.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { display: flex; flex-direction: column; text-align: center; }
.card-media { display: block; aspect-ratio: 1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.no-photo { display: grid; place-items: center; height: 100%; aspect-ratio: 1; border: 1px dashed var(--filet); color: var(--cacao-doux); font-size: 0.9rem; }
.card h3 { margin-top: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--filet); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--rose); }
.card-desc { margin-top: 0.4rem; color: var(--cacao-doux); font-size: 0.96rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1rem; }
.price { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.btn-add {
  padding: 0.55rem 1.1rem; background: none; border: 1px solid var(--cacao); cursor: pointer;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-add:hover { background: var(--cacao); color: var(--ivoire); }

/* ---------- Noël ---------- */
.noel {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
  background: linear-gradient(rgba(196, 125, 140, 0.12), rgba(196, 125, 140, 0.12)), var(--ivoire);
}
.noel-media { padding: 2rem var(--pad); }
.noel-media img { max-width: 480px; width: 100%; margin: 0 auto; }
.noel-text { padding: clamp(2.5rem, 6vw, 5rem) var(--pad); max-width: 600px; }
.tag { display: inline-block; margin-bottom: 1.4rem; padding: 0.35rem 1rem; background: var(--rose); color: #fff; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.noel-text h2 em { color: var(--rose); }
.noel-text p { margin: 1.4rem 0 2rem; max-width: 28em; color: var(--cacao-doux); }

/* ---------- Atelier : photos en fond ---------- */
.atelier { display: grid; grid-template-columns: 1fr 1.25fr 1fr; background: var(--cacao); color: var(--ivoire); }
.atelier-media { position: relative; min-height: 420px; overflow: hidden; }
.atelier-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atelier-text { padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem); align-self: center; }
.atelier-text > p:not(.eyebrow) { color: var(--ivoire-doux); }
.gestes { list-style: none; margin: 2rem 0 0; padding: 0; }
.gestes li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid rgba(191, 146, 82, 0.4); }
.gestes strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; font-style: italic; color: var(--or); }
.gestes span { color: var(--ivoire-doux); }

/* ---------- Vue en coupe ---------- */
.coupe { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.coupe-text p:not(.eyebrow) { margin: 1.4rem 0 2rem; max-width: 28em; color: var(--cacao-doux); }

/* ---------- Contact ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) var(--pad); border-top: 1px solid var(--filet); text-align: center; }
.coordonnees { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 4rem; margin: 2.5rem 0 0; }
.coordonnees dt { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--or); }
.coordonnees dd { margin: 0.4rem 0 0; font-family: var(--serif); font-size: 1.3rem; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { color: var(--rose); }
.contact-cta { margin-top: 2.5rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--cacao); color: var(--ivoire); text-align: center; padding: 3rem 16px 2.2rem; }
.footer-brand { display: inline-flex; align-items: flex-end; gap: 0.35rem; }
.footer-brand .brand-word { color: var(--ivoire); }
.footer-tag { margin-top: 0.6rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ivoire-doux); }
.footer-nav { display: flex; justify-content: center; gap: 1.8rem; margin-top: 1.4rem; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.footer-nav a:hover { color: var(--or); }
.site-footer .small { margin-top: 1.6rem; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(248, 241, 229, 0.55); }

/* ---------- Fiche produit ---------- */
.crumbs { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--pad) 0; display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: var(--cacao-doux); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rose); }
.product { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad) 4rem; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.gallery-main { aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.thumb { width: 76px; height: 76px; padding: 0; background: none; border: 1px solid var(--filet); cursor: pointer; }
.thumb.is-active { border-color: var(--cacao); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: clamp(0rem, 3vw, 3rem); }
.product-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.product-price { margin-top: 1rem; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--or); }
.product-desc { color: var(--cacao-doux); font-size: 1.06rem; max-width: 32em; }
.buy { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.reassure { list-style: none; margin: 2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--filet); font-size: 0.95rem; color: var(--cacao-doux); }
.reassure li { padding: 0.2rem 0 0.2rem 1.4rem; position: relative; }
.reassure li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 8px; height: 1px; background: var(--or); }

.stepper { display: inline-flex; border: 1px solid var(--cacao); }
.stepper button { width: 2.6rem; background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.stepper button:hover { background: var(--cacao); color: var(--ivoire); }
.stepper input { width: 3rem; border: 0; background: none; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-sm button { width: 2rem; height: 2rem; }
.stepper-sm span { min-width: 2.2rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- Panier ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--ivoire); color: var(--cacao);
}
.drawer[open] { display: flex; flex-direction: column; }
.drawer::backdrop { background: rgba(59, 36, 29, 0.5); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--filet); }
.drawer-head h2 { font-size: 1.7rem; }
.close { width: 2.4rem; height: 2.4rem; background: none; border: 0; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.close:hover { color: var(--rose); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; }
.drawer-foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--filet); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.total span { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.total strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 0.9rem; color: var(--cacao-doux); }
.link:hover { color: var(--rose); }
.drawer-foot .link { display: block; margin: 0.9rem auto 0; }

.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--filet); }
.line img { width: 72px; height: 72px; object-fit: contain; }
.line-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.line-unit { font-size: 0.85rem; color: var(--cacao-doux); }
.line-ctrl { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.4rem; }
.line-total { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; white-space: nowrap; }

.field { display: block; margin-bottom: 1rem; }
.field span { display: block; margin-bottom: 0.3rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.field small { font-weight: 300; letter-spacing: 0; text-transform: none; color: var(--cacao-doux); }
.field input, .field textarea { width: 100%; padding: 0.75rem 0.9rem; background: #fffdf8; border: 1px solid var(--filet); border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cacao); }
.field textarea { min-height: 4.5rem; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-error { margin-bottom: 1rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--rose); background: rgba(196, 125, 140, 0.14); font-size: 0.95rem; }
.recap { margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--filet); font-size: 0.95rem; color: var(--cacao-doux); }

.done { text-align: center; padding-top: 1.5rem; }
.done .num { margin: 0.6rem 0 1rem; font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--or); }
.done p { color: var(--cacao-doux); }
.done .btn { margin-top: 1rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translate(-50%, 1rem);
  padding: 0.8rem 1.4rem; background: var(--cacao); color: var(--ivoire); font-size: 0.92rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Suivi de commande ---------- */
.track { max-width: 760px; }
.track h1 { font-size: clamp(2rem, 4.5vw, 3rem); text-align: center; }
.track .sub { text-align: center; color: var(--cacao-doux); margin-top: 0.6rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 2.5rem 0; padding: 0; }
.steps li { position: relative; padding-top: 1.6rem; text-align: center; font-size: 0.82rem; color: var(--cacao-doux); }
.steps li::before { content: ""; position: absolute; top: 0.3rem; left: 50%; width: 11px; height: 11px; margin-left: -6px; border: 1px solid var(--or); border-radius: 50%; background: var(--ivoire); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 0.62rem; left: -50%; width: 100%; height: 1px; background: var(--filet); }
.steps li:first-child::after { display: none; }
.steps li.is-done { color: var(--cacao); font-weight: 500; }
.steps li.is-done::before { background: var(--or); }
.steps li.is-done::after { background: var(--or); }
.cancelled { margin: 2rem 0; padding: 1rem; text-align: center; border: 1px solid var(--rose); background: rgba(196, 125, 140, 0.14); }
.track-items { border-top: 1px solid var(--filet); }
.track-items .line { grid-template-columns: 60px 1fr auto; }
.track-items img { width: 60px; height: 60px; object-fit: contain; }
.track .total { margin-top: 1.2rem; }
.notfound { text-align: center; }
.notfound p { margin-top: 1.2rem; }

/* ---------- Tablette et mobile ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .atelier { grid-template-columns: 1fr 1fr; }
  .atelier-text { grid-column: 1 / -1; order: -1; }
  .atelier-media { min-height: 300px; }
}

@media (max-width: 860px) {
  .hero, .noel, .coupe, .product { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-media { order: -1; min-height: 52vw; }
  .hero-text { margin: 0; max-width: none; }
  .coupe-image { max-width: 420px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .site-header { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: center; gap: 0.25rem 1.2rem; }
  .cart-btn { margin-left: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-word { font-size: 1.45rem; }
  .brand-mark { width: 28px; height: 30px; }
  .nav a { font-size: 0.7rem; letter-spacing: 0.12em; }
  .cart-btn span:not(.cart-count) { display: none; }
  .promises { grid-template-columns: 1fr; }
  .promises div { border-left: 0; border-top: 1px solid var(--filet); padding: 1.1rem 0; }
  .promises div:first-child { border-top: 0; }
  .grid, .grid-4 { gap: 1.6rem 0.9rem; }
  .card h3 { font-size: 1.2rem; }
  .card-desc { font-size: 0.88rem; }
  .card-foot { flex-direction: column; gap: 0.5rem; }
  .btn-add { width: 100%; }
  .actions .btn, .buy .btn { flex: 1 1 100%; }
  .steps li { font-size: 0.68rem; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.track .eyebrow { text-align: center; }

/* ================= Finitions modernes ================= */
html { scrollbar-width: thin; scrollbar-color: var(--or) var(--ivoire); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ivoire); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--or), var(--rose)); border-radius: 10px; border: 2px solid var(--ivoire); }
::-webkit-scrollbar-thumb:hover { background: var(--cacao); }
::selection { background: var(--or); color: #fff; }

/* Barre de progression de lecture (navigateurs récents) */
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
    background: linear-gradient(90deg, var(--or), var(--rose)); transform-origin: 0 50%; transform: scaleX(0);
    animation: lecture linear both; animation-timeline: scroll(root);
  }
  @keyframes lecture { to { transform: scaleX(1); } }
}

.btn, .btn-add, .tab, .cart-btn { border-radius: 999px; }
.btn { box-shadow: 0 0 0 rgba(59, 36, 29, 0); transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(59, 36, 29, 0.55); }
.tag { border-radius: 999px; }
.stepper { border-radius: 999px; overflow: hidden; }
.field input, .field textarea { border-radius: 12px; }

/* Cartes produit */
.card {
  padding: 0.9rem 0.9rem 1.1rem; border-radius: 22px;
  background: rgba(255, 253, 248, 0.75); border: 1px solid rgba(191, 146, 82, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--filet); box-shadow: 0 24px 48px -28px rgba(59, 36, 29, 0.45); }
.card-media { border-radius: 16px; }
.card h3 { border-top: 0; padding-top: 0.2rem; }
.card-foot { padding-top: 0.9rem; border-top: 1px solid var(--filet); }

/* Image d'accueil : lent mouvement */
.hero-media img { animation: souffle 18s ease-in-out infinite alternate; }
@keyframes souffle { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-text > * { animation: monte 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
@keyframes monte { from { opacity: 0; transform: translateY(22px); } }

.promises { margin-top: -1px; }
.promises strong { font-size: 1.45rem; }
.noel-media img { border-radius: 28px; }
.gallery-main { border-radius: 28px; background: rgba(255, 253, 248, 0.75); border: 1px solid rgba(191, 146, 82, 0.22); overflow: hidden; }
.thumb { border-radius: 12px; overflow: hidden; }
.drawer { border-radius: 26px 0 0 26px; box-shadow: -30px 0 60px -30px rgba(59, 36, 29, 0.5); }
.drawer[open] { animation: glisse 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.drawer::backdrop { backdrop-filter: blur(3px); }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } }
.toast { border-radius: 999px; }
.cart-count.pop { animation: pop 0.4s ease; }
@keyframes pop { 50% { transform: scale(1.45); } }

/* Apparition au défilement (activée seulement si JavaScript tourne) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 520px) { .drawer { border-radius: 0; } .card { padding: 0.6rem 0.6rem 0.9rem; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-text > *, .drawer[open] { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

.btn-add.is-added, .btn.is-added { background: var(--or); border-color: var(--or); color: #fff; }
.ideas { margin-top: 1.6rem; }
.ideas .eyebrow { margin-bottom: 0.2rem; }
.ideas .line:last-child { border-bottom: 0; }

/* Logo officiel (fond blanc fondu dans l'ivoire) */
.brand { align-items: center; }
.brand-logo { height: 54px; width: auto; }
.footer-brand { padding: 0.9rem 1.6rem; background: var(--ivoire); border-radius: 18px; }
.footer-brand .brand-logo { height: 64px; }
@media (max-width: 520px) { .brand-logo { height: 44px; } }

/* Pages catégorie et liens de navigation */
a.tab { text-decoration: none; display: inline-block; }
.category .tabs { margin-top: 3.5rem; }
.category h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.product-info .eyebrow a { text-decoration: none; }
.product-info .eyebrow a:hover { color: var(--rose); }
.footer-nav { flex-wrap: wrap; row-gap: 0.6rem; }
.footer-nav-2 { margin-top: 0.9rem; opacity: 0.75; }

/* Cartes : la description est limitée à trois lignes (le texte complet est sur la fiche),
   pour que les cartes restent courtes et alignées, surtout sur téléphone. */
.card-desc { flex: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card-foot { margin-top: auto; }
.card-desc + .card-foot { margin-top: auto; padding-top: 0.9rem; }
.card-desc { margin-bottom: 1rem; }

/* =====================================================================
   Mode nuit — activé par le bouton lune de l'en-tête (theme.js pose
   data-theme="nuit" sur <html> et retient le choix sur l'appareil).
   Noir neutre, texte blanc cassé ; l'or et le rose restent des accents.
   ===================================================================== */
.theme-btn {
  display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; padding: 0;
  background: none; border: 1px solid var(--filet); border-radius: 999px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.theme-btn:hover { border-color: var(--or); color: var(--or); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ico-soleil { display: none; }
.site-header .theme-btn + .cart-btn { margin-left: 0; }
.line { grid-template-columns: 72px minmax(0, 1fr) auto; }

[data-theme="nuit"] {
  color-scheme: dark;
  --ivoire: #0E0E10;
  --cacao: #F4F2EE;
  --cacao-doux: rgba(244, 242, 238, 0.66);
  --ivoire-doux: rgba(244, 242, 238, 0.78);
  --filet: rgba(255, 255, 255, 0.14);
  --nuit: #060607;
  --surface: #18181B;
  --vignette: #F6F4F0;
  --encre: #0E0E10;
}
[data-theme="nuit"] .theme-btn .ico-lune { display: none; }
[data-theme="nuit"] .theme-btn .ico-soleil { display: block; }

/* En-tête : le logo officiel garde un cartouche clair, comme en pied de page. */
[data-theme="nuit"] .site-header { background: rgba(14, 14, 16, 0.86); border-bottom-color: rgba(255, 255, 255, 0.1); }
[data-theme="nuit"] .site-header .brand { padding: 0.3rem 0.8rem; background: var(--vignette); border-radius: 14px; }
[data-theme="nuit"] .site-header .brand-logo { height: 44px; }
[data-theme="nuit"] .footer-brand { background: var(--vignette); }

/* Boutons : clairs sur fond noir, l'or au survol. */
[data-theme="nuit"] .cart-btn,
[data-theme="nuit"] .btn-primary,
[data-theme="nuit"] .tab.is-active,
[data-theme="nuit"] .toast { background: var(--cacao); border-color: var(--cacao); color: var(--encre); }
[data-theme="nuit"] .cart-btn:hover,
[data-theme="nuit"] .btn-primary:hover,
[data-theme="nuit"] .btn-ghost:hover,
[data-theme="nuit"] .btn-add:hover,
[data-theme="nuit"] .stepper button:hover,
[data-theme="nuit"] .btn-rose:hover,
[data-theme="nuit"] .btn-wa:hover { background: var(--or); border-color: var(--or); color: var(--encre); }
[data-theme="nuit"] .btn,
[data-theme="nuit"] .btn-add { border-color: rgba(255, 255, 255, 0.28); }
[data-theme="nuit"] .btn-primary { border-color: var(--cacao); }
[data-theme="nuit"] .btn-rose { border-color: var(--rose); }
[data-theme="nuit"] .btn-wa { border-color: #1f7a4d; }
[data-theme="nuit"] .btn-add.is-added,
[data-theme="nuit"] .btn.is-added { background: var(--or); border-color: var(--or); color: var(--encre); }
[data-theme="nuit"] .skip { background: var(--or); color: var(--encre); }

/* Cartes : surface anthracite, photo posée sur une vignette claire.
   Le « multiply » des photos reste enfermé dans la vignette (isolation),
   sinon il se mélangerait au fond noir de la page. */
[data-theme="nuit"] .card,
[data-theme="nuit"] .gallery-main { background: var(--surface); border-color: rgba(255, 255, 255, 0.08); }
[data-theme="nuit"] .card:hover { border-color: var(--or); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.8); }
[data-theme="nuit"] .card-media,
[data-theme="nuit"] .gallery-main,
[data-theme="nuit"] .thumb,
[data-theme="nuit"] .coupe-image { background: var(--vignette); isolation: isolate; overflow: hidden; }
[data-theme="nuit"] .card-media { display: block; }
[data-theme="nuit"] .coupe-image { border-radius: 24px; }
[data-theme="nuit"] .noel-media img,
[data-theme="nuit"] .line img,
[data-theme="nuit"] .track-items img { mix-blend-mode: normal; filter: none; background: var(--vignette); border-radius: 12px; }
[data-theme="nuit"] .noel-media img { border-radius: 24px; }
[data-theme="nuit"] .price,
[data-theme="nuit"] .product-price,
[data-theme="nuit"] .promises strong { color: var(--or); }

/* Bandeaux : un ton plus profond que le fond. */
[data-theme="nuit"] .atelier,
[data-theme="nuit"] .site-footer { background: var(--nuit); color: #F4F2EE; }
[data-theme="nuit"] .site-footer { border-top: 1px solid var(--filet); }
[data-theme="nuit"] .noel { background: linear-gradient(rgba(196, 125, 140, 0.1), rgba(196, 125, 140, 0.1)), var(--ivoire); }
[data-theme="nuit"] .hero-media { background: #000; }
[data-theme="nuit"] .gestes li { border-top-color: rgba(255, 255, 255, 0.14); }

/* Panier, formulaires, suivi */
[data-theme="nuit"] .drawer { background: #151517; color: var(--cacao); }
[data-theme="nuit"] .drawer::backdrop { background: rgba(0, 0, 0, 0.65); }
[data-theme="nuit"] .field input,
[data-theme="nuit"] .field textarea { background: #0B0B0C; color: var(--cacao); }
[data-theme="nuit"] ::-webkit-scrollbar-thumb:hover { background: var(--or); }
[data-theme="nuit"] ::selection { color: var(--encre); }
@media (max-width: 860px) { .site-header .theme-btn { margin-left: auto; } }
@media (max-width: 520px) {
  .theme-btn { width: 2.4rem; height: 2.4rem; }
  [data-theme="nuit"] .site-header .brand { padding: 0.25rem 0.55rem; border-radius: 12px; }
  [data-theme="nuit"] .site-header .brand-logo { height: 36px; }
}
