:root {
  --accent: #e2386f;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, white);
  --ink: #1c1a2b;
  --ink-2: #4a4760;
  --muted: #8a879c;
  --bg: #faf8f5;
  --card: #ffffff;
  --line: #ece8e1;
  --ok: #1f9d63;
  --warn: #d98a0b;
  --danger: #d23b3b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 26, 43, .05), 0 8px 24px rgba(28, 26, 43, .06);
  --shadow-lg: 0 20px 60px rgba(28, 26, 43, .18);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(.94); border-color: var(--accent); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.warn-box { background: #fff1f1; border: 1px solid #f3c2c2; color: #8a1f1f; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; }
.warn-box b { display: block; font-size: 15px; margin-bottom: 4px; }
.locked .lockable { opacity: .55; pointer-events: none; }
code.block { display: block; background: #1c1a2b; color: #e9e6f5; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; margin: 6px 0 12px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9c5bd; margin-right: 6px; }
.status-dot.on { background: var(--ok); }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.channels .check { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); background: #fff5f5; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; outline: none; transition: .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }

/* Switch */
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d9d5ce; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.badge-off { background: #f1efeb; color: var(--muted); }
.badge-ok { background: #e6f6ee; color: var(--ok); }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(20, 18, 32, .5); backdrop-filter: blur(3px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--card); border-radius: 22px; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: pop .2s; position: relative; }
.modal-sm { width: min(520px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--card); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

/* Toasts */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 300; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: .3s; }
.toast-err { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ═════════════════ PUBLIC CATALOG ═════════════════ */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; font-weight: 500; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 245, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; min-width: 0; }
.brand img, .brand .logo-dot { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.brand .logo-dot { background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 10px 16px 10px 40px; outline: none; }
.search input:focus { border-color: var(--accent); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sel-btn { position: relative; }
.sel-count { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
@media (max-width: 680px) {
  .topbar .container { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .sel-btn .lbl { display: none; }
}

.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--ink-2); font-size: 17px; max-width: 620px; margin: 12px 0 22px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.section-title h2 { font-size: 22px; }
#prodTitle { scroll-margin-top: 130px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: .18s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cat-card img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.cat-card .t { padding: 10px 12px 12px; }
.cat-card .t b { display: block; font-size: 14px; }
.cat-card .t small { color: var(--muted); font-size: 12px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 6px 0 16px; }
.toolbar select { width: auto; border-radius: 99px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: .18s; position: relative; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pcard .img { aspect-ratio: 1; background: #f3f0ea; position: relative; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .img .badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; }
.pcard .body { padding: 12px 14px 14px; display: grid; gap: 4px; flex: 1; }
.pcard .ref { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .05em; }
.pcard h3 { font-size: 15px; font-weight: 700; }
.pcard .price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pcard .price b { font-size: 16px; color: var(--ink); }
.pcard .price small { color: var(--muted); font-size: 12px; }
.pcard .add { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 0; box-shadow: var(--shadow); cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.pcard .add.on { background: var(--accent); color: #fff; }

.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty .ic { font-size: 42px; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; }
@media (max-width: 720px) { .pd { grid-template-columns: 1fr; } }
.gallery { min-width: 0; }
.slider { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #f3f0ea; }
.track { display: flex; height: 100%; transition: transform .35s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; background: #f3f0ea; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.video-box { width: 100%; height: 100%; background: #000; }
.video-box iframe, .video-box video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.nav-arrow.prev { left: 10px; } .nav-arrow.next { right: 10px; }
.nav-arrow:hover { background: #fff; }
.counter { position: absolute; bottom: 10px; right: 10px; background: rgba(20,18,32,.7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; z-index: 2; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs .th { position: relative; flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #1c1a2b; }
.thumbs .th img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .th.on { border-color: var(--accent); }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0,0,0,.35); }
.media-count { position: absolute; bottom: 8px; left: 8px; background: rgba(20,18,32,.7); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.single-price { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.single-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.on-request { font-size: 14px !important; color: var(--accent) !important; }
footer.site .copy { flex-basis: 100%; font-size: 12px; opacity: .7; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }
.price-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.price-mode label { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 600; display: grid; gap: 2px; }
.price-mode label small { color: var(--muted); font-weight: 500; font-size: 12px; }
.price-mode input { display: none; }
.price-mode label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
@media (max-width: 560px) { .price-mode { grid-template-columns: 1fr; } }
.video-row { display: grid; grid-template-columns: 1fr 36px; gap: 8px; margin-bottom: 8px; }
.pd h2 { font-size: 24px; margin: 6px 0 4px; }
.pd .desc { color: var(--ink-2); white-space: pre-line; margin: 12px 0 18px; }
.tiers { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; font-size: 14px; }
.tiers th, .tiers td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tiers th { background: #f7f5f1; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tiers tr:last-child td { border-bottom: 0; }
.tiers tr.on td { background: var(--accent-soft); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: none; width: 38px; height: 40px; font-size: 18px; cursor: pointer; }
.qty input { width: 70px; border: 0; text-align: center; outline: none; font-weight: 700; }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.est { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.est b { color: var(--ink); }

/* Drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(20,18,32,.45); z-index: 120; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--card); z-index: 121; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer .items { flex: 1; overflow: auto; padding: 8px 22px; }
.sitem { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sitem img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.sitem b { font-size: 14px; display: block; }
.sitem small { color: var(--muted); }
.sitem .qty input { width: 52px; }
.sitem .qty button { width: 30px; height: 32px; }
.client-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.client-box summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.drawer .modal-foot { max-height: 70vh; overflow: auto; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 4px; }

footer.site { margin-top: 60px; background: var(--ink); color: #d9d6e6; padding: 36px 0; font-size: 14px; }
footer.site .container { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
footer.site b { color: #fff; font-size: 16px; }
footer.site a { color: #fff; }
.fab-wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 60; }

/* ═════════════════ ADMIN ═════════════════ */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #cfcbe0; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side .brand { color: #fff; margin: 0 6px 22px; font-size: 16px; }
.side .nav { all: unset; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.side .nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.side .nav.on { background: rgba(255,255,255,.12); color: #fff; }
.side .spacer { flex: 1; }
.side .mode { font-size: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.main { padding: 26px 30px 60px; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.main-head h1 { font-size: 26px; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; z-index: 40; align-items: center; }
  .side .brand, .side .spacer, .side .mode { display: none; }
  .side .nav { white-space: nowrap; }
  .main { padding: 18px 16px 60px; }
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; }
.stat small { color: var(--muted); font-weight: 600; font-size: 13px; }
.stat b { display: block; font-size: 30px; font-weight: 800; margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td > b { white-space: nowrap; }
.tbl tr.off td:not(:last-child) { opacity: .5; }
.tbl .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px; border-bottom: 1px solid var(--line); }
.filters .input { width: auto; flex: 1; min-width: 160px; }
.filters select.input { flex: 0 1 220px; }

.img-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-item { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.img-item .first { position: absolute; left: 4px; bottom: 4px; font-size: 10px; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 99px; font-weight: 700; }
.img-item .mv { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 12px; }
.img-add { width: 96px; height: 96px; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 12px; text-align: center; font-weight: 600; }
.img-add:hover { border-color: var(--accent); color: var(--accent); }
.tier-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; margin-bottom: 8px; align-items: center; }
.tier-head { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 20% 10%, var(--accent-soft), transparent 50%), var(--bg); }
.login { width: min(400px, 100%); padding: 30px; }
.login h1 { font-size: 24px; margin-bottom: 4px; }
.note { font-size: 13px; background: #fff8e8; border: 1px solid #f3e1b3; color: #7a5a10; padding: 10px 12px; border-radius: 12px; margin-bottom: 14px; }
.group-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 10px; }
.cat-ic { font-size: 22px; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #f3f0ea; }

/* ═════════════════ AGENCE / ABONNEMENTS ═════════════════ */
.agency-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 18px; background: #1c1a2b; color: #fff; font-size: 14px; }
.agency-bar .btn { margin-left: auto; }
.agency-bar.warn { background: #fff4e0; color: #7a4b00; }
.agency-bar.warn a { color: inherit; font-weight: 700; }
.agency-bar.danger { background: #fde8e8; color: #8a1f1f; font-weight: 600; }
.badge-warn { background: #fff4e0; color: #b26a00; }
.badge-late { background: #fde8e8; color: var(--danger); }
.tbl .acts .btn { padding: 5px 10px; }


/* ═════════════════ v2.1 : stock, promo, revendeurs, arabe, app ═════════════════ */
.pcard .img .badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard .img .badges .badge { position: static; }
.badges.inline { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-promo { background: #ffe14d !important; color: #5a4300 !important; }
.badge-out { background: #1c1a2b !important; color: #fff !important; }
.badge-soon { background: #e6efff !important; color: #1d4ed8 !important; }
.pcard.is-out .img img { filter: grayscale(.85); opacity: .7; }
s.old { color: var(--muted); font-size: 13px; font-weight: 500; margin-inline-start: 4px; }
.promo-timer { margin-top: 8px; display: inline-block; background: #fff4cc; color: #6b5200; font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 99px; }
.pro-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #1c1a2b; color: #fff; padding: 12px 16px; border-radius: 14px; margin: 0 0 8px; font-weight: 600; }
.lang-btn { font-weight: 800; font-size: 16px; flex: none; }
.req-card { padding: 16px; display: grid; gap: 10px; }
.req-card .req-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-card table { font-size: 13px; }
.bar-row { display: grid; grid-template-columns: 1fr 70px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 6px; }
.bar-row .bar { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.qr-box { display: grid; place-items: center; padding: 10px; background: #fff; border-radius: 14px; }
.qr-box img, .qr-box canvas { width: 220px !important; height: 220px !important; }

/* Arabe : sens de lecture droite → gauche */
[dir=rtl] body { font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; }
[dir=rtl] .search svg { left: auto; right: 14px; }
[dir=rtl] .search input { padding: 10px 40px 10px 16px; }
[dir=rtl] .pcard .add { right: auto; left: 10px; }
[dir=rtl] .media-count { left: auto; right: 8px; }
[dir=rtl] .drawer { right: auto; left: 0; }
[dir=rtl] .fab-wa { right: auto; left: 18px; }
[dir=rtl] .sel-count { right: auto; left: -6px; }
[dir=rtl] .tiers th, [dir=rtl] .tiers td { text-align: right; }

/* Bouton « haut de page » (au-dessus du bouton WhatsApp) */
.to-top { position: fixed; right: 22px; bottom: 86px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); z-index: 59; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.show { opacity: .92; transform: none; pointer-events: auto; }
.to-top:hover { opacity: 1; }
.to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[dir=rtl] .to-top { right: auto; left: 22px; }
body:has(#fabWa.hidden) .to-top { bottom: 22px; }

/* Téléphone : catégories 2 par ligne (au lieu d'une seule, trop grande) */
@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card .t { padding: 8px 10px 10px; }
  .cat-card .t b { font-size: 13px; }
  .hero { padding: 28px 0 18px; }
  .hero p { font-size: 15px; }
}

/* La barre du haut des fenêtres reste au-dessus du compteur / des flèches de la galerie */
.modal-head { z-index: 6; }

/* Boutons du bas des fenêtres : passent à la ligne sur petit écran */
.modal-foot { flex-wrap: wrap; }
@media (max-width: 520px) {
  .modal-foot .btn { flex: 1 1 auto; }
  .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; }
}

/* ═════ Back-office sur téléphone : compteurs 2 par ligne, listes en cartes ═════ */
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat b { font-size: 24px; }
  .main-head h1 { font-size: 22px; }
  .main-head > div { width: 100%; }
  /* Listes principales (clients, articles, catégories, tableau de bord) : une carte par ligne */
  .main .panel.table-wrap > .tbl, .main .panel:not(.req-card) > .table-wrap > .tbl { min-width: 0; }
  .main .panel.table-wrap > .tbl thead, .main .panel:not(.req-card) > .table-wrap > .tbl thead { display: none; }
  .main .panel.table-wrap > .tbl tr, .main .panel:not(.req-card) > .table-wrap > .tbl tr {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--line); }
  .main .panel.table-wrap > .tbl td, .main .panel:not(.req-card) > .table-wrap > .tbl td { display: block; border: 0; padding: 0; grid-column: 1 / -1; }
  .main .panel.table-wrap > .tbl td:has(> .thumb, > .cat-ic), .main .panel:not(.req-card) > .table-wrap > .tbl td:has(> .thumb, > .cat-ic) { grid-column: 1; grid-row: span 2; }
  .main .panel.table-wrap > .tbl td:has(> .thumb, > .cat-ic) ~ td, .main .panel:not(.req-card) > .table-wrap > .tbl td:has(> .thumb, > .cat-ic) ~ td { grid-column: 2; }
  .main .tbl .acts { justify-content: flex-start !important; max-width: none !important; margin: 6px 0 0 !important; flex-wrap: wrap; }
  .main .tbl tr.off td:not(:last-child) { opacity: .55; }
  .filters { padding: 10px; }
  .filters .input, .filters select.input { flex: 1 1 100%; }
}

/* Bouton « ← Tableau agence » lisible dans la barre noire (texte foncé sur fond blanc) */
.agency-bar .btn { color: var(--ink); background: #fff; border-color: #fff; }
@media (max-width: 520px) { .agency-bar { font-size: 13px; padding: 10px 14px; } .agency-bar .btn { margin-left: 0; } }

/* ═════ Pro : scanner ═════ */
.scan-box { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; max-height: 60vh; margin: 0 auto 10px; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }

/* ═════ Pro : scan continu (v2.9) ═════ */
.scan-box { position: relative; }
.scan-flash { position: absolute; inset: 0; pointer-events: none; transition: background .3s; }
.scan-flash.ok { background: rgba(34, 197, 94, .35); }
.scan-flash.bad { background: rgba(239, 68, 68, .35); }
.scan-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line, #eee); }
.scan-line img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.scan-line .qty button { width: 32px; height: 32px; }

/* ═════ Sous-catégories (v3.0) ═════ */
.sub-chips { margin: -6px 0 14px; padding-inline-start: 10px; border-inline-start: 3px solid var(--accent); }
.sub-chips .chip { font-size: 13px; padding: 6px 12px; }
.sub-chips .chip small { opacity: .6; margin-inline-start: 4px; }
.cat-tree-sub td:nth-child(3) b::before { content: '↳ '; color: var(--muted, #999); }
.cat-tree-sub td:nth-child(3) { padding-inline-start: 26px; }
/* Assistant de démarrage */
.wiz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line, #e5e5e5); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.wiz-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.wiz-opt input { margin-top: 3px; accent-color: var(--accent); }
.wiz-opt b { display: block; }
.wiz-opt small { color: var(--muted, #777); }

/* ═════ Formules : fonctions du site (v3.1) ═════ */
.feat-list { display: grid; gap: 8px; margin-bottom: 8px; }
.feat-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; }
.feat-row.locked { opacity: .6; }
.feat-row b { display: block; }
.feat-row small { color: var(--muted, #777); font-size: 12px; }
.feat-ic { font-size: 22px; text-align: center; }
.feat-extra { margin: -2px 0 6px; padding: 12px; border: 1px dashed var(--line, #e5e5e5); border-radius: 12px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 10px; }
.plan-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line, #e5e5e5); border-radius: 14px; }
.plan-card.on { border-color: var(--accent); }
.plan-card small { color: var(--muted, #777); font-size: 12px; flex: 1; }

/* ═════ Minimum de commande (v3.2) ═════ */
.min-order { background: #fff4e5; color: #8a4b00; border: 1px solid #ffd59a; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .45; cursor: not-allowed; }

/* ═════ Variantes (v3.4) ═════ */
.var-box { display: grid; gap: 6px; margin: 10px 0; }
.var-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; }
.var-row .qty input { width: 56px; }
.sitem small.vars { display: block; color: var(--accent); }

/* ═════ Promotions (v3.5) ═════ */
.promo-row { display: grid; grid-template-columns: 1fr 110px 160px auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line, #eee); }
.promo-row:last-child { border-bottom: 0; }
.promo-in { display: flex; align-items: center; gap: 4px; }
.promo-in input { text-align: center; }
@media (max-width: 640px) { .promo-row { grid-template-columns: 1fr 90px; } .promo-row input[type=date], .promo-row select { grid-column: 1 / -1; } }

/* ═════════════════ v3.6 — Apparence, design mobile, galeries ═════════════════ */
body { font-family: var(--font-body, inherit); }
h1, h2, h3 { font-family: var(--font-head, inherit); }
html, body { background: var(--page-bg, var(--bg)); }
/* Thèmes */
body[data-theme="blanc"] { --bg: #ffffff; --line: #eeeef2; }
body[data-theme="teinte"] { --bg: color-mix(in srgb, var(--accent) 6%, #fbfaf8); --line: color-mix(in srgb, var(--accent) 14%, #ece8e1); }
body[data-theme="sombre"] { --bg: #14131c; --card: #1e1c29; --line: #2e2b3d; --ink: #f3f1fa; --ink-2: #c9c5da; --muted: #9a96ad; --accent-soft: color-mix(in srgb, var(--accent) 22%, #1e1c29); color: var(--ink); }
body[data-theme="sombre"] .topbar { background: rgba(20, 19, 28, .86); }
body[data-theme="sombre"] .search input, body[data-theme="sombre"] .input, body[data-theme="sombre"] .btn:not(.btn-primary):not(.btn-wa):not(.btn-fb):not(.btn-dark) { background: var(--card); border-color: var(--line); color: var(--ink); }
body[data-theme="sombre"] .pcard .img, body[data-theme="sombre"] .modal, body[data-theme="sombre"] .drawer { background: var(--card); color: var(--ink); }
body[data-theme="sombre"] .btn-dark { background: var(--accent); border-color: var(--accent); }
body[data-theme="sombre"] footer.site { background: #0c0b12; }
body[data-theme="blanc"] .topbar { background: rgba(255,255,255,.9); }
body[data-theme="teinte"] .topbar { background: color-mix(in srgb, var(--bg) 88%, transparent); }
/* Fond de page en image */
body.has-bgimg { background: transparent; }
body.has-bgimg::before { content: ''; position: fixed; inset: 0; z-index: -1; background: var(--bgimg) center / cover no-repeat; opacity: var(--bgop, .18); pointer-events: none; }

/* Couverture : image derrière le titre */
.hero.has-cover { margin-top: 18px; padding: 56px 36px 40px; border-radius: 26px; background-size: cover; background-position: center; color: #fff; box-shadow: var(--shadow-lg); }
.hero.has-cover.cover-tall { padding-top: 120px; padding-bottom: 56px; }
.hero.has-cover h1, .hero.has-cover h1 em { color: #fff; }
.hero.has-cover p { color: rgba(255,255,255,.9); }
.hero.has-cover .badge { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.hero.has-cover .btn:not(.btn-primary):not(.btn-wa):not(.btn-fb) { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }

/* Catégories : 4 styles (auto = cercles sur téléphone, cartes sur ordinateur) */
.cat-card .cat-vis img, .cat-card .cat-vis .cat-ph { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.cat-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent) 22%, white)); }
.cat-ph .ic.ext { width: 42%; height: auto; }
.cat-bub { display: none; }
.ic.ext { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; }
.chip .ic.ext { width: 18px; height: 18px; }
.cat-grid { --bub: 74px; }
.cat-grid.cat-circles { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
.cat-grid.cat-circles::-webkit-scrollbar { display: none; }
.cat-circles .cat-card { flex: 0 0 auto; width: calc(var(--bub) + 16px); background: none; border: 0; box-shadow: none !important; transform: none !important; scroll-snap-align: start; text-align: center; overflow: visible; }
.cat-circles .cat-vis { display: none; }
.cat-circles .cat-bub { display: grid; place-items: center; width: var(--bub); height: var(--bub); margin: 0 auto 6px; border-radius: 50%; background: var(--accent-soft); overflow: hidden; border: 2px solid transparent; transition: .15s; box-shadow: var(--shadow); }
.cat-circles .cat-bub img:not(.ic) { width: 100%; height: 100%; object-fit: cover; }
.cat-circles .cat-bub .ic { font-size: 32px; }
.cat-circles .cat-bub .ic.ext { width: 54%; height: 54%; }
.cat-circles .cat-card.on .cat-bub { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cat-circles .t { padding: 0; }
.cat-circles .t b { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-circles .t small { font-size: 11px; }
.cat-grid.cat-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cat-list .cat-card { display: flex; align-items: center; gap: 12px; padding: 10px; }
.cat-list .cat-vis { display: none; }
.cat-list .cat-bub { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); overflow: hidden; flex: none; }
.cat-list .cat-bub img:not(.ic) { width: 100%; height: 100%; object-fit: cover; }
.cat-list .cat-bub .ic { font-size: 26px; }
.cat-list .cat-bub .ic.ext { width: 60%; height: 60%; }
.cat-list .t { padding: 0; }
@media (max-width: 720px) {
  .cat-grid.cat-auto { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; }
  .cat-grid.cat-auto::-webkit-scrollbar { display: none; }
  .cat-auto .cat-card { flex: 0 0 auto; width: calc(var(--bub) + 16px); background: none; border: 0; box-shadow: none !important; transform: none !important; scroll-snap-align: start; text-align: center; overflow: visible; }
  .cat-auto .cat-vis { display: none; }
  .cat-auto .cat-bub { display: grid; place-items: center; width: var(--bub); height: var(--bub); margin: 0 auto 6px; border-radius: 50%; background: var(--accent-soft); overflow: hidden; border: 2px solid transparent; box-shadow: var(--shadow); }
  .cat-auto .cat-bub img:not(.ic) { width: 100%; height: 100%; object-fit: cover; }
  .cat-auto .cat-bub .ic { font-size: 32px; }
  .cat-auto .cat-bub .ic.ext { width: 54%; height: 54%; }
  .cat-auto .cat-card.on .cat-bub { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .cat-auto .t { padding: 0; }
  .cat-auto .t b { font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cat-auto .t small { font-size: 11px; }
}

/* Galeries */
.gal-block { margin-top: 8px; }
.gal-text { color: var(--ink-2); margin: -6px 0 14px; max-width: 700px; }
.gal { columns: 4 220px; column-gap: 12px; }
.gal-item { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; break-inside: avoid; background: var(--card); }
.gal-item img { width: 100%; transition: transform .35s; }
.gal-item:hover img { transform: scale(1.04); }
@media (max-width: 720px) {
  .gal { columns: auto; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .gal::-webkit-scrollbar { display: none; }
  .gal-item { flex: 0 0 72%; margin: 0; scroll-snap-align: center; aspect-ratio: 4/5; }
  .gal-item img { height: 100%; object-fit: cover; }
}
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 7, 14, .94); display: grid; place-items: center; animation: lbIn .2s; }
@keyframes lbIn { from { opacity: 0; } }
.lb img { max-width: 94vw; max-height: 84vh; border-radius: 10px; object-fit: contain; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lb .lb-x { top: 16px; right: 16px; font-size: 18px; }
.lb .lb-p { left: 12px; top: 50%; }
.lb .lb-n { right: 12px; top: 50%; }
.lb-c { position: absolute; bottom: 20px; color: #fff; font-size: 13px; opacity: .8; }

/* À propos */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-top: 28px; }
.about.no-img { grid-template-columns: 1fr; }
.about img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.about h2 { font-size: 24px; margin-bottom: 10px; }
.about p { color: var(--ink-2); white-space: pre-line; margin: 0; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; padding: 16px; gap: 14px; } }
.ft-extra { display: grid; gap: 10px; align-content: start; }
footer.site .ft-extra .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; justify-self: start; }

/* Couleurs des variantes */
.cdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-inline-end: 8px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.18); }
.cdot.clear { background: repeating-linear-gradient(45deg, #ddd 0 3px, #fff 3px 6px) !important; }

/* ── Téléphone : allure d'application ── */
.bnav { display: none; }
@media (max-width: 720px) {
  body.with-bnav { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.with-bnav .bnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(28,26,43,.08); }
  body.with-bnav .bnav.hidden { display: none; }
  .bnav > * { position: relative; display: grid; justify-items: center; gap: 2px; border: 0; background: none; color: var(--ink-2); font-size: 10.5px; font-weight: 700; text-decoration: none; padding: 4px 0; cursor: pointer; }
  .bnav > .hidden { display: none; }
  .bnav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .bnav svg.fill { fill: #25d366; stroke: none; }
  .bnav .bn-sel { color: var(--accent); }
  .bn-count { position: absolute; top: 0; left: calc(50% + 6px); background: var(--accent); color: #fff; font-style: normal; font-size: 10px; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
  .bn-count.hidden { display: none; }
  body.with-bnav .fab-wa, body.with-bnav .sel-btn { display: none !important; }
  body.with-bnav .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; width: 40px; height: 40px; }
  .topbar .container { gap: 10px; padding: 8px 0 10px; }
  .brand { font-size: 16px; }
  .brand img, .brand .logo-dot { width: 34px; height: 34px; border-radius: 10px; }
  .search input { padding-block: 9px; }
  .hero { padding: 22px 0 8px; }
  .hero h1 { font-size: 26px; }
  .hero.has-cover { padding: 34px 20px 24px; border-radius: 20px; margin-top: 12px; }
  .hero.has-cover.cover-tall { padding-top: 90px; }
  .hero .actions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -2px; padding: 2px; }
  .hero .actions::-webkit-scrollbar { display: none; }
  .hero .actions .btn { flex: none; padding: 9px 14px; font-size: 13px; }
  .section-title { margin: 22px 0 12px; }
  .section-title h2 { font-size: 19px; }
  .toolbar { position: sticky; top: var(--topbar-h, 108px); z-index: 30; background: var(--page-bg, var(--bg)); margin-inline: -16px; padding: 8px 16px; flex-wrap: nowrap; }
  body.has-bgimg .toolbar { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .toolbar .chip { flex: none; }
  .toolbar select { flex: none; max-width: 120px; font-size: 13px; padding-block: 8px; }
  .sub-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pcard { border-radius: 14px; }
  .pcard .body { padding: 10px 10px 12px; }
  .pcard h3 { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard .price b { font-size: 15px; }
  .pcard .add { width: 34px; height: 34px; }
  body[data-cols="1"] .grid { grid-template-columns: 1fr; }
  body[data-cols="1"] .pcard { flex-direction: row; }
  body[data-cols="1"] .pcard .img { width: 38%; flex: none; aspect-ratio: auto; min-height: 130px; }
}
.pcard { transition: transform .18s, box-shadow .18s; }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ═════ v3.6 back-office : Apparence, icônes, fiche article ═════ */
.look-p { padding: 20px; margin-bottom: 14px; max-width: 900px; }
.look-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.look-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; cursor: pointer; display: grid; gap: 2px; min-width: 120px; background: var(--card); }
.look-opt input { display: none; }
.look-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.look-opt small { color: var(--muted); font-size: 12px; }
.look-sw { display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px; margin-inline-end: 6px; border: 1px solid #0002; }
.sw-creme { background: #faf8f5; } .sw-blanc { background: #fff; } .sw-teinte { background: color-mix(in srgb, var(--accent) 25%, #fff); } .sw-sombre { background: #14131c; }
.sec-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sec-row > span:first-child { flex: 1; font-weight: 600; }
.gal-ed { border: 1px dashed var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.icon-btn { width: 100%; justify-content: flex-start; }
.icon-btn #icNow { font-size: 22px; display: inline-flex; }
.icon-btn .ic.ext, .cat-ic .ic.ext { width: 26px; height: 26px; }
.ip-back { z-index: 150; }
.ip-cur { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.ip-now { font-size: 26px; display: inline-flex; } .ip-now .ic.ext { width: 30px; height: 30px; }
.ip-cur .btn { margin-inline-start: auto; }
.ip-tabs, .ip-styles { margin-bottom: 10px; flex-wrap: wrap; }
.ip-q { margin-bottom: 10px; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; max-height: 46vh; overflow: auto; }
.ip-it { aspect-ratio: 1; border: 1px solid var(--line); background: var(--card); border-radius: 12px; cursor: pointer; display: grid; place-items: center; font-size: 26px; padding: 0; }
.ip-it:hover { border-color: var(--accent); background: var(--accent-soft); }
.ip-it .ic.ext { width: 30px; height: 30px; }
.var-prev { margin: -4px 0 12px; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.var-chips .chip { font-size: 12px; padding: 4px 10px; cursor: default; }
.acts-lbl { flex-wrap: wrap; }
.acts-lbl .btn { font-size: 12.5px; }
@media (max-width: 680px) { .acts-lbl { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; } }

body[data-theme="sombre"] .chip { background: var(--card); border-color: var(--line); color: var(--ink); }
body[data-theme="sombre"] .chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
body[data-theme="sombre"] .pcard .add:not(.on) { background: var(--card); color: var(--ink); }
body[data-theme="sombre"] .to-top { background: var(--accent); }
body[data-theme="sombre"] .tiers th, body[data-theme="sombre"] .tiers td { border-color: var(--line); }

/* ═════ v3.7 Ventes ═════ */
.mchart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; }
.mcol { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.mcol i { align-self: end; display: block; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white)); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.mcol span { font-size: 10.5px; color: var(--muted); }

/* ═════ v3.8 Tableau de bord, prix d'achat, objectif ═════ */
.pos { color: var(--ok); } .neg { color: var(--danger); }
.dash-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; padding: 20px; margin-bottom: 8px; background: linear-gradient(135deg, var(--card), var(--accent-soft)); }
.dh-main small, .dh-side small { color: var(--muted); font-weight: 600; font-size: 13px; display: block; }
.dh-main > b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.dh-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.dh-side b { font-size: 19px; display: block; }
.dh-side .btn { grid-column: 1 / -1; justify-self: start; }
.goal { margin-top: 12px; display: grid; gap: 5px; max-width: 460px; }
.goal-t { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.goal-b { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.goal-b i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffb300)); border-radius: 99px; }
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.todo-it { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; cursor: pointer; text-align: start; }
.todo-it:hover { border-color: var(--accent); }
.todo-it .ti { font-size: 22px; } .todo-it b { font-size: 20px; } .todo-it span:not(.ti):not(.go) { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.todo-it .go { color: var(--accent); font-weight: 800; }
.todo-ok { padding: 16px; font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.qk { display: grid; justify-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line); background: var(--card); border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 13px; }
.qk span { font-size: 26px; } .qk:hover { border-color: var(--accent); background: var(--accent-soft); }
.teaser-mini { padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 8px; }
.cost-box { margin: 14px 0 4px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--ok) 45%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--ok) 5%, var(--card)); }
.margin { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mchip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, currentColor 10%, transparent); }
.cost-list { display: grid; gap: 6px; max-height: 55vh; overflow: auto; }
.cost-row { display: grid; grid-template-columns: 1fr 120px 130px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cost-row small { display: block; } .cost-m { font-size: 12px; font-weight: 700; }
.rem-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rem-row > div { flex: 1; } .rem-row small { display: block; }
@media (max-width: 680px) {
  .dash-hero { grid-template-columns: 1fr; padding: 16px; } .dh-main > b { font-size: 30px; }
  .todo { grid-template-columns: 1fr; } .quick { grid-template-columns: repeat(3, 1fr); } .qk { padding: 12px 6px; font-size: 12px; }
  .cost-row { grid-template-columns: 1fr 100px; } .cost-m { grid-column: 1 / -1; }
}

/* ═════ v3.9 Comptabilité agence ═════ */
.launch-box { border: 1px dashed var(--line); border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--accent) 3%, var(--card)); }
.stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; gap: 1px; }
.mcol .stack i { display: block; border-radius: 3px; min-height: 2px; }
.st-setup, .lg-setup { background: #7b3fbf; } .st-sub, .lg-sub { background: var(--accent); } .st-extra, .lg-extra { background: #f5a524; }
.legend { float: right; text-transform: none; font-weight: 500; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }

.bill-bar { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.bill-bar a { margin-inline-start: auto; font-weight: 700; }
.unpaid p { line-height: 1.7; }
.unpaid p[dir=rtl] { font-family: 'Noto Kufi Arabic', system-ui, sans-serif; border-top: 1px solid var(--line); padding-top: 12px; }
.mcol .stack i { align-self: stretch; }
.mcol .stack i.st-setup { background: #7b3fbf; } .mcol .stack i.st-sub { background: var(--accent); } .mcol .stack i.st-extra { background: #f5a524; }

/* ═════ v4.0 Tableau de bord simplifié, confidentialité ═════ */
.dsec { margin-bottom: 22px; }
.dsec > h2 { font-size: 17px; margin: 0 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.kpi small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi .goal { margin-top: 0; }
.more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.stats-fold { padding: 0; }
.stats-fold summary { padding: 14px 16px; cursor: pointer; font-weight: 700; }
.lock-note { padding: 14px 16px; margin-bottom: 16px; border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 7%, var(--card)); }
.agency-bar.danger { background: #fdecec; color: #8a1f1f; }
@media (max-width: 680px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 20px; } }

.todo-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.todo-row .tr-main { flex: 1; display: grid; gap: 3px; }
.todo-row .acts { flex-wrap: wrap; justify-content: flex-end; }
.todo-row .pick { width: 18px; height: 18px; accent-color: var(--accent); }
@media (max-width: 680px) { .todo-row { flex-wrap: wrap; } .todo-row .acts { width: 100%; justify-content: flex-start; } }

/* Journal d'une commande (v4.7) */
.olog { font-size: 13px; margin-top: 4px; }
.olog summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.olog ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.olog code { font-size: 11px; }

/* Stock par taille / couleur (v5.0) */
.var-row.var-out { opacity: .55; }
.var-row.var-out span:first-child { text-decoration: line-through; }
.vs-grid td, .vs-grid th { text-align: center; padding: 6px; }
.vs-grid td:first-child { text-align: start; white-space: nowrap; }
.vs-in { width: 70px; text-align: center; padding: 6px; }
.vs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.vs-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.vs-row-tot { font-weight: 700; }

/* ═══ Fashion / Friperie (v5.1) ═══ */
body[data-product="fashion"] .pcard .img, body[data-product="friperie"] .pcard .img { aspect-ratio: 3 / 4; }
body[data-product="fashion"] .pcard .img img, body[data-product="friperie"] .pcard .img img { object-fit: cover; width: 100%; height: 100%; }
.badge-size { background: #0f7b52; color: #fff; }
.badge-size.near { background: #2f6fd6; }
.badge-uniq { background: #6b3fd1; color: #fff; }
.fx-sizes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; font-size: 11px; align-items: center; }
.fx-sizes span { border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.fx-sizes span.out { opacity: .4; text-decoration: line-through; }
.fx-sizes em { font-style: normal; color: var(--ink-2); margin-inline-start: 4px; }
.size-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 14px; padding: 10px 14px; margin: 0 0 12px; }
.size-bar .sb-main span { color: var(--ink-2); }
.size-bar .sb-count { flex: 1; color: var(--ink-2); }
.size-bar .sb-acts { display: flex; gap: 6px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fx-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 12px; font-weight: 600; cursor: pointer; min-width: 44px; display: inline-flex; align-items: center; gap: 6px; }
.fx-chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.fx-chip.out, .fx-chip:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.fx-pick .fx-row { margin: 10px 0; }
.fx-pick .qty { margin-top: 10px; width: max-content; }
.fx-info { display: grid; gap: 4px; margin: 10px 0; font-size: 14px; }
.fx-info div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.fx-info span { color: var(--ink-2); }
.fx-guide { margin: 8px 0; font-size: 14px; } .fx-guide summary { cursor: pointer; font-weight: 600; } .fx-guide div { white-space: pre-line; margin-top: 6px; }
.fx-ship { font-size: 13px; color: var(--ink-2); margin: 6px 0; }
.size-sheet .ss-row { margin-bottom: 14px; }
.cod-lines > div { display: flex; justify-content: space-between; margin: 4px 0; }
.cod-lines .ok { color: #0f7b52; }
.cod-form { display: grid; gap: 8px; margin: 12px 0; }
.cod-form .bad, .input.bad { border-color: var(--danger); }
.order-done { text-align: center; padding: 30px 20px; } .order-done .ic { font-size: 54px; }

/* Packs de commandes (v5.2) */
.meter { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.bill-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }

/* Prévenez-moi par taille (v5.3) */
.fx-chip.out { cursor: pointer; }
.fx-chip.out::after { content: '🔔'; font-size: 10px; margin-inline-start: 2px; text-decoration: none; }

/* Landing produit (v5.4) : la fiche devient la page */
body.lp-mode main#main > section, body.lp-mode .bnav, body.lp-mode #sizeBar { display: none !important; }
body.lp-mode .modal-back.lp { position: static; background: none; padding: 0; display: block; animation: none; }
body.lp-mode .modal-back.lp .modal { max-width: 760px; margin: 12px auto 90px; box-shadow: none; max-height: none; }
body.lp-mode .modal-back.lp #addSel { position: sticky; bottom: 12px; width: 100%; font-size: 17px; padding: 14px; z-index: 5; }
.cod-form .ok, .cod-lines .ok { color: #0f7b52; }

/* Landing : mini-vitrine (v5.5) */
body.lp-home [data-sec="cats"], body.lp-home .toolbar, body.lp-home #subChips { display: none !important; }
body.lp-home #grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
body.lp-home .pcard .add { display: none; }

/* Blocs de la page de vente (v5.5) */
.lp-blocks { display: grid; gap: 22px; padding: 6px 22px 26px; }
.lpb h3 { margin: 0 0 8px; font-size: 20px; }
.lpb-text p { white-space: pre-line; margin: 0; line-height: 1.6; }
.lpb-image img { width: 100%; border-radius: 14px; display: block; }
.lpb-car { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.lpb-car img { flex: 0 0 78%; max-width: 420px; border-radius: 14px; scroll-snap-align: start; object-fit: cover; aspect-ratio: 3 / 4; }
.lpb-benefits ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lpb-benefits li { background: color-mix(in srgb, var(--accent) 8%, #fff); border-radius: 10px; padding: 10px 12px; font-weight: 600; }
.lpb-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; } .lpb-faq summary { cursor: pointer; font-weight: 600; } .lpb-faq p { margin: 8px 0 0; color: var(--ink-2); }
.lpb-revs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.lpb-rev { border: 1px solid var(--line); border-radius: 12px; padding: 12px; } .lpb-rev .stars { color: #f5a623; margin-inline-start: 8px; } .lpb-rev p { margin: 6px 0 0; }
.lpb-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .lpb-ba img { width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover; } .lpb-ba figcaption { text-align: center; font-weight: 600; }
.lpb-cta { text-align: center; } .lpb-cta .btn { min-width: 260px; font-size: 17px; padding: 14px 22px; }
.blk { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.blk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }

/* Tableau de bord landing (v5.5) */
.fun-row { display: grid; grid-template-columns: 150px 1fr 60px 50px; align-items: center; gap: 10px; margin: 6px 0; }
.fun-bar { background: var(--line); border-radius: 99px; height: 14px; overflow: hidden; }
.fun-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
@media (max-width: 600px) { .fun-row { grid-template-columns: 110px 1fr 44px 40px; font-size: 13px; } }
/* Landing : pas de recherche dans l'en-tête (1 à 15 produits) */
body[data-product="landing"] .topbar .search { display: none; }

/* Couleurs personnalisées du pied de page (v5.6) */
footer.site.ft-custom b, footer.site.ft-custom a { color: var(--ft-ink); }
.pal-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pal { border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; background: #fff; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.pal i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.1); }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.col-it { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.col-it input[type=color] { width: 42px; height: 32px; padding: 0; border: 0; background: none; }
.col-it span { flex: 1; font-size: 13px; }

/* Ma taille (v5.7) : articles de ma taille mis en avant, les autres éteints mais cliquables */
.pcard.fx-fit { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.pcard.fx-dim { opacity: .45; filter: grayscale(.7); transition: opacity .2s, filter .2s; }
.pcard.fx-dim:hover, .pcard.fx-dim:focus-within { opacity: .85; filter: none; }

/* ═════════ Design v5.8 : plus moderne et professionnel ═════════ */
.sec { margin-top: 8px; }
.section-title { margin: 44px 0 18px; align-items: center; }
.section-title h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.hero.has-cover { border-radius: 28px; }
.hero h1 { letter-spacing: -.025em; line-height: 1.08; }
@media (max-width: 720px) {
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; gap: 8px; }
  .hero .actions .btn { width: 100%; padding: 11px 10px; font-size: 13.5px; }
  .hero .actions .btn:first-child { grid-column: 1 / -1; padding: 13px; font-size: 15px; }
  .hero .actions .btn.hidden { display: none; }
  .section-title { margin: 30px 0 14px; }
}
/* cartes articles */
.pcard { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(20,18,40,.05), 0 6px 18px rgba(20,18,40,.06); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20,18,40,.06), 0 16px 34px rgba(20,18,40,.12); }
.pcard .img { overflow: hidden; }
.pcard .img img { transition: transform .45s ease; }
.pcard:hover .img img { transform: scale(1.05); }
.pcard h3 { font-size: 15px; line-height: 1.3; }
.pcard .price b { font-size: 17px; letter-spacing: -.01em; }
.pcard .add { width: 38px; height: 38px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); transition: .15s; }
.pcard .add:hover { transform: scale(1.08); }
/* en-tête : lien « À propos » */
.hdr-link { white-space: nowrap; }
@media (max-width: 720px) { .hdr-link { padding: 7px 10px; font-size: 12px; } }
/* galeries : 4 mises en page */
.gal-zone { margin-top: 8px; }
.gal-wrap { position: relative; }
.gal-grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gal-grid .gal-item { margin: 0; aspect-ratio: 1; }
.gal-grid .gal-item img { height: 100%; object-fit: cover; }
.gal-carousel, .gal-banner { columns: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gal-carousel::-webkit-scrollbar, .gal-banner::-webkit-scrollbar { display: none; }
.gal-carousel .gal-item { flex: 0 0 clamp(220px, 28%, 340px); margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; }
.gal-carousel .gal-item img, .gal-banner .gal-item img { height: 100%; object-fit: cover; }
.gal-banner { gap: 0; border-radius: 24px; }
.gal-banner .gal-item { flex: 0 0 100%; margin: 0; border-radius: 0; aspect-ratio: 16 / 7; scroll-snap-align: start; cursor: pointer; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); font-size: 24px; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.gal-arrow.prev { inset-inline-start: 10px; } .gal-arrow.next { inset-inline-end: 10px; }
.gal-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; }
.gal-dots i.on { width: 22px; background: #fff; }
@media (max-width: 720px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); display: grid; overflow: visible; }
  .gal-grid .gal-item { flex: none; }
  .gal-carousel .gal-item { flex: 0 0 72%; }
  .gal-banner { border-radius: 18px; }
  .gal-banner .gal-item { flex: 0 0 100%; aspect-ratio: 4 / 3; }
  .gal-arrow { width: 36px; height: 36px; font-size: 20px; }
  .gal-carousel + .gal-arrow, .gal-carousel ~ .gal-arrow { display: none; }
}
/* À propos */
.about { border: 0; box-shadow: 0 1px 2px rgba(20,18,40,.05), 0 10px 30px rgba(20,18,40,.07); padding: 28px; }
.about h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.about p { font-size: 16px; line-height: 1.7; }
.page-ov { position: fixed; inset: 0; z-index: 190; background: rgba(10,8,20,.55); backdrop-filter: blur(4px); overflow-y: auto; padding: 24px 16px; animation: lbIn .2s; }
.page-ov-in { position: relative; max-width: 820px; margin: 0 auto; background: var(--card); color: var(--ink); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.page-ov-in img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.page-ov-txt { padding: 28px 30px 34px; }
.page-ov-txt h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin-bottom: 12px; }
.page-ov-txt p { white-space: pre-line; line-height: 1.75; color: var(--ink-2); font-size: 16px; margin: 0; }
.page-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); cursor: pointer; font-size: 16px; z-index: 2; }
/* pied de page en colonnes */
footer.site { padding: 48px 0 26px; margin-top: 70px; }
footer.site .container { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
footer.site .ft-col { display: grid; gap: 8px; align-content: start; }
footer.site .ft-col h4 { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; font-weight: 700; }
footer.site .ft-brand b { font-size: 20px; }
footer.site .ft-tag { opacity: .8; }
footer.site a { text-decoration: none; opacity: .92; } footer.site a:hover { opacity: 1; text-decoration: underline; }
footer.site .ft-social { display: flex; gap: 8px; flex-wrap: wrap; }
footer.site .ft-social a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; text-decoration: none; }
footer.site .ft-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; justify-self: start; margin-top: 6px; font: inherit; opacity: .9; }
footer.site .copy { grid-column: 1 / -1; }
footer.site.ft-custom .ft-social a { border-color: color-mix(in srgb, var(--ft-ink) 35%, transparent); }
@media (max-width: 720px) { footer.site .container { grid-template-columns: 1fr 1fr; gap: 22px; } footer.site .ft-brand { grid-column: 1 / -1; } }

.hdr-link .hl-ic { display: none; }
@media (max-width: 720px) { .hdr-link { padding: 7px 9px; } .hdr-link .hl-tx { display: none; } .hdr-link .hl-ic { display: inline; } }

/* v5.9 : landing mobile stable (plus de débordement latéral, bouton Commander collant) */
.lp-blocks { grid-template-columns: minmax(0, 1fr); }
.lp-blocks > *, .modal .pd > *, .modal-body > * { min-width: 0; }
.lpb, .lpb p, .lpb li, .lpb summary { overflow-wrap: anywhere; }
.lpb-car { overscroll-behavior-x: contain; }
.lpb-car img { flex: 0 0 82%; max-width: 420px; width: 82%; }
body.lp-mode { overflow-x: hidden; }
body.lp-mode .modal-back.lp .modal { overflow: visible; overflow-x: clip; }
html, body { overscroll-behavior-x: none; }
@media (max-width: 600px) {
  body.lp-mode .modal-back.lp .modal { margin: 0 auto 90px; border-radius: 0; }
  .lp-blocks { padding: 6px 16px 22px; gap: 18px; }
  .lpb-cta .btn { min-width: 0; width: 100%; }
}
body.lp-mode .modal-back.lp #addSel { position: static; }
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card, #fff) 92%, transparent); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
.lp-sticky.on { transform: none; }
.lp-sticky .btn { width: 100%; max-width: 560px; margin: 0 auto; display: block; font-size: 17px; padding: 14px; }
body:not(.lp-mode) .lp-sticky { display: none; }
body.lp-mode .fab-wa { bottom: 86px; }
body.lp-mode .to-top { display: none; }
body.lp-mode.with-bnav { padding-bottom: 0; }
body.lp-mode .modal-back.lp .modal { margin-bottom: 0; }
body.lp-mode footer.site { margin-top: 0; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.lpb h3, .lpb p, .lpb li, .lpb summary, .lpb figcaption, .lpb-rev b { unicode-bidi: plaintext; text-align: start; }

/* v6.0 : choix du design (Apparence) */
.dz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.dz-card { border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 10px 12px; cursor: pointer; display: grid; gap: 4px; background: var(--card); transition: transform .15s, box-shadow .2s, border-color .2s; }
.dz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dz-card input { display: none; }
.dz-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dz-card.locked { opacity: .6; cursor: not-allowed; }
.dz-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.dz-prev { height: 96px; border-radius: 12px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; padding: 7px; margin-bottom: 4px; }
.dz-prev i { border-radius: 8px; }
.dz-prev i:first-child { grid-row: span 2; }
.dz-classique .dz-prev { background: #faf8f5; } .dz-classique .dz-prev i { background: #e8e2d8; } .dz-classique .dz-prev i:first-child { background: #e2386f; }
.dz-soie .dz-prev { background: #F1ECF4; } .dz-soie .dz-prev i { background: #DED2E8; border-radius: 50%; } .dz-soie .dz-prev i:first-child { background: linear-gradient(160deg,#E8456B,#8E5BD6); border-radius: 18px; }
.dz-bazar .dz-prev { background: #fff; border: 2px solid #10162F; } .dz-bazar .dz-prev i { background: #B8F0D8; border: 2px solid #10162F; } .dz-bazar .dz-prev i:first-child { background: #FFE45C; } .dz-bazar .dz-prev i:last-child { background: #2340F5; }
.dz-atelier .dz-prev { background: #1D2620; } .dz-atelier .dz-prev i { background: #33433a; border-radius: 2px; } .dz-atelier .dz-prev i:first-child { background: linear-gradient(180deg,#C8A24B,#6b5a2c); }

/* v6.0 : page Statistiques */
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.sx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .sx-kpis { grid-template-columns: repeat(2, 1fr); } }
.sx-k { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 4px; }
.sx-k.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.sx-k small { color: var(--muted); font-weight: 600; } .sx-k.dark small { color: #b9b6cc; }
.sx-k b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sx-k span { font-size: 12px; font-weight: 600; color: var(--ok); }
.sx-p { padding: 18px; margin-bottom: 14px; border-radius: 20px; }
.sx-p h2 { font-size: 16px; margin: 0 0 12px; }
.sx-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } .sx-2 .sx-p { margin-bottom: 0; }
@media (max-width: 900px) { .sx-2 { grid-template-columns: 1fr; } }
.sx-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.sx-row:first-of-type { border-top: 0; }
.sx-l { min-width: 0; display: grid; } .sx-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; } .sx-l small { color: var(--muted); font-size: 12px; }
.sx-bar { height: 10px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; } .sx-bar.big { height: 16px; }
.sx-bar i, .sx-split i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.sx-bar i.go, .sx-split i.go { width: var(--w); }
.sx-funnel { display: grid; gap: 10px; } .sx-f { display: grid; grid-template-columns: 190px 1fr 60px; gap: 12px; align-items: center; } .sx-f b { text-align: end; }
@media (max-width: 600px) { .sx-f { grid-template-columns: 1fr 50px; } .sx-f .sx-bar { grid-column: 1 / -1; grid-row: 2; } }
.sx-note { font-size: 12.5px; margin: 12px 0 0; }
.sx-dev { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; }
.sx-split { height: 12px; border-radius: 999px; background: #d9d5e6; overflow: hidden; }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; } .sx-chip { background: var(--accent-soft); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.sx-chips.warn .sx-chip { background: #fff1e0; }
@media (prefers-reduced-motion: reduce) { .sx-bar i, .sx-split i { transition: none; } }

/* v6.0 : quota Firebase (super-admin) */
.q-alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; background: #e8f7ef; color: #14532d; }
.q-alert.warn { background: #fff4e0; color: #7a4a05; } .q-alert.red { background: #fde8e8; color: #7f1d1d; }
.q-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 760px) { .q-2 { grid-template-columns: 1fr; } }
.q-g { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.q-gt { display: flex; justify-content: space-between; gap: 8px; } .q-g small { color: var(--muted); }
.q-bar { height: 14px; border-radius: 999px; background: #e9e7f2; overflow: hidden; } .q-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.q-g.warn .q-bar i { background: var(--warn); } .q-g.red .q-bar i { background: var(--danger); }
.q-chart { display: flex; align-items: end; gap: 3px; height: 120px; } .q-chart i { flex: 1; background: #c9c3f0; border-radius: 4px 4px 1px 1px; min-width: 3px; }
.q-chart i.warn { background: var(--warn); } .q-chart i.red { background: var(--danger); }

/* v6.0 : admin sur téléphone — barre d'onglets en bas + « Plus » + glisser pour confirmer */
.mtab { display: none; }
@media (max-width: 860px) {
  .admin .side { display: none; }
  .main { padding-bottom: 120px; }
  .mtab { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 90;
    padding: 7px; border-radius: 24px; background: rgba(28,26,43,.94); backdrop-filter: blur(14px); box-shadow: 0 12px 34px rgba(28,26,43,.35); }
  .mtab button { border: 0; background: none; color: #a9a5c0; font-size: 11px; font-weight: 600; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 16px; cursor: pointer; transition: transform .15s, background .2s; }
  .mtab button span { font-size: 19px; line-height: 1.2; }
  .mtab button.on { color: #fff; background: rgba(255,255,255,.1); }
  .mtab button:active { transform: scale(.92); }
  .mtab .mtab-plus { width: 56px; height: 56px; justify-self: center; margin-top: -26px; border-radius: 20px; background: var(--accent); color: #fff; font-size: 30px; font-weight: 400; place-items: center; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 50%, transparent); }
  .mtab .mtab-plus:active { transform: scale(.9) rotate(90deg); }
}
.mmore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mmore button { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 6px; display: grid; gap: 4px; justify-items: center; font-size: 12px; font-weight: 600; cursor: pointer; text-align: center; }
.mmore button span { font-size: 22px; } .mmore button.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.req-card.sw { position: relative; overflow: hidden; touch-action: pan-y; }
.req-card.sw > :not(.sw-act) { transition: transform .28s cubic-bezier(.2,.8,.2,1); background: var(--card); position: relative; z-index: 1; }
.req-card.sw.open > :not(.sw-act) { transform: translateX(130px); }
.req-card.sw.drag > :not(.sw-act) { transform: translateX(var(--sx, 0)); transition: none; }
.sw-act { position: absolute; inset: 0 auto 0 0; width: 130px; border: 0; background: var(--ok); color: #fff; font-weight: 700; font-size: 14px; z-index: 0; cursor: pointer; opacity: 0; transition: opacity .2s; }
.req-card.sw.open .sw-act, .req-card.sw.drag .sw-act { opacity: 1; }
