/* =========================================================
   Bidi Studio — boutique
   ========================================================= */
:root {
  --bg: #fbf5ee;
  --bg-alt: #f5ebdf;
  --surface: #ffffff;
  --tile: #f0e5d8;
  --ink: #2b211c;
  --ink-2: #4a3d35;
  --muted: #85766b;
  --line: #eadccd;
  --accent: #df271b;
  --accent-dark: #b81f15;
  --accent-soft: #fbe3e0;
  --sale: #c0392b;
  --ok: #4f7a52;
  --wa: #1f9d55;
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 20px 50px -24px rgba(43, 33, 28, .35);
}

:root { color-scheme: light only; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
p { margin: 0 0 1em; }
#app { outline: none; min-height: 60vh; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 600; color: var(--accent); margin: 0 0 .8rem; }
.eyebrow a { text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .8rem; color: var(--muted); margin: .3rem 0 1rem; }
.center { text-align: center; }
.mt { margin-top: 2rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-xl { width: 44px; height: 44px; stroke-width: 1.2; color: var(--muted); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tile); color: var(--muted); font-family: var(--serif); text-align: center; padding: 1rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 1px solid transparent; border-radius: 999px; padding: .85rem 1.6rem;
  font: 500 .88rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17834a; }
.btn-sm { padding: .55rem 1.1rem; font-size: .8rem; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: background .2s;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn .ic { width: 22px; height: 22px; }
.link-more { display: inline-block; font-weight: 500; font-size: .88rem; color: var(--accent); text-decoration: none; margin-top: .6rem; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Bandeau ---------- */
.announce { background: var(--ink); color: #eadfd4; text-align: center; font-size: .76rem; letter-spacing: .05em; padding: .55rem var(--gutter); min-height: 34px; overflow: hidden; }
.announce-msg.in { animation: annIn .5s var(--ease); }
@keyframes annIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 30; background: rgba(250, 247, 242, .96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2rem; padding-top: .9rem; padding-bottom: .9rem; transition: padding .25s; }
.header.scrolled .header-main { padding-top: .5rem; padding-bottom: .5rem; }
.menu-btn { display: none; }
.logo { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; text-decoration: none; letter-spacing: -.03em; line-height: 1; }
.logo { display: inline-block; }
.logo img { height: 46px; width: auto; transition: height .25s; }
.header.scrolled .logo img { height: 36px; }
.mnav-head .logo img { height: 36px; }
.footer-dark .logo img { height: 64px; }
.search-trigger {
  justify-self: center; width: min(520px, 100%); display: flex; align-items: center; gap: .7rem;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .7rem 1.1rem;
  color: var(--muted); font-size: .86rem; cursor: text; transition: border-color .2s;
}
.search-trigger:hover { border-color: var(--ink-2); }
.search-trigger .ic { width: 18px; height: 18px; }
.header-icons { display: flex; align-items: center; gap: .2rem; }
.search-mobile { display: none; }
.icon-count .count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .66rem; font-weight: 600; display: grid; place-items: center;
}
.count[hidden] { display: none; }
.count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

.mainnav { border-top: 1px solid var(--line); }
.mainnav-inner { display: flex; justify-content: center; gap: 2rem; white-space: nowrap; }
.mainnav-inner > a, .has-mega > a {
  display: inline-flex; align-items: center; gap: .25rem; padding: .85rem 0; text-decoration: none;
  font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); position: relative;
}
.mainnav-inner > a::after, .has-mega > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.mainnav-inner > a:hover::after, .has-mega:hover > a::after, .mainnav a.active::after { transform: scaleX(1); }
.mainnav a.active { color: var(--ink); }
.has-mega > a .ic { width: 14px; height: 14px; }
.nav-promo { color: var(--sale) !important; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(43, 33, 28, .3);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: repeat(4, 1fr) 200px; gap: 1.4rem; padding-top: 1.8rem; padding-bottom: 1.8rem; }
.mega-col { text-decoration: none; display: flex; flex-direction: column; gap: .2rem; }
.mega-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--tile); margin-bottom: .6rem; }
.mega-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-col:hover img { transform: scale(1.05); }
.mega-col strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }
.mega-col small { color: var(--muted); font-size: .78rem; }
.mega-side { display: flex; flex-direction: column; gap: .9rem; justify-content: center; padding-left: 1.4rem; border-left: 1px solid var(--line); }
.mega-side a { text-decoration: none; font-weight: 500; font-size: .9rem; }
.mega-side a:hover { color: var(--accent); }

/* ---------- Menu mobile ---------- */
.mnav { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.mnav-backdrop { position: absolute; inset: 0; background: rgba(30, 22, 18, .5); opacity: 0; transition: opacity .3s; }
.mnav-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .35s var(--ease); }
.mnav.open { pointer-events: auto; }
.mnav.open .mnav-backdrop { opacity: 1; }
.mnav.open .mnav-panel { transform: none; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.mnav-links { flex: 1; overflow-y: auto; padding: .5rem 1.2rem; display: flex; flex-direction: column; }
.mnav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; display: flex; justify-content: space-between; }
.mnav-links a.sub { padding-left: 1rem; font-weight: 400; color: var(--ink-2); }
.mnav-links small { color: var(--muted); }
.mnav-acc { display: inline-flex; align-items: center; gap: .5rem; }
.mnav-acc .ic { width: 18px; height: 18px; color: var(--accent); }
.mnav-foot { padding: 1.2rem; border-top: 1px solid var(--line); }
.mnav-foot a { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 500; }
.mnav-foot { display: grid; gap: .3rem; }
.mnav-foot a { padding: .55rem 0; }
.mnav-foot .mnav-account { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: .3rem; }
.mnav-foot .mnav-account small { color: var(--muted); font-weight: 400; }
.mnav-foot .ic { color: var(--accent); }

/* ---------- Recherche ---------- */
.search { position: fixed; inset: 0; z-index: 55; }
.search[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(30, 22, 18, .5); }
.search-panel { position: relative; background: var(--bg); padding: 1.4rem 0 1.8rem; animation: slideDown .3s var(--ease); max-height: 90vh; overflow-y: auto; }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } }
.search-form { display: flex; align-items: center; gap: .8rem; border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.search-form input { flex: 1; border: 0; background: transparent; font: 400 1.4rem var(--serif); color: var(--ink); outline: none; min-width: 0; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-results { padding-top: 1.2rem; }
.search-hint { color: var(--muted); font-size: .85rem; margin-bottom: .6rem; }
.search-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.search-tags a { padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; background: var(--surface); }
.search-tags a:hover { border-color: var(--ink); }
.search-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .4rem 1.2rem; }
.search-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; padding: .5rem; border-radius: var(--radius-sm); text-decoration: none; }
.search-item:hover { background: var(--bg-alt); }
.si-img { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--tile); }
.si-img img { width: 100%; height: 100%; object-fit: cover; }
.search-item strong { display: block; font-weight: 500; font-size: .9rem; }
.search-item small { color: var(--muted); font-size: .78rem; }
.search-item .price { font-size: .85rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-slides { display: grid; }
.slide { grid-area: 1 / 1; background: var(--slide-bg); opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.slide.active { opacity: 1; visibility: visible; }
.slide-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; min-height: clamp(420px, 60vh, 580px); }
.slide-text { padding: 3rem 0; max-width: 520px; }
.slide-title { font-size: clamp(2.2rem, 4.8vw, 3.9rem); font-weight: 300; margin-bottom: 1rem; }
.slide-title em { font-style: italic; color: var(--accent); }
.slide-lead { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1.8rem; }
.slide-media { align-self: stretch; display: grid; place-items: center; padding: 2rem 0; }
.slide-media img { max-height: 500px; width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow); }
.slide.active .slide-text > * { animation: rise .8s var(--ease) both; }
.slide.active .slide-text > *:nth-child(2) { animation-delay: .08s; }
.slide.active .slide-text > *:nth-child(3) { animation-delay: .16s; }
.slide.active .slide-text > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .75); cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 28px; height: 4px; border-radius: 2px; border: 0; background: rgba(43, 33, 28, .2); cursor: pointer; padding: 0; transition: background .3s, width .3s; }
.hero-dots button.active { background: var(--ink); width: 44px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding: clamp(32px, 4vw, 56px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head.center { text-align: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.section-head.split p.muted { margin: .6rem 0 0; }

/* Catégories (cercles) */
.cat-circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 980px; margin: 0 auto; }
.cat-circle { text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.cat-img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tile); margin-bottom: .9rem; border: 1px solid var(--line); transition: box-shadow .3s; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-circle:hover img { transform: scale(1.07); }
.cat-circle:hover .cat-img { box-shadow: 0 0 0 4px var(--accent-soft); }
.cat-circle strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.cat-circle small { color: var(--muted); font-size: .78rem; }

/* Bloc promo */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.promo-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; background: var(--tile); }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-text p:not(.eyebrow) { color: var(--ink-2); max-width: 32rem; }
.promo-text .btn { margin-top: .6rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.8rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.stats span { font-size: .8rem; color: var(--muted); }

.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.story p:not(.eyebrow) { color: var(--ink-2); font-size: 1.02rem; }

/* Onglets */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.8rem; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .55rem 1.2rem; font-size: .84rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Carrousel */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.2rem) / 4); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .4rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px -8px rgba(0,0,0,.25);
}
.rail-btn.prev { left: -18px; } .rail-btn.next { right: -18px; }
.rail-btn:hover { background: var(--ink); color: var(--bg); }

/* ---------- Carte produit ---------- */
.grid { display: grid; gap: 2.2rem 1.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 3 / 4; }
.card-img { display: block; width: 100%; height: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.card-img.has-alt img + img { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-img.has-alt img + img { opacity: 1; }
.card:hover .card-img img:first-child { transform: scale(1.05); }
.card.is-sold .card-img img { opacity: .55; }
.badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; z-index: 1; pointer-events: none; }
.badge { background: var(--surface); color: var(--ink); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: .28rem .6rem; border-radius: 999px; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-dark { background: var(--ink); color: var(--bg); }
.badge-custom { background: var(--accent); color: #fff; }
.price-ask { font-weight: 500; color: var(--ink-2); font-style: italic; }
.price-big .price-ask { font-family: var(--serif); font-size: 1.3rem; }
.promo-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wish-btn {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); display: grid; place-items: center; cursor: pointer; transition: transform .2s, color .2s;
}
.wish-btn .ic { width: 18px; height: 18px; }
.wish-btn:hover { transform: scale(1.1); }
[data-wish][aria-pressed="true"] { color: var(--sale); }
[data-wish][aria-pressed="true"] .ic { fill: currentColor; }
.card-actions {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem; z-index: 2; display: flex; gap: .4rem;
  opacity: 0; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card:hover .card-actions, .card-actions:focus-within { opacity: 1; transform: none; }
.card-actions button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 0; border-radius: 999px;
  padding: .65rem .5rem; font-size: .76rem; font-weight: 500; cursor: pointer; background: rgba(255,255,255,.95); color: var(--ink); transition: background .2s, color .2s;
}
.card-actions button .ic { width: 16px; height: 16px; }
.card-actions button[data-add] { background: var(--ink); color: var(--bg); }
.card-actions button:hover { background: var(--accent); color: #fff; }
.card-body { padding-top: .85rem; display: flex; flex-direction: column; gap: .2rem; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-title { font-size: 1.05rem; margin: 0; font-weight: 400; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-desc, .card-add-list { display: none; }
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-old { color: var(--muted); font-size: .85em; }
.price-now { font-weight: 600; }
.price-now.is-sale { color: var(--sale); }
.price-big { font-size: 1.5rem; }
.price-big .price-now { font-weight: 500; }
.dots { display: flex; align-items: center; gap: .3rem; margin-top: .3rem; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dots small { font-size: .72rem; color: var(--muted); }

/* Vue liste */
.grid.is-list { grid-template-columns: 1fr; gap: 1.2rem; }
.grid.is-list .card { display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: center; background: var(--surface); border-radius: var(--radius); padding: .8rem; }
.grid.is-list .card-media { aspect-ratio: 1; }
.grid.is-list .card-actions [data-add] { display: none; }
.grid.is-list .card-desc { display: block; color: var(--muted); font-size: .88rem; margin: .3rem 0 .5rem; max-width: 46rem; }
.grid.is-list .card-add-list { display: inline-flex; align-self: flex-start; margin-top: .8rem; }
.grid.is-list .card-title { font-size: 1.3rem; }

/* ---------- Page collection ---------- */
.page-head { background: var(--bg-alt); padding: 1.6rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: .6rem 0 .3rem; }
.page-head p { margin: 0; max-width: 40rem; }
.page-head a { color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .78rem; color: var(--muted); padding-top: .4rem; }
.crumbs a { color: var(--muted) !important; text-decoration: none; }
.crumbs a:hover { color: var(--ink) !important; text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.subcats { display: flex; gap: 1rem; margin-top: 1.6rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.subcat { flex: none; display: flex; align-items: center; gap: .7rem; padding: .4rem 1.1rem .4rem .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink) !important; font-weight: 500; font-size: .88rem; transition: border-color .2s; }
.subcat:hover { border-color: var(--ink); }
.subcat img, .subcat .ph { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.6rem; padding-top: 2.2rem; padding-bottom: 4rem; align-items: start; }
.filters { position: sticky; top: 140px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.filters-head h3 { margin: 0; font-size: 1.25rem; }
.filters-close, .filters-foot, .filters-open { display: none !important; }
.fgroup { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.fgroup h4 { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin-bottom: .9rem; }
.check, .fcolor { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .88rem; cursor: pointer; }
.check small, .fcolor small { color: var(--muted); margin-left: auto; }
.check input, .fcolor input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.fcolor input { position: absolute; opacity: 0; pointer-events: none; }
.fcolor .dot { width: 18px; height: 18px; }
.fcolor input:checked + .dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.fcolor input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 3px; }
.range { position: relative; height: 24px; }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; z-index: 2; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; }
.range input::-moz-range-track { background: none; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: var(--line); border-radius: 2px; }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: 2px; }
.range-label { font-size: .84rem; margin: .6rem 0 0; color: var(--ink-2); }

.toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.result-count { font-size: .84rem; color: var(--muted); }
.toolbar-right { display: flex; align-items: center; gap: .8rem; margin-left: auto; flex-wrap: wrap; }
.select { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.select select {
  appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 2.2rem .5rem .9rem; font: 500 .82rem var(--sans); color: var(--ink); cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232b211c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.view-toggle button { border: 0; background: none; padding: .45rem .7rem; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.view-toggle button .ic { width: 18px; height: 18px; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.4rem; font-size: .8rem; }
.active-filters:empty { display: none; }
.active-filters > span { color: var(--muted); margin-right: .2rem; }
.active-filters button { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .3rem .5rem .3rem .8rem; font-size: .78rem; cursor: pointer; }
.active-filters button .ic { width: 14px; height: 14px; }
.active-filters button:hover { border-color: var(--ink); }
.active-filters .clear { border: 0; background: none; text-decoration: underline; color: var(--muted); padding: .3rem; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem; margin-top: 3rem; }
.pager:empty { display: none; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; cursor: pointer; font-size: .85rem; padding: 0 .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.pager button .ic { width: 16px; height: 16px; }
.pager button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty-state p { color: var(--muted); }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: 1.4rem 0 3rem; align-items: start; }
.gallery { position: sticky; top: 140px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tile); aspect-ratio: 3 / 4; max-height: 78vh; margin: 0 auto; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .badges { top: 1rem; left: 1rem; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin-top: .7rem; }
.thumb { border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 3 / 4; background: var(--tile); }
.thumb.active { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .3rem; }
.pf-ref { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.pf-price { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.save { background: #fbe4e1; color: var(--sale); font-size: .76rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.pf-desc { color: var(--ink-2); }
.pf-field { margin-bottom: 1.2rem; }
.pf-label { display: block; font-size: .84rem; margin-bottom: .55rem; }
.pf-label strong { font-weight: 600; }
.swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: box-shadow .2s; }
.swatch.active { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px var(--bg), 0 0 0 4.5px var(--ink); }
.stock { font-size: .84rem; font-weight: 500; display: flex; align-items: center; gap: .35rem; margin-bottom: 1rem; }
.stock .ic { width: 16px; height: 16px; }
.stock.in { color: var(--ok); }
.stock.low { color: #c27a17; }
.stock.low::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stock.out { color: var(--sale); }
.pf-buy { display: flex; gap: .6rem; margin-bottom: .7rem; }
.pf-buy .btn-primary { flex: 1; }
.wish-lg { border: 1px solid var(--line); width: 48px; height: 48px; flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.qty button { width: 40px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; border-radius: 50%; }
.qty span { min-width: 22px; text-align: center; font-weight: 500; }
.qty-sm button { width: 30px; height: 30px; font-size: .95rem; }
.perks { list-style: none; padding: 1.2rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .7rem; font-size: .86rem; color: var(--ink-2); }
.perks li { display: flex; align-items: center; gap: .7rem; }
.perks .ic { color: var(--accent); }
.ptabs { border-top: 1px solid var(--line); padding-top: 2rem; }
.ptabs .tabs { justify-content: flex-start; }
.ptab-panel { max-width: 48rem; color: var(--ink-2); }
.features { width: 100%; border-collapse: collapse; font-size: .9rem; }
.features th, .features td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.features th { width: 40%; font-weight: 500; background: var(--bg-alt); }

/* ---------- Aperçu rapide ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(30, 22, 18, .5); }
.modal-card { position: relative; background: var(--bg); border-radius: 18px; width: min(940px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--surface); }
.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick-media { position: relative; background: var(--tile); }
.quick-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.quick-info { padding: 2.2rem 2rem; }
.quick-info .pf-title { font-size: 1.8rem; }

/* ---------- Panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 48; pointer-events: none; }
.drawer-backdrop { opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.35rem; }
.drawer-head h3 span { font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.ship-bar { padding: .9rem 1.4rem; background: var(--accent-soft); font-size: .82rem; }
.ship-bar p { margin: 0 0 .5rem; }
.ship-track { height: 4px; background: rgba(0,0,0,.08); border-radius: 2px; overflow: hidden; }
.ship-track div { height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.drawer-items { flex: 1; overflow-y: auto; padding: .4rem 1.4rem; }
.drawer-foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem 1.4rem; background: var(--surface); }
.drawer-foot[hidden] { display: none; }
.total-row { display: flex; justify-content: space-between; font-size: 1rem; }
.total-row strong { font-weight: 600; }
.checkout { display: grid; gap: .5rem; }
.checkout .btn { margin-top: .4rem; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 76px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--tile); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-weight: 500; font-size: .9rem; text-decoration: none; }
.line-name:hover { text-decoration: underline; }
.line-meta { font-size: .78rem; color: var(--muted); }
.line .qty { margin-top: .5rem; }
.line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; font-size: .9rem; }
.remove { border: 0; background: none; color: var(--muted); font-size: .75rem; cursor: pointer; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--sale); }

/* ---------- Inputs ---------- */
.input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font: 400 .9rem var(--sans); background: var(--surface); color: var(--ink); transition: border-color .2s; }
.input:focus { outline: none; border-color: var(--ink); }

/* ---------- FAQ ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.step-n { display: block; font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.steps strong { display: block; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }
.faq-list { max-width: 52rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.25rem 0; font-weight: 500; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; }

/* ---------- Pied de page ---------- */
.footer { margin-top: 0; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.trust > div { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; padding: 1.8rem 1rem; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust > div > span:first-child { grid-row: span 2; display: grid; }
.trust .ic { width: 30px; height: 30px; color: var(--accent); stroke-width: 1.3; }
.trust strong { font-size: .88rem; font-weight: 600; }
.trust small { font-size: .78rem; color: var(--muted); }
.footer-dark { background: var(--ink); color: #cfc3b8; font-size: .88rem; padding-top: clamp(48px, 6vw, 72px); }
.footer-dark .logo { color: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 3rem; }
.footer-brand p { margin: 1rem 0 1.2rem; line-height: 1.7; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials .ic { width: 18px; height: 18px; }
.footer-dark h4 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--bg); margin-bottom: 1.1rem; }
.footer-dark ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-dark a { text-decoration: none; transition: color .2s; }
.footer-dark a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; padding-bottom: 1.3rem; font-size: .78rem; color: #9d9088; }

/* ---------- Divers ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 16px); display: flex; align-items: center; gap: .5rem; background: var(--ink); color: var(--bg); padding: .8rem 1.4rem; border-radius: 999px; font-size: .85rem; opacity: 0; transition: .3s var(--ease); z-index: 60; pointer-events: none; max-width: calc(100% - 32px); }
.toast .ic { width: 18px; height: 18px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 2 * 1.2rem) / 3); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mainnav-inner { gap: 1.1rem; }
  .mainnav-inner > a, .has-mega > a { font-size: .74rem; letter-spacing: .02em; }
}
@media (max-width: 960px) {
  .header-main { grid-template-columns: 1fr auto 1fr; gap: .5rem; }
  .menu-btn { display: inline-grid; justify-self: start; }
  .logo { justify-self: center; }
  .logo img { height: 38px; }
  .header-icons { justify-self: end; }
  .search-trigger, .mainnav { display: none; }
  .search-mobile { display: inline-grid; }
  .slide-inner { grid-template-columns: 1fr; text-align: center; gap: 0; min-height: 0; }
  .slide-text { margin: 0 auto; padding: 2rem 0 3.5rem; order: 2; }
  .slide-media { padding: 1.5rem 0 0; }
  .slide-media img { max-height: 260px; }
  .hero-arrow { display: none; }
  .shop-layout { grid-template-columns: 1fr; padding-top: 1.4rem; }
  .filters {
    position: fixed; inset: 0 auto 0 0; z-index: 52; width: min(360px, 90%); background: var(--bg); padding: 1rem 1.3rem;
    overflow-y: auto; transform: translateX(-105%); transition: transform .35s var(--ease); box-shadow: 0 0 0 100vmax rgba(30, 22, 18, 0);
    display: flex; flex-direction: column;
  }
  .filters.open { transform: none; box-shadow: 0 0 0 100vmax rgba(30, 22, 18, .5); }
  .filters-close, .filters-open { display: inline-grid !important; }
  .filters-open { display: inline-flex !important; }
  .filters-foot { display: flex !important; gap: .6rem; margin-top: auto; padding-top: 1.2rem; position: sticky; bottom: 0; background: var(--bg); }
  .filters-foot .btn { flex: 1; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .quick { grid-template-columns: 1fr; }
  .quick-media img { aspect-ratio: 4 / 3; }
  .quick-info { padding: 1.4rem; }
  .promo, .story { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .card-actions { opacity: 1; transform: none; }
  .card-actions [data-quick] span { display: none; }
  .card-actions [data-quick] { flex: 0 0 38px; padding: .55rem 0; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.6rem .8rem; }
  .rail { grid-auto-columns: 64%; }
  .rail-btn { display: none; }
  .cat-circles { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .card-actions button { font-size: .72rem; padding: .55rem .4rem; }
  .card-actions [data-add] span { display: none; }
  .card-actions [data-add] { flex: 0 0 38px; padding: .55rem 0; }
  .card-actions { justify-content: flex-end; left: auto; }
  .card-title { font-size: .95rem; }
  .grid.is-list .card { grid-template-columns: 110px 1fr; gap: .9rem; padding: .6rem; }
  .grid.is-list .card-desc { display: none; }
  .grid.is-list .card-actions { display: none; }
  .toolbar-right { margin-left: 0; width: 100%; }
  .toolbar .select > span { display: none; }
  .per-page { display: none !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust > div, .trust > div + div { border-left: 0; }
  .trust > div + div { border-top: 1px solid var(--line); }
  .announce { font-size: .7rem; }
  .pf-buy .btn-primary { padding-left: .8rem; padding-right: .8rem; }
  .qty button { width: 34px; }
  .search-form input { font-size: 1.1rem; }
  .search-list { grid-template-columns: 1fr; }
}

/* =========================================================
   Comptes, commande, suivi, administration
   ========================================================= */
#accountBtn.is-logged::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg); }
.btn-lg { padding: 1rem 1.6rem; font-size: .95rem; }
.loader { width: 36px; height: 36px; margin: 3rem auto; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: .7rem; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .9rem; margin: 0 0 1.4rem; }
.notice .ic { color: var(--accent); margin-top: 1px; }
.notice a { color: var(--accent); font-weight: 500; }
.notice-ok { background: #eaf4ec; border-color: #cfe5d3; } .notice-ok .ic { color: var(--ok); }
.notice-error { background: #fdecea; border-color: #f6cdc8; } .notice-error .ic { color: var(--sale); }
.tag { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; background: #fff3d6; color: #8a5a00; padding: .15rem .45rem; border-radius: 999px; margin-left: .3rem; vertical-align: middle; }

/* Formulaires */
.form { display: grid; gap: 1rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-2 .full { grid-column: 1 / -1; }
.form.narrow { max-width: 420px; }
.field { display: grid; gap: .4rem; font-size: .84rem; font-weight: 500; }
.field small { font-weight: 400; color: var(--muted); }
.field .input[readonly] { background: var(--bg-alt); color: var(--muted); }
textarea.input { resize: vertical; font-family: var(--sans); }
select.input { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232b211c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 1rem center; padding-right: 2.4rem; cursor: pointer; }
.input-sm { padding: .45rem 2rem .45rem .7rem; font-size: .8rem; border-radius: 999px; background-position: right .7rem center; }
.form-error { color: var(--sale); font-size: .85rem; margin: 0; background: #fdecea; padding: .6rem .8rem; border-radius: 8px; }
.form-error[hidden] { display: none; }

/* Connexion */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.auth { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 999px; padding: 4px; margin-bottom: 1.6rem; }
.seg button { border: 0; background: none; border-radius: 999px; padding: .65rem; font-weight: 500; font-size: .88rem; cursor: pointer; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-perks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1.6rem; }
.auth-perks li { display: flex; gap: 1rem; }
.auth-perks .ic { width: 26px; height: 26px; color: var(--accent); }
.auth-perks strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.auth-perks span { color: var(--muted); font-size: .9rem; }

/* Espace client */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; padding-top: 2rem; padding-bottom: 4rem; align-items: start; }
.account-nav { display: grid; gap: .2rem; position: sticky; top: 140px; }
.account-nav a, .account-nav button { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: var(--radius-sm); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); border: 0; background: none; cursor: pointer; text-align: left; }
.account-nav a:hover, .account-nav button:hover { background: var(--bg-alt); }
.account-nav a.active { background: var(--ink); color: var(--bg); }
.account-nav button { color: var(--sale); margin-top: .6rem; border-top: 1px solid var(--line); border-radius: 0; padding-top: 1rem; }
.account-body h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }
.order-list { display: grid; gap: .7rem; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1.1rem .8rem .8rem; text-decoration: none; transition: border-color .2s; }
.order-row:hover { border-color: var(--ink); }
.or-thumbs { display: flex; }
.or-thumbs span { width: 48px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--tile); border: 2px solid var(--surface); }
.or-thumbs span + span { margin-left: -18px; }
.or-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.or-main strong { display: block; font-weight: 600; }
.or-main small { color: var(--muted); font-size: .8rem; }
.or-pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.or-total { white-space: nowrap; }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); white-space: nowrap; }
.pill-st-new { background: #fff3d6; color: #8a5a00; }
.pill-st-confirmed { background: #e3eefc; color: #1d4f91; }
.pill-st-shipped { background: #ece6fb; color: #5b3a9e; }
.pill-st-delivered, .pill-pay-paid { background: #e3f2e6; color: #2f6b3a; }
.pill-st-cancelled, .pill-pay-failed { background: #fdecea; color: var(--sale); }
.pill-pay-pending { background: #fff3d6; color: #8a5a00; }

/* Validation de commande */
.checkout-title { margin: 1rem 0 1.6rem; }
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2.4rem; align-items: start; padding-bottom: 4rem; }
.co-block { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.4rem 1.5rem 1.6rem; margin: 0 0 1.2rem; }
.co-block legend { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.25rem; padding: 0 .4rem; margin-left: -.4rem; }
.co-block legend span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 .8rem var(--sans); display: grid; place-items: center; }
.pay-options { display: grid; gap: .7rem; }
.pay-opt { display: grid; grid-template-columns: auto auto 1fr; gap: .9rem; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.pay-opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.pay-opt strong { display: block; font-size: .95rem; }
.pay-opt small { color: var(--muted); font-size: .82rem; }
.pay-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-alt); display: grid; place-items: center; color: var(--accent); }
.pay-opt.is-disabled { opacity: .55; cursor: not-allowed; }
.checkout-side { position: sticky; top: 140px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.checkout-side h3 { margin: 0; font-size: 1.3rem; }
.co-items { display: grid; gap: .2rem; max-height: 340px; overflow-y: auto; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; padding: .5rem 0; font-size: .88rem; }
.co-thumb { position: relative; width: 56px; height: 70px; border-radius: 8px; background: var(--tile); display: block; }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.co-thumb b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .7rem; display: grid; place-items: center; padding: 0 5px; }
.co-name { font-weight: 500; }
.co-name small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.co-totals { border-top: 1px solid var(--line); padding-top: .9rem; display: grid; gap: .5rem; font-size: .9rem; }
.co-totals > div { display: flex; justify-content: space-between; gap: 1rem; }
.co-grand { font-size: 1.05rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.co-grand strong { font-size: 1.2rem; }
.secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; }
.secure .ic { width: 14px; height: 14px; }

/* Suivi de commande */
.order-page { padding-bottom: 4rem; }
.order-page > .notice { margin-top: 1rem; }
.order-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 1.6rem; }
.order-head h1 { margin: 0 0 .2rem; }
.order-head p { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.timeline li { position: relative; text-align: center; font-size: .82rem; color: var(--muted); display: grid; justify-items: center; gap: .5rem; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before { background: var(--ok); }
.timeline li span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: .8rem; }
.timeline li span .ic { width: 16px; height: 16px; }
.timeline li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.current { color: var(--ink); font-weight: 600; }
.order-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.6rem; align-items: start; }
.order-side { display: grid; gap: 1rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.box h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.box p { font-size: .9rem; line-height: 1.7; }
.box .btn { margin-top: .4rem; }

/* Administration */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.stat span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }
.tabs.left { justify-content: flex-start; }
.tabs a.tab { text-decoration: none; }
.admin-list { display: grid; gap: .6rem; }
.admin-order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-order[open] { border-color: var(--ink); }
.admin-order summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1.1fr 1.6fr 1fr auto auto; gap: 1rem; align-items: center; padding: .9rem 1.1rem; }
.admin-order summary::-webkit-details-marker { display: none; }
.admin-order summary strong { display: block; font-weight: 600; font-size: .9rem; }
.admin-order summary small { color: var(--muted); font-size: .78rem; }
.ao-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; padding: .4rem 1.1rem 1.2rem; border-top: 1px solid var(--line); }
.ao-info p { font-size: .88rem; }
.ao-info a { color: var(--accent); }

/* Panier : commande WhatsApp secondaire */
.wa-order { margin-top: .8rem; }
.wa-order summary { cursor: pointer; text-align: center; font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; list-style: none; padding: .3rem; }
.wa-order summary::-webkit-details-marker { display: none; }
.wa-order[open] summary { margin-bottom: .6rem; }
.wa-order.solo summary { display: none; }
.wa-order.solo { margin-top: 0; }

@media (max-width: 960px) {
  .auth-wrap, .account, .checkout-grid, .order-grid { grid-template-columns: 1fr; }
  .account-nav { position: static; grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; }
  .account-nav button { margin: 0; border-top: 0; padding-top: .75rem; }
  .checkout-side { position: static; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-order summary { grid-template-columns: 1fr 1fr; }
  .ao-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wish-link { display: none; }
  .form-2 { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: auto 1fr auto; }
  .order-row .or-pills { grid-column: 2 / -1; grid-row: 2; }
  .order-row > .ic { display: none; }
  .timeline li { font-size: .7rem; }
  .auth { padding: 1.3rem; }
  .co-block { padding: 1.1rem 1rem 1.3rem; }
}


/* =========================================================
   Ambiance cosy & animations
   ========================================================= */
:root { --hand: "Caveat", "Segoe Script", cursive; --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); interpolate-size: allow-keywords; }

/* Texture papier très légère */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .14 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Écriture manuscrite */
.hand { font-family: var(--hand); font-weight: 600; color: var(--accent); font-size: 1.6rem; line-height: 1; letter-spacing: 0; display: inline-block; transform: rotate(-4deg); }
.footer-note { color: #e98a7f; font-size: 1.45rem; margin: -.4rem 0 1.2rem; }

/* Transition entre pages */
#app.enter { animation: pageIn .55s var(--ease-out); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 75ms); }
.reveal.in { opacity: 1; transform: none; }
.cat-circle.reveal { transform: translateY(26px) scale(.94); }
.cat-circle.reveal.in { transform: none; }

/* Images : fondu au chargement + reflet pendant le chargement */
html.anim .card-img img, html.anim .gallery-main img, html.anim .cat-img img, html.anim .slide-media img, html.anim .promo-media img,
html.anim .mega-img img, html.anim .insta-grid img, html.anim .atelier-photo img, html.anim .quick-media img, html.anim .subcat img { opacity: 0; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
html.anim img.is-loaded { opacity: 1; }
.card-media, .gallery-main, .insta-grid a, .atelier-photo {
  background: linear-gradient(100deg, var(--tile) 35%, #f8efe5 50%, var(--tile) 65%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite;
}
.card-media:has(img.is-loaded), .gallery-main:has(img.is-loaded), .insta-grid a:has(img.is-loaded), .atelier-photo:has(img.is-loaded) { animation: none; background: var(--tile); }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Boutons : reflet au survol, flèches qui avancent */
.btn-primary, .btn-wa { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-wa::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn-primary:hover::after, .btn-wa:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); }
.link-more { transition: letter-spacing .3s var(--ease-out); }
.link-more:hover { letter-spacing: .02em; }

/* Cartes produit : légère élévation */
.card-media { transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out); }
.card:hover .card-media { transform: translateY(-6px); box-shadow: 0 26px 40px -26px rgba(60, 35, 20, .5); }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out); text-decoration: none !important; }
.card:hover .card-title a { background-size: 100% 1px; }
.wish-btn.pop .ic, .wish-lg.pop .ic { animation: heartPop .5s var(--ease-spring); }
@keyframes heartPop { 40% { transform: scale(1.45); } 70% { transform: scale(.9); } }

/* Produit qui vole vers le panier */
.fly { position: fixed; z-index: 75; object-fit: cover; pointer-events: none; box-shadow: 0 20px 40px -10px rgba(0,0,0,.35); will-change: transform; }

/* Hero : forme organique, flottement, étincelles */
.slide-media { position: relative; }
.slide-media img { position: relative; z-index: 1; }
.slide.active .slide-media img.is-loaded { animation: heroIn 1.2s var(--ease-out) both, floaty 7s ease-in-out 1.2s infinite; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px) scale(.95) rotate(-2deg); } }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(.6deg); } }
.blob { position: absolute; z-index: 0; width: min(440px, 80%); aspect-ratio: 1; background: rgba(223, 39, 27, .09); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: morph 14s ease-in-out infinite; }
@keyframes morph { 33% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: rotate(40deg) scale(1.04); } 66% { border-radius: 38% 62% 55% 45% / 62% 38% 62% 38%; transform: rotate(-20deg) scale(.97); } }
.sparkle { position: absolute; z-index: 2; color: var(--accent); width: 26px; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle svg { width: 100%; height: auto; fill: currentColor; display: block; }
.sp1 { top: 10%; left: 12%; } .sp2 { top: 22%; right: 10%; width: 18px; animation-delay: 1.1s; } .sp3 { bottom: 14%; left: 20%; width: 14px; animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
.hero-note { position: absolute; z-index: 2; right: 4%; bottom: 10%; background: var(--bg); padding: .45rem .9rem .55rem; border-radius: 999px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); font-size: 1.45rem; }
.slide.active .hero-note { animation: noteIn .9s .7s var(--ease-spring) both; }
@keyframes noteIn { from { opacity: 0; transform: rotate(-12deg) scale(.6); } to { transform: rotate(-4deg); } }

/* Titres de section : trait manuscrit */
.section-head.center h2::after { content: ""; display: block; width: 110px; height: 14px; margin: .55rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M2 9c10-8 18-8 26 0s16 8 26 0 18-8 26 0 16 8 26 0 10-6 12-4' fill='none' stroke='%23df271b' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-out) .35s; }
.section-head.center.in h2::after, html:not(.anim) .section-head.center h2::after { clip-path: inset(0 0 0 0); }
.atelier-text h2 em, .promo-text h2 em { font-style: italic; color: var(--accent); }

/* Catégories : anneau en pointillés qui tourne */
.cat-img { overflow: visible; position: relative; border: 0; }
.cat-img img { border-radius: 50%; aspect-ratio: 1; height: auto; }
.cat-img::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed var(--accent); opacity: 0; transform: scale(.94); transition: opacity .4s, transform .5s var(--ease-out); animation: spin 22s linear infinite; }
.cat-circle:hover .cat-img::after { opacity: .7; transform: scale(1); }
.cat-circle:hover .cat-img { box-shadow: none; }

/* Atelier */
.atelier { background: var(--bg-alt); overflow: hidden; }
.atelier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.atelier-media { position: relative; padding: 0 12% 12% 0; }
.atelier-video { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--tile); box-shadow: var(--shadow); }
.atelier-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.atelier-photo { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); box-shadow: var(--shadow); transform: rotate(4deg); transition: transform .6s var(--ease-spring); }
.atelier-photo:hover { transform: rotate(0) scale(1.03); }
.atelier-photo img { width: 100%; height: 100%; object-fit: cover; }
.atelier-note { position: absolute; left: -2%; top: 6%; font-size: 1.9rem; background: var(--bg); padding: .3rem .9rem .45rem; border-radius: 999px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.3); }
.atelier-text p:not(.eyebrow) { color: var(--ink-2); font-size: 1.03rem; }
.atelier-steps { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: 1rem; }
.atelier-steps li { display: flex; gap: 1rem; align-items: center; }
.atelier-steps b { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; color: var(--accent); width: 52px; height: 52px; border-radius: 50%; border: 1px dashed var(--accent); display: grid; place-items: center; flex: none; }
.atelier-steps strong { display: block; font-weight: 600; }
.atelier-steps span { font-size: .9rem; color: var(--muted); }

/* Instagram */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.insta-grid a { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: block; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out), opacity .7s; }
.insta-grid a span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(223, 39, 27, .55); color: #fff; opacity: 0; transition: opacity .35s; }
.insta-grid a span .ic { width: 30px; height: 30px; transform: scale(.7); transition: transform .4s var(--ease-spring); }
.insta-grid a:hover span { opacity: 1; }
.insta-grid a:hover span .ic { transform: none; }
.insta-grid a:hover img { transform: scale(1.08); }
.insta-grid a:nth-child(even) { transform: translateY(18px); }
.insta-grid a.reveal:nth-child(even) { transform: translateY(44px); }
.insta-grid a.reveal.in:nth-child(even) { transform: translateY(18px); }

/* FAQ : ouverture en douceur */
.faq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }

/* Panier : lignes qui glissent */
.drawer.open .line { animation: lineIn .5s var(--ease-out) both; }
.drawer.open .line:nth-child(2) { animation-delay: .05s; } .drawer.open .line:nth-child(3) { animation-delay: .1s; } .drawer.open .line:nth-child(4) { animation-delay: .15s; }
@keyframes lineIn { from { opacity: 0; transform: translateX(24px); } }

/* Divers */
.badge-custom { animation: badgeWiggle 4s ease-in-out infinite; transform-origin: left center; }
@keyframes badgeWiggle { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } }
.toast { border-radius: 999px; }
.toast.show { animation: toastIn .5s var(--ease-spring); }
@keyframes toastIn { from { transform: translate(-50%, 30px) scale(.9); } }
.icon-btn:hover .ic { animation: iconNudge .45s var(--ease-spring); }
@keyframes iconNudge { 50% { transform: translateY(-2px) rotate(-6deg); } }
.footer-dark { position: relative; }
.footer-dark::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; background: var(--bg); -webkit-mask: radial-gradient(14px 12px at 50% 0, #000 98%, transparent) 0 0 / 28px 22px repeat-x; mask: radial-gradient(14px 12px at 50% 0, #000 98%, transparent) 0 0 / 28px 22px repeat-x; }

@media (max-width: 960px) {
  .atelier-grid { grid-template-columns: 1fr; }
  .atelier-media { max-width: 460px; margin: 0 auto; width: 100%; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .blob { width: 70%; }
  .hero-note { font-size: 1.2rem; bottom: 4%; }
}
@media (max-width: 640px) {
  .insta-grid a:nth-child(even), .insta-grid a.reveal.in:nth-child(even) { transform: none; }
  .insta-grid a.reveal:nth-child(even) { transform: translateY(26px); }
  .atelier-note { font-size: 1.5rem; }
}


/* =========================================================
   Atelier sur mesure
   ========================================================= */
.nav-custom { color: var(--accent) !important; }
.nav-custom span { display: inline-block; animation: twinkle 3s ease-in-out infinite; }
.cm-head { position: relative; overflow: hidden; }
.cm-head h1 em { font-style: italic; color: var(--accent); }
.cm-note { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); bottom: 1.6rem; font-size: 2rem; }
.cm-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.4rem; padding-top: 2rem; padding-bottom: 4rem; align-items: start; }
.cm-studio { position: sticky; top: 130px; display: grid; gap: .9rem; }
.cm-canvas { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #fbf6ef; border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(60, 35, 20, .45); }
.cm-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#cvPaint { touch-action: none; cursor: crosshair; }
.cm-canvas[data-tool="stamp"] #cvPaint, .cm-canvas[data-tool="text"] #cvPaint { cursor: copy; }
#cvGloss { pointer-events: none; }
.cm-empty { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); margin: 0; display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.9); padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; color: var(--ink-2); pointer-events: none; white-space: nowrap; animation: hintBob 2.6s ease-in-out infinite; }
.cm-empty .ic { width: 16px; height: 16px; color: var(--accent); }
@keyframes hintBob { 50% { transform: translate(-50%, -5px); } }
.cm-tools { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; display: grid; gap: .7rem; }
.tool-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.tool-row[hidden] { display: none; }
.tool { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: .5rem .85rem; font-size: .8rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.tool .ic { width: 17px; height: 17px; }
.tool:hover { border-color: var(--ink); }
.tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tool.icon-only { padding: .5rem; }
.tool:disabled { opacity: .35; cursor: default; }
.tool-sep { flex: 1; }
.stamps { gap: .5rem; }
.stamp { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 1.3rem; cursor: pointer; transition: transform .2s var(--ease-spring); color: var(--ink); }
.stamp:hover { transform: scale(1.1) rotate(-6deg); }
.stamp.active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.text-row .input { flex: 1; }
.inks { display: flex; flex-wrap: wrap; gap: .35rem; flex: 1; }
.ink { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .2s var(--ease-spring); }
.ink:hover { transform: scale(1.15); }
.ink.active { box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 0 0 3px var(--surface), 0 0 0 4.5px var(--ink); }
.sizes { display: flex; gap: .3rem; }
.size { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.size i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); }
.size.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cm-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.cm-type { position: relative; display: grid; justify-items: center; text-align: center; gap: .2rem; padding: 1rem .6rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, transform .25s var(--ease-spring), background .2s; }
.cm-type:hover { transform: translateY(-2px); }
.cm-type input { position: absolute; opacity: 0; pointer-events: none; }
.cm-type:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.cm-type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-type-ic svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cm-type strong { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.cm-type small { font-size: .74rem; color: var(--muted); }
.swatches.clay .swatch { width: 32px; height: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; cursor: pointer; background: var(--bg); transition: all .2s; }
.chip-check span:hover { border-color: var(--ink); }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload { display: block; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 1rem; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.upload:hover { border-color: var(--accent); background: var(--bg); }
.upload-empty { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 400; }
.upload-full { display: none; align-items: center; justify-content: center; gap: 1rem; }
.upload.has-file .upload-empty { display: none; }
.upload.has-file .upload-full { display: flex; }
.upload-full img { max-height: 140px; border-radius: 10px; }
.cm-form .btn-lg .ic { width: 18px; height: 18px; }
.cm-done { display: grid; place-items: center; }
.cm-done-card { max-width: 560px; text-align: center; display: grid; justify-items: center; gap: .3rem; }
.cm-check { width: 74px; height: 74px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; animation: popIn .7s var(--ease-spring); }
.cm-check .ic { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes popIn { from { transform: scale(0) rotate(-30deg); } }
.cm-done-img { width: min(320px, 80%); border-radius: var(--radius); margin: 1.2rem 0; box-shadow: var(--shadow); transform: rotate(-2deg); }
.cm-done-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: .6rem 0; }
.custom-row .ph { display: grid; place-items: center; color: var(--accent); }
.pill-cs-new { background: #fff3d6; color: #8a5a00; } .pill-cs-quoted { background: #e3eefc; color: #1d4f91; } .pill-cs-accepted, .pill-cs-in_progress { background: #ece6fb; color: #5b3a9e; }
.pill-cs-done { background: #e3f2e6; color: #2f6b3a; } .pill-cs-cancelled { background: #fdecea; color: var(--sale); }
.admin-seg { max-width: 360px; margin-bottom: 1.4rem; }
.admin-seg a { text-align: center; text-decoration: none; padding: .6rem; border-radius: 999px; font-weight: 500; font-size: .88rem; color: var(--muted); }
.admin-seg a.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cm-admin-body { grid-template-columns: 1fr 1.2fr; }
.cm-admin-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-content: start; }
.cm-admin-imgs a { display: grid; gap: .3rem; text-decoration: none; font-size: .75rem; color: var(--muted); text-align: center; }
.cm-admin-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.cm-quote { background: var(--bg-alt); padding: .7rem .9rem; border-radius: 10px; font-style: italic; }
.cm-quote-form { display: grid; grid-template-columns: 110px 1fr auto; gap: .6rem; align-items: end; margin: .8rem 0; }
.admin-order summary:has(.ao-sel:only-of-type) { grid-template-columns: 1.1fr 1.6fr 1fr auto; }

@media (max-width: 960px) {
  .cm-grid { grid-template-columns: 1fr; }
  .cm-studio { position: static; }
  .cm-note { display: none; }
  .cm-admin-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tool span { display: none; }
  .tool { padding: .55rem; }
  .ink { width: 26px; height: 26px; }
  .cm-quote-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
