:root {
  --creme: #FBF6EF;
  --creme-2: #F4ECE1;
  --papier: #FFFDF9;
  --terre: #B4573A;
  --terre-f: #8E3B2A;
  --sauge: #6F8463;
  --sauge-c: #E3ECDD;
  --brun: #3B2A22;
  --gris: #7B6E66;
  --ligne: #E7DCCF;
  --ombre: 0 10px 30px rgba(59, 42, 34, .09);
  --r: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--brun); background: var(--creme); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--gris); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; border-radius: 999px; padding: .8em 1.4em; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terre); color: #fff; box-shadow: 0 6px 16px rgba(180, 87, 58, .28); }
.btn-primary:hover { background: var(--terre-f); }
.btn-ghost { background: transparent; border: 1.5px solid var(--brun); }
.btn-ghost:hover { background: var(--brun); color: var(--creme); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-soft { background: var(--creme-2); }
.btn-soft:hover { background: var(--ligne); }
.btn-sm { padding: .45em .95em; font-size: .88rem; }
.btn-danger { background: #F6E1DF; color: #A94442; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--papier); box-shadow: var(--ombre); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(251, 246, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: .45em; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--terre); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--gris); }
.nav a:hover { color: var(--brun); }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -4px; right: -4px; background: var(--terre); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Accueil ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terre); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.hero p.lead { font-size: 1.1rem; color: var(--gris); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .blob { position: absolute; inset: 6%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%; background: var(--sauge-c); }
.hero-art img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: cover; border-radius: 50%; box-shadow: var(--ombre); }
.hero-badge { position: absolute; bottom: 10%; left: 0; background: var(--papier); padding: 12px 16px; border-radius: 14px; box-shadow: var(--ombre); font-size: .9rem; }
.hero-badge b { font-family: var(--serif); font-size: 1.2rem; display: block; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { width: min(340px, 100%); margin: 0 auto; } }

section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }

/* ---------- Carrousel "À la une" ---------- */
.carousel { position: relative; }
.track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track .card { flex: 0 0 clamp(230px, 26vw, 290px); scroll-snap-align: start; }
.car-nav { display: flex; gap: 10px; }

/* ---------- Cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card { background: var(--papier); border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 0 var(--ligne); cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.card-img { aspect-ratio: 1; background: var(--creme-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--papier); color: var(--terre-f); font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: 0; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-weight: 700; }
.delay { font-size: .8rem; color: var(--sauge); font-weight: 600; background: var(--sauge-c); padding: 3px 9px; border-radius: 999px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--ligne); background: transparent; padding: .45em 1em; border-radius: 999px; cursor: pointer; font-weight: 500; }
.chip.on { background: var(--brun); border-color: var(--brun); color: var(--creme); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--papier); border-radius: var(--r); padding: 26px; }
.step-n { width: 38px; height: 38px; border-radius: 50%; background: var(--terre); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--gris); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.about { background: var(--sauge-c); border-radius: 28px; padding: 46px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.about-mark { width: 110px; height: 110px; border-radius: 50%; background: var(--sauge); color: #fff; display: grid; place-items: center; font-size: 2.6rem; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; padding: 30px; } }

.site-footer { padding: 40px 0; border-top: 1px solid var(--ligne); margin-top: 30px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.socials { display: flex; gap: 14px; }

/* ---------- Fenêtres (modales, panier) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(40, 28, 22, .45); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: .25s; background: var(--papier); border-radius: 24px; width: min(880px, 94vw); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm-gallery { background: var(--creme-2); display: flex; flex-direction: column; }
.pm-gallery .main { width: 100%; flex: 1; min-height: 320px; object-fit: cover; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: .65; }
.thumbs img.on { opacity: 1; outline: 2px solid var(--terre); }
.pm-info { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.pm-info h2 { font-size: 1.9rem; margin: 0; }
@media (max-width: 760px) { .pm { grid-template-columns: 1fr; } }

.drawer { position: fixed; z-index: 60; top: 0; right: 0; height: 100%; width: min(460px, 100vw); background: var(--papier); transform: translateX(100%); transition: transform .3s, visibility .3s; visibility: hidden; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, .15); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { padding: 20px 22px; border-bottom: 1px solid var(--ligne); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h2 { margin: 0; font-size: 1.5rem; }
.drawer-body { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer-foot { padding: 18px 22px; border-top: 1px solid var(--ligne); background: var(--creme); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ligne); }
.cart-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ligne); border-radius: 999px; }
.qty button { border: 0; background: none; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; margin: 4px 0; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; }
.info-box { background: var(--sauge-c); border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
.warn-box { background: #FBEFD9; border-radius: 14px; padding: 12px 14px; font-size: .9rem; }

/* ---------- Formulaires ---------- */
label.f { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; font-weight: 600; }
.f input, .f select, .f textarea, input.inp, select.inp, textarea.inp { border: 1.5px solid var(--ligne); background: #fff; border-radius: 12px; padding: .7em .9em; font-weight: 400; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: none; border-color: var(--terre); }
.f textarea { min-height: 80px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--ligne); border-radius: 14px; padding: 12px; cursor: pointer; font-weight: 500; }
.radio-card:has(input:checked) { border-color: var(--terre); background: #FDF3EE; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }

.empty { text-align: center; padding: 40px 10px; color: var(--gris); }

/* ---------- Notifications ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--brun); color: var(--creme); padding: 12px 20px; border-radius: 999px; box-shadow: var(--ombre); transition: opacity .4s, transform .4s; font-weight: 500; }
.toast.err { background: #A94442; }
.toast.out { opacity: 0; transform: translateY(10px); }
.demo-banner { background: var(--brun); color: var(--creme); text-align: center; font-size: .82rem; padding: 6px 10px; }
.demo-banner a { color: #F3C7B5; }

section[id] { scroll-margin-top: 70px; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } .card-body { padding: 10px 12px 14px; } .card-body h3 { font-size: 1rem; } .card-meta { flex-direction: column; align-items: flex-start; gap: 6px; } .hero { padding-top: 36px; } section { padding: 40px 0; } }

/* ---------- Navigation multi-pages ---------- */
.nav a.on { color: var(--brun); font-weight: 600; position: relative; }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--terre); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.mobile-cat { display: none; }
@media (max-width: 760px) { .mobile-cat { display: inline-flex; } }
.site-footer nav.socials { flex-wrap: wrap; }

/* ---------- Coups de cœur : défilement automatique continu ---------- */
.marquee { overflow: hidden; padding: 6px 0 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; padding-left: 20px; animation: defile var(--dur, 40s) linear infinite; }
.marquee-track .card { width: clamp(210px, 24vw, 270px); flex: 0 0 auto; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

/* ---------- Page catalogue ---------- */
.cat-hero { padding: 46px 0 10px; }
.cat-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .2em; }
.search { display: flex; align-items: center; gap: 10px; background: var(--papier); border: 1.5px solid var(--ligne); border-radius: 999px; padding: 6px 8px 6px 18px; margin: 22px 0 16px; max-width: 640px; box-shadow: 0 2px 0 var(--ligne); }
.search:focus-within { border-color: var(--terre); }
.search input { flex: 1; border: 0; background: transparent; padding: .6em 0; font-size: 1rem; outline: none; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 0; background: var(--creme-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--gris); }
.sort select { width: auto; padding: .45em .8em; border-radius: 999px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pg { min-width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--ligne); background: var(--papier); cursor: pointer; font-weight: 600; padding: 0 12px; }
.pg:hover:not([disabled]) { border-color: var(--brun); }
.pg.on { background: var(--brun); border-color: var(--brun); color: var(--creme); }
.pg[disabled] { opacity: .35; cursor: default; }
.pg-gap { color: var(--gris); padding: 0 4px; }
@media (max-width: 560px) { .cat-hero { padding-top: 28px; } .marquee-track .card { width: 190px; } }
@media (max-width: 560px) {
  .logo { font-size: 1.1rem; white-space: nowrap; }
  .logo-mark { width: 30px; height: 30px; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; width: calc(100% + 40px); }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
}

/* ---------- Modèles ---------- */
.opt { display: flex; flex-direction: column; gap: 8px; }
.models { display: flex; flex-wrap: wrap; gap: 8px; }
.model { position: relative; display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ligne); border-radius: 14px; padding: 6px 12px 6px 6px; cursor: pointer; background: #fff; font-weight: 500; font-size: .92rem; }
.model input { position: absolute; opacity: 0; width: 1px; height: 1px; bottom: 0; left: 50%; }
.model img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.model small { display: block; color: var(--terre-f); font-weight: 700; font-size: .78rem; }
.model:has(input:checked) { border-color: var(--terre); background: #FDF3EE; box-shadow: 0 0 0 2px rgba(180,87,58,.15); }
.model:has(input:focus-visible) { outline: 2px solid var(--terre); }
.model:not(:has(img)) { padding-left: 12px; }
@media (max-width: 760px) { .pm-gallery .main { min-height: 0; max-height: 42vh; flex: none; } .pm-info { padding: 22px; } }
