:root {
  --ink: #1f1d1b;
  --ink-soft: #5b5650;
  --paper: #f6f2ec;
  --paper-2: #ece5db;
  --white: #ffffff;
  --rust: #a4502a;
  --rust-dark: #803a1b;
  --slate: #26333a;
  --line: #ddd4c7;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 29, 27, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h1 em { font-style: italic; color: var(--rust); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 600; color: var(--rust); margin-bottom: .6em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; padding: .85em 1.5em; border-radius: 999px;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Bandeau & en-tête ---------- */
.announce { background: var(--rust); color: #fff; font-size: .88rem; text-align: center; padding: .5em 0; }
.announce a { color: #fff; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 236, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1.05; }
.logo-mark { width: 76px; height: auto; flex: none; transition: transform .4s ease; transform-origin: 38% 60%; }
.logo:hover .logo-mark { transform: rotate(-6deg); }
.logo-text { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.logo-name { font: 700 1.65rem var(--serif); letter-spacing: -.005em; }
.logo-sub { font: italic 400 1.02rem var(--serif); color: var(--rust); }
.main-nav { display: flex; align-items: center; gap: 1.3rem; }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { color: var(--rust); }
.cart-btn {
  font: 600 .9rem var(--sans); background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: .55em 1.1em; cursor: pointer;
  display: flex; align-items: center; gap: .5em; white-space: nowrap;
}
.cart-count {
  background: var(--rust); border-radius: 999px; min-width: 1.5em; height: 1.5em;
  display: inline-grid; place-items: center; font-size: .8rem; padding: 0 .35em;
}
.cart-count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Accueil ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 60px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.strengths { background: var(--ink); color: var(--paper); padding: 26px 0; }
.strengths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strengths-grid div { display: flex; flex-direction: column; }
.strengths-grid strong { font-family: var(--serif); font-size: 1.08rem; }
.strengths-grid span { color: #bdb5aa; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-compact { padding: clamp(48px, 6vw, 72px) 0; }
.section-dark { background: var(--slate); color: #eef0ee; }
.section-dark .eyebrow { color: #e9a77f; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p:last-child { color: var(--ink-soft); }
.section-dark .section-head p:last-child { color: #c9cfcc; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-top { align-items: start; }

/* ---------- Catalogue ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-tab {
  font: 600 .95rem var(--sans); padding: .6em 1.2em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--ink);
}
.cat-tab span { color: var(--ink-soft); font-weight: 400; margin-left: .3em; font-size: .85em; }
.cat-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-tab.active span { color: #bdb5aa; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.subfilters { display: flex; flex-wrap: wrap; gap: 6px; }
.sub {
  font: 500 .85rem var(--sans); padding: .35em .9em; border-radius: 999px;
  border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink-soft);
}
.sub:hover { color: var(--ink); }
.sub.active { border-color: var(--rust); color: var(--rust); background: #fff; }
.search input {
  font: 400 .95rem var(--sans); padding: .6em 1em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; width: min(320px, 100%); color: var(--ink);
}
.search { flex: 0 1 320px; }
.search input { width: 100%; }
.cat-intro { color: var(--ink-soft); max-width: 760px; font-size: .95rem; margin-bottom: 24px; min-height: 1em; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s;
}
.product:hover { transform: translateY(-4px); }
.product-visual {
  aspect-ratio: 1; background: #fff; display: grid; place-items: center; position: relative;
  border: 0; padding: 0; cursor: zoom-in; width: 100%;
}
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.tag {
  position: absolute; top: 10px; left: 10px; background: var(--paper);
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .3em .75em; border-radius: 999px; color: var(--ink);
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid #f0ebe4; }
.product-body h3 { font-size: 1.1rem; margin-bottom: .15em; }
.product-body .sub-label { font-size: .82rem; color: var(--ink-soft); margin-bottom: .8em; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 700 1.25rem var(--serif); }
.add-btn {
  font: 600 .85rem var(--sans); border: 2px solid var(--rust); color: var(--rust);
  background: transparent; padding: .45em .9em; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.add-btn:hover, .add-btn.added { background: var(--rust); color: #fff; }
.more-wrap { text-align: center; margin-top: 32px; }
.results-empty { text-align: center; color: var(--ink-soft); padding: 32px 0; }

/* ---------- Girouette ---------- */
.feature-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.feature-list li { padding: .6em 0 .6em 1.6em; border-bottom: 1px solid var(--line); position: relative; }
.feature-list li::before { content: "➝"; position: absolute; left: 0; color: var(--rust); }
.framed { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

/* ---------- Sur-mesure ---------- */
.steps { padding-left: 1.2em; margin: 1.5em 0 2em; }
.steps li { margin-bottom: .9em; color: #c9cfcc; }
.steps li strong { color: #fff; display: block; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- Atelier & boutique ---------- */
.story p { font-size: 1.05rem; }
.story p:first-child::first-letter { font: 700 3.2rem/0.9 var(--serif); float: left; margin: .05em .12em 0 0; color: var(--rust); }
.stack { display: grid; gap: 14px; }
.stack img, .rounded { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.info-list { list-style: none; padding: 0; margin: 1.5em 0 0; border-top: 1px solid var(--line); }
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: .8em 0; border-bottom: 1px solid var(--line); }
.info-list li span:first-child { font-weight: 600; }
.info-list li span:last-child { text-align: right; color: var(--ink-soft); }
.hours { background: #fff; border-radius: var(--radius); padding: 22px; margin-top: 18px; box-shadow: var(--shadow); }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: .93rem; }
.hours-grid p { margin: .3em 0 0; color: var(--ink-soft); }
.panorama { width: 100%; height: clamp(140px, 22vw, 300px); object-fit: cover; margin-top: clamp(48px, 7vw, 80px); }
#boutique { padding-bottom: 0; }

/* ---------- Livraison ---------- */
.delivery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.delivery > div { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.delivery p { color: var(--ink-soft); margin: 0; }
.ship { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ship td { padding: .45em 0; border-bottom: 1px solid var(--line); }
.ship td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 8px; }

/* ---------- Contact ---------- */
.contact-wrap { max-width: 780px; }
.contact-form { background: var(--white); padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .92rem; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--sans); padding: .75em .9em; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--rust); outline-offset: 1px; border-color: transparent;
}
.form-note { font-size: .82rem; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #cfc8bd; padding: 48px 0 24px; }
.site-footer strong { color: #fff; font-family: var(--serif); font-size: 1.25rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: .82rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid #3a3734; }

/* ---------- Fiche produit ---------- */
.product-modal {
  border: 0; padding: 0; border-radius: var(--radius); width: min(960px, calc(100% - 32px));
  max-height: calc(100% - 32px); background: var(--white); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.product-modal::backdrop { background: rgba(0,0,0,.5); }
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 2; background: #fff; border: 0;
  font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 50%; width: 40px; height: 40px;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img { background: #fff; display: grid; place-items: center; padding: 20px; }
.modal-img img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.modal-body { padding: 36px 32px 28px; background: var(--paper); }
.modal-body h2 { margin-bottom: .2em; }
.accroche { font: italic 400 1.15rem var(--serif); color: var(--rust); }
.histoire { color: var(--ink-soft); font-size: .95rem; max-height: 14em; overflow-y: auto; }
.specs { list-style: none; padding: 0; margin: 0 0 1.2em; font-size: .9rem; }
.specs li { padding: .35em 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.specs li span:first-child { font-weight: 600; }
.specs li span:last-child { text-align: right; color: var(--ink-soft); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.modal-foot .price { font-size: 1.6rem; }

/* ---------- Sélection ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--white); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-close { background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.small { font-size: .82rem; color: var(--ink-soft); }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.cart-line h4 { margin: 0; font-size: .95rem; }
.cart-line .unit { font-size: .82rem; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1rem; color: var(--ink);
}

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 140px);
  background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: 999px;
  z-index: 120; transition: transform .3s; font-weight: 500; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; padding: 8px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8em 0; border-bottom: 1px solid var(--line); }
  .cart-btn { margin-top: 12px; justify-content: center; padding: .8em; }
}
@media (max-width: 860px) {
  .hero-inner, .split, .modal-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; width: 100%; margin-inline: auto; }
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .delivery { grid-template-columns: 1fr; }
  .modal-body { padding: 24px 20px; }
  .modal-img img { max-height: 45vh; }
}
@media (max-width: 520px) {
  .header-inner { height: 68px; }
  .main-nav { top: 68px; }
  .logo { gap: 10px; }
  .logo-mark { width: 54px; }
  .logo-name { font-size: 1.3rem; }
  .logo-sub { font-size: .88rem; }
  .contact-form .row, .hours-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 10px 12px 12px; }
  .product-body h3 { font-size: .98rem; }
  .product-foot { flex-direction: column; align-items: stretch; }
  .price { font-size: 1.1rem; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Noël (affiché du 1er décembre au 6 janvier) ---------- */
.noel {
  position: relative; overflow: hidden; color: #f3eefc;
  background: radial-gradient(ellipse at 80% 10%, #5b2a86 0%, #2a1840 45%, #15101f 100%);
  padding: clamp(48px, 7vw, 90px) 0;
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.noel-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.noel-photo { margin: 0; }
.noel-photo img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.45); width: 100%; height: auto; }
.noel-photo figcaption { font: italic 400 .95rem var(--serif); color: #cdbfe6; margin-top: 10px; text-align: center; }
.noel .eyebrow { color: #f6a13a; }
.noel h2 { color: #fff; }
.noel h2 em { font-style: italic; font-weight: 400; color: #f6a13a; }
.noel-text > p { color: #ddd3ee; }
.gift-list { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 8px; }
.gift-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: .75em 1em; border-radius: 10px; text-decoration: none; font-weight: 500;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
  transition: background .2s, border-color .2s;
}
.gift-list a:hover, .gift-list a:focus-visible { background: rgba(246,161,58,.16); border-color: #f6a13a; }
.gift-list span { font: 600 .9rem var(--sans); color: #f6a13a; white-space: nowrap; }
.noel-note { font-size: .88rem; color: #b9abd3 !important; }
.noel-note a { color: #fff; }
body.is-noel .announce { background: #4a2470; }
@media (max-width: 860px) { .noel-inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .gift-list a { flex-direction: column; gap: 2px; } }

/* ---------- Formulaire : anti-robot et confirmation ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: var(--white); padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--rust); }
.form-success h3 { margin-bottom: .4em; }
.form-success p { margin: 0; color: var(--ink-soft); }
