:root {
  --primary: #3fbf2e;
  --accent: #b8f23a;
  --bg: #060b07;
  --card: #0e1a10;
  --text: #f0fff0;
  --muted: color-mix(in srgb, var(--text) 60%, transparent);
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --radius: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
textarea { min-height: 90px; resize: vertical; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }

#topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.brand-name { font-weight: 700; font-size: 17px; }
.brand-tagline { font-size: 12px; color: var(--muted); }
.icon-btn { background: var(--card); border: 1px solid var(--line); border-radius: 12px; width: 38px; height: 38px; font-size: 16px; }

main { padding: 16px; max-width: 720px; margin: 0 auto; }
.banner { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
h2 { margin: 4px 0 12px; font-size: 20px; }

#tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
#tabs button { flex: 1; background: none; border: 0; padding: 9px 0 8px; font-size: 11px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; }
#tabs button span { font-size: 19px; }
#tabs button.active { color: var(--primary); font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; cursor: pointer; }
.product .thumb { aspect-ratio: 1; width: 100%; object-fit: cover; display: block; background: #0003; }
.product .info { padding: 10px; }
.product .name { font-size: 14px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: 4px; font-weight: 700; color: var(--accent); }
.price s { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.stock { font-size: 11px; color: var(--muted); margin-top: 2px; }
.stock.out { color: #ef4444; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.hidden-tag { position: absolute; top: 8px; right: 8px; background: #000a; font-size: 11px; padding: 3px 8px; border-radius: 999px; }
.play { position: absolute; right: 8px; bottom: 62px; background: #000a; border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; font-size: 11px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }
.card p { margin: 0; white-space: pre-wrap; line-height: 1.45; color: color-mix(in srgb, var(--text) 85%, transparent); }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }

.btn { display: block; width: 100%; text-align: center; padding: 13px; border-radius: 14px; border: 0; background: var(--primary); color: #fff; font-weight: 600; text-decoration: none; margin-top: 10px; }
.btn.secondary { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: #ef4444; }
.btn.small { display: inline-block; width: auto; padding: 7px 12px; font-size: 13px; margin: 0; border-radius: 10px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.row > .btn { flex: none; }

.contact { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.contact .ico { font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 25%, transparent); border-radius: 12px; }

.stars { color: var(--accent); letter-spacing: 2px; }
.review-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.star-input { display: flex; gap: 6px; font-size: 28px; margin: 6px 0; }
.star-input button { background: none; border: 0; padding: 0; color: var(--muted); }
.star-input button.on { color: var(--accent); }
.pending { font-size: 11px; background: #f59e0b33; color: var(--accent); padding: 2px 8px; border-radius: 999px; }

.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font-size: 30px; font-weight: 700; margin: 0 auto 8px; }

.modal { position: fixed; inset: 0; background: #000a; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.sheet { background: var(--bg); width: 100%; max-width: 720px; max-height: 92vh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-body { overflow-y: auto; padding: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 12px; scrollbar-width: none; }
.gallery > * { flex: none; width: 100%; max-height: 360px; object-fit: contain; background: #0006; border-radius: 14px; scroll-snap-align: center; }
.opt-group { margin: 10px 0; }
.opt-values { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.opt-values button { padding: 7px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.opt-values button.on { background: var(--primary); border-color: var(--primary); color: #fff; }

.admin-list-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list-item img, .admin-list-item .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--card); flex: none; }
.admin-list-item .grow { flex: 1; min-width: 0; }
.admin-list-item .grow div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-edit { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.media-edit .m { position: relative; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; background: var(--card); }
.media-edit .m img, .media-edit .m video { width: 100%; height: 100%; object-fit: cover; }
.media-edit .m button { position: absolute; top: 2px; right: 2px; background: #000b; border: 0; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; padding: 0; }
.switch { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.switch input { width: auto; }
.color-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.color-row input { width: 52px; height: 36px; padding: 2px; }
.tabs-inner { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }

#toast { position: fixed; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: #000d; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 100; max-width: 90%; }
#toast[hidden] { display: none; }

/* ===================================================================== */
/*                     DA Droopy Stars (vert slime / néon)               */
/* ===================================================================== */
:root { --glow: color-mix(in srgb, var(--primary) 55%, transparent); }

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(110% 50% at 50% -8%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 62%),
    radial-gradient(80% 40% at 100% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

.brand-name, h2, h3, .price, .badge, .btn, .chip, #tabs button, .sheet-head strong, .avatar {
  font-family: "Lilita One", "Nunito", sans-serif;
  font-weight: 400;
  letter-spacing: .3px;
}

#topbar { border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: 0 6px 24px color-mix(in srgb, var(--primary) 10%, transparent); }
.brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--primary); box-shadow: 0 0 14px var(--glow); }
.brand-name { font-size: 21px; color: var(--primary); text-shadow: 0 0 12px var(--glow); }
.brand-tagline { color: var(--muted); }
.icon-btn { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }

.banner { height: auto; aspect-ratio: 2.45; object-position: center; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--primary) 32%, transparent); }
h2 { font-size: 22px; text-shadow: 0 0 14px var(--glow); }

.product, .card { border-color: color-mix(in srgb, var(--primary) 26%, transparent); }
.product { box-shadow: 0 6px 18px #0007; transition: transform .15s ease, box-shadow .15s ease; }
.product:active { transform: scale(.97); box-shadow: 0 0 18px var(--glow); }
.price { font-size: 17px; color: var(--accent); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); }
.price s { font-family: "Nunito", sans-serif; text-shadow: none; }
.badge { color: #07130a; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); }

.btn { color: #04110a; font-size: 16px; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn.secondary { color: var(--text); background: var(--card); box-shadow: none; }
.btn.danger { color: #fff; background: #ef4444; box-shadow: none; }
.btn[disabled] { box-shadow: none; }

.chip { font-size: 14px; }
.chip.active { color: #04110a; background: var(--primary); border-color: var(--primary); box-shadow: 0 0 12px var(--glow); }
.opt-values button.on { color: #04110a; box-shadow: 0 0 10px var(--glow); }
.avatar { color: #04110a; box-shadow: 0 0 18px var(--glow); }

#tabs { border-top: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); box-shadow: 0 -8px 26px color-mix(in srgb, var(--primary) 12%, transparent); }
#tabs button.active { color: var(--primary); text-shadow: 0 0 10px var(--glow); }
#tabs button.active span { filter: drop-shadow(0 0 6px var(--primary)); }

.sheet { border-top: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); box-shadow: 0 -10px 40px color-mix(in srgb, var(--primary) 14%, transparent); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); }

/* ===================================================================== */
/*                  Vie : icônes, animations, bannières                  */
/* ===================================================================== */

/* --- Icônes à traits fins --- */
.ic, #tabs svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 20px; height: 20px; vertical-align: -4px; }
.icon-btn { display: grid; place-items: center; padding: 0; color: var(--text); }
.icon-btn .ic { width: 20px; height: 20px; vertical-align: 0; }
#tabs { position: fixed; }
#tabs button { font-family: "Nunito", sans-serif; font-weight: 700; font-size: 11px; gap: 4px; padding: 11px 0 9px; transition: color .25s ease; }
#tabs svg { width: 25px; height: 25px; transition: transform .25s ease; }
#tabs button:active svg { transform: scale(.85); }
#tabs button.active svg { animation: tabPop .45s cubic-bezier(.3, 1.7, .5, 1); fill: color-mix(in srgb, var(--primary) 18%, transparent); filter: drop-shadow(0 0 6px var(--glow)); }
#tabs .tab-ind { position: absolute; top: 0; left: 0; width: 20%; height: 3px; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .4s cubic-bezier(.3, 1.25, .5, 1); pointer-events: none; }
#tabs .tab-ind::after { content: ""; display: block; width: 38px; height: 3px; margin: 0 auto; border-radius: 0 0 6px 6px; background: var(--primary); box-shadow: 0 0 14px var(--primary); }

/* --- Logo de l'en-tête : entier, en carré arrondi --- */
.brand img { border-radius: 12px; animation: glowPulse 3.2s ease-in-out infinite; object-fit: cover; }

/* --- Texte qui défile --- */
.ticker { overflow: hidden; margin: -4px -16px 12px; padding: 8px 0; background: color-mix(in srgb, var(--primary) 12%, transparent); border-block: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker-track span { white-space: pre; font-family: "Lilita One", sans-serif; font-size: 13px; letter-spacing: .6px; color: var(--accent); text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); }

.hello { font-size: 15px; margin: 2px 2px 12px; color: var(--muted); }
.hello strong { color: var(--text); font-family: "Lilita One", sans-serif; font-weight: 400; }
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out infinite; }

/* --- Bannières défilantes --- */
.carousel { position: relative; margin-bottom: 16px; border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 0 28px color-mix(in srgb, var(--primary) 30%, transparent); background: #050b06; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; height: min(300px, 78vw); position: relative; display: grid; place-items: center; overflow: hidden; }
.slide.clickable { cursor: pointer; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.slide.cover img { object-fit: cover; }
.slide.has-img:not(.cover) img { inset: 0 0 22px 0; height: calc(100% - 22px); }

.slide.has-img:not(.cover) img { animation: floaty 5.5s ease-in-out infinite; }
.slide.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000c, transparent 55%); }
.slide-text { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 28px; text-align: left; }
.slide.plain { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, #000), color-mix(in srgb, var(--accent) 30%, #02130a)); }
.slide.plain .slide-text { inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.slide.plain::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 38%, #ffffff30 50%, transparent 62%); transform: translateX(-100%); animation: shine 4.5s ease-in-out infinite; }
.slide-title { font-family: "Lilita One", sans-serif; font-size: clamp(26px, 8vw, 38px); line-height: 1.05; color: #fff; text-shadow: 0 3px 0 #0006, 0 0 18px #0008; }
.slide-sub { margin-top: 8px; font-size: 14px; color: #ffffffdd; text-shadow: 0 1px 6px #000a; }
.dots { position: absolute; z-index: 3; bottom: 9px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: #ffffff55; transition: width .3s ease, background .3s ease; cursor: pointer; }
.dots i.on { width: 20px; background: var(--primary); box-shadow: 0 0 8px var(--primary); }

/* --- Cartes produits --- */
.product { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i, 0), 10) * 60ms); }
.product .thumb { transition: transform .5s ease; }
.product:active .thumb { transform: scale(1.04); }
.product { overflow: hidden; }
.fav { position: absolute; z-index: 3; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: #000a; border: 1px solid #ffffff22; color: #fff; backdrop-filter: blur(6px); transition: transform .2s ease; }
.fav .ic { width: 18px; height: 18px; vertical-align: 0; }
.fav.on { color: var(--primary); border-color: var(--primary); }
.fav.on .ic { fill: var(--primary); animation: heartPop .5s cubic-bezier(.3, 1.8, .5, 1); }
.fav:active { transform: scale(.85); }
.hidden-tag { top: 48px; }
.fav-btn.on { color: var(--primary); border-color: var(--primary); }
.fav-btn.on .ic { fill: var(--primary); }
.btn { transition: transform .15s ease, box-shadow .2s ease; }
.btn:active, .chip:active, .icon-btn:active { transform: scale(.96); }

/* --- Transitions de pages et fenêtres --- */
#view.enter { animation: viewIn .38s cubic-bezier(.2, .8, .2, 1) both; }
.card { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.modal:not([hidden]) { animation: fadeIn .22s ease both; }
.modal:not([hidden]) .sheet { animation: sheetUp .38s cubic-bezier(.2, .9, .25, 1) both; }
#toast:not([hidden]) { animation: toastIn .3s cubic-bezier(.3, 1.4, .5, 1) both; }

/* --- Chargement --- */
.sk-hero { height: min(300px, 78vw); border-radius: 22px; margin-bottom: 16px; }
.sk-hero, .sk .thumb, .sk-line { background: linear-gradient(100deg, var(--card) 30%, color-mix(in srgb, var(--primary) 18%, var(--card)) 50%, var(--card) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.sk { animation: none; }
.sk-line { height: 12px; border-radius: 6px; margin: 8px 0; }
.sk-line.short { width: 55%; }

/* --- Éclats d'emojis --- */
.burst { position: fixed; z-index: 300; pointer-events: none; font-size: 18px; animation: burst .95s ease-out forwards; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-7px) scale(1.025); } }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 0 8px var(--glow); } 50% { box-shadow: 0 0 20px var(--primary); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } 50% { transform: rotate(8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(60px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes tabPop { 0% { transform: scale(.7) translateY(2px); } 100% { transform: scale(1) translateY(0); } }
@keyframes heartPop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
}

/* ===================================================================== */
/*     Logo recentré, fond animé, écran de chargement, panier           */
/* ===================================================================== */

/* --- Logo en grand, sans vide autour --- */
.carousel { max-width: 440px; margin-inline: auto; padding-bottom: 24px; background: #0a140b; }
.slide { height: min(380px, 104vw); }
.slide.has-img:not(.cover) img { inset: 0; height: 100%; }
.dots { bottom: 8px; }
.sk-hero { height: min(380px, 104vw); max-width: 440px; margin-inline: auto; }

/* --- Fond animé --- */
#bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#bgfx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#bgfx .orb { position: absolute; width: 85vmax; height: 85vmax; border-radius: 50%; opacity: .55; will-change: transform; }
#bgfx .a { top: -45vmax; left: -35vmax; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 34%, transparent), transparent 62%); animation: drift1 24s ease-in-out infinite alternate; }
#bgfx .b { bottom: -50vmax; right: -40vmax; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%); animation: drift2 30s ease-in-out infinite alternate; }
#bgfx .c { top: 30vh; left: 25vw; width: 55vmax; height: 55vmax; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 65%); animation: drift3 36s ease-in-out infinite alternate; }
main { position: relative; z-index: 1; }
body { background: var(--bg); }
body.has-cart { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }

/* --- Écran de chargement --- */
#splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; background: radial-gradient(120% 80% at 50% 30%, color-mix(in srgb, var(--primary) 26%, #050a06), #030604 70%); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
#splash.out { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
.splash-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; }
.splash-logo { position: relative; width: 168px; height: 168px; animation: splashIn .9s cubic-bezier(.2, .9, .25, 1) both, floaty 4.5s ease-in-out .9s infinite; }
.splash-logo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); border-radius: 30px; object-fit: cover; box-shadow: 0 0 40px color-mix(in srgb, var(--primary) 55%, transparent); }
.splash-ring { position: absolute; inset: 0; border-radius: 38px; padding: 3px; background: conic-gradient(from 0deg, var(--primary), transparent 30%, var(--accent), transparent 70%, var(--primary)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 2.8s linear infinite; }
.splash-title { margin-top: 26px; font-family: "Lilita One", sans-serif; line-height: 1.05; }
.splash-title span { display: block; opacity: 0; animation: wordIn .8s cubic-bezier(.2, .9, .25, 1) forwards; }
.splash-title .w1 { font-size: 22px; color: var(--muted); letter-spacing: 3px; text-transform: uppercase; animation-delay: .5s; }
.splash-title .w2 { margin-top: 6px; font-size: 34px; color: #fff; animation-delay: .8s; }
.splash-title b { font-weight: 400; color: var(--primary); text-shadow: 0 0 22px var(--primary); }
.splash-bar { margin-top: 30px; width: 190px; height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--primary) 18%, transparent); overflow: hidden; opacity: 0; animation: wordIn .6s ease 1.1s forwards; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); box-shadow: 0 0 14px var(--primary); animation: barSlide 1.3s ease-in-out infinite; }
.splash-sub { margin-top: 12px; font-size: 13px; color: var(--muted); opacity: 0; animation: wordIn .6s ease 1.3s forwards; }
.splash-orb { position: absolute; border-radius: 50%; width: 90vmax; height: 90vmax; opacity: .5; }
.splash-orb.o1 { top: -50vmax; left: -40vmax; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 40%, transparent), transparent 62%); animation: drift1 9s ease-in-out infinite alternate; }
.splash-orb.o2 { bottom: -55vmax; right: -45vmax; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 62%); animation: drift2 11s ease-in-out infinite alternate; }
.splash-stars i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: twinkle 2.4s ease-in-out infinite; }
.splash-stars i:nth-child(1) { top: 12%; left: 14%; animation-delay: .1s; }
.splash-stars i:nth-child(2) { top: 20%; left: 78%; animation-delay: .6s; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.splash-stars i:nth-child(3) { top: 36%; left: 8%; animation-delay: 1.1s; }
.splash-stars i:nth-child(4) { top: 64%; left: 86%; animation-delay: .3s; }
.splash-stars i:nth-child(5) { top: 78%; left: 18%; animation-delay: .9s; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.splash-stars i:nth-child(6) { top: 88%; left: 62%; animation-delay: 1.4s; }
.splash-stars i:nth-child(7) { top: 8%; left: 48%; animation-delay: 1.7s; width: 4px; height: 4px; }
.splash-stars i:nth-child(8) { top: 52%; left: 94%; animation-delay: 2s; width: 4px; height: 4px; }

/* --- Barre du panier flottante --- */
.cart-bar { position: fixed; z-index: 25; left: 14px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 692px; margin-inline: auto; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 0; border-radius: 20px; color: #04110a; text-align: left; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--accent))); box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 0 1px #ffffff22 inset; }
.cart-bar[hidden] { display: none; }
.cart-bar.bump { animation: cartBump .55s cubic-bezier(.3, 1.6, .5, 1); }
.cb-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #04110a22; }
.cb-ico .ic { width: 22px; height: 22px; vertical-align: 0; }
.cb-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.15; }
.cb-txt small { font-size: 12px; font-weight: 700; opacity: .75; }
.cb-txt strong { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 20px; }
.cb-go { display: inline-flex; align-items: center; gap: 4px; font-family: "Lilita One", sans-serif; font-size: 15px; }
.cb-go .ic { width: 16px; height: 16px; vertical-align: 0; }

/* --- Quantité, panier, livraison --- */
.qty-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 4px; font-family: "Lilita One", sans-serif; font-size: 16px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); border-radius: 14px; overflow: hidden; background: var(--card); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--text); transition: background .15s; }
.stepper button:active { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.stepper strong { min-width: 38px; text-align: center; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 18px; }
.stepper.small button { width: 32px; height: 32px; font-size: 18px; }
.stepper.small strong { min-width: 28px; font-size: 15px; }

.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: rise .35s ease both; }
.cl-thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--card); }
.cl-thumb .thumb { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.cl-main { flex: 1; min-width: 0; }
.cl-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.cl-opts { font-size: 12px; color: var(--muted); margin: 2px 0; }
.cl-main .price { margin-top: 2px; font-size: 15px; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-rm { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; }

.promo-row { display: flex; gap: 8px; margin: 16px 0 6px; }
.promo-row input { flex: 1; text-transform: uppercase; letter-spacing: 1px; }
.promo-row .btn { flex: none; margin: 0; }

.sum { margin: 14px 0 6px; }
.sum > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum .muted { color: var(--muted); font-size: 13px; }
.sum .disc { color: var(--accent); }
.sum .tot { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); font-family: "Lilita One", sans-serif; font-size: 20px; }

.back-btn { background: none; border: 0; padding: 0 0 8px; color: var(--muted); font-size: 14px; }
.step-title { margin: 4px 0 14px; font-size: 18px; }
.modes { display: flex; flex-direction: column; gap: 10px; }
.mode { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, background .2s, transform .15s; }
.mode:active { transform: scale(.98); }
.mode.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--card)); box-shadow: 0 0 18px color-mix(in srgb, var(--primary) 25%, transparent); }
.mode .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); position: relative; transition: border-color .2s; }
.mode.on .radio { border-color: var(--primary); }
.mode.on .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); animation: heartPop .35s cubic-bezier(.3, 1.8, .5, 1); }
.mode-txt { flex: 1; display: flex; flex-direction: column; }
.mode-txt strong { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 16px; }
.mode-txt small { color: var(--muted); font-size: 12px; }
.mode-fee { font-family: "Lilita One", sans-serif; color: var(--accent); }
.btn.loading { opacity: .7; pointer-events: none; }
.btn.loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid #04110a55; border-top-color: #04110a; border-radius: 50%; animation: spin .7s linear infinite; }

/* --- Commande envoyée --- */
.success { text-align: center; padding-top: 6px; }
.success .check { width: 92px; height: 92px; margin: 6px auto 10px; }
.success .check svg { width: 100%; height: 100%; fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px var(--glow)); }
.success .check circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .7s ease forwards; }
.success .check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s ease .55s forwards; }
.success p { color: var(--muted); line-height: 1.5; margin: 4px 0 8px; }

@keyframes drift1 { to { transform: translate(18vmax, 14vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, -12vmax) scale(1.2); } }
@keyframes drift3 { to { transform: translate(-20vmax, 10vmax) scale(.85); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes splashIn { from { opacity: 0; transform: scale(.5) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes barSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes cartBump { 0% { transform: translateY(40px) scale(.9); opacity: 0; } 60% { transform: translateY(-4px) scale(1.03); opacity: 1; } 100% { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  #bgfx .orb, .splash-orb, .splash-ring, .splash-stars i, .splash-bar i { animation: none !important; }
}

/* --- Messages : en haut de l'écran, jamais sous le panier --- */
#toast { top: calc(66px + env(safe-area-inset-top)); bottom: auto; width: max-content; max-width: 88vw; z-index: 500; text-align: center; background: color-mix(in srgb, var(--card) 92%, #000); border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: 0 8px 30px #000a, 0 0 18px color-mix(in srgb, var(--primary) 25%, transparent); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px) scale(.92); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

/* --- Profil, formulaire livraison, parrainage --- */
.profile-head { text-align: center; padding: 6px 0 16px; }
.avatar-ring { width: 104px; height: 104px; margin: 0 auto 10px; border-radius: 50%; padding: 4px; background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary)); box-shadow: 0 0 26px color-mix(in srgb, var(--primary) 45%, transparent); display: grid; place-items: center; animation: ringSpin 6s linear infinite; }
.avatar-ring > * { animation: ringSpin 6s linear infinite reverse; }
.avatar-img, .avatar-ring .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0; border: 3px solid var(--bg); background: var(--card); }
.avatar-ring .avatar[hidden] { display: none; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .avatar-ring, .avatar-ring > * { animation: none; } }
.p-name { font-family: "Lilita One", sans-serif; font-size: 22px; display: block; }
.p-user { color: var(--muted); font-size: 14px; }
.card-title { margin: 0 0 12px; font-size: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.stat strong { display: block; font-family: "Lilita One", sans-serif; font-size: 22px; color: var(--accent); }
.stat small { color: var(--muted); font-size: 12px; }
.hist-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-top: 1px solid var(--line); margin-top: 14px; padding: 14px 2px 2px; color: var(--text); font-family: "Lilita One", sans-serif; font-size: 17px; }
.hist-toggle .ic { width: 20px; height: 20px; color: var(--accent); transition: transform .25s; }
.hist-toggle.open .ic { transform: rotate(180deg); }
#histBody { margin-top: 12px; display: grid; gap: 10px; }
.hist-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.hist-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f5a62326; color: #f5b04a; border: 1px solid #f5a62355; }
.pill.done { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.hist-mode { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.hist-line { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 14px; padding: 2px 0; }
.hist-line small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.hist-total { text-align: right; margin-top: 6px; font-size: 18px; }
.lbl { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lbl i { color: var(--accent); font-style: normal; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed color-mix(in srgb, var(--primary) 60%, transparent); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.code-box strong { font-family: "Lilita One", sans-serif; font-size: 22px; letter-spacing: 3px; color: var(--accent); }
.link-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; word-break: break-all; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.row2 .btn { margin: 0; }
.ref-in { grid-template-columns: 1fr auto; margin-top: 0; }
.ref-count { margin: 14px 0 6px; color: var(--muted); font-size: 14px; }
.ref-track { position: relative; height: 4px; border-radius: 4px; background: var(--line); margin: 18px 12px 46px; }
.ref-track > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s; }
.ref-track span { position: absolute; top: 50%; transform: translateX(-50%); text-align: center; }
.ref-track span b { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); margin: -8px auto 6px; }
.ref-track span.on b { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ref-track span em { display: block; font-style: normal; font-size: 13px; font-weight: 700; }
.ref-track span small { display: block; color: var(--muted); font-size: 11px; }
.info-note { color: var(--muted); line-height: 1.5; margin: 0 0 6px; }
.sheet-body textarea { width: 100%; resize: vertical; }
.sticky-foot { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 18px -16px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: color-mix(in srgb, var(--bg) 94%, #000); border-top: 1px solid var(--line); }
.sticky-foot .btn { width: auto; margin: 0; padding-left: 28px; padding-right: 28px; display: inline-flex; align-items: center; gap: 8px; }
.sticky-foot .btn .ic { width: 18px; height: 18px; }
.tot-box small { display: block; color: var(--muted); font-size: 12px; }
.tot-box strong { font-size: 24px; color: var(--accent); }
.avatar-ring .avatar { background: var(--primary); color: #04110a; font-size: 40px; }

/* ====================================================================== */
/*  Fluidité : on retire les effets coûteux sur téléphone                  */
/* ====================================================================== */
html { -webkit-text-size-adjust: 100%; }
* { -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, .product, .chip { touch-action: manipulation; }
input, select, textarea { font-size: 16px; } /* évite le zoom automatique sur iPhone */
#topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.fav { backdrop-filter: none; -webkit-backdrop-filter: none; background: #000c; }
.brand img { animation: none; }
.avatar-ring, .avatar-ring > * { animation: none; }
.product { content-visibility: auto; contain-intrinsic-size: auto 250px; }
#bgfx .orb { will-change: transform; }
body.modal-open, body.admin-open { overflow: hidden; }
body.modal-open #bgfx, body.admin-open #bgfx { visibility: hidden; }
.sheet-body, .ap-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.stepper button { min-width: 44px; min-height: 44px; }
.tab-ind { will-change: transform; }
.slide { height: min(340px, 94vw); }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }

/* --- Boutons de contact sur l'accueil --- */
.qc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.qc.one { grid-template-columns: 1fr; }
.qc-btn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 16px; background: var(--card); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); color: var(--text); text-decoration: none; box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 14%, transparent); transition: transform .15s; }
.qc-btn:active { transform: scale(.96); }
.qc-ico { font-size: 22px; flex: none; }
.qc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.qc-txt strong { font-family: "Lilita One", sans-serif; font-size: 16px; font-weight: 400; }
.qc-txt small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-foot { margin-top: 22px; text-align: center; }
.qc-foot p { color: var(--muted); margin: 0 0 10px; font-size: 14px; }
.price .from { color: var(--muted); font-size: 11px; font-weight: 400; }

/* --- Tarifs par quantité (fiche produit) --- */
.tier-title { margin: 18px 0 10px; font-size: 18px; }
.tiers { display: grid; gap: 10px; }
.tier { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-align: left; transition: border-color .15s, background .15s; }
.tier[hidden] { display: none; }
.tier .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 60%, transparent); display: grid; place-items: center; }
.tier.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, var(--card)); box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 25%, transparent); }
.tier.on .radio { border-color: var(--accent); }
.tier.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.t-name { font-family: "Lilita One", sans-serif; font-size: 17px; }
.t-mid { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.t-mid em { font-style: normal; font-size: 11px; font-weight: 700; color: #04110a; background: var(--accent); border-radius: 99px; padding: 2px 7px; margin-bottom: 2px; }
.t-mid small { color: var(--muted); font-size: 11px; }
.t-price { font-family: "Lilita One", sans-serif; font-size: 18px; min-width: 62px; text-align: right; }
.tier.on .t-price { color: var(--accent); }
.more-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px; background: none; border: 0; color: var(--muted); font-weight: 700; }
.more-btn .ic { width: 16px; height: 16px; transition: transform .2s; }
.more-btn.open .ic { transform: rotate(180deg); }
.buy-foot .stepper { flex: none; }
.buy-foot .btn { flex: 1; justify-content: center; }
.fav-btn { margin-top: 16px; }

/* --- Panneau d'administration plein écran --- */
#adminPanel { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: var(--bg); animation: apIn .28s cubic-bezier(.2, .9, .25, 1) both; }
#adminPanel[hidden] { display: none; }
@keyframes apIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ap-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 60%, var(--bg)); }
.ap-head .icon-btn { width: 42px; height: 42px; flex: none; }
.ap-title { flex: 1; text-align: center; line-height: 1.1; }
.ap-title small { display: block; color: var(--accent); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.ap-title strong { font-family: "Lilita One", sans-serif; font-size: 20px; font-weight: 400; }
.ap-body { flex: 1; overflow-y: auto; padding: 14px 14px 24px; }
.ap-nav { flex: none; display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.ap-nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; background: none; border: 0; color: var(--muted); font-size: 11px; font-weight: 700; min-height: 52px; }
.ap-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ap-nav button.on { color: var(--accent); }
.ap-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-style: normal; font-size: 11px; line-height: 18px; text-align: center; }
.ap-badge[hidden] { display: none; }
.ap-h { margin: 20px 0 10px; font-size: 18px; }
.ap-h small { color: var(--muted); font-weight: 400; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; }
button.kpi:active { transform: scale(.97); }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi strong { font-family: "Lilita One", sans-serif; font-size: 26px; font-weight: 400; color: var(--accent); }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi span.warn { color: #f5b04a; font-weight: 700; }
.kpi.hero { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 30%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.kpi.hero strong { font-size: 34px; }
.kpi.hero b { color: var(--text); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 12px 10px 8px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar i { display: block; width: 100%; max-width: 30px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--primary)); }
.bar em { font-style: normal; font-size: 10px; color: var(--muted); height: 12px; }
.bar span { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 22px; }
.quick button span { font-size: 11px; font-weight: 700; text-align: center; line-height: 1.15; }
.todo-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.todo-lines { color: var(--text); font-size: 14px; margin: 6px 0; }
.todo-meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.top-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.top-row:last-child { border-bottom: 0; }
.top-row b { color: var(--accent); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-family: "Lilita One", sans-serif; font-size: 16px; text-align: left; }
.tile span { font-size: 26px; }
.tile:active { transform: scale(.97); }
.client { display: flex; align-items: center; gap: 12px; }
.client .grow { flex: 1; min-width: 0; }
.client small { color: var(--muted); }
.cl-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #04110a; font-family: "Lilita One", sans-serif; font-size: 18px; }
.cl-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
.tier-head, .tier-row { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; align-items: center; }
.tier-head { margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.tier-row { margin-top: 8px; }
.tier-row .btn { padding: 0; height: 44px; width: 44px; display: grid; place-items: center; }
.tier-edit .row { flex-wrap: wrap; }
.ap-body .card { margin-bottom: 10px; }
.ap-body .btn { min-height: 46px; }

/* --- Clients : mention acheteur / visiteur --- */
.cl-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.tag.buy { color: var(--accent); background: color-mix(in srgb, var(--primary) 18%, transparent); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.tag.nobuy { color: #f5b04a; background: #f5a62320; border-color: #f5a62350; }
.cl-sum { font-size: 14px; line-height: 1.5; }
.cl-sum b { color: var(--accent); font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 16px; }
