:root {
  --brand: #b74929;
  --brand-dark: #8f3519;
  --ink: #241a14;
  --muted: #6d5f55;
  --line: #e8ddd2;
  --paper: #fffaf4;
  --card: #ffffff;
  --green: #1f7a4d;
  --whatsapp: #128c4a;
  --danger: #b3261e;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.test-banner { background: #241a14; color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }
body { margin: 0; background: var(--paper); line-height: 1.5; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; font-weight: 700; color: var(--brand); margin: 0 0 .5em; }
.eyebrow a { color: inherit; }

/* En-tête */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.logo-icon { width: 40px; height: 40px; display: block; }
.logo-text { letter-spacing: .02em; }
.logo-text span { color: var(--brand); font-weight: 600; }
.install { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.install-steps { flex-basis: 100%; margin: 4px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: .95rem; }
.install p { margin: 0; flex: 1; }
.offline img { margin: 0 auto 12px; display: block; }
.site-header nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.inline { display: inline; margin: 0; }
.site-footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--line); background: #fff; font-size: .92rem; }
/* Panier de l'en-tête : icône et nombre d'articles */
.header-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cart-link { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #f6efe8; color: var(--ink);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .15s ease; }
.cart-link:hover { background: #f0e2d5; }
.cart-link svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: -3px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; border: 2px solid #fff;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; line-height: 17px; text-align: center; }
.cart-link.bump { animation: cart-bump .5s ease; }
@keyframes cart-bump { 25% { transform: scale(1.2); } 55% { transform: scale(.92); } 80% { transform: scale(1.05); } }
@media (max-width: 400px) { .hide-xs { display: none; } }
@media (max-width: 520px) {
  .header-actions { gap: 8px; }
  .site-header nav { gap: 10px; flex-wrap: nowrap; }
  .site-header nav a, .link { font-size: .85rem; white-space: nowrap; }
  .site-header nav .btn-small { padding: 6px 10px; }
  .logo-text { display: none; }
  .site-footer { padding-bottom: 96px; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border: 2px solid var(--brand); border-radius: 999px;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-wide { width: 100%; }
.btn-outline { background: transparent; color: var(--brand-dark); }
.btn-outline:hover { background: #fbeee6; color: var(--brand-dark); }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
.danger { color: var(--danger); }
:focus-visible { outline: 3px solid #f0a35e; outline-offset: 2px; }

/* Formulaires */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; width: 100%; padding: 11px 12px; border: 1px solid #cdbfb2; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px; }
textarea { resize: vertical; }
.check, .radio { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.check input, .radio input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; margin: 0; }
legend { font-weight: 700; padding: 0 4px; }
.grid-form { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-form { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.compact { gap: 8px; margin-top: 8px; }

/* Cartes et alertes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.narrow { max-width: 480px; margin-inline: auto; margin-top: 32px; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 14px 0; }
.alert.success { background: #e7f4ec; color: #14532d; }
.alert.error { background: #fde8e6; color: #7f1d1d; }
.alert.warning { background: #fff4d6; color: #713f12; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eee6de; color: var(--muted); }
.badge-published { background: #e7f4ec; color: var(--green); }
.badge-pending { background: #fff4d6; color: #8a5a00; }
.badge-suspended { background: #fde8e6; color: var(--danger); }
.empty { background: #fff; border: 1px dashed #d8c8b8; border-radius: var(--radius); padding: 24px; text-align: center; }

/* Accueil */
.hero { padding: 36px 0 12px; }
.hero-text { font-size: 1.08rem; color: var(--muted); max-width: 680px; }
.search { display: grid; gap: 10px; margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
@media (min-width: 760px) { .search { grid-template-columns: 2fr 1fr 1fr auto; } }
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 22px 0; }
.category { position: relative; display: grid; align-content: start; gap: 2px; padding: 12px 26px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); line-height: 1.3; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.category::after { content: "›"; position: absolute; right: 10px; top: 50%; translate: 0 -50%; font-size: 1.5rem; line-height: 1; color: var(--tint-fg, var(--muted)); opacity: .6; }
.category small { color: var(--muted); font-size: .8rem; }
.category:hover { border-color: var(--tint-fg, var(--brand)); box-shadow: 0 4px 14px rgb(0 0 0 / .06); }
.category:active { transform: scale(.96); background: var(--tint-bg, #fff); }
.category.active { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cat-icon { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-bg, #f3ece4); color: var(--tint-fg, var(--muted)); }
.cat-icon svg { width: 24px; height: 24px; }

/* Page d'une catégorie */
.back-bar { display: flex; align-items: center; gap: 12px; margin-top: 16px; min-width: 0; }
.back-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 16px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.back-btn span { font-size: 1.5rem; line-height: 1; margin-top: -3px; color: var(--brand); }
.back-btn:hover { border-color: var(--brand); }
.back-btn:active { transform: scale(.94); }
.crumbs { margin: 0; min-width: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); }
.cat-hero { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 20px; border-radius: var(--radius); background: var(--tint-bg, #fff); }
.cat-hero h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 6vw, 2.4rem); }
.cat-hero p { margin: 0; }
.cat-hero-icon { flex: none; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #fff; color: var(--tint-fg); box-shadow: 0 6px 18px rgb(0 0 0 / .08); }
.cat-hero-icon svg { width: 44px; height: 44px; }
.cat-hint { color: var(--muted); }
.cat-count { margin-top: 6px !important; font-weight: 700; color: var(--tint-fg); }
.cat-filter { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.cat-filter label { font-weight: 700; }
.cat-filter select { flex: 1; max-width: 320px; }
.cat-others { margin-top: 32px; }
.cat-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cat-chip { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform .12s ease; }
.cat-chip .cat-icon { width: 32px; height: 32px; margin: 0; border-radius: 50%; }
.cat-chip .cat-icon svg { width: 18px; height: 18px; }
.cat-chip:hover { border-color: var(--tint-fg); }
.cat-chip:active { transform: scale(.95); }
@media (max-width: 520px) { .cat-hero { padding: 16px; gap: 14px; } .cat-hero-icon { width: 64px; height: 64px; border-radius: 18px; } .cat-hero-icon svg { width: 36px; height: 36px; } }
.shop-card { -webkit-tap-highlight-color: transparent; transition: transform .12s ease, border-color .12s ease; }
.shop-card:active { transform: scale(.98); }
.cat-shops { margin-top: 32px; }

/* Articles d'une catégorie : grille de fiches (2 colonnes sur téléphone), comme les grands sites de vente */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.pcard { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease; }
@media (hover: hover) { .pcard:hover { box-shadow: 0 10px 28px rgb(36 26 20 / .1); transform: translateY(-2px); } .pcard:hover .pcard-photo img { transform: scale(1.04); } }
.pcard-photo { display: block; aspect-ratio: 1; overflow: hidden; background: #f3ece4; }
.pcard-photo img, .pcard-photo .photo-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard-photo img { display: block; }
.pcard-body { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 10px 12px 12px; }
.pcard-name { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { text-decoration: underline; }
.pcard-price { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.pcard-price small { display: block; font-size: .75rem; font-weight: 500; line-height: 1.2; color: var(--muted); }
.pcard-shop { display: block; font-size: .78rem; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-shop strong { color: var(--brand-dark); font-weight: 700; }
.pcard-choices { margin: 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-choices { margin-bottom: 4px; }
/* Bouton toujours en bas de la fiche, aligné d'une fiche à l'autre */
.pcard-cart, .pcard-choose { margin-top: auto; }
.pcard-cart.qty { justify-content: space-between; min-height: 44px; padding-top: 8px; box-sizing: content-box; }
.pcard-cart .add, .pcard-choose { width: 100%; white-space: nowrap; }
.pcard-choose { min-height: 44px; }
.pcard-cart .add { min-height: 42px; padding: 0 10px; font-size: .95rem; }
.pcard-shop { margin-bottom: 4px; }
.pcard-cart span { font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard-photo img { transition: none; } .cart-link.bump { animation: none; } }

/* Message « Ajouté au panier » */
.toast { position: fixed; left: 50%; bottom: 18px; z-index: 30; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 24px);
  padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgb(0 0 0 / .28);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { padding: 8px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Page « Mon panier » */
.cart-page h1 { margin: 18px 0 12px; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); }
.cart-summary p { margin: 0; }
.cart-summary-count { font-weight: 800; font-size: 1.05rem; }
.cart-summary-total { display: grid; text-align: right; }
.cart-summary-total strong { font-size: 1.4rem; line-height: 1.2; }
@media (max-width: 520px) {
  .cart-summary-total { flex-basis: 100%; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
}
.cart-shop { margin-top: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-shop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: #fbf6f0; border-bottom: 1px solid var(--line); }
.cart-shop-head a { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 800; color: var(--ink); text-decoration: none; }
.cart-shop-head a::after { content: "›"; color: var(--brand); }
/* Logo du vendeur (photo de sa boutique), sinon son initiale */
.cart-shop-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 8px rgb(36 26 20 / .15);
  background: var(--tint-bg, #f3ece4); color: var(--tint-fg, var(--muted)); display: grid; place-items: center; font-size: 1.05rem; }
.cart-shop-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-lines { list-style: none; margin: 0; padding: 0 16px; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty total"; gap: 6px 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line.gone { opacity: .6; grid-template-areas: "thumb info remove"; }
.cart-thumb { grid-area: thumb; align-self: start; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #f3ece4; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-initial { width: 100%; height: 100%; display: grid; place-items: center; background: var(--tint-bg, #f3ece4); color: var(--tint-fg, var(--muted)); font-weight: 800; font-size: 1.5rem; }
.cart-line-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.cart-line-name { font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cart-line .qty { grid-area: qty; gap: 6px; }
.cart-line .qty button { min-width: 38px; min-height: 38px; }
.cart-line .qty span { min-width: 22px; text-align: center; font-weight: 800; }
.cart-line-total { grid-area: total; text-align: right; white-space: nowrap; }
.cart-line .line-remove { grid-area: remove; justify-self: end; align-self: start; }
.cart-shop-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.cart-shop-foot p { margin: 0; }
@media (max-width: 520px) { .cart-shop-foot .btn { width: 100%; } }
.cart-empty { padding: 40px 20px; }
.cart-empty svg { width: 64px; height: 64px; color: var(--brand); }
.cart-legal { margin-top: 18px; }
.tag { justify-self: start; padding: 1px 8px; border-radius: 999px; background: #fff4d6; color: #713f12; font-size: .75rem; font-weight: 700; }

/* Commande envoyée (page boutique) */
.order-sent { display: grid; gap: 10px; }
.order-sent > p { margin: 0; }
.order-sent-title { font-size: 1.15rem; font-weight: 800; color: var(--green); }
.order-sent .order-reference { font-family: inherit; font-weight: 700; }
.order-status { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff4d6; color: #5c3a06; }
.status-dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: #e0a100; box-shadow: 0 0 0 0 rgb(224 161 0 / .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(224 161 0 / 0); } 100% { box-shadow: 0 0 0 0 rgb(224 161 0 / 0); } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

/* Mes commandes */
.my-orders-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 700; text-decoration: none; }
.my-orders-link:hover { border-color: var(--brand); }
.orders-page h1 { margin: 18px 0 12px; }
#my-orders { display: grid; gap: 12px; margin-bottom: 14px; }
.my-order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.my-order header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.my-order-shop { font-weight: 800; color: var(--ink); text-decoration: none; }
.my-order-shop::after { content: " ›"; color: var(--brand); }
.my-order-status { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border-left: 4px solid; }
.my-order-status span { font-size: .9rem; }
.tone-pending { background: #fff4d6; border-color: #e0a100; color: #5c3a06; }
.tone-ok { background: #e7f4ec; border-color: var(--green); color: #14532d; }
.tone-done { background: #f1ede8; border-color: #8c7f74; color: var(--ink); }
.tone-ko { background: #fde8e6; border-color: var(--danger); color: #7f1d1d; }
.order-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: .75rem; color: var(--muted); text-align: center; }
.order-steps li { padding-top: 10px; border-top: 4px solid var(--line); }
.order-steps li.done { border-top-color: var(--green); color: var(--ink); font-weight: 700; }
.my-order-items { margin: 0; padding-left: 18px; font-size: .92rem; }
.my-order-foot { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-contact { margin: 8px 0 0; }
.order-contact-actions { margin-top: 6px; }

/* Espaces de l'administrateur : bandeau de retour et cartes de choix */
.space-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  padding: 8px 12px; background: #2f5c9e; color: #fff; font-size: .9rem; font-weight: 700; text-align: center; }
.space-banner form { margin: 0; }
.space-banner button { min-height: 34px; padding: 4px 14px; border: 2px solid #fff; border-radius: 999px; background: #fff; color: #2f5c9e; font: inherit; font-weight: 800; cursor: pointer; }
.spaces { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .spaces { grid-template-columns: 1fr 1fr; } }
.spaces form { margin: 0; }
.space-btn { width: 100%; height: 100%; display: grid; gap: 4px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease; }
.space-btn:hover { border-color: var(--brand); }
.space-btn strong { font-size: 1.05rem; }
.space-btn span { color: var(--muted); font-size: .9rem; }

/* Vidéo flottante « Créer ma boutique » (coin bas gauche, comme sur les grands sites) */
.demo-bubble { position: fixed; left: 14px; bottom: 16px; z-index: 25; width: 112px; opacity: 0; transform: translateY(24px) scale(.9);
  transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.demo-bubble.show { opacity: 1; transform: none; }
.demo-bubble-open { display: block; width: 100%; padding: 0; border: 3px solid #fff; border-radius: 18px; overflow: hidden; background: #fbf3ea; cursor: pointer;
  box-shadow: 0 12px 30px rgb(36 26 20 / .3); position: relative; }
.demo-bubble-open video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.demo-bubble-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 6px; background: var(--brand);
  color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.2; text-align: center; }
.demo-bubble-close { position: absolute; top: -10px; right: -10px; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; background: var(--ink); color: #fff;
  font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
@media (min-width: 760px) { .demo-bubble { width: 150px; left: 24px; bottom: 24px; } }
.demo-dialog { border: 0; padding: 56px 16px 20px; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: rgb(12 8 6 / .94); color: #fff; }
.demo-dialog[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.demo-dialog::backdrop { background: rgb(12 8 6 / .94); }
.demo-dialog video { max-width: 100%; max-height: 68vh; aspect-ratio: 9 / 16; border-radius: 14px; background: #fbf3ea; }
.demo-dialog-title { margin: 0; font-size: 1.15rem; font-weight: 800; text-align: center; }
@media (prefers-reduced-motion: reduce) { .demo-bubble { transition: none; } }
@media print { .demo-bubble { display: none !important; } }

/* Vidéos des articles */
.video-play { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: rgb(0 0 0 / .72); color: #fff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.pcard-photo { position: relative; }
.pcard-video { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff; font-size: .78rem; font-weight: 700; }
.photo-viewer video { max-width: 96vw; max-height: 74vh; border-radius: 10px; background: #000; }
.video-field { margin-top: 12px; padding: 12px; border: 1px dashed #d8c8b8; border-radius: 12px; display: grid; gap: 8px; }
.video-field h4 { margin: 0; }
.video-preview { width: min(100%, 240px); max-height: 320px; border-radius: 10px; background: #000; }
.storage-meter { width: 100%; height: 16px; border: 0; border-radius: 999px; overflow: hidden; background: #efe6dc; accent-color: var(--green); }
.storage-meter::-webkit-progress-bar { background: #efe6dc; border-radius: 999px; }
.storage-meter::-webkit-progress-value { background: var(--green); border-radius: 999px; }
.storage-meter::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.storage-meter.level-attention { accent-color: #e0a100; } .storage-meter.level-attention::-webkit-progress-value { background: #e0a100; } .storage-meter.level-attention::-moz-progress-bar { background: #e0a100; }
.storage-meter.level-alerte { accent-color: var(--danger); } .storage-meter.level-alerte::-webkit-progress-value { background: var(--danger); } .storage-meter.level-alerte::-moz-progress-bar { background: var(--danger); }

/* Article ouvert depuis une catégorie ou le panier : mis en évidence dans sa boutique */
.product { scroll-margin-top: 84px; }
.product:target { box-shadow: 0 0 0 3px var(--brand); }
.order-panel { scroll-margin-top: 76px; }

/* Passage fluide d'une page à l'autre (Chrome, Edge, Safari récents) : l'icône de la catégorie glisse jusqu'à sa nouvelle place. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.vt-repas { view-transition-name: cat-repas; } .vt-epicerie { view-transition-name: cat-epicerie; } .vt-vetements { view-transition-name: cat-vetements; }
.vt-parfums { view-transition-name: cat-parfums; } .vt-thiouraye { view-transition-name: cat-thiouraye; } .vt-beaute { view-transition-name: cat-beaute; }
.vt-maison { view-transition-name: cat-maison; } .vt-autres { view-transition-name: cat-autres; } .vt-accessoires { view-transition-name: cat-accessoires; }
.vt-services { view-transition-name: cat-services; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
::view-transition-group(*) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .category, .back-btn, .cat-chip, .shop-card, .toast { transition: none; }
}
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.shop-card { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.shop-card:hover { border-color: var(--brand); }
.shop-card-body { display: grid; gap: 4px; min-width: 0; }
.shop-card-desc { color: var(--muted); font-size: .92rem; }
.shop-avatar { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: block; background: #f3ece4; }
.shop-avatar.big { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 4px 14px rgb(0 0 0 / .12); }
.shop-avatar img, .shop-avatar .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }

/* Couleurs douces par catégorie : fond des dessins sans photo et bandeau de la boutique */
.tint-repas { --tint-bg: #fbe5d8; --tint-fg: #b4471b; }
.tint-epicerie { --tint-bg: #f6ecc9; --tint-fg: #876a10; }
.tint-vetements { --tint-bg: #ebe4fa; --tint-fg: #5a3fae; }
.tint-accessoires { --tint-bg: #f5ead0; --tint-fg: #8a6412; }
.tint-parfums { --tint-bg: #f9e1ec; --tint-fg: #a8336a; }
.tint-thiouraye { --tint-bg: #efe2d6; --tint-fg: #6e4726; }
.tint-beaute { --tint-bg: #dcf1ef; --tint-fg: #23716f; }
.tint-maison { --tint-bg: #dfe8f7; --tint-fg: #2f5c9e; }
.tint-autres { --tint-bg: #e6ebe4; --tint-fg: #4c5a48; }
.tint-services { --tint-bg: #e0eef6; --tint-fg: #1f5f86; }
.photo-placeholder { display: grid; place-items: center; background: var(--tint-bg, #f3ece4); color: var(--tint-fg, var(--muted)); }
.photo-placeholder svg { width: 46%; height: 46%; max-width: 80px; }
.seller-cta { margin-top: 36px; background: var(--brand); color: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-items: center; }
@media (min-width: 760px) { .seller-cta { grid-template-columns: 1fr auto; } }

/* Boutique */
.shop-hero { display: flex; gap: 18px; padding: 22px; margin-top: 20px; align-items: flex-start; border-radius: var(--radius); background: var(--tint-bg, #fff); }
.shop-hero h1 { color: var(--ink); }
.shop-hero .eyebrow { color: var(--tint-fg, var(--brand)); }
@media (max-width: 520px) { .shop-hero { flex-direction: column; padding: 18px; } }
.shop-description { font-size: 1.05rem; }
.shop-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.shop-layout { display: grid; gap: 24px; margin-top: 18px; }
@media (min-width: 960px) { .shop-layout { grid-template-columns: 1fr 360px; align-items: start; } .order-panel { position: sticky; top: 76px; } }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product p { margin: 0; }
.product.unavailable { opacity: .6; }
.product-photo { position: relative; aspect-ratio: 4 / 3; background: #f3ece4; }
.product-photo img, .product-photo .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; top: 8px; left: 8px; background: rgb(0 0 0 / .72); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.product-info { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-desc { font-size: .92rem; }
.product-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; flex-wrap: wrap; }

/* Photo en grand */
.photo-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.photo-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-avatar.photo-zoom { width: 88px; height: 88px; flex: none; }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font-size: 18px; display: grid; place-items: center; pointer-events: none; }
.photo-viewer { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; background: rgb(12 8 6 / .94); color: #fff; }
.photo-viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.photo-viewer::backdrop { background: rgb(12 8 6 / .94); }
.photo-viewer img { max-width: 96vw; max-height: 74vh; object-fit: contain; border-radius: 10px; background: #fff; }
.photo-viewer-caption { margin: 0; padding: 0 16px; text-align: center; font-size: 1.05rem; }
.photo-viewer-caption span { color: #ffd9c2; margin-left: 6px; white-space: nowrap; }
.photo-viewer-hint { margin: 0; font-size: .82rem; color: #bfb2a8; text-align: center; padding: 0 16px; }
.photo-viewer-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .18); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* Choix : couleur, taille, contenance… */
.options { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid #cdbfb2; background: #fff; color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Carte de restaurant : grandes photos de plats */
.layout-menu { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Vitrine (tissus, vêtements, maison) : photos verticales sur deux colonnes */
.layout-vitrine { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.layout-vitrine .product-photo { aspect-ratio: 3 / 4; }
@media (min-width: 720px) { .layout-vitrine { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; } }

/* Rayon (parfums, thiouraye, beauté) : photos carrées, présentation soignée */
.layout-boutique { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.layout-boutique .product { text-align: center; }
.layout-boutique .product-photo { aspect-ratio: 1; }
.layout-boutique .options { justify-content: center; }
@media (min-width: 720px) { .layout-boutique { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; } }

.layout-vitrine .product-info, .layout-boutique .product-info { padding: 10px; }
.layout-vitrine .product-bottom, .layout-boutique .product-bottom { flex-direction: column; align-items: stretch; }
.layout-vitrine .qty, .layout-boutique .qty { justify-content: center; }
.layout-vitrine .qty .add, .layout-boutique .qty .add { width: 100%; }

/* Liste (épicerie, autres) : lignes compactes avec petite photo */
.layout-liste { grid-template-columns: 1fr; gap: 8px; }
.layout-liste .product { flex-direction: row; align-items: stretch; }
.layout-liste .product-photo { width: 88px; flex: none; aspect-ratio: auto; min-height: 88px; }
.layout-liste .product-info { padding: 10px 12px; }
.price { font-weight: 800; font-size: 1.05rem; }
.price small { font-weight: 500; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid var(--brand); background: #fff; color: var(--brand-dark); font: inherit; font-weight: 800; cursor: pointer; }
.qty button.add { background: var(--brand); color: #fff; padding: 0 16px; }
.qty button:disabled { opacity: .4; }
.order-panel { background: #fff; border: 2px solid var(--brand); border-radius: var(--radius); padding: 18px; }
.order-line { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.order-line span { flex: 1; }
.line-remove { min-width: 36px; min-height: 36px; border: 0; border-radius: 999px; background: #f3ece4; color: var(--muted); font: inherit; font-size: 1.1rem; cursor: pointer; }
.totals { margin: 0; display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; font-weight: 600; }
.totals .total { font-size: 1.1rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.mobile-bar[hidden] { display: none; }
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* Espace vendeur */
.status-card { display: grid; gap: 14px; }
@media (min-width: 760px) { .status-card { grid-template-columns: 1fr auto; } .span-all { grid-column: 1 / -1; } }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.status-actions form { margin: 0; }
.share { display: grid; gap: 6px; font-weight: 600; }
.product-admin { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.product-admin details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.product-admin summary { cursor: pointer; display: flex; align-items: center; gap: 12px; }
.product-admin .summary-text { flex: 1; min-width: 0; }
.thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; }
.thumb img, .thumb .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.photo-field { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: start; }
.photo-field > label { grid-column: 1 / -1; }
.photo-current, .photo-preview { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; object-fit: cover; display: block; }
.photo-current img, .photo-current .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
input[type="file"] { padding: 8px; }
.product-admin details[open] summary { margin-bottom: 12px; }
.inline-right { text-align: right; margin-top: 8px; }

/* Page « Vendre sur JMS » */
.sell-hero h1 { max-width: 760px; }
.demo-video { display: grid; gap: 18px; align-items: center; margin: 8px 0 28px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.demo-video h2 { margin-bottom: 6px; }
.demo-text p { margin: 0 0 10px; }
.demo-player { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 18px; background: #fbf3ea; box-shadow: 0 14px 34px rgb(36 26 20 / .18); }
@media (min-width: 760px) { .demo-video { grid-template-columns: 1fr 320px; padding: 28px 32px; } }
.btn-big { min-height: 54px; padding: 14px 28px; font-size: 1.1rem; }
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .steps-list { grid-template-columns: repeat(4, 1fr); } }
.steps-list li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.steps-list li::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.steps-list span { color: var(--muted); font-size: .95rem; }
.sell-benefits { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 760px) { .sell-benefits { grid-template-columns: repeat(3, 1fr); } }
.sell-benefits .card { margin: 0; }
.seller-cta a.on-brand { color: #fff; }

/* Inscription en cours, étapes, message après action */
.checklist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.checklist li { color: var(--muted); }
.checklist li.done { color: var(--ink); }
.onboarding-list { display: grid; gap: 10px; }
.onboarding { border-top: 1px solid var(--line); padding-top: 12px; }
.onboarding h3 { margin-bottom: 2px; }
.password-help { margin-top: 8px; font-size: .9rem; }
.password-help summary { color: var(--muted); cursor: pointer; }
.after-action { border-color: var(--green); background: #f3faf6; }

/* Fréquentation et notifications */
.stats-columns { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 760px) { .stats-columns { grid-template-columns: 1fr 1fr; } }
.push-card { border-color: var(--brand); }
.orders-shortcut .span-all { grid-column: 1 / -1; margin: 0; }

/* Abonnements */
.remind-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.remind-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-action select, .compact select { width: auto; min-height: 36px; padding: 6px 10px; }
.alert p { margin: 8px 0 0; }

/* Demandes */
.orders-shortcut { display: grid; gap: 12px; align-items: center; border-color: var(--brand); }
@media (min-width: 640px) { .orders-shortcut { grid-template-columns: 1fr auto; } }
.orders-shortcut h2 { margin-bottom: 4px; }
.orders-shortcut p { margin: 0; }
.count-badge { background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 0 8px; font-size: .85rem; }
.tabs { display: flex; gap: 6px; margin: 16px 0; overflow-x: auto; }
.tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); white-space: nowrap; font-weight: 600; }
.tabs a span { color: var(--muted); font-weight: 500; }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs a.active span { color: #ddd; }
.order-list { display: grid; gap: 12px; }
.order-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid #cdbfb2; border-radius: var(--radius); padding: 16px; }
.order-card p { margin: 4px 0; }
.order-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-ref { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .04em; }
.order-badge { padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #eee6de; color: var(--muted); }
.order-badge small { font-weight: 500; }
.status-prepared { border-left-color: #e0a100; } .badge-order-prepared { background: #fff4d6; color: #8a5a00; }
.status-received { border-left-color: #3d6db5; } .badge-order-received { background: #dfe8f7; color: #2f5c9e; }
.status-accepted { border-left-color: var(--green); } .badge-order-accepted { background: #e7f4ec; color: var(--green); }
.status-completed { border-left-color: #4c5a48; } .badge-order-completed { background: #e6ebe4; color: #3b4637; }
.status-refused, .status-cancelled { border-left-color: var(--danger); } .badge-order-refused, .badge-order-cancelled { background: #fde8e6; color: var(--danger); }
.order-items { list-style: none; padding: 0; margin: 10px 0; }
.order-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.order-total { font-size: 1.02rem; }
.order-reference { font-weight: 800; font-family: ui-monospace, Consolas, monospace; background: #fff4d6; padding: 8px 12px; border-radius: 10px; }

/* Partage et affiche */
.share-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 640px) { .share-grid { grid-template-columns: 180px 1fr; } }
.share-qr { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0 auto; }
.share-actions { display: grid; gap: 8px; }
.share-actions label { font-weight: 600; }
.poster { max-width: 560px; margin: 24px auto; padding: 32px 28px; background: #fff; border: 2px solid var(--brand); border-radius: 24px; text-align: center; }
.poster h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: 4px 0 18px; }
.poster-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.5rem; }
.poster-brand em { font-style: normal; color: var(--brand); font-weight: 600; }
.poster-category { color: var(--brand); font-weight: 700; letter-spacing: .04em; margin: 14px 0 0; }
.poster-qr { width: min(320px, 80%); aspect-ratio: 1; margin: 0 auto; display: block; }
.poster-call { font-size: 1.15rem; font-weight: 700; margin: 16px 0 6px; }
.poster-link { font-family: ui-monospace, Consolas, monospace; color: var(--muted); margin: 0 0 8px; word-break: break-all; }
.poster-contact { font-weight: 600; margin: 0 0 8px; }
.poster-pay { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin: 12px 0 0; }
.poster-buttons { justify-content: center; margin-bottom: 24px; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .install { display: none !important; }
  .poster { border-width: 3px; margin: 0 auto; box-shadow: none; }
  .poster-qr { width: 70mm; }
}

/* Administration */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; }
.stats strong { font-size: 1.6rem; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-action { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.admin-action input { min-height: 36px; padding: 6px 10px; width: auto; flex: 1 1 180px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.plain { padding-left: 18px; }

/* « Faites connaître votre boutique » : 4 gestes, chacun avec son bouton */
.boost-steps { list-style: none; counter-reset: boost; padding: 0; margin: 12px 0 18px; display: grid; gap: 10px; }
.boost-steps li { counter-increment: boost; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf5; }
.boost-steps li::before { content: counter(boost); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.boost-steps li div { flex: 1 1 170px; display: grid; gap: 2px; min-width: 0; }
.boost-steps li { flex-wrap: wrap; }
@media (max-width: 520px) { .boost-steps .btn { margin-left: 46px; } }
.boost-steps li span { color: var(--muted); font-size: .9rem; }
.boost-steps .btn { flex: none; }
.encourage-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.encourage-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Services et dépannage : métiers, prestations, demande d'intervention */
.trade-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; margin-bottom: 8px; scrollbar-width: none; }
.chip-link { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid #cdbfb2; background: #fff; color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.chip-link.active { background: #1f5f86; border-color: #1f5f86; color: #fff; }
.layout-services { grid-template-columns: 1fr; gap: 10px; }
.layout-services .product { flex-direction: row; align-items: stretch; }
.layout-services .product-photo { width: 112px; flex: none; aspect-ratio: auto; min-height: 112px; }
.layout-services .product-info { padding: 12px; }
@media (min-width: 720px) { .layout-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-services .btn { margin-top: 10px; }
.intervention-panel { border-color: #1f5f86; }
.intervention-panel textarea { min-height: 84px; }
.order-need { margin: 6px 0; padding: 10px 12px; background: #e0eef6; border-radius: 10px; }
.order-card.intervention { border-left: 4px solid #1f5f86; }
/* Formulaire de la boutique : textes d'ouvrier selon la catégorie enregistrée (is-services), puis, dès qu'on change
   la catégorie, selon celle choisie (:has). Sans :has, ceux de la catégorie enregistrée restent affichés. */
.shop-form .for-services, .shop-form .trade-field { display: none; }
.shop-form.is-services .for-services { display: inline; }
.shop-form.is-services .trade-field { display: grid; }
.shop-form.is-services .for-goods { display: none; }
.shop-form:has(option[value="services"]:checked) .for-services { display: inline; }
.shop-form:has(option[value="services"]:checked) .trade-field { display: grid; }
.shop-form:has(option[value="services"]:checked) .for-goods { display: none; }
.shop-form:has(option[value="services"]:not(:checked)) .for-goods { display: inline; }
.shop-form:has(option[value="services"]:not(:checked)) .for-services,
.shop-form:has(option[value="services"]:not(:checked)) .trade-field { display: none; }

/* ===== Habillage premium (02/11/2026) : couleurs de coucher de soleil sur Dakar, reflets dorés, relief.
   Ajouté par-dessus le style de base : le retirer rend l'ancien aspect. ===== */
:root {
  --gold: #e3a92f;
  --gold-soft: #f6d58a;
  --sunset: linear-gradient(135deg, #7a2410 0%, #b74929 38%, #e0702e 72%, #f2a541 100%);
  --glow: 0 18px 40px -18px rgb(143 53 25 / .55);
  --lift: 0 1px 2px rgb(36 26 20 / .06), 0 10px 28px -12px rgb(36 26 20 / .22);
}
body {
  background:
    radial-gradient(1200px 520px at 100% -10%, rgb(242 165 65 / .16), transparent 60%),
    radial-gradient(900px 480px at -10% 8%, rgb(183 73 41 / .10), transparent 60%),
    var(--paper);
}

/* En-tête en verre dépoli, liseré doré */
.site-header { background: rgb(255 250 244 / .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1; }
.logo-icon { filter: drop-shadow(0 4px 10px rgb(183 73 41 / .35)); }

/* Boutons : dégradé chaud et reflet qui passe */
.btn:not(.btn-outline):not(.btn-light):not(.btn-danger):not(.btn-whatsapp) {
  position: relative; overflow: hidden; isolation: isolate; border-color: transparent;
  background: linear-gradient(135deg, #c4532d, #a33d1e 55%, #8f3519); box-shadow: var(--glow);
}
.btn:not(.btn-outline):not(.btn-light):not(.btn-danger):not(.btn-whatsapp)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 236 200 / .55) 48%, transparent 66%);
  transform: translateX(-120%); animation: jms-sheen 3.8s ease-in-out infinite;
}
.btn:not(.btn-outline):not(.btn-light):not(.btn-danger):not(.btn-whatsapp):hover { filter: brightness(1.06); }
@keyframes jms-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-outline { border-color: #d9a48f; background: #fff; }
.btn-whatsapp { box-shadow: 0 12px 26px -14px rgb(18 140 74 / .7); }

/* Accueil et page « Vendre » : grand bandeau coucher de soleil, motif wax discret et éclat doré */
.hero { position: relative; margin-top: 18px; padding: 30px 22px 22px; border-radius: 26px; color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgb(255 222 150 / .55), transparent 32%),
    repeating-radial-gradient(circle at 0 100%, rgb(255 255 255 / .06) 0 14px, transparent 14px 34px),
    var(--sunset);
  box-shadow: 0 28px 60px -30px rgb(122 36 16 / .8); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 226 170 / .35); }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgb(80 20 5 / .35); }
.hero .eyebrow { color: var(--gold-soft); }
.hero-text { color: rgb(255 244 232 / .92); }
.hero .muted, .hero .muted a, .hero a:not(.btn) { color: rgb(255 240 225 / .95); }
.hero .search { background: rgb(255 255 255 / .96); border: 0; box-shadow: 0 18px 40px -20px rgb(60 15 5 / .6); }
.hero .btn-big, .hero .btn { background: linear-gradient(135deg, #fff, #ffe8c8) !important; color: #8f3519 !important; box-shadow: 0 14px 30px -14px rgb(40 10 0 / .6) !important; }
.hero .search .btn { background: linear-gradient(135deg, #c4532d, #a33d1e 55%, #8f3519) !important; color: #fff !important; }

/* Catégories : cartes en relief, icônes dorées */
.category { border-color: transparent; box-shadow: var(--lift); background: linear-gradient(180deg, #fff, #fffaf3); }
.category:hover { box-shadow: 0 16px 34px -16px rgb(143 53 25 / .4); transform: translateY(-2px); }
.cat-icon { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .7), 0 6px 14px -8px var(--tint-fg, #b74929); }
.cat-hero { box-shadow: var(--lift); background: linear-gradient(135deg, #fff 0%, var(--tint-bg, #fff) 60%); }
.cat-hero-icon { box-shadow: 0 12px 26px -12px var(--tint-fg, #b74929); }

/* Fiches articles et boutiques */
.pcard, .shop-card, .product, .card, .order-panel { border-color: transparent; box-shadow: var(--lift); }
.pcard { border-radius: 18px; }
.pcard-price { color: #8f3519; }
.price { color: #8f3519; }
.shop-card:hover { box-shadow: 0 16px 34px -16px rgb(143 53 25 / .4); }
.shop-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold-soft); }
.shop-hero { box-shadow: var(--lift); background: linear-gradient(135deg, #fff 0%, var(--tint-bg, #fff) 70%); }
.shop-avatar.big { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 12px 26px -10px rgb(0 0 0 / .35); }

/* Bandeaux « Vous êtes commerçant ? » : coucher de soleil et liseré doré */
.seller-cta { background: radial-gradient(circle at 90% 0%, rgb(255 222 150 / .45), transparent 40%), var(--sunset);
  box-shadow: 0 26px 50px -28px rgb(122 36 16 / .9), inset 0 0 0 1px rgb(255 226 170 / .35); border-radius: 22px; }
.seller-cta .btn-light { background: linear-gradient(135deg, #fff, #ffe8c8); color: #8f3519; border-color: transparent; }

/* Pied de page sombre et chaud */
.site-footer { background: linear-gradient(180deg, #2a1810, #1b0f09); color: #f3e5d8; border-top: 0; }
.site-footer .muted { color: #c9b4a3; }
.site-footer .install { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }

@media (prefers-reduced-motion: reduce) {
  .btn::after { animation: none !important; display: none; }
  .category:hover { transform: none; }
}
