/* Nafa — menthe #12C7A5, nuit #0B1622, or #F5C451, nuage #F4F7FA */
:root {
  --mint: #12C7A5; --mint-ink: #07624F; --mint-soft: #D3F5EC;
  --night: #0B1622; --night-2: #0F1D2B; --night-3: #16283A; --line-d: #24394E;
  --gold: #F5C451; --gold-ink: #6B4E00; --gold-soft: #FCEFC7;
  --cloud: #F4F7FA; --ink: #0B1622; --muted: #4A5A6A; --line: #DCE3EA;
  --red: #C8372D; --red-soft: #FBE4E2;
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--cloud); }
img { max-width: 100%; display: block; }
a { color: var(--mint-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border-radius: 14px; border: 1px solid transparent; font: 600 16px var(--font); text-decoration: none; cursor: pointer; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; font-weight: 700; }
.btn-mint { background: var(--mint); color: var(--night); }
.btn-night { background: var(--night); color: #fff; }
.btn-gold { background: var(--gold); color: var(--night); }
.btn-ghost { background: transparent; border-color: var(--line); color: inherit; }
.btn-wa { background: #1F8F45; color: #fff; }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Liens en forme de bouton : leur couleur l'emporte sur celle des liens */
a.btn-mint, a.btn-gold { color: var(--night); }
a.btn-night, a.btn-wa { color: #fff; }
.app a.btn-mint, .app a.btn-gold { color: var(--night); }
.app a.btn-night, .app a.btn-wa { color: #fff; }
.app a.btn-ghost { color: #EAF2F7; }
.app .card.light .btn-ghost { color: var(--ink); border-color: var(--line); }
.app .card.light .btn-night { border-color: var(--night); }
.app a.list-item { color: inherit; }

/* ---------- Formulaires ---------- */
label { font-weight: 600; font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 0 14px; font: 16px var(--font); }
textarea { padding: 12px 14px; min-height: 110px; resize: vertical; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--mint); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; cursor: pointer; }
.chip input:checked + span { border: 2px solid var(--mint); background: var(--mint-soft); color: var(--mint-ink); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); }

/* ---------- Messages ---------- */
.flash { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; }
.flash-ok { background: var(--mint-soft); color: var(--mint-ink); }
.flash-warn { background: var(--gold-soft); color: var(--gold-ink); }
.flash-err { background: var(--red-soft); color: #7D1D16; }

.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.tag-pending { background: var(--gold-soft); color: var(--gold-ink); }
.tag-paid { background: var(--mint-soft); color: var(--mint-ink); }
.tag-cancelled { background: #E6EAEE; color: #3A4652; }
.tag-sent { background: var(--mint-soft); color: var(--mint-ink); }
.tag-failed { background: var(--red-soft); color: #7D1D16; }
.tag-skipped { background: #E6EAEE; color: #3A4652; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 22px var(--display); letter-spacing: -.5px; color: inherit; text-decoration: none; }
.logo svg { width: 36px; height: 36px; }

/* =========================================================
   Espace vendeur (thème sombre)
   ========================================================= */
body.app { background: var(--night); color: #EAF2F7; padding-bottom: 88px; }
.app a { color: var(--mint); }
.app .muted { color: #A9BACB; }
.app .hint { color: #A9BACB; }
.app .card { background: var(--night-3); border-color: var(--line-d); color: #EAF2F7; }
.app .card.light { background: #fff; color: var(--ink); border-color: var(--line); }
.app .card.light .muted { color: var(--muted); }
.app .btn-ghost { border-color: var(--line-d); color: #EAF2F7; }
.app input[type=text], .app input[type=tel], .app input[type=password], .app input[type=number], .app select, .app textarea {
  background: var(--night-2); border-color: #2E4459; color: #fff; }
.app input::placeholder, .app textarea::placeholder { color: #7F93A6; }
.app .chip span { background: var(--night-2); border-color: #2E4459; color: #EAF2F7; }
.app .chip input:checked + span { background: rgba(18,199,165,.15); color: var(--mint); }
.app .flash-ok { background: rgba(18,199,165,.16); color: #7DEBD3; }
.app .flash-warn { background: rgba(245,196,81,.16); color: var(--gold); }
.app .tag-cancelled, .app .tag-skipped { background: #2A3B4D; color: #C9D6E2; }
.app .tag-pending { background: #3A3115; color: var(--gold); }
.app .tag-paid, .app .tag-sent { background: rgba(18,199,165,.18); color: #7DEBD3; }
.app .tag-failed { background: rgba(200,55,45,.2); color: #FFB4AD; }

.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.topbar h1 { font-size: 22px; }
.section-title { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #A9BACB; margin-top: 8px; }

.hero-stat { background: linear-gradient(0deg, var(--night-3), var(--night-3)); border: 1px solid var(--line-d); border-radius: 20px; padding: 18px; }
.hero-stat .big { font: 700 32px var(--display); letter-spacing: -.5px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 14px; }
.bars div, .bars a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #A9BACB; text-decoration: none; }
.bars span { display: block; width: 100%; border-radius: 6px; background: #2A3F55; min-height: 4px; }
.bars div:last-child span, .bars a:last-child span { background: var(--mint); }
.bars a:active span, .bars a:hover span { background: #3E5A78; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stats .card { padding: 12px; }
.stats b { display: block; font: 700 24px var(--display); }
.stats span { font-size: 12.5px; color: #A9BACB; }

.tabs { display: flex; gap: 6px; overflow-x: auto; }
.tabs a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-d); color: #EAF2F7; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.tabs a[aria-current=page] { background: var(--mint); border-color: var(--mint); color: var(--night); }

.order .thumb, .list-item .thumb { width: 64px; height: 64px; border-radius: 12px; background: #2A3B4D; object-fit: cover; flex-shrink: 0; }
.order .price { font: 700 22px var(--display); }
.order .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order .actions form, .order .actions .btn { width: 100%; }
.order .actions .wide { grid-column: 1 / -1; }
.order .mono { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.events { display: flex; flex-wrap: wrap; gap: 6px; }

.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-d); color: inherit; text-decoration: none; }
.list-item:last-child { border-bottom: 0; }

.platform-head { display: flex; align-items: center; gap: 12px; }
.platform-logo { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 16px var(--display); color: #fff; flex-shrink: 0; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); }

dialog { border: 0; border-radius: 22px 22px 0 0; padding: 22px 18px 28px; width: 100%; max-width: 560px; margin: auto auto 0; background: #fff; color: var(--ink); }
dialog::backdrop { background: rgba(5, 10, 16, .6); }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--night-2); border-top: 1px solid var(--line-d); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
.bottom-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; font-size: 11.5px; font-weight: 600; color: #A9BACB; text-decoration: none; position: relative; }
.bottom-nav a[aria-current=page] { color: var(--mint); }
.bottom-nav svg { width: 22px; height: 22px; }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: var(--night); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* =========================================================
   Pages publiques (accueil, inscription)
   ========================================================= */
body.public { background: var(--night); color: #EAF2F7; }
.public a { color: var(--mint); }
.public .muted { color: #A9BACB; }
.public .panel { background: #fff; color: var(--ink); border-radius: 24px; padding: 22px 18px; }
.public .panel .muted, .public .panel .hint { color: var(--muted); }
.public .panel a { color: var(--mint-ink); }
.public a.btn-mint { color: var(--night); }
.public a.btn-ghost { color: #EAF2F7; }
.landing h1 { font-size: 40px; letter-spacing: -1px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature i { width: 36px; height: 36px; border-radius: 10px; background: rgba(18,199,165,.15); color: var(--mint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-style: normal; font-weight: 800; }

/* =========================================================
   Boutique (vue client, thème clair)
   ========================================================= */
body.shop { background: #fff; }
.shop-banner { background: var(--night); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 9px 12px; }
.shop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #EEF1F4; }
.shop-head h1 { font-size: 20px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; }
.gallery img, .gallery .ph { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; border-radius: 18px; background: #E3EAF0; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-now { font: 700 28px var(--display); }
.price-old { color: #5D6B78; text-decoration: line-through; }
.off { background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.order-box { border: 2px solid var(--night); border-radius: 20px; padding: 18px 16px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.qty output { min-width: 24px; text-align: center; font-weight: 700; font-size: 17px; }
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-products a { color: inherit; text-decoration: none; }
.grid-products img, .grid-products .ph { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 14px; background: #E3EAF0; }
.hp { position: absolute; left: -9999px; }
.footer-note { text-align: center; font-size: 12.5px; color: var(--muted); padding: 26px 0; }

@media (min-width: 720px) { .landing h1 { font-size: 52px; } }

/* ---------- Page produit enrichie ---------- */
.gallery-wrap { position: relative; }
.gallery img, .gallery .ph { object-fit: contain; background: #F4F7FA; }
.off-float { position: absolute; top: 12px; left: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: 0 0 60px; height: 60px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: #F4F7FA; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--night); }
.product-title { font-size: 26px; letter-spacing: -.3px; }
.save { background: var(--mint-soft); color: var(--mint-ink); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.stock-low { margin: 0; color: #9A3412; font-weight: 600; font-size: 14px; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust li { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid #E3E8EE; border-radius: 14px; background: #fff; }
.trust b { font-size: 14px; line-height: 1.25; }
.trust span:last-child { font-size: 12.5px; color: var(--muted); }
.trust-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--mint-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.trust-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--mint-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-soft { background: var(--cloud); border-radius: 18px; padding: 18px 16px; }
.sec-title { font-size: 19px; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.benefits li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.benefits li span { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--night); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; display: flex; flex-direction: column; gap: 2px; min-height: 34px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps span { color: var(--muted); font-size: 14px; }
.faq { border: 1px solid #E3E8EE; border-radius: 14px; padding: 0 16px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--muted); }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; color: #3A4652; }
body.has-sticky { padding-bottom: 84px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #E3E8EE; box-shadow: 0 -6px 20px rgba(11,22,34,.08); transition: transform .2s; }
.sticky-buy div { display: flex; flex-direction: column; }
.sticky-buy b { font: 700 19px var(--display); }
.sticky-buy span { font-size: 12.5px; color: var(--muted); }
.sticky-buy .btn { min-width: 150px; }
.sticky-buy.is-hidden { transform: translateY(110%); }
html { scroll-behavior: smooth; }
#commande { scroll-margin-top: 12px; }

.back-btn { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #E3E8EE; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }

.icon-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1px solid #E3E8EE; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.shop-head h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--night); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Accueil boutique · Vitrine ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: 22px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: var(--mint); opacity: .18; pointer-events: none; }
.hero-tag { align-self: flex-start; background: var(--gold); color: var(--night); font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; letter-spacing: .4px; text-transform: uppercase; }
.hero-title { font-size: 30px; line-height: 1.1; letter-spacing: -.5px; color: #fff; }
.hero-text { margin: 0; color: #B9C7D4; font-size: 15px; line-height: 1.5; }
.shop a.btn-mint { color: var(--night); }
.trust3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trust3 li { background: var(--cloud); border-radius: 14px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.25; }
.pcard { display: flex; flex-direction: column; gap: 8px; }
.pcard-img { position: relative; display: block; }
.pcard-img img, .pcard-img .ph { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 16px; background: #E3EAF0; display: block; }
.pbadge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.pbadge-off { background: var(--red); color: #fff; }
.pbadge-new { background: var(--mint); color: var(--night); }
.pcard-name { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pcard-price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.pcard-price b { font-size: 16px; }
.pcard-price span { font-size: 12.5px; color: #5D6B78; text-decoration: line-through; }
.shop a.pcard-btn { min-height: 42px; font-size: 14px; padding: 0 10px; margin-top: auto; color: #fff; }
.wa-box { background: #E8F7EE; border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.wa-box div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wa-box span { font-size: 13.5px; color: #2F5B3E; }
.shop a.btn-wa { color: #fff; }

/* ---------- Notifications vendeur ---------- */
.notif-card { display: flex; flex-direction: column; gap: 12px; border-color: rgba(245,196,81,.45) !important; }
.notif-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.new-order { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 40; background: var(--mint); color: var(--night) !important; text-decoration: none; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateY(-140%); transition: transform .25s; max-width: 536px; margin: 0 auto; }
.new-order.is-on { transform: translateY(0); }
.new-order b { font-size: 16px; }
.new-order span { font-size: 14px; }

[hidden] { display: none !important; }

.stat-link { color: inherit !important; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.stat-link:active { transform: scale(.97); }
.stats span { white-space: nowrap; }

.notif-bell { position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(245,196,81,.14); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.notif-bell i { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 2px solid var(--night); }

.owner-bar { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; background: var(--mint); color: var(--night) !important; font-weight: 700; font-size: 15px; text-decoration: none; position: sticky; top: 0; z-index: 25; }
.owner-bar span { margin-left: auto; font-size: 12px; font-weight: 600; opacity: .7; }

.bell-wrap { position: relative; display: inline-flex; }
button.notif-bell { border: 0; cursor: pointer; padding: 0; }
.notif-panel { position: absolute; right: 0; top: 52px; z-index: 35; width: min(340px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: 18px; padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 10px; }
.np-head { display: flex; align-items: center; justify-content: space-between; }
.np-head b { font: 700 17px var(--display); }
.np-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.np-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 2px; border-bottom: 1px solid #EEF1F4; color: var(--ink) !important; text-decoration: none; }
.np-list li:last-child .np-item { border-bottom: 0; }
.np-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.np-sub { font-size: 13px; color: var(--muted); }
.np-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }
.notif-panel .tag-pending { background: var(--gold-soft); color: var(--gold-ink); }
.notif-panel .tag-paid { background: var(--mint-soft); color: var(--mint-ink); }
.notif-panel .tag-cancelled { background: #E6EAEE; color: #3A4652; }
.np-off { background: none; border: 0; color: var(--muted); font: 500 14px var(--font); min-height: 40px; cursor: pointer; text-decoration: underline; }
.notif-panel { position: fixed; top: calc(72px + env(safe-area-inset-top)); left: 16px; right: 16px; width: auto; max-width: 528px; margin: 0 auto; max-height: calc(100vh - 180px); overflow-y: auto; }

.app .card.light a.tel-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--mint-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tag-confirmed { background: #DCEBFF; color: #1D4F91; }
.app .tag-confirmed { background: rgba(125,180,255,.18); color: #A9CBFF; }
.app .card.light .tag-confirmed, .notif-panel .tag-confirmed { background: #DCEBFF; color: #1D4F91; }
.app .card.light .tag-pending { background: var(--gold-soft); color: var(--gold-ink); }

.tabs.tabs4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; }
.tabs.tabs4 a { flex-direction: column; justify-content: center; gap: 1px; min-height: 58px; padding: 6px 2px; border-radius: 14px; text-align: center; }
.tabs.tabs4 a b { font: 700 18px var(--display); line-height: 1.1; }
.tabs.tabs4 a span { font-size: 12px; font-weight: 600; white-space: nowrap; }

.legal h1 { font-size: 28px; margin: 18px 0 6px; }
.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.legal h3 { font-size: 16px; margin: 14px 0 6px; }
.legal p, .legal li { color: #2A3642; line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 6px 0; }

.gexport { background: rgba(18,199,165,.08); border: 1px solid rgba(18,199,165,.3); border-radius: 14px; padding: 14px; }

.creds { display: flex; flex-direction: column; gap: 8px; }
.creds div { display: flex; align-items: center; gap: 10px; background: var(--night-2); border: 1px solid #2E4459; border-radius: 12px; padding: 6px 6px 6px 12px; }
.creds span { font-size: 12.5px; color: #A9BACB; width: 112px; flex-shrink: 0; }
.creds b { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: 15px; overflow-wrap: anywhere; }
.creds .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }

/* ---------- Thèmes de boutique ---------- */
.shop.theme-ocean { --night: #0A2540; --mint: #5CC8FF; --mint-ink: #0B5C8A; --mint-soft: #DCF1FC; --gold: #FFD166; --cloud: #F2F7FB; }
.shop.theme-royal { --night: #24123F; --mint: #C9A7FF; --mint-ink: #5B2EA6; --mint-soft: #EDE3FF; --gold: #FFB020; --cloud: #F6F3FB; }
.shop.theme-terre { --night: #3A1D12; --mint: #F2A65A; --mint-ink: #8F4410; --mint-soft: #FBE6D2; --gold: #F2C14E; --cloud: #FAF5EF; }
.shop.theme-rose  { --night: #3D1027; --mint: #FF9EC0; --mint-ink: #A3215A; --mint-soft: #FFE1EC; --gold: #FFD166; --cloud: #FCF4F7; }
.shop.theme-foret { --night: #12301F; --mint: #8FD67A; --mint-ink: #2C6B1E; --mint-soft: #E2F4DB; --gold: #F5C451; --cloud: #F3F8F1; }
.shop.theme-or    { --night: #111111; --mint: #E8C25A; --mint-ink: #7A5A00; --mint-soft: #F6ECCB; --gold: #E8C25A; --cloud: #F7F6F2; }
.shop.theme-rouge { --night: #3B0D0D; --mint: #FF8A7A; --mint-ink: #A32718; --mint-soft: #FFE3DE; --gold: #FFD166; --cloud: #FBF4F3; }
.shop { --ink: var(--night); }
.shop .trust3 svg, .shop .trust-ico svg, .shop .ok-ico svg { stroke: var(--mint-ink); }
.theme-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.theme-pick label { position: relative; cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick span { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px; border-radius: 12px; border: 1px solid #2E4459; background: var(--night-2); font-weight: 600; font-size: 14.5px; }
.theme-pick i { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.25); }
.theme-pick input:checked + span { border: 2px solid var(--mint); }
.theme-pick input:focus-visible + span { outline: 3px solid var(--gold); }

/* Les attributs width/height des images servent au navigateur, mais la taille réelle vient du CSS */
.pcard-img img, .grid-products img { height: auto; aspect-ratio: 1; object-fit: cover; }

/* ---------- Commandes programmées ---------- */
.tabs.tabs5 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; overflow: visible; }
.tabs.tabs5 a { grid-column: span 2; flex-direction: column; justify-content: center; gap: 1px; min-height: 56px; padding: 6px 2px; border-radius: 14px; text-align: center; }
.tabs.tabs5 a:nth-child(4), .tabs.tabs5 a:nth-child(5) { grid-column: span 3; }
.tabs.tabs5 a b { font: 700 18px var(--display); line-height: 1.1; }
.tabs.tabs5 a span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.stat-wide { grid-column: 1 / -1; }
.tag-scheduled { background: #EDE3FF; color: #5B2EA6; }
.app .tag-scheduled { background: rgba(201,167,255,.18); color: #D9C4FF; }
.app .card.light .tag-scheduled, .notif-panel .tag-scheduled { background: #EDE3FF; color: #5B2EA6; }
.sched { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #F3EDFF; color: #3D1F78; }
.sched span { font-size: 15px; font-weight: 600; }
.sched span::first-letter { text-transform: uppercase; }
.sched-late { background: #FFF1D6; color: #7A4A00; }

/* ---------- Catalogue Nafa (vendeur) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.cat-card img, .cat-card .ph { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #2A3B4D; }
.cat-name { font-size: 14.5px; line-height: 1.3; }
.cat-gain { font-size: 13.5px; color: #7DEBD3; }
.cat-gain b { font: 700 16px var(--display); }
.cat-card .btn { min-height: 44px; font-size: 14px; padding: 0 8px; margin-top: auto; }
