/* Sakura Production : galerie claire sur papier rosé, barre de navigation laque noire, accents sakura */
:root {
  color-scheme: light;
  --bg: #f5efec;
  --bg-2: #efe7e4;
  --card: #ffffff;
  --ink: #2a2426;
  --ink-2: #5c5357;
  --ink-3: #8a7f82;
  --line: #e7dcd9;
  --night: #1a1617;
  --night-2: #2a2426;
  --sakura: #f2a7bf;
  --rose: #d9768f;
  --rose-deep: #b9476f;
  --wash: #fbe9ef;
  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-ui: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-jp: "Shippori Mincho", "Yu Mincho", serif;
  --shadow: 0 1px 2px rgba(42,36,38,.06), 0 10px 26px rgba(42,36,38,.08);
  --ease: cubic-bezier(.22,.8,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.demo-bar { margin: 0; padding: 8px 16px; background: var(--wash); color: var(--rose-deep); text-align: center; font-size: 13px; }
.loading, .empty { padding: 60px 0; text-align: center; color: var(--ink-3); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(26,22,23,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); padding-top: env(safe-area-inset-top, 0px); }
.nav-in { max-width: 1440px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 16px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .2em; white-space: nowrap; }
.brand b i { font-style: normal; color: var(--sakura); }
.menu { display: flex; align-items: center; gap: 2px; margin: 0 auto; min-width: 0; }
.menu > a, .mi > a { display: flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #e9e1e3; white-space: nowrap; transition: background .2s, color .2s; }
.menu > a:hover, .mi > a:hover, .mi:focus-within > a { background: rgba(242,167,191,.12); color: #fff; }
.menu a.on { background: var(--sakura); color: var(--night); }
.chev { font-size: 10px; opacity: .7; }
.mi { position: relative; }
.dd { position: absolute; top: 100%; left: 0; padding-top: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.mi:hover .dd, .mi:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd > div { min-width: 210px; display: grid; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px rgba(26,22,23,.25); }
.dd a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink); }
.dd a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sakura); }
.dd a:hover { background: var(--wash); color: var(--rose-deep); }
.act { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-ghost { padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e9e1e3; font-size: 14px; font-weight: 500; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-cart { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--sakura); color: var(--night); font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .2s; }
.btn-cart:hover { filter: brightness(1.07); }
.btn-cart svg { width: 18px; height: 18px; }
.count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--rose-deep); font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }

/* ---------- accueil ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 56px 20px 46px; background: radial-gradient(ellipse 60% 70% at 50% 30%, #fbf8f6, rgba(251,248,246,0) 70%); }
.br { position: absolute; top: 0; width: min(460px, 32vw); aspect-ratio: 46 / 33; background: no-repeat center / contain; pointer-events: none; }
.br-l { left: 0; background-image: url(img/branche_g.svg); }
.br-r { right: 0; background-image: url(img/branche_d.svg); }
.hero-logo { display: block; width: 64px; height: 64px; margin: 0 auto 14px; position: relative; }
.hero h1 { position: relative; margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 7vw, 92px); line-height: 1; letter-spacing: .32em; margin-right: -.32em; color: #1f1a1c; }
.hero .sub { position: relative; margin: 12px 0 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(16px, 1.8vw, 23px); letter-spacing: .62em; margin-right: -.62em; }
.tag { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; margin: 28px 0 0; font-size: 12.5px; font-weight: 500; letter-spacing: .36em; text-transform: uppercase; color: #3a3235; }
.tag span { width: 72px; height: 1px; background: #cbbcbf; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 40px; padding: 18px 0; border-block: 1px solid var(--line); }
.trust > div { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 14px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust .ic { width: 26px; height: 26px; }
.trust p { margin: 0; }
.trust b { display: block; font-size: 14px; font-weight: 600; }
.trust small { display: block; font-size: 12px; color: var(--ink-3); }
.sh { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.shf { width: 26px; height: 26px; flex: none; }
.sh h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 28px; color: #1f1a1c; }
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 48px; }
.cat { display: block; overflow: hidden; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(42,36,38,.08), 0 18px 38px rgba(42,36,38,.14); }
.cat-m { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-2); }
.cat-m img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cat:hover .cat-m img { transform: scale(1.06); }
.kj { display: grid !important; place-items: center; background: radial-gradient(ellipse 80% 120% at 30% 20%, #3a2f33 0%, var(--night) 70%); }
.kj em { font-style: normal; font-family: var(--f-jp); font-size: clamp(36px, 4vw, 58px); color: var(--sakura); opacity: .9; transition: transform .5s var(--ease); }
.cat:hover .kj em, .card:hover .kj em { transform: scale(1.1); }
.cat-b { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.cat-b b { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.1; }
.cat-b small { color: var(--ink-3); font-size: 12.5px; }
.cat-b .go { margin-left: auto; width: 18px; height: 18px; transition: transform .3s; }
.cat:hover .go { transform: translateX(4px); color: var(--rose); }

/* ---------- cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 48px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.card:hover { transform: translateY(-3px); }
.card-link { display: block; }
.media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .media img { transform: scale(1.05); }
.card-b { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; flex: 1; }
.card-t { font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.card-t:hover { color: var(--rose-deep); }
.card-b small { color: var(--ink-3); font-size: 12.5px; }
.card-f { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-f strong { font-size: 17px; font-weight: 700; }
.card-f s, .buy s { color: var(--ink-3); font-size: 13px; }
.add { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 8px 13px; border: 0; border-radius: 8px; background: var(--night-2); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s; }
.add:hover { background: var(--rose); }
.add .ic { width: 15px; height: 15px; }
.add:disabled, .cta:disabled { opacity: .6; cursor: wait; }

/* ---------- pages ---------- */
.page { padding-block: 28px 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a:hover { color: var(--rose-deep); }
.crumbs b { color: var(--ink); font-weight: 600; }
.page-h { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.page-kj { flex: none; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 16px; background: var(--night); color: var(--sakura); font-family: var(--f-jp); font-size: 38px; }
.page-h h1 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.page-d { color: var(--ink-2); max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips a { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }
.chips a small { color: var(--ink-3); margin-left: 3px; }
.chips a:hover { border-color: var(--rose); }
.chips a.on { background: var(--night); border-color: var(--night); color: #fff; }

/* ---------- fiche produit ---------- */
.prod { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 52px; }
.prod-m { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--bg-2); box-shadow: var(--shadow); }
.prod-m img { width: 100%; height: 100%; object-fit: cover; }
.prod-m.kj em { font-size: 120px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tiles > div { display: grid; justify-items: center; gap: 3px; padding: 16px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; min-width: 0; }
.tiles .ic { color: var(--rose); margin-bottom: 4px; }
.tiles small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tiles b { font-size: 14.5px; overflow-wrap: anywhere; }
.prod-r h1 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
.buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.buy strong { font-size: 28px; font-weight: 700; margin-right: 8px; }
.buy small { display: block; font-size: 12px; color: var(--ink-3); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-left: auto; padding: 14px 22px; border: 0; border-radius: 10px; background: var(--rose); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .2s, transform .2s var(--ease); }
.cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cta .ic { width: 18px; height: 18px; }
.cta.wide { width: 100%; margin: 0; }
.promo { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--wash); border: 1px solid #f3c6d4; font-size: 14px; }
.promo .ic { color: var(--rose); }
.promo code { padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--rose-deep); font-weight: 700; }
.desc { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.desc h2 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 24px; }
.desc-c { color: var(--ink-2); line-height: 1.65; overflow-wrap: anywhere; }
.desc-c img, .desc-c iframe { max-width: 100%; }
.desc-c table { max-width: 100%; width: 100%; table-layout: fixed; }
.prod > * { min-width: 0; }
.thanks { text-align: center; padding-block: 70px; }
.thanks h1 { font-family: var(--f-display); font-size: 42px; margin: 10px 0; }
.thanks p { color: var(--ink-2); max-width: 520px; margin: 0 auto 24px; }

/* ---------- panier ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-bg { position: absolute; inset: 0; background: rgba(26,22,23,.45); opacity: 0; transition: opacity .25s; }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); box-shadow: -20px 0 50px rgba(26,22,23,.2); transform: translateX(100%); transition: transform .25s var(--ease); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.show .drawer-bg { opacity: 1; }
.drawer.show .drawer-in { transform: none; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font-family: var(--f-display); font-size: 26px; font-weight: 600; }
.x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--ink-2); }
.x:hover { background: var(--bg-2); color: var(--ink); }
.drawer-body { overflow-y: auto; padding: 14px 20px; display: grid; gap: 10px; align-content: start; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--card); }
.line-m { display: block; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 8px; background: var(--bg-2); }
.line-m img { width: 100%; height: 100%; object-fit: cover; }
.line-m.kj em { font-size: 22px; }
.line b { display: block; font-size: 14.5px; }
.line small { color: var(--ink-3); }
.drawer-f { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.who { margin: 0; font-size: 13px; color: var(--ink-2); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
.coupon button { padding: 0 16px; border: 0; border-radius: 10px; background: var(--night-2); color: #fff; font-weight: 600; cursor: pointer; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.total b { font-size: 24px; }
.note { text-align: center; color: var(--ink-3); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; padding: 12px 20px; border-radius: 999px; background: var(--night); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---------- pied de page (bandeau Tebex obligatoire, modèle officiel Headless) ---------- */
.foot { margin-top: 30px; background: var(--night); color: #e9e1e3; }
.foot-store { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px max(24px, env(safe-area-inset-right, 0px)) 26px max(24px, env(safe-area-inset-left, 0px)); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand svg { width: 34px; height: 34px; flex: none; }
.foot-brand b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.foot-brand small { color: #a99ea2; font-size: 12.5px; }
.foot-links a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--sakura); color: var(--night); font-size: 14px; font-weight: 600; }
.foot-links a:hover { filter: brightness(1.07); }
.foot-tebex { background: #000; color: #fff; font-size: 12.5px; }
.foot-tebex-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px max(24px, env(safe-area-inset-right, 0px)) 14px max(24px, env(safe-area-inset-left, 0px)); }
.tebex-logo { flex: none; display: block; }
.tebex-logo img { display: block; width: 51px; height: auto; }
.foot-tebex p { margin: 0; flex: 1 1 420px; line-height: 1.5; }
.foot-tebex p span { color: #bdbdbd; }
.foot-tebex nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-tebex nav a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.foot .legal { margin: 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); background: #000; border-top: 1px solid #1c1c1c; color: #8b8b8b; font-size: 11.5px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) { .cats, .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .brand b i { display: none; } }
@media (max-width: 1060px) {
  .burger { display: grid; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 14px; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); max-height: 75vh; overflow-y: auto; }
  .menu.open { display: flex; }
  .dd { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 4px 18px; }
  .dd > div { background: transparent; box-shadow: none; padding: 0; }
  .dd a { color: #d9cfd2; }
  .dd a:hover { background: rgba(242,167,191,.12); color: #fff; }
  .act { margin-left: auto; }
  .prod { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .trust > div:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .nav-in { gap: 10px; }
  .btn-cart { padding: 10px 14px; }
  .btn-ghost { display: none; }
  .cats, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-f { flex-wrap: wrap; }
  .add { margin-left: 0; width: 100%; justify-content: center; }
  .trust { grid-template-columns: 1fr; }
  .trust > div { justify-content: flex-start; }
  .trust > div + div { border-left: 0; }
  .tag { gap: 10px; letter-spacing: .2em; font-size: 10.5px; }
  .tag span { width: 26px; }
  .br { width: 42vw; opacity: .7; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { width: 100%; margin-left: 0; }
  .cat-b b { font-size: 19px; }
  .cat-b small { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* ===================== V2 : effets et sections ===================== */
/* recherche dans le menu */
.btn-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px 9px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.05); color: #cfc5c8; font-size: 13.5px; cursor: pointer; transition: border-color .2s, color .2s; }
.btn-search:hover { border-color: var(--sakura); color: #fff; }
.btn-search svg { width: 17px; height: 17px; }
.btn-search kbd { font: 600 10.5px var(--f-ui); padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.1); color: #bfb4b8; }
.search { position: fixed; inset: 0; z-index: 110; display: grid; justify-items: center; align-items: start; padding: max(80px, 10vh) 16px 16px; }
.search-bg { position: absolute; inset: 0; background: rgba(26,22,23,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.search-in { position: relative; width: min(640px, 100%); max-height: 75vh; display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 18px; background: var(--bg); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.search-f { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-f svg { width: 20px; height: 20px; color: var(--rose); flex: none; }
.search-f input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 17px; outline: none; }
.search-f .x { width: auto; padding: 0 10px; font-size: 12px; border: 1px solid var(--line); }
.search-r { overflow-y: auto; padding: 8px 10px 14px; }
.sr-h { margin: 10px 8px 6px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sr { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.sr:hover, .sr:focus-visible { background: var(--card); }
.sr > :first-child { grid-row: span 2; }
.sr b { font-size: 15px; }
.sr small { color: var(--ink-3); font-size: 12.5px; }
.sr-m { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--bg-2); }
.sr-m img { width: 100%; height: 100%; object-fit: cover; }
.sr-m.kj em { font-size: 20px; }
.sr-k { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; background: var(--night); color: var(--sakura); font-family: var(--f-jp); font-size: 22px; }
.empty.small { padding: 18px 0; }

/* hero cinématique */
.hero { padding: 64px 20px 0; min-height: min(78vh, 760px); display: flex; flex-direction: column; justify-content: center; }
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.br { z-index: 0; animation: sway 9s ease-in-out infinite alternate; transform-origin: top left; }
.br-r { transform-origin: top right; animation-delay: -4s; }
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
.hero-c { position: relative; z-index: 2; animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-cta .cta { margin: 0; padding: 15px 26px; border-radius: 999px; }
.cta.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cta.ghost:hover { background: var(--ink); color: #fff; filter: none; }
.cta.ghost.dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.cta.ghost.dark:hover { background: #fff; color: var(--night); }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 880px; width: 100%; margin: 56px auto 0; padding: 0; border-top: 1px solid var(--line); }
.stats div { padding: 20px 10px 26px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 6px 0 0; font-family: var(--f-display); font-size: 30px; font-weight: 600; color: #1f1a1c; }

/* bandeau défilant */
.marquee { overflow: hidden; background: var(--night); color: #e9e1e3; padding: 14px 0; margin-bottom: 44px; }
.mq { display: flex; gap: 46px; width: max-content; animation: mq 38s linear infinite; }
.mq span { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 21px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.mq em { font-style: normal; font-family: var(--f-jp); color: var(--sakura); font-size: 22px; }
@keyframes mq { to { transform: translateX(-50%); } }
.marquee:hover .mq { animation-play-state: paused; }

/* rail « À la une » */
.rail-nav { margin-left: auto; display: flex; gap: 6px; }
.rail-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.rail-nav button:hover { background: var(--night); color: #fff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 22px; margin-bottom: 30px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }

/* bande « Packs » */
.band { background: var(--night); color: #fff; padding: 70px 0; margin: 10px 0 56px; position: relative; overflow: hidden; }
.band-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 40px; align-items: center; }
.band-t { position: relative; }
.band-kj { position: absolute; left: -20px; top: -70px; font-family: var(--f-jp); font-size: 220px; line-height: 1; color: var(--sakura); opacity: .07; pointer-events: none; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--sakura); }
.band h2 { position: relative; margin: 0 0 14px; font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 4vw, 54px); line-height: 1.05; }
.band h2 em { color: var(--sakura); }
.band p { position: relative; color: #bfb4b8; max-width: 42ch; margin: 0 0 26px; }
.band .cta { margin: 0; border-radius: 999px; }
.band-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.band .card { background: #241f21; color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.06); }
.band .card-b small { color: #a99ea2; }
.band .add { background: var(--sakura); color: var(--night); }

/* FAQ + communauté */
.faq { display: grid; gap: 10px; margin-bottom: 48px; }
.faq details { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font-weight: 500; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--rose); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); line-height: 1.6; }
.join { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px 34px; margin-bottom: 56px; border-radius: 22px; background: linear-gradient(120deg, var(--night) 0%, #3a2a30 100%); color: #fff; }
.join-f { width: 54px; height: 54px; flex: none; }
.join h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 30px; }
.join p { margin: 4px 0 0; color: #bfb4b8; }
.join-b { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.join .cta { margin: 0; border-radius: 999px; }

/* catégorie : outils de tri */
.tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--ink-3); font-size: 14px; }
.tools p { margin: 0; }
.tools label { display: flex; align-items: center; gap: 8px; }
.tools select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; color: var(--ink); cursor: pointer; }

/* fiche produit : galerie + colonne d'achat collante */
.prod-r { position: sticky; top: 92px; }
.gal .prod-m iframe { width: 100%; height: 100%; border: 0; display: block; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--bg-2); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.on, .thumbs button:hover { opacity: 1; border-color: var(--rose); }
.play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.6); }

/* apparitions au défilement (uniquement ce qui est hors écran au chargement) */
.rv.pre { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.pre.in { opacity: 1; transform: none; }

@media (max-width: 1240px) { .rail { grid-auto-columns: calc((100% - 36px) / 3); } .btn-search kbd { display: none; } }
@media (max-width: 1060px) {
  .btn-search span { display: none; }
  .band-in { grid-template-columns: 1fr; }
  .prod-r { position: static; }
  .prod-l { display: contents; } .gal, .prod-l > .prod-m { order: 1; min-width: 0; } .prod-r { order: 2; } .tiles { order: 3; margin-top: 0; }  /* mobile : prix et bouton juste sous l'image */
}
@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: 44px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rail { grid-auto-columns: 78%; }
  .band { padding: 50px 0; }
  .band-g { grid-template-columns: 1fr; }
  .band-kj { font-size: 150px; }
  .join { padding: 24px; }
  .join-b { margin-left: 0; width: 100%; }
  .join-b .cta { flex: 1; }
  .tools { flex-wrap: wrap; }
  .btn-search { padding: 9px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .br, .mq, .hero-c { animation: none !important; } .rv.pre { opacity: 1; transform: none; } }
/* menu : on garde tout lisible, la recherche devient une icône quand la place manque */
@media (max-width: 1640px) { .btn-search span, .btn-search kbd { display: none; } .btn-search { padding: 10px; } .menu > a, .mi > a { padding: 9px 11px; font-size: 13.5px; } }
@media (max-width: 1400px) { .brand b i { display: none; } }
@media (max-width: 1240px) {
  .burger { display: grid; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 14px; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); max-height: 75vh; overflow-y: auto; }
  .menu.open { display: flex; }
  .dd { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 4px 18px; }
  .dd > div { background: transparent; box-shadow: none; padding: 0; }
  .dd a { color: #d9cfd2; }
  .act { margin-left: auto; }
}
.page-ban { aspect-ratio: 21 / 6; border-radius: 18px; overflow: hidden; margin-bottom: 22px; background: var(--night); box-shadow: var(--shadow); }
.page-ban img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 640px) { .page-ban { aspect-ratio: 16 / 8; } }
.soon { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 56px 24px; margin-bottom: 48px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.soon-k { position: absolute; right: -10px; top: -30px; font-family: var(--f-jp); font-size: 200px; line-height: 1; color: var(--sakura); opacity: .12; pointer-events: none; }
.soon h2 { position: relative; margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 34px; }
.soon p { position: relative; margin: 0 0 18px; color: var(--ink-2); max-width: 46ch; }
.soon-b { position: relative; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.soon .cta { margin: 0; border-radius: 999px; }
/* en-tête de catégorie avec image entière */
.page-ban { display: none; }
.cat-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 40px; align-items: center; padding: 34px; margin-bottom: 26px; border-radius: 24px; background: linear-gradient(135deg, var(--night) 0%, #33262b 100%); color: #fff; overflow: hidden; }
.cat-hero .eyebrow { display: flex; align-items: center; gap: 10px; }
.cat-hero .eyebrow span { font-family: var(--f-jp); font-size: 20px; letter-spacing: 0; color: var(--sakura); }
.cat-hero h1 { margin: 0 0 12px; font-family: var(--f-display); font-weight: 500; font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.cat-hero .page-d { color: #c9bec2; font-size: 16px; max-width: 40ch; margin: 0; }
.cat-hero-i { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px rgba(0,0,0,.4); transform: perspective(1200px) rotateY(-4deg); transition: transform .6s var(--ease); }
.cat-hero:hover .cat-hero-i { transform: perspective(1200px) rotateY(0); }
.cat-hero-i img { width: 100%; height: 100%; object-fit: cover; }
.cat-m img { object-position: center 45%; }
@media (max-width: 860px) { .cat-hero { grid-template-columns: 1fr; padding: 22px; gap: 22px; } .cat-hero-i { order: -1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat-hero-i { transform: none; } }
.annonce { margin: 0; padding: 9px max(16px, env(safe-area-inset-left, 0px)); background: var(--rose); color: #fff; text-align: center; font-size: 13.5px; font-weight: 500; }
.tag .tg { font-style: normal; }
/* éléments visibles uniquement dans l'éditeur privé */
.ed-tebex { display: inline-block; align-self: flex-start; margin-bottom: 6px; padding: 3px 8px; border-radius: 6px; background: #fff4d6; color: #7a5a00; font-size: 11px; font-weight: 600; }
.ed-addimg { margin-left: 8px; padding: 10px 16px; border: 2px dashed var(--rose); border-radius: 12px; background: var(--wash); color: var(--rose-deep); font-weight: 600; cursor: pointer; }

/* Badge « Powered by Netlify » (secours si le réglage Netlify n'est pas disponible) */
#nl-badge-frame { display: none !important; }

/* Repli automatique du menu quand les catégories ne tiennent pas (voir fitNav dans app.js) */
.nav.fit1 .btn-search span, .nav.fit1 .btn-search kbd, .nav.fit2 .brand b i { display: none; }
.nav.fit1 .btn-search { padding: 10px; }
.nav.fit1 .menu > a, .nav.fit1 .mi > a { padding: 9px 10px; font-size: 13.5px; }
.nav.fit3 .burger { display: grid; }
.nav.fit3 .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 14px; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); max-height: 75vh; overflow-y: auto; }
.nav.fit3 .menu.open { display: flex; }
.nav.fit3 .dd { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 4px 18px; }
.nav.fit3 .dd > div { background: transparent; box-shadow: none; padding: 0; }
.nav.fit3 .dd a { color: #d9cfd2; }
.nav.fit3 .act { margin-left: auto; }
