/* Siloé · base commune : jetons, échelle unique (titres, rayons, boutons, espacements) et composants partagés. */
:root {
  --paper: #FBF8F3; --white: #FFFFFF; --sand: #F3EDE4; --sand-2: #EAE2D6; --line: #E6DED2; --field-line: #8E8578;
  --ink: #1B2C5E; --ink-2: #4E5873; --ink-3: #5A6280;
  --apricot: #EE7B3A; --apricot-deep: #A64A16; --apricot-soft: #FDEEE3;
  --blue: #2457C5; --sky: #E4EDFA; --green: #2E7D55; --star: #E59E2D;
  --display: "Fraunces", Georgia, serif; --ui: "Inter", system-ui, -apple-system, sans-serif;
  --r-sm: 8px; --r: 12px; --r-lg: 20px; --tap: 44px; --head-h: 112px;
  --h1: clamp(32px, 4vw, 44px); --h2: clamp(24px, 2.6vw, 30px); --h3: 20px; --sec: 64px;
  --ink-hover: #26397A; --apricot-light: #F38E52; --heart: #D2456B; --error: #B4322F; --on-dark-accent: #FFD3B6;
  --shadow: 0 1px 2px rgba(27,44,94,.06), 0 12px 32px -18px rgba(27,44,94,.28);
  --w: 1320px; --g: clamp(16px, 3vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.i { width: 20px; height: 20px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--g); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.serif { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; font-variation-settings: "SOFT" 30, "opsz" 96; }
.serif em { font-style: italic; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-apricot { background: var(--apricot); color: var(--ink); }
.btn-apricot:hover { background: var(--apricot-light); }
.btn-block { width: 100%; }
.btn-sm { min-height: var(--tap); padding: 0 16px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; }
.icon-btn:hover { background: var(--sand); }
.count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--apricot); color: var(--ink); font: 700 11px/18px var(--ui); text-align: center; }

/* ---------- petites briques ---------- */
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.verified svg { width: 15px; height: 15px; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.stars b { color: var(--ink); font-weight: 600; }
.stars svg { width: 13px; height: 13px; color: var(--star); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--white); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.tag-new { background: var(--ink); color: #fff; }
.tag-best { background: var(--apricot); color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--apricot-deep); }
.section { margin-top: var(--sec); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: var(--h2); line-height: 1.15; }
.section-head a { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* ---------- en-tête ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo span { font: 600 30px/1 var(--display); letter-spacing: -.03em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.search { flex: 1; display: flex; align-items: center; height: 48px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--field-line); overflow: hidden; }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 16px; font-size: 15px; outline: none; }
.search button { height: 40px; margin-right: 4px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.head-actions { display: flex; align-items: center; gap: 4px; }
.head-actions .sell { font-weight: 600; font-size: 14px; padding: 0 12px; height: 42px; display: inline-flex; align-items: center; border-radius: 10px; }
.head-actions .sell:hover { background: var(--sand); }
nav.cats { border-top: 1px solid var(--line); }
nav.cats .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.cats .wrap::-webkit-scrollbar { display: none; }
.cat-link { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 14px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cat-link:hover, .cat-link.on { color: var(--apricot-deep); }
.cat-link.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--apricot); }
.cat-link.gift { color: var(--apricot-deep); font-weight: 600; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(27,44,94,.25); display: none; }
.mega.open { display: block; }
.mega .wrap { display: grid; grid-template-columns: 220px 220px 1fr; gap: 40px; padding-top: 28px; padding-bottom: 32px; }
.mega h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mega li a:hover { color: var(--apricot-deep); }
.mega-feature { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega-feature a { display: grid; gap: 8px; font-size: 13px; font-weight: 500; }
.mega-feature img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); }
.burger { display: none; }

/* ---------- fiche produit (carte) ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 32px 24px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.card-pic { position: relative; }
.drawer .quick { display: none; }
.drawer aside .grid { --cols: 2 !important; }
.card-media { position: relative; display: block; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.card-media .alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .alt { opacity: 1; }
.card:hover .card-media img:first-child { transform: scale(1.03); }
.card-tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.fav { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--ink); }
.fav svg { width: 18px; height: 18px; }
.fav.on { color: var(--heart); }
.fav.on svg { fill: currentColor; }
.quick { position: absolute; left: 10px; right: 10px; bottom: 10px; opacity: 0; transform: translateY(6px); transition: .2s; }
.card:hover .quick, .quick:focus { opacity: 1; transform: none; }
.card-body { display: grid; gap: 3px; }
.card-shop { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.card-shop svg { width: 13px; height: 13px; color: var(--blue); }
.card-name { font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.card-name:hover { text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.price { font-weight: 700; font-size: 15px; }

/* ---------- accueil ---------- */

.shops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shop-card { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--white); transition: box-shadow .2s; }
.shop-card:hover { box-shadow: var(--shadow); }
.shop-card .cover { aspect-ratio: 16/10; overflow: hidden; }
.shop-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-card .body { position: relative; padding: 0 18px 18px; display: grid; gap: 4px; }
.mono { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--apricot-soft); color: var(--apricot-deep); font: 600 22px/1 var(--display); border: 4px solid var(--white); margin-top: -28px; }
.shop-card h3 { font-size: 17px; font-weight: 600; margin-top: 6px; }
.shop-card .line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }

.mission { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }

.sell-band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 36px 40px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.sell-band h2 { font-size: clamp(26px, 3vw, 36px); }
.sell-band p { opacity: .8; margin-top: 6px; }

/* ---------- catalogue ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); margin: 16px 0 20px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-title h1 { font-size: var(--h1); line-height: 1.08; }
.check { display: flex; align-items: center; gap: 10px; padding: 3px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.select { height: 38px; padding: 0 34px 0 12px; border: 0; border-radius: 8px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C2230' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; box-shadow: inset 0 0 0 1px var(--field-line); appearance: none; font-size: 13.5px; }
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 70px 20px; border-radius: var(--r-lg); background: var(--white); }
.empty h1, .empty h2 { font-size: 28px; }

/* ---------- fiche produit ---------- */
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: calc(var(--head-h) + 16px); }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumbs button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4/5; background: var(--sand); opacity: .65; }
.thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-photo { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: var(--sand); }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 18px; }
.buy h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.08; }
.buy .price { font-size: 26px; }
.opt h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.sizes label input { position: absolute; opacity: 0; }
.sizes label span { display: grid; place-items: center; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; cursor: pointer; }
.sizes label input:checked + span { box-shadow: inset 0 0 0 2px var(--ink); }
.sizes label input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 18px; }
.qty input { width: 30px; border: 0; background: none; text-align: center; font-weight: 600; }
.buy-row .fav-big { width: 54px; height: 54px; border: 0; border-radius: 10px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.buy-row .fav-big.on { color: var(--heart); }
.buy-row .fav-big.on svg { fill: currentColor; }
.delivery { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r); background: var(--white); font-size: 14px; }
.delivery div { display: flex; gap: 12px; align-items: flex-start; }
.delivery svg { width: 20px; height: 20px; color: var(--ink-2); margin-top: 1px; }
.reviews { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.score { display: grid; gap: 10px; align-content: start; }
.score .big { font: 400 56px/1 var(--display); }
.bars { display: grid; gap: 6px; font-size: 13px; }
.bars div { display: grid; grid-template-columns: 22px 1fr 34px; gap: 8px; align-items: center; }
.bars div > span:nth-child(2) { height: 6px; border-radius: 99px; background: var(--sand-2); overflow: hidden; }
.bars i { display: block; height: 100%; background: var(--ink); }
.review-list { display: grid; gap: 22px; }
.review { display: grid; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.review header { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.review .who { display: flex; gap: 10px; align-items: center; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--blue); font-weight: 700; font-size: 13px; }

/* ---------- boutique ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 36px 0 28px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 6px; margin-right: 18px; font-weight: 600; font-size: 15px; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.faith { padding: 26px; border-radius: var(--r-lg); background: var(--sky); display: grid; gap: 10px; }
.faith blockquote { margin: 0; font: italic 400 22px/1.35 var(--display); }
.faith cite { font-style: normal; font-size: 13px; color: var(--ink-2); }
.checked { display: grid; gap: 8px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--white); font-size: 14px; }
.checked h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; color: var(--blue); }
.checked ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- panier, commande ---------- */
.cart { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-group { padding: 22px; border-radius: var(--r-lg); background: var(--white); display: grid; gap: 16px; }
.cart-group + .cart-group { margin-top: 16px; }
.cart-group header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-group header a { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.cart-group .mono { width: 38px; height: 38px; font-size: 16px; border: 0; margin: 0; }
.line { display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; }
.line img { width: 92px; height: 112px; object-fit: cover; border-radius: 10px; }
.line .info { display: grid; gap: 4px; justify-items: start; }
.line .info a { font-weight: 500; }
.line .right { display: grid; justify-items: end; gap: 6px; }
.mini-qty { display: inline-flex; align-items: center; height: 34px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-qty button { width: 32px; height: 100%; border: 0; background: none; }
.mini-qty span { min-width: 20px; text-align: center; font-weight: 600; font-size: 14px; }
.text-btn { border: 0; background: none; padding: 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; }
.summary { position: sticky; top: calc(var(--head-h) + 16px); padding: 24px; border-radius: var(--r-lg); background: var(--white); display: grid; gap: 14px; }
.summary h2 { font-size: 24px; }
.summary dl { margin: 0; display: grid; gap: 10px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; }
.summary dd { margin: 0; font-weight: 600; }
.summary .total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; }
.summary .total dd { font-weight: 700; }
.summary .items { display: grid; gap: 10px; }
.summary .item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.summary .item img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; }
.reassure { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.reassure span { display: flex; gap: 8px; align-items: center; }
.reassure svg { width: 16px; height: 16px; }
.steps { display: flex; gap: 28px; list-style: none; padding: 0; margin: 28px 0; font-size: 14px; color: var(--ink-3); }
.steps li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 12px; }
.steps li.on { color: var(--ink); }
.steps li.on span { background: var(--ink); color: #fff; box-shadow: none; }
.steps li.done { color: var(--green); }
.form { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--white); }
.form h2 { font-size: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--field-line); font-weight: 400; font-size: 15px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.field small { font-weight: 400; color: var(--ink-3); }
.field .err { font-weight: 500; color: #B4322F; font-size: 12.5px; }
.field.bad input { box-shadow: inset 0 0 0 1.5px #B4322F; }
.option { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; }
.option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.option input { width: 18px; height: 18px; accent-color: var(--ink); }
.option .grow { flex: 1; display: grid; }
.option em { font-style: normal; color: var(--ink-2); font-size: 13px; }
.demo { padding: 12px 14px; border-radius: 10px; background: var(--apricot-soft); color: var(--apricot-deep); font-size: 13px; font-weight: 500; }
.confirm { max-width: 760px; margin: 60px auto 0; text-align: center; display: grid; gap: 18px; justify-items: center; }
.confirm .ok { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; }
.confirm .ok svg { width: 30px; height: 30px; }
.confirm h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
.confirm .families { display: grid; gap: 10px; width: 100%; text-align: left; }
.confirm .families a { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--white); }
.confirm .families img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ---------- vendre ---------- */
.sell-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; margin-top: 24px; }
.sell-hero .txt { padding: clamp(32px, 5vw, 72px); display: grid; gap: 20px; align-content: center; justify-items: start; }
.sell-hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; }
.sell-hero p { font-size: 17px; opacity: .85; max-width: 480px; }
.sell-hero .ph { min-height: 520px; position: relative; }
.sell-hero .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apply { max-width: 720px; margin: 0 auto; }
.progress { height: 6px; border-radius: 99px; background: var(--sand-2); overflow: hidden; margin: 20px 0 8px; }
.progress i { display: block; height: 100%; background: var(--apricot); transition: width .3s; }
.cats-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cats-pick label { position: relative; }
.cats-pick label input { position: absolute; opacity: 0; }
.cats-pick label span { display: inline-flex; height: 38px; align-items: center; padding: 0 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; cursor: pointer; }
.cats-pick label input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.upload { display: grid; place-items: center; gap: 6px; padding: 28px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; font-weight: 400; color: var(--ink-2); }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 8px; color: var(--ink-2); }

/* ---------- espace vendeur ---------- */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; margin-top: 24px; align-items: start; }
.dash nav { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 2px; padding: 14px; border-radius: var(--r-lg); background: var(--white); }
.dash nav .me { display: flex; gap: 10px; align-items: center; padding: 6px 6px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dash nav .me .mono { width: 40px; height: 40px; font-size: 16px; border: 0; margin: 0; }
.dash nav a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-weight: 500; font-size: 14px; }
.dash nav a:hover { background: var(--paper); }
.dash nav a.on { background: var(--sand); font-weight: 600; }
.dash nav svg { width: 18px; height: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 20px; border-radius: var(--r-lg); background: var(--white); display: grid; gap: 4px; }
.kpi span { font-size: 13px; color: var(--ink-2); }
.kpi b { font: 400 32px/1.1 var(--display); }
.kpi em { font-style: normal; font-size: 12.5px; color: var(--green); font-weight: 600; }
.panel { padding: 24px; border-radius: var(--r-lg); background: var(--white); overflow-x: auto; }
.panel h2 { font-size: 22px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.chart div { flex: 1; display: grid; gap: 6px; justify-items: center; font-size: 11.5px; color: var(--ink-3); }
.chart i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: var(--sand-2); }
.chart div:last-child i { background: var(--apricot); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 10px; }
.table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.table .prod { display: flex; gap: 10px; align-items: center; }
.table img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; }
.status { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--apricot-soft); color: var(--apricot-deep); }
.status.ok { background: #E3F2E9; color: #1F6B45; }
.status.off { background: var(--sand); color: var(--ink-2); }

/* ---------- charte ---------- */
.charter { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; }
.charter ol { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 0; }
.charter li { counter-increment: c; display: grid; grid-template-columns: 56px 1fr; padding: 20px 0; border-top: 1px solid var(--line); font-size: 17px; }
.charter li::before { content: counter(c, decimal-leading-zero); font: 400 26px/1.1 var(--display); color: var(--apricot-deep); }

/* ---------- pied de page ---------- */
footer.site { margin-top: 96px; background: var(--ink); color: #fff; padding: 64px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 32px; }
.foot h3 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.foot a { opacity: .88; }
.foot a:hover { opacity: 1; text-decoration: underline; }
.foot .logo span { color: #fff; }
.foot p { font-size: 14px; opacity: .75; margin-top: 12px; max-width: 280px; }
.news { display: flex; gap: 8px; margin-top: 12px; }
.news input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; }
.news input::placeholder { color: rgba(255,255,255,.55); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; opacity: .7; }

/* ---------- tiroir panier, toast ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(27,44,94,0); visibility: hidden; transition: background .25s, visibility .25s; }
.drawer.open { background: rgba(27,44,94,.45); visibility: visible; }
.drawer aside { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.drawer.open aside { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 24px; }
.drawer .body { flex: 1; overflow-y: auto; padding: 20px 24px; display: grid; gap: 16px; align-content: start; }
.drawer .added { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.drawer .added img { width: 72px; height: 88px; object-fit: cover; border-radius: 10px; }
.drawer .foot-d { padding: 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer .tot { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform .3s, visibility .3s; max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.toast svg { width: 18px; height: 18px; color: var(--apricot); }

/* ---------- signature : la Parole, les histoires ---------- */

.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow); transition: transform .3s; }
.story-card:hover { transform: translateY(-3px); }
.story-card .ph { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.story-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.story-card .ph .tag { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.92); color: var(--ink); }
.story-card .bd { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.story-card h3 { font-size: 26px; line-height: 1.1; }
.story-card .q { font-size: 19px; line-height: 1.35; font-style: italic; }
.story-card .go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--apricot-deep); margin-top: 4px; }
.story-card .go svg { width: 16px; height: 16px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.values > div { padding: 24px; border-radius: var(--r-lg); background: var(--white); display: grid; gap: 8px; align-content: start; }
.values .num { width: 34px; height: 34px; border-radius: 99px; display: grid; place-items: center; background: var(--apricot-soft); color: var(--apricot-deep); font-weight: 700; }
.values h3 { font-size: 24px; }
.proud { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--apricot-soft); font-size: 14.5px; }
.proud svg { width: 22px; height: 22px; color: var(--apricot-deep); flex: none; }
.proud b { display: block; }
@media (max-width: 960px) {
  .stories { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .stories, .values { grid-template-columns: 1fr; }
}

.cats-pick input:focus-visible + span, .option input:focus-visible ~ .grow { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: none) { .quick { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid { --cols: 4; }
  .shops { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot > div:first-child, .foot > div:last-child { grid-column: span 3; }
}
@media (max-width: 960px) {
  .head { gap: 14px; }
  .head-actions .sell { display: none; }
  .mission, .pdp, .cart, .story, .sell-hero, .reviews, .charter{ grid-template-columns: 1fr; }
  .sell-hero .ph{ min-height: 320px; }
  .grid, .grid[style] { --cols: 3 !important; }
  .gallery, .summary, .dash nav { position: static; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash nav { position: static; }
  .dash nav { grid-template-columns: repeat(2, 1fr); }
  .dash nav .me { grid-column: span 2; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .mega { display: none !important; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .head { flex-wrap: wrap; min-height: 0; padding: 12px var(--g); gap: 8px 6px; }
  .burger { display: grid; }
  .logo span { font-size: 26px; }
  .head-actions { margin-left: auto; }
  .head-actions .acct { display: none; }
  .search { order: 5; flex-basis: 100%; height: 44px; }
  .search button span { display: none; }
  nav.cats { display: none; }
  .menu-open nav.cats { display: block; }
  .menu-open nav.cats .wrap { flex-direction: column; padding-bottom: 10px; }
  .grid, .grid[style] { --cols: 2 !important; gap: 22px 12px; }
  .quick { display: none; }
  .shops { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-card .body { padding: 0 12px 14px; }
  .sell-band { grid-template-columns: 1fr; padding: 28px 22px; }
  .section { margin-top: 48px; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-auto-flow: column; grid-template-columns: repeat(4, 64px); order: 2; }
  .buy-row { grid-template-columns: 1fr auto; }
  .buy-row .qty { justify-self: start; }
  .buy-row .btn { grid-column: 1 / -1; order: 3; }
  .pdp, .pdp > * { min-width: 0; }
  .fav { width: 44px; height: 44px; }
  .mini-qty button, .btn-sm, .chip { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .row2 { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .steps { gap: 14px; font-size: 13px; }
  .steps li:not(.on) b { display: none; }
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; height: 88px; }
  .line .right { grid-column: 2; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .table .hide-s { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child, .foot > div:last-child { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ---------- Charte Manne franche : formes et composants (copiés de marque/charte-graphique.html) ---------- */
.grains { position: relative; isolation: isolate; }
.grains .hero-bowl::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 8px); height: 320px; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='320' viewBox='0 0 300 320' fill='%23EE7B3A'%3E%3Ccircle cx='40' cy='18' r='2.6' opacity='0.45'/%3E%3Ccircle cx='205' cy='18' r='2.6' opacity='0.45'/%3E%3Ccircle cx='120' cy='45' r='3.2' opacity='0.55'/%3E%3Ccircle cx='270' cy='45' r='2.6' opacity='0.4'/%3E%3Ccircle cx='70' cy='80' r='3.2' opacity='0.55'/%3E%3Ccircle cx='185' cy='80' r='3.9' opacity='0.65'/%3E%3Ccircle cx='235' cy='115' r='3.9' opacity='0.65'/%3E%3Ccircle cx='30' cy='115' r='2.6' opacity='0.4'/%3E%3Ccircle cx='110' cy='150' r='4.5' opacity='0.75'/%3E%3Ccircle cx='200' cy='180' r='4.5' opacity='0.8'/%3E%3Ccircle cx='75' cy='215' r='3.9' opacity='0.65'/%3E%3Ccircle cx='160' cy='215' r='5.2' opacity='0.9'/%3E%3Ccircle cx='230' cy='250' r='5.2' opacity='0.9'/%3E%3Ccircle cx='125' cy='280' r='5.9' opacity='1'/%3E%3Ccircle cx='185' cy='305' r='6.5' opacity='1'/%3E%3C/svg%3E") no-repeat center bottom / 300px 320px; -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
.hero-bowl { position: relative; z-index: 0; display: block; padding-top: 58px; }
.hero-bowl svg { position: absolute; top: 0; left: 50%; width: 140px; height: 50px; transform: translateX(-50%); }
.hero-bowl img { width: 100%; aspect-ratio: 1.1; object-fit: cover; border-radius: 0 0 50% 50% / 0 0 54% 54%; }
.sky-band { padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--sky); }
.section-head h2::before { content: ""; display: inline-block; width: .3em; height: .3em; margin-right: .35em; border-radius: 50%; background: var(--apricot); vertical-align: .2em; }
.card-media { border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 16% 16%; }
.quick { bottom: 19%; }
.card-foot .price { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--apricot); color: var(--ink); font-size: 14px; }
@media (max-width: 680px) { .grains .hero-bowl::before { display: none; } }
/* Corbeille aussi sur les portraits créateurs, l'histoire et la photo principale d'une fiche */
.cr-ph, .story-card .ph, .main-photo { border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 16% 16%; }
.main-photo { border-radius: var(--r-lg) var(--r-lg) 50% 50% / var(--r-lg) var(--r-lg) 16% 16%; }

/* Zones à toucher : 44 px pour les commandes, zone de clic élargie (sans bouger la mise en page) pour les petits liens texte. */
.search button { height: 44px; margin-right: 2px; }
.foot ul { gap: 0; }
.foot ul a { display: inline-flex; align-items: center; min-height: 40px; }
.dash nav a { min-height: 44px; }
.faq summary { padding-block: 10px; }
.crumbs a, .section-head a, .hm-sec, .pd-rate, .card-shop, .logo { position: relative; }
.crumbs a::after, .section-head a::after, .hm-sec::after, .pd-rate::after, .card-shop::after, .logo::after { content: ""; position: absolute; inset: -10px -4px; }
.card-shop::after { inset: -4px -4px -10px; }

/* ---------- Repasse Manne franche : fiche, panier, commande, favoris, espace, légales ---------- */
/* Grain abricot devant les titres de bloc (comme .section-head h2) */
.pd-details h2::before, .panel h2::before, .ms-verify h2::before { content: ""; display: inline-block; flex: none; width: .3em; height: .3em; margin-right: .35em; border-radius: 50%; background: var(--apricot); vertical-align: .2em; }
/* Prix en pastille abricot */
.pd-price { display: inline-flex; align-items: center; justify-self: start; height: 38px; padding: 0 16px; border-radius: 99px; background: var(--apricot); color: var(--ink); font-size: 20px; font-weight: 700; }
.pd-who { background: var(--sky); }
.pd-details { padding: 22px 24px; border-radius: var(--r-lg); background: var(--sand); }
.pd-details dl > div { border-bottom-color: var(--sand-2); }
/* Panier et récapitulatif : bande ciel, total en pastille */
.summary { background: var(--sky); }
.summary .total dd { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--apricot); color: var(--ink); }
/* Favoris : photos en corbeille */
.fav-pic img { border-radius: var(--r) var(--r) 50% 50% / var(--r) var(--r) 16% 16%; }
/* Légales : questions dans une carte blanche */
.faq { padding: 4px 24px; border-radius: var(--r-lg); background: var(--white); }
