@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
/* =====================================================================
   MonDjangui — couche « premium » (chargée après style.css)
   Thème clair / sombre, composants raffinés, espaces Vendeur & Admin
   ===================================================================== */

/* ---------- 1. Jetons de design ---------- */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --texte-1: #16201b;
  --texte-2: #5b665f;
  --bord: #e7e1d5;
  --bord-fort: #d8d0c0;
  --marque: #0f5132;
  --marque-2: #17714a;
  --marque-txt: #0f5132;
  --marque-doux: #e6f0e9;
  --accent: #f2b632;
  --ombre-1: 0 1px 2px rgba(22, 32, 27, .05);
  --ombre-2: 0 1px 2px rgba(22, 32, 27, .04), 0 8px 24px rgba(22, 32, 27, .06);
  --ombre-3: 0 2px 6px rgba(22, 32, 27, .05), 0 24px 48px rgba(22, 32, 27, .10);
  --rayon: 14px;
  --rayon-lg: 20px;
  --entete: #0f5132;
  --pied: #141a17;
  --focus: 0 0 0 3px rgba(242, 182, 50, .45);

  /* variables historiques du site, réalignées */
  --creme: var(--bg);
  --blanc: var(--surface);
  --encre: var(--texte-1);
  --gris: var(--texte-2);
  --ligne: var(--bord);
}

/* Thème sombre : choisi par l'utilisateur, ou réglage du téléphone */
:root[data-theme="dark"] {
  --bg: #0c110f; --surface: #141b17; --surface-2: #19211d;
  --texte-1: #e9edea; --texte-2: #9ca8a0; --bord: #253029; --bord-fort: #33403a;
  --marque: #1d7a50; --marque-2: #4cc38a; --marque-txt: #6fd3a2; --marque-doux: #17261f;
  --ombre-1: 0 1px 2px rgba(0,0,0,.4); --ombre-2: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.35);
  --ombre-3: 0 2px 6px rgba(0,0,0,.4), 0 24px 48px rgba(0,0,0,.45);
  --entete: #0a0f0d; --pied: #080b0a;
  --vert: #1d7a50; --vert-2: #4cc38a; --vert-clair: #17261f; --sable: #19211d;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c110f; --surface: #141b17; --surface-2: #19211d;
    --texte-1: #e9edea; --texte-2: #9ca8a0; --bord: #253029; --bord-fort: #33403a;
    --marque: #1d7a50; --marque-2: #4cc38a; --marque-txt: #6fd3a2; --marque-doux: #17261f;
    --ombre-1: 0 1px 2px rgba(0,0,0,.4); --ombre-2: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.35);
    --ombre-3: 0 2px 6px rgba(0,0,0,.4), 0 24px 48px rgba(0,0,0,.45);
    --entete: #0a0f0d; --pied: #080b0a;
    --vert: #1d7a50; --vert-2: #4cc38a; --vert-clair: #17261f; --sable: #19211d;
    color-scheme: dark;
  }
}

/* ---------- 2. Base ---------- */
body { background: var(--bg); color: var(--texte-1); -webkit-font-smoothing: antialiased; transition: background-color .2s ease; }
a { color: var(--marque-2); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--texte-1); letter-spacing: -.02em; }
.muted, .small.muted { color: var(--texte-2); }
::selection { background: rgba(242, 182, 50, .35); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* ---------- 3. En-tête ---------- */
.site-header { background: var(--entete); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .header-row { min-height: 68px; }
.site-header .search input { background: rgba(255,255,255,.96); }
.menu nav a { border-radius: 10px; transition: background-color .15s ease; }
.menu nav a:hover { background: rgba(255,255,255,.08); }
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-left: 6px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 0; vertical-align: middle; }
.theme-toggle:hover { background: rgba(255,255,255,.2); }
.theme-toggle .ic { width: 18px; height: 18px; }
.theme-toggle .th-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .th-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .th-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .th-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .th-moon { display: none; }
}
@media (max-width: 899px) {
  .menu nav .theme-toggle { margin: 4px 12px 10px; background: var(--marque-doux); border-color: var(--bord); color: var(--texte-1); }
}

/* ---------- 4. Boutons ---------- */
.btn { border-radius: 12px; font-weight: 600; letter-spacing: .005em; box-shadow: var(--ombre-1);
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover { box-shadow: var(--ombre-2); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 1.02rem; }
.btn-outline { background: transparent; color: var(--marque-txt); border: 1.5px solid var(--bord-fort); box-shadow: none; }
.btn-outline:hover { border-color: var(--marque-2); background: var(--marque-doux); }
.btn-ghost { background: var(--surface-2); color: var(--texte-1); border: 1px solid var(--bord); box-shadow: none; }
.btn-ghost:hover { background: var(--marque-doux); }

/* ---------- 5. Surfaces, cartes, alertes ---------- */
.card, .cat, .hero-card, .order-box, .seller, .review, .faq details, .plan, .filters, .myitem, .order, .empty,
.panel, .bq-card, .bq-about, .bq-avis-item, .reco-item, .bq-vide {
  background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-1);
}
.card { border-radius: var(--rayon); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--ombre-2); }
.card h3 { color: var(--texte-1); }
.cat { border-radius: var(--rayon); }
.cat:hover { border-color: var(--marque-2); box-shadow: var(--ombre-2); }
.hero-card { border-radius: var(--rayon-lg); box-shadow: var(--ombre-3); }
.alert { border-radius: 12px; border: 1px solid transparent; box-shadow: var(--ombre-1); }
.alert-succes { background: #e8f5ec; border-color: #c4e5cf; color: #0d4a2c; }
.alert-erreur { background: #fdecea; border-color: #f5c9c4; color: #8a1f12; }
.alert-info { background: #fff6dd; border-color: #f2dea2; color: #6b4b00; }
:root[data-theme="dark"] .alert-succes { background: #12271c; border-color: #1f4a33; color: #9fe0bd; }
:root[data-theme="dark"] .alert-erreur { background: #2a1513; border-color: #5a2a24; color: #f3b1a8; }
:root[data-theme="dark"] .alert-info { background: #2a2312; border-color: #5a4a1f; color: #f2d58c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alert-succes { background: #12271c; border-color: #1f4a33; color: #9fe0bd; }
  :root:not([data-theme="light"]) .alert-erreur { background: #2a1513; border-color: #5a2a24; color: #f3b1a8; }
  :root:not([data-theme="light"]) .alert-info { background: #2a2312; border-color: #5a4a1f; color: #f2d58c; }
}
.panel { border-radius: var(--rayon-lg); padding: 24px; margin-bottom: 20px; }
.panel h2 { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel-succes { border-color: #b9e0c7; background: linear-gradient(180deg, var(--marque-doux), var(--surface)); }
.temp-pass { font: 700 28px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; padding: 14px 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--bord-fort); display: inline-block; margin: 6px 0 10px; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--marque-doux); color: var(--marque-txt); border: 1px solid transparent; }

/* ---------- 6. Formulaires ---------- */
input, select, textarea { background: var(--surface); color: var(--texte-1); border: 1px solid var(--bord-fort); border-radius: 12px;
  min-height: 46px; transition: border-color .15s ease, box-shadow .15s ease; }
textarea { min-height: 110px; }
input[type=checkbox], input[type=radio], input[type=file], input[type=hidden] { min-height: 0; }
input::placeholder, textarea::placeholder { color: var(--texte-2); opacity: .75; }
input:focus, select:focus, textarea:focus { border-color: var(--marque-2); box-shadow: 0 0 0 3px rgba(23, 113, 74, .18); outline: none; }
.form label, .auth-form label { font-weight: 600; font-size: 14px; color: var(--texte-1); }
.form label small, .auth-form label small { font-weight: 400; display: block; margin-top: 4px; }
.form label.check, .auth-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form label.check input { min-height: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--marque); }
fieldset { border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.tel-field { display: flex; align-items: stretch; margin-top: 6px; }
.tel-field .tel-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--bord-fort); border-right: 0;
  border-radius: 12px 0 0 12px; background: var(--surface-2); color: var(--texte-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tel-field input { border-radius: 0 12px 12px 0; margin: 0 !important; flex: 1; min-width: 0; }

/* ---------- 7. Tableaux, statuts, indicateurs ---------- */
.table-wrap { border: 1px solid var(--bord); border-radius: var(--rayon); overflow: auto; background: var(--surface); box-shadow: var(--ombre-1); }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--surface-2); color: var(--texte-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kpis { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.kpis > * { background: var(--surface) !important; border: 1px solid var(--bord) !important; border-radius: var(--rayon) !important;
  padding: 18px 20px !important; box-shadow: var(--ombre-1); color: var(--texte-2) !important; text-decoration: none; font-size: 13px; position: relative; overflow: hidden; }
.kpis > *::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .9; }
.kpis span { display: block; font-family: var(--titre); font-size: 28px !important; font-weight: 800; color: var(--texte-1) !important; line-height: 1.1; margin-bottom: 4px; }
a.kpis > *:hover, .kpis > a:hover { box-shadow: var(--ombre-2); border-color: var(--marque-2) !important; }
.stat-cards { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-cards li { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 18px; box-shadow: var(--ombre-1); }
.stat-cards strong { display: block; font-family: var(--titre); font-size: 28px; line-height: 1.1; margin-top: 4px; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-2); font-weight: 700; }

/* listes du vendeur */
.mylist { display: grid; gap: 12px; }
.myitem { border-radius: var(--rayon); padding: 12px; transition: box-shadow .15s ease, border-color .15s ease; }
.myitem:hover { box-shadow: var(--ombre-2); border-color: var(--bord-fort); }
.myitem img { border-radius: 10px; object-fit: cover; }
.order { border-radius: var(--rayon); padding: 18px; }
.plans { gap: 16px; }
.plan { border-radius: var(--rayon-lg); padding: 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--ombre-3); border-color: var(--accent); }
.plan-price { font-family: var(--titre); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chips a { border-radius: 999px; }

/* ---------- 8. Espaces Vendeur & Administration ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; max-width: 1280px; margin: 0 auto; padding: 24px 16px 56px; align-items: start; }
.app-main { padding-top: 0 !important; min-width: 0; }
.app-main > h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--bord); }
.app-side { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-lg);
  padding: 16px; box-shadow: var(--ombre-2); display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 110px); overflow: auto; }
.app-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 12px; border-bottom: 1px solid var(--bord); margin-bottom: 6px; }
.app-user strong { display: block; font-size: 15px; line-height: 1.2; word-break: break-word; }
.app-user small { color: var(--texte-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-family: var(--titre);
  color: var(--accent); background: linear-gradient(135deg, #0f5132, #17714a); letter-spacing: .02em; }
.avatar-lg { width: 76px; height: 76px; border-radius: 22px; font-size: 28px; box-shadow: var(--ombre-2); }
.app-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px; text-decoration: none;
  background: var(--surface-2); color: var(--texte-1); border: 1px solid var(--bord); margin-bottom: 6px; }
.app-sub .dot { width: 8px; height: 8px; border-radius: 50%; background: #2fae6b; box-shadow: 0 0 0 3px rgba(47,174,107,.18); }
.app-sub.ko .dot { background: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.18); }
.app-nav { display: flex; flex-direction: column; gap: 2px; }
.app-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--texte-2); text-decoration: none;
  font-weight: 600; font-size: 14.5px; transition: background-color .15s ease, color .15s ease; }
.app-nav a .ic { width: 19px; height: 19px; flex: 0 0 auto; }
.app-nav a:hover { background: var(--surface-2); color: var(--texte-1); }
.app-nav a.on { background: var(--marque-doux); color: var(--marque-txt); }
.app-nav a.on .ic { color: var(--marque-txt); }
.app-nav-bas { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--bord); }
[data-page~="espace"] .page { padding-top: 0; }
[data-page~="espace"] .panel, [data-page~="espace"] form.form:not(.inline-form):not(.toolbar) { background: var(--surface); }
[data-page~="espace"] .form { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon-lg); padding: 22px; box-shadow: var(--ombre-1); }
[data-page~="espace"] .toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
[data-page~="espace"] .toolbar input, [data-page~="espace"] .toolbar select { flex: 1 1 200px; }
[data-page~="espace"] .note { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 18px; box-shadow: var(--ombre-1); }
[data-page~="espace"] h2 { font-size: 1.15rem; }

@media (max-width: 899px) {
  .app { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  .app-side { position: static; max-height: none; padding: 12px; flex-direction: column; }
  .app-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--bord); background: var(--surface-2); }
  .app-nav-bas { margin-top: 4px; border-top: 0; padding-top: 0; }
  .app-nav-bas a { background: transparent; }
}

/* ---------- 9. Pages Connexion / Inscription ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - 68px); }
.auth-aside { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #1d7a50 0%, #0f5132 45%, #0a3a24 100%); }
.auth-aside::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.09) 0 2px, transparent 3px) 0 0 / 26px 26px; }
.auth-aside::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,182,50,.35), transparent 65%); }
.auth-aside-in { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; padding: 72px 36px; }
.auth-kicker { color: var(--accent); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin: 0 0 14px; }
.auth-aside h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; line-height: 1.08; }
.auth-aside p { color: rgba(255,255,255,.82); line-height: 1.6; }
.auth-points, .auth-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li, .auth-steps li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.92); }
.auth-points li span, .auth-steps li span { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242,182,50,.18); color: var(--accent); font-weight: 800; font-size: 13px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--bord); border-radius: 24px; padding: 32px; box-shadow: var(--ombre-3); }
.auth-card-wide { max-width: 640px; }
.auth-card h1 { font-size: 30px; margin-bottom: 4px; }
.auth-card > .muted { margin-top: 0; margin-bottom: 20px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label > input, .auth-form label > select { display: block; width: 100%; margin-top: 6px; }
.auth-row { display: flex; justify-content: space-between; font-size: 14px; margin-top: -4px; }
.auth-foot { text-align: center; margin: 18px 0 0; font-size: 14px; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card { position: relative; cursor: pointer; font-weight: 400 !important; }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card-in { display: block; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--bord-fort); background: var(--surface-2);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.role-card-in strong { display: block; font-size: 15px; margin-bottom: 4px; }
.role-card-in small { color: var(--texte-2); font-size: 13px; }
.role-card input:checked + .role-card-in { border-color: var(--marque-2); background: var(--marque-doux); box-shadow: 0 0 0 3px rgba(23,113,74,.15); }
.role-card input:focus-visible + .role-card-in { box-shadow: var(--focus); }
@media (max-width: 899px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-aside-in { padding: 32px 20px; }
  .auth-points, .auth-steps { display: none; }
  .auth-main { padding: 0 16px 40px; margin-top: -18px; }
  .auth-card { padding: 22px; border-radius: 20px; }
}
@media (max-width: 559px) { .role-cards { grid-template-columns: 1fr; } }

/* ---------- 10. Page Mon compte ---------- */
.compte-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--rayon-lg); padding: 24px; box-shadow: var(--ombre-2); margin-bottom: 20px; position: relative; overflow: hidden; }
.compte-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--marque), var(--accent)); }
.compte-id { flex: 1 1 280px; min-width: 0; }
.compte-id h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.compte-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0; color: var(--texte-2); font-size: 14px; }
.compte-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.compte-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--bord);
  border-radius: var(--rayon); padding: 8px; box-shadow: var(--ombre-1); }
.compte-nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--texte-2); font-weight: 600; font-size: 14.5px; }
.compte-nav a:hover { background: var(--surface-2); color: var(--texte-1); }
.compte-nav-out { margin-top: 6px; border-top: 1px solid var(--bord); border-radius: 0 0 10px 10px !important; }
.compte-sections .panel { scroll-margin-top: 90px; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--bord); border-radius: 14px; background: var(--surface-2); }
.order-title { font-weight: 700; color: var(--texte-1); text-decoration: none; }
.order-title:hover { color: var(--marque-2); }
.order-row p { margin: 4px 0 0; font-size: 13.5px; }
.order-actions { display: flex; gap: 8px; align-items: center; }
.order-actions form { margin: 0; }
.empty-block { text-align: center; padding: 28px 16px; border: 1.5px dashed var(--bord-fort); border-radius: var(--rayon); }
.empty-block p { margin: 0 0 8px; }
@media (max-width: 899px) {
  .compte-grid { grid-template-columns: 1fr; }
  .compte-nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .compte-nav a { flex: 0 0 auto; }
  .compte-nav-out { margin: 0; border: 0; }
  .order-row { grid-template-columns: 1fr; }
}

/* ---------- 11. Ajustements thème sombre des blocs existants ---------- */
:root[data-theme="dark"] .bq-tabs button, :root[data-theme="dark"] .bq-btn-ghost { background: var(--surface-2); color: var(--texte-1); border-color: var(--bord-fort); }
:root[data-theme="dark"] .bq-logo { border-color: var(--surface); }
:root[data-theme="dark"] .bq-stats strong, :root[data-theme="dark"] .bq-badge { color: var(--accent); }
:root[data-theme="dark"] .bq-confiance li { background: var(--surface); border: 1px solid var(--bord); }
:root[data-theme="dark"] .site-header .search input { background: #1b241f; color: var(--texte-1); }
:root[data-theme="dark"] .price { color: var(--marque-txt); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bq-tabs button, :root:not([data-theme="light"]) .bq-btn-ghost { background: var(--surface-2); color: var(--texte-1); border-color: var(--bord-fort); }
  :root:not([data-theme="light"]) .bq-logo { border-color: var(--surface); }
  :root:not([data-theme="light"]) .bq-stats strong, :root:not([data-theme="light"]) .bq-badge { color: var(--accent); }
  :root:not([data-theme="light"]) .bq-confiance li { background: var(--surface); border: 1px solid var(--bord); }
  :root:not([data-theme="light"]) .site-header .search input { background: #1b241f; color: var(--texte-1); }
  :root:not([data-theme="light"]) .price { color: var(--marque-txt); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ---------- 12. En-tête : textes toujours lisibles sur fond vert/sombre ---------- */
.site-header .logo, .site-header .logo span { color: #fff !important; }
.site-header .menu-btn { color: #fff; }
@media (min-width: 900px) {
  .site-header .menu nav a:not(.btn) { color: rgba(255,255,255,.92) !important; }
  .site-header .menu nav a:not(.btn):hover { color: #fff !important; }
  .site-header .lang-switch a { color: #fff; }
}
@media (max-width: 899px) {
  .site-header .menu nav { background: var(--surface) !important; border: 1px solid var(--bord); box-shadow: var(--ombre-3); border-radius: 16px; }
  .site-header .menu nav a:not(.btn) { color: var(--texte-1) !important; }
  .site-header .menu nav a:not(.btn):hover { background: var(--surface-2); }
  .site-header .menu nav .lang-switch { color: var(--texte-1); }
}

/* ---------- 13. Finitions formulaires ---------- */
.row2, .row3 { align-items: start; }
.opt { font-weight: 400; color: var(--texte-2); }
[data-page~="espace"] .narrow-form, [data-page~="espace"] .narrow { max-width: 820px; }
[data-page~="espace"] .form-annonce { max-width: none; }

/* ---------- 14. Mobile : indicateurs sur 2 colonnes ---------- */
@media (max-width: 599px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis > * { padding: 14px !important; }
  .kpis span { font-size: 22px !important; }
  .stat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-cards li { padding: 12px; }
  .stat-cards strong { font-size: 22px; }
  .stat-label { font-size: 10.5px; }
  .compte-head { padding: 18px; }
  .avatar-lg { width: 60px; height: 60px; font-size: 22px; border-radius: 18px; }
}

/* ---------- 15. Pied de page : couleurs fixes, lisibles en clair comme en sombre ---------- */
.site-footer { background: #111814 !important; color: #c9d1cb !important; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer p, .site-footer small, .footer-reco-txt p { color: #a9b3ac !important; }
.site-footer h4, .footer-reco h4, .site-footer .logo, .site-footer .logo span, .site-footer strong { color: #ffffff !important; }
.site-footer a { color: #dfe6e1 !important; }
.site-footer a:hover { color: #ffffff !important; }
.footer-bottom { color: #a9b3ac !important; border-color: rgba(255,255,255,.10) !important; }
.footer-bottom a { color: #f2b632 !important; }
.footer-reco { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important; }
.footer-reco-form input, .footer-reco-form textarea { background: rgba(255,255,255,.08) !important; color: #f4f6f4 !important; border-color: rgba(255,255,255,.18) !important; }
.footer-reco-form input::placeholder, .footer-reco-form textarea::placeholder { color: rgba(244,246,244,.6) !important; }
.footer-reco-form button { background: #f2b632 !important; color: #16201b !important; }

/* =====================================================================
   16. Direction artistique « Émeraude » (inspirée du site de référence)
   Fond émeraude immersif, navigation en capsule, titres manuscrits,
   boutons pilules avec pastille, cartes translucides, bulles discrètes.
   ===================================================================== */
:root {
  --em-1: #0b7a62;           /* centre lumineux */
  --em-2: #075442;           /* émeraude */
  --em-3: #032a20;           /* bords sombres */
  --rose: #f9d3e6;           /* accent pastel */
  --nuit: #06120d;           /* boutons sombres */
  --script: 'Lobster', 'Bricolage Grotesque', cursive;
  --fond-em: radial-gradient(60% 70% at 50% 45%, var(--em-1) 0%, var(--em-2) 45%, var(--em-3) 100%);
}

/* --- En-tête : barre émeraude + navigation en capsule --- */
.site-header { background: var(--em-3) !important; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .logo span { font-family: var(--script); font-weight: 400; font-size: 26px; letter-spacing: .01em; }
@media (min-width: 900px) {
  .site-header .menu nav { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px; gap: 2px; }
  .site-header .menu nav a:not(.btn) { border-radius: 999px !important; padding: 8px 16px !important; }
  .site-header .menu nav a:not(.btn):hover { background: var(--rose) !important; color: var(--nuit) !important; }
  .site-header .menu nav a.btn, .site-header .menu nav .btn-gold { background: var(--nuit) !important; color: #fff !important; border-radius: 999px !important; box-shadow: none; }
  .site-header .lang-switch { background: transparent; border-color: rgba(255,255,255,.14); }
  .site-header .lang-switch a.on { background: var(--rose); color: var(--nuit) !important; }
}
.site-header .search input { border-radius: 999px 0 0 999px !important; }
.site-header .search button { border-radius: 0 999px 999px 0 !important; }

/* --- Boutons pilules --- */
.btn { border-radius: 999px !important; }
.btn:not(.btn-outline):not(.btn-ghost):not(.btn-wa):not(.btn-gold):not(.danger) { background: var(--nuit); color: #fff; }
.btn:not(.btn-outline):not(.btn-ghost):not(.btn-wa):not(.btn-gold):not(.danger):hover { background: #0e2219; }
.btn-gold { background: var(--rose) !important; color: var(--nuit) !important; }
.btn-lg, .hero .btn, .hero-card .btn, .bq-actions .btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
/* pastille ronde « + » sur les appels à l'action principaux */
.hero-card .btn::after, .auth-form .btn-lg:not(.btn-wa)::after, .cta-pastille::after {
  content: "+"; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--rose); color: var(--nuit); font-weight: 800; font-size: 18px; line-height: 1; margin-right: -8px;
}
.hero-card .btn-gold::after { background: var(--nuit); color: #fff; }

/* --- Héros de l'accueil : plein écran émeraude --- */
.hero { position: relative; overflow: hidden; background: var(--fond-em) !important; color: #fff; padding: 72px 0 88px !important; min-height: min(88vh, 760px); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(circle at 12% 22%, transparent 9px, rgba(255,255,255,.22) 10px, transparent 11px),
    radial-gradient(circle at 88% 18%, transparent 13px, rgba(255,255,255,.18) 14px, transparent 15px),
    radial-gradient(circle at 72% 78%, transparent 7px, rgba(255,255,255,.22) 8px, transparent 9px),
    radial-gradient(circle at 30% 84%, transparent 11px, rgba(255,255,255,.14) 12px, transparent 13px),
    radial-gradient(circle at 55% 12%, transparent 5px, rgba(255,255,255,.25) 6px, transparent 7px),
    radial-gradient(circle at 94% 62%, transparent 6px, rgba(255,255,255,.2) 7px, transparent 8px); }
.hero > .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 { font-family: var(--script) !important; font-weight: 400 !important; color: #fff !important; font-size: clamp(56px, 9vw, 120px) !important; line-height: .95 !important; letter-spacing: 0 !important; margin: 6px 0 22px !important; text-shadow: 0 10px 40px rgba(0,0,0,.25); }
.hero .eyebrow { color: var(--rose) !important; letter-spacing: .18em; }
.hero .lead { color: rgba(255,255,255,.82) !important; font-size: 1.12rem; max-width: 520px; }
.hero .stats { color: rgba(255,255,255,.75) !important; }
.hero .stats b, .hero .stats strong { color: #fff; }
.hero-search { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 999px !important; padding: 6px !important; box-shadow: 0 20px 50px rgba(0,0,0,.25) !important; }
.hero-search input, .hero-search select { background: transparent !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }
.hero-search input::placeholder { color: rgba(255,255,255,.65) !important; }
.hero-search select option { color: #16201b; }
.hero-search .btn { background: var(--rose) !important; color: var(--nuit) !important; }
.hero-card { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 28px !important;
  color: #fff !important; box-shadow: 0 30px 60px rgba(0,0,0,.3) !important; backdrop-filter: blur(6px); }
.hero-card *, .hero-card .muted, .hero-card small { color: rgba(255,255,255,.85) !important; }
.hero-card .hero-card-tag { color: var(--rose) !important; }
.hero-card .hero-price { color: #fff !important; font-family: var(--script); font-weight: 400; }
.hero-card .btn, .hero-card .btn * { color: var(--nuit) !important; }
@media (max-width: 899px) {
  .hero { min-height: 0; padding: 40px 0 56px !important; }
  .hero-search { border-radius: 24px !important; }
}

/* --- Titres de sections en manuscrit --- */
.section-head h2, .section > h2, .how h2, [data-page~="p-accueil"] h2, .bq-tagline, .auth-aside h2, .compte-id h1, .app-main > h1, .cat-head h1, .page > h1:first-child {
  font-family: var(--script) !important; font-weight: 400 !important; letter-spacing: 0 !important;
}
.section-head h2, .section > h2, .how h2 { font-size: clamp(30px, 4vw, 44px) !important; }
.app-main > h1, .page > h1:first-child, .cat-head h1 { font-size: clamp(32px, 4.5vw, 48px) !important; }

/* --- Bandeau « Comment ça marche » et blocs vendeur en émeraude --- */
.how { background: var(--fond-em) !important; color: #fff; border-radius: 32px; margin: 24px 16px; }
.how h2, .how h3, .how strong { color: #fff !important; }
.how p, .how .muted { color: rgba(255,255,255,.8) !important; }
.how .steps div { background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.16) !important; border-radius: 22px !important; color: #fff; }
.how .steps span { background: var(--rose) !important; color: var(--nuit) !important; }

/* --- Cartes plus généreuses --- */
.card, .cat, .panel, .bq-card, .plan, .myitem, .order, .stat-cards li, .kpis > *, .app-side, .auth-card, .compte-head, .compte-nav { border-radius: 24px !important; }
.card-img img { transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.cat:hover { background: var(--rose) !important; border-color: var(--rose) !important; color: var(--nuit) !important; }
.cat:hover * { color: var(--nuit) !important; }
.kpis > *::after { background: var(--rose) !important; }

/* --- Espaces vendeur / admin : barre latérale émeraude --- */
.app-side { background: var(--fond-em) !important; border: 0 !important; color: #fff; box-shadow: 0 24px 48px rgba(3, 42, 32, .35) !important; }
.app-user { border-color: rgba(255,255,255,.14) !important; }
.app-user strong { color: #fff; }
.app-user small { color: rgba(255,255,255,.65) !important; }
.app-user .avatar { background: var(--rose) !important; color: var(--nuit) !important; }
.app-sub { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.16) !important; color: #fff !important; }
.app-nav a { color: rgba(255,255,255,.78) !important; border-radius: 999px !important; }
.app-nav a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.app-nav a.on { background: var(--rose) !important; color: var(--nuit) !important; }
.app-nav a.on .ic { color: var(--nuit) !important; }
.app-nav-bas { border-color: rgba(255,255,255,.14) !important; }
@media (max-width: 899px) {
  .app-nav a { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.14) !important; }
}

/* --- Connexion / inscription : panneau émeraude identique au héros --- */
.auth-aside { background: var(--fond-em) !important; }
.auth-aside h2 { font-size: clamp(44px, 5vw, 64px) !important; line-height: 1 !important; }
.auth-kicker { color: var(--rose) !important; }
.auth-points li span, .auth-steps li span { background: var(--rose) !important; color: var(--nuit) !important; }
.role-card input:checked + .role-card-in { border-color: var(--em-2) !important; }

/* --- Compte : bandeau émeraude --- */
.compte-head { background: var(--fond-em) !important; border: 0 !important; color: #fff; }
.compte-head::before { display: none; }
.compte-head h1 { color: #fff !important; }
.compte-meta, .compte-meta span { color: rgba(255,255,255,.8) !important; }
.compte-head .pill { background: var(--rose); color: var(--nuit); }
.compte-head .avatar { background: var(--rose) !important; color: var(--nuit) !important; }
.compte-head .btn { background: var(--nuit) !important; color: #fff !important; border: 0 !important; }

/* --- Boutique : couverture plus immersive --- */
.bq-cover { padding-top: 64px !important; }
.bq-tagline { font-size: clamp(40px, 6vw, 72px) !important; line-height: 1 !important; }

/* --- Pied de page émeraude profond --- */
.site-footer { background: radial-gradient(80% 120% at 50% 0%, #0a3f31 0%, #04241b 60%, #021710 100%) !important; }
.site-footer .logo span { font-family: var(--script); font-weight: 400; font-size: 28px; }
.footer-reco-form button { background: var(--rose) !important; }
.footer-bottom a { color: var(--rose) !important; }

/* --- Mode sombre : on garde l'émeraude, en plus profond --- */
:root[data-theme="dark"] { --em-1: #0a5f4c; --em-2: #063f31; --em-3: #021a13; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --em-1: #0a5f4c; --em-2: #063f31; --em-3: #021a13; } }
:root[data-theme="dark"] .btn:not(.btn-outline):not(.btn-ghost):not(.btn-wa):not(.btn-gold):not(.danger) { background: var(--rose); color: var(--nuit); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.btn-outline):not(.btn-ghost):not(.btn-wa):not(.btn-gold):not(.danger) { background: var(--rose); color: var(--nuit); } }

@media (prefers-reduced-motion: reduce) { .card:hover .card-img img { transform: none; } }

/* ---------- 17. Mode sombre = univers émeraude complet ---------- */
:root[data-theme="dark"] { --bg: #03201a; --surface: #0b2e25; --surface-2: #0f3a2f; --bord: rgba(255,255,255,.10); --bord-fort: rgba(255,255,255,.18); --marque-doux: rgba(249,211,230,.12); --marque-txt: #f9d3e6; --marque-2: #f9d3e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #03201a; --surface: #0b2e25; --surface-2: #0f3a2f; --bord: rgba(255,255,255,.10); --bord-fort: rgba(255,255,255,.18); --marque-doux: rgba(249,211,230,.12); --marque-txt: #f9d3e6; --marque-2: #f9d3e6; } }
:root[data-theme="dark"] body { background: var(--fond-em) fixed !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: var(--fond-em) fixed !important; } }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .cat, :root[data-theme="dark"] .panel, :root[data-theme="dark"] .myitem,
:root[data-theme="dark"] .kpis > *, :root[data-theme="dark"] .stat-cards li, :root[data-theme="dark"] .auth-card, :root[data-theme="dark"] .bq-card { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important; backdrop-filter: blur(4px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .cat, :root:not([data-theme="light"]) .panel, :root:not([data-theme="light"]) .myitem,
  :root:not([data-theme="light"]) .kpis > *, :root:not([data-theme="light"]) .stat-cards li, :root:not([data-theme="light"]) .auth-card, :root:not([data-theme="light"]) .bq-card { background: rgba(255,255,255,.05) !important; border-color: rgba(255,255,255,.12) !important; backdrop-filter: blur(4px); }
}
.hero { background: transparent; }
:root:not([data-theme="dark"]) .hero { background: var(--fond-em) !important; }
.hero h1 { font-size: clamp(52px, 7.5vw, 104px) !important; }
.site-header .lang-switch a.on { color: #06120d !important; }
.section-head a { color: var(--marque-2); font-weight: 600; }

/* =====================================================================
   18. Tableaux de bord : graphiques, listes riches, abonnement, boutique
   ===================================================================== */
/* --- Cartes de graphiques --- */
.ch-grille-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin: 0 0 18px; }
.ch-grille-egale { grid-template-columns: 1fr 1fr; }
.ch-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 24px; padding: 20px 22px; box-shadow: var(--ombre-1); margin-bottom: 18px; min-width: 0; }
.ch-grille-2 > .ch-carte { margin: 0; }
.ch-carte header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ch-carte header h3 { margin: 0; font-size: 1.02rem; }
.ch-carte header p { margin: 0; color: var(--texte-2); font-size: 13px; }
.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch-grille { stroke: var(--bord); stroke-width: 1; stroke-dasharray: 3 4; }
.ch-axe { fill: var(--texte-2); font-size: 11px; font-family: var(--texte); }
.ch-barre { transition: opacity .15s ease; }
.ch-barre:hover, .ch-point:hover { opacity: .75; }
.ch-anneau-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ch-anneau { width: 170px; height: 170px; flex: 0 0 auto; }
.ch-fond { stroke: var(--surface-2); }
.ch-centre { fill: var(--texte-1); font: 800 26px var(--titre); }
.ch-centre-lib { fill: var(--texte-2); font-size: 12px; }
.ch-legende { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1 1 140px; min-width: 0; }
.ch-legende li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 13.5px; }
.ch-legende small { color: var(--texte-2); min-width: 36px; text-align: right; }
.ch-pastille { width: 12px; height: 12px; border-radius: 4px; }
.ch-lib { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-classement { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ch-cl-tete { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.ch-cl-tete span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-cl-piste { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ch-cl-piste span { display: block; height: 100%; border-radius: 999px; }
@media (max-width: 999px) { .ch-grille-2, .ch-grille-egale { grid-template-columns: 1fr; } }

/* --- Étiquettes et puces d'état --- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { background: rgba(47, 174, 107, .14); color: #1d8a52; }
.chip-ko { background: rgba(217, 83, 79, .14); color: #c0392b; }
.chip-attente { background: rgba(242, 182, 50, .18); color: #a86f00; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tag-vendeur { background: var(--rose); color: var(--nuit); }
.tag-client { background: var(--marque-doux); color: var(--marque-txt); }
.tag-admin { background: var(--nuit); color: #fff; }
:root[data-theme="dark"] .chip-ok { color: #6fe0a5; } :root[data-theme="dark"] .chip-ko { color: #ff9a8f; } :root[data-theme="dark"] .chip-attente { color: #f6cf72; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip-ok { color: #6fe0a5; } :root:not([data-theme="light"]) .chip-ko { color: #ff9a8f; } :root:not([data-theme="light"]) .chip-attente { color: #f6cf72; } }
.btn-danger { background: transparent !important; color: #d9534f !important; border: 1.5px solid rgba(217, 83, 79, .45) !important; box-shadow: none !important; }
.btn-danger:hover { background: #d9534f !important; color: #fff !important; }

/* --- Barre de filtres --- */
.adm-intro { margin-top: -8px; margin-bottom: 18px; }
.adm-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-1); }
.seg a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--texte-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.seg a small { opacity: .65; margin-left: 4px; }
.seg a.on { background: var(--nuit); color: #fff; }
.seg a:not(.on):hover { background: var(--surface-2); color: var(--texte-1); }
.recherche input { min-width: 260px; border-radius: 999px !important; padding-left: 40px !important;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23889' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px 50%; }
@media (max-width: 599px) { .seg { width: 100%; overflow-x: auto; } .recherche, .recherche input { width: 100%; min-width: 0; } }

/* --- Liste des utilisateurs en cartes --- */
.u-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.u-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 22px; padding: 18px; box-shadow: var(--ombre-1); display: flex; flex-direction: column; gap: 14px; transition: box-shadow .15s ease, transform .15s ease; }
.u-carte:hover { box-shadow: var(--ombre-2); transform: translateY(-1px); }
.u-suspendu { opacity: .72; }
.u-tete { display: flex; align-items: center; gap: 12px; }
.u-id { flex: 1; min-width: 0; }
.u-id strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-id small { color: var(--texte-2); }
.u-infos { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--bord); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; font-size: 13.5px; }
.u-infos li span { display: block; font-size: 11px; color: var(--texte-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 2px; }
.u-etats { display: flex; gap: 6px; flex-wrap: wrap; }
.u-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bord); }
.u-actions form { margin: 0; }
.avatar-sm { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }

/* --- Annonces en grille --- */
.a-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.a-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 22px; overflow: hidden; box-shadow: var(--ombre-1); display: flex; flex-direction: column; }
.a-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.a-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.a-carte:hover .a-img img { transform: scale(1.04); }
.a-img .chip { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); }
.a-corps { padding: 14px 16px 6px; flex: 1; }
.a-titre { display: block; line-height: 1.3; }
.a-corps p { margin: 4px 0; font-size: 13.5px; }
.a-prix { font-weight: 800; color: var(--marque-txt); }
.a-meta { display: flex; gap: 10px; color: var(--texte-2); font-size: 12.5px !important; flex-wrap: wrap; }
.a-actions { display: flex; gap: 6px; padding: 10px 16px 16px; }
.a-actions form { margin: 0; }

/* --- Catégories --- */
.c-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.c-carte { background: var(--surface); border: 1px solid var(--bord); border-radius: 22px; padding: 16px; box-shadow: var(--ombre-1); }
.cat-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat-form input { flex: 1 1 140px; }
.cat-form .cat-ico { flex: 0 0 64px; text-align: center; font-size: 20px; }
.cat-form .cat-ord { flex: 0 0 76px; }
.c-pied { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bord); }
.c-pied form { margin: 0; }

/* --- Listes compactes et états vides illustrés --- */
.mini-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.ml-txt { flex: 1; min-width: 0; }
.ml-txt strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-txt small { color: var(--texte-2); }
.vide-illu { text-align: center; padding: 28px 16px; color: var(--texte-2); }
.vide-illu span { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 30px; background: var(--marque-doux); margin-bottom: 8px; }
.vide-illu p { margin: 0; }
code { font-size: 12px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* --- Abonnement vendeur --- */
.abo-etat { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px; border-radius: 26px; color: #fff; background: var(--fond-em); box-shadow: 0 24px 48px rgba(3, 42, 32, .25); margin-bottom: 26px; }
.abo-etat h2 { color: #fff !important; margin: 8px 0 6px; font-size: 1.3rem; }
.abo-etat p { margin: 0; color: rgba(255,255,255,.8); }
.abo-etat .chip { background: rgba(255,255,255,.14); color: #fff; }
.abo-txt { flex: 1 1 300px; }
.abo-anneau { --p: 0; width: 112px; height: 112px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--rose) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.abo-anneau > div { width: 86px; height: 86px; border-radius: 50%; background: var(--em-3); display: grid; place-items: center; text-align: center; align-content: center; }
.abo-anneau strong { font: 800 28px/1 var(--titre); color: #fff; }
.abo-anneau small { color: rgba(255,255,255,.7); font-size: 12px; }
.abo-total { text-align: right; }
.abo-total small { display: block; color: rgba(255,255,255,.7); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.abo-total strong { font: 400 30px var(--script); color: var(--rose); }
.abo-sous { font-family: var(--script) !important; font-weight: 400 !important; font-size: 34px !important; margin: 0 0 14px; }
.abo-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.abo-plan { position: relative; background: var(--surface); border: 1.5px solid var(--bord); border-radius: 26px; padding: 26px 22px 22px; box-shadow: var(--ombre-1); display: flex; flex-direction: column; margin: 0; transition: transform .15s ease, box-shadow .15s ease; }
.abo-plan:hover { transform: translateY(-3px); box-shadow: var(--ombre-3); }
.abo-plan.vedette { border-color: transparent; background: var(--fond-em); color: #fff; box-shadow: 0 24px 48px rgba(3, 42, 32, .3); }
.abo-plan.vedette .abo-par-mois, .abo-plan.vedette .abo-liste { color: rgba(255,255,255,.82); }
.abo-plan.vedette .abo-prix, .abo-plan.vedette .abo-duree { color: #fff; }
.abo-badge { position: absolute; top: -12px; left: 22px; background: var(--rose); color: var(--nuit); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.abo-duree { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--texte-2); }
.abo-prix { margin: 8px 0 0; font: 400 46px/1 var(--script); color: var(--texte-1); }
.abo-prix small { font: 700 14px var(--texte); }
.abo-par-mois { margin: 6px 0 0; color: var(--texte-2); font-size: 14px; }
.abo-eco { display: inline-block; margin: 12px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(47,174,107,.14); color: #1d8a52; font-weight: 700; font-size: 12.5px; align-self: flex-start; }
.abo-plan.vedette .abo-eco { background: var(--rose); color: var(--nuit); }
.abo-eco-vide { background: var(--surface-2); color: var(--texte-2); }
.abo-liste { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; font-size: 14px; color: var(--texte-2); }
.abo-liste li::before { content: "✓"; color: #2fae6b; font-weight: 800; margin-right: 8px; }
.abo-plan .btn { margin-top: auto; }
.abo-secu { color: var(--texte-2); font-size: 13.5px; margin: 14px 0 24px; text-align: center; }
@media (max-width: 899px) { .abo-plans { grid-template-columns: 1fr; } .abo-total { text-align: left; } }

/* --- Ma boutique (vendeur) --- */
.pv-apercu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px; border-radius: 26px; background: var(--fond-em); color: #fff; margin-bottom: 18px; box-shadow: 0 24px 48px rgba(3, 42, 32, .25); }
.pv-apercu h2 { color: #fff !important; margin: 0 0 4px; font-family: var(--script); font-weight: 400; font-size: 30px; }
.pv-apercu p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }
.pv-id { flex: 1 1 240px; }
.pv-logo { width: 84px; height: 84px; border-radius: 24px; overflow: hidden; background: var(--rose); display: grid; place-items: center; flex: 0 0 auto; border: 3px solid rgba(255,255,255,.6); }
.pv-logo img { width: 100%; height: 100%; object-fit: cover; }
.pv-logo span { font: 800 28px var(--titre); color: var(--nuit); }
.pv-logo-sm { width: 64px; height: 64px; border-radius: 18px; border-color: var(--bord); }
.pv-logo-champ { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pv-fichier { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
.pv-fichier input { min-height: 0; border: 0; padding: 0; background: none; }
.profil-v .ch-carte .form, .abo .ch-carte .form { border: 0 !important; box-shadow: none !important; padding: 0 !important; background: transparent !important; }

/* --- Commandes reçues (vendeur) --- */
[data-page~="espace-vendeur"] .orders { display: grid; gap: 14px; }
[data-page~="espace-vendeur"] .order { border-radius: 22px !important; padding: 18px 20px !important; }
[data-page~="espace-vendeur"] .order header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--bord); }
[data-page~="espace-vendeur"] .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
[data-page~="espace-vendeur"] .chips a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--bord); text-decoration: none; color: var(--texte-2); font-weight: 600; font-size: 14px; }
[data-page~="espace-vendeur"] .chips a.on { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.status-nouvelle { background: rgba(242,182,50,.18); color: #a86f00; }
.status-acceptee, .status-en_cours { background: rgba(122,167,255,.18); color: #3a62c4; }
.status-livree { background: rgba(47,174,107,.14); color: #1d8a52; }
.status-annulee { background: rgba(217,83,79,.14); color: #c0392b; }

/* --- Formulaire d'annonce (vendeur) --- */
.form-annonce fieldset { border-radius: 22px !important; padding: 18px 20px !important; margin-bottom: 16px; box-shadow: var(--ombre-1); }
.form-annonce legend { font-family: var(--script); font-size: 22px; padding: 0 8px; }
.img-edit { gap: 10px; }
.img-edit div, .img-edit img, .preview img { border-radius: 14px !important; }

/* ---------- 19. Finitions graphiques ---------- */
.ch-legende li.muted { display: block; }
.adm .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 599px) { .adm .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   20. Catalogue & boutique dans l'univers émeraude
   ===================================================================== */
/* --- Bandeau du catalogue --- */
.ctl-hero { position: relative; overflow: hidden; background: var(--fond-em); color: #fff; padding: 46px 0 70px; }
.ctl-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 10% 30%, transparent 9px, rgba(255,255,255,.2) 10px, transparent 11px),
    radial-gradient(circle at 86% 24%, transparent 12px, rgba(255,255,255,.16) 13px, transparent 14px),
    radial-gradient(circle at 70% 82%, transparent 6px, rgba(255,255,255,.22) 7px, transparent 8px); }
.ctl-hero .wrap { position: relative; }
.ctl-kicker { color: var(--rose); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin: 0 0 6px; }
.ctl-hero h1 { font-family: var(--script) !important; font-weight: 400 !important; color: #fff !important; font-size: clamp(40px, 6vw, 72px) !important; line-height: 1 !important; margin: 0 0 8px; }
.ctl-compte { color: rgba(255,255,255,.8); margin: 0 0 22px; }
.ctl-compte strong { color: #fff; }
.ctl-recherche { display: flex; gap: 6px; max-width: 760px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ctl-recherche input, .ctl-recherche select { background: transparent !important; color: #fff !important; border: 0 !important; box-shadow: none !important; min-height: 46px; }
.ctl-recherche input { flex: 1 1 auto; min-width: 0; padding-left: 16px; }
.ctl-recherche input::placeholder { color: rgba(255,255,255,.65) !important; }
.ctl-recherche select { flex: 0 0 170px; border-left: 1px solid rgba(255,255,255,.18) !important; border-radius: 0 !important; }
.ctl-recherche select option { color: #16201b; }
.ctl-recherche .btn { background: var(--rose) !important; color: var(--nuit) !important; flex: 0 0 auto; padding: 0 22px; }
@media (max-width: 599px) {
  .ctl-recherche { flex-wrap: wrap; border-radius: 22px; }
  .ctl-recherche select { flex: 1 1 auto; border-left: 0 !important; }
  .ctl-recherche .btn { width: 100%; min-height: 44px; }
}

/* --- Barre de catégories (chevauche le bandeau) --- */
.ctl-cats { position: relative; z-index: 2; margin-top: -30px; }
.ctl-cats-in { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ctl-cats-in::-webkit-scrollbar { display: none; }
.ctl-cats a { flex: 0 0 auto; white-space: nowrap; padding: 11px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
  background: var(--surface); color: var(--texte-1); border: 1px solid var(--bord); box-shadow: var(--ombre-2); transition: background-color .15s ease, transform .15s ease; }
.ctl-cats a small { opacity: .55; margin-left: 2px; }
.ctl-cats a:hover { transform: translateY(-1px); }
.ctl-cats a.on { background: var(--rose); color: var(--nuit); border-color: var(--rose); }

/* --- Mise en page : filtres + résultats --- */
.ctl { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 22px; padding-bottom: 56px; }
.ctl-filtres { position: sticky; top: 88px; }
.ctl-details { background: var(--surface); border: 1px solid var(--bord); border-radius: 24px; box-shadow: var(--ombre-1); overflow: hidden; }
.ctl-details summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--script); font-size: 24px; display: flex; align-items: center; gap: 10px; }
.ctl-details summary::-webkit-details-marker { display: none; }
.ctl-details summary::after { content: "+"; margin-left: auto; font-family: inherit; font-weight: 700; font-size: 20px; color: var(--texte-2); }
.ctl-details[open] summary::after { content: "–"; }
.ctl-nb { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--rose); color: var(--nuit); font-family: inherit; font-weight: 800; font-size: 12px; }
.ctl-form { padding: 0 20px 20px; display: grid; gap: 14px; }
.ctl-groupe { border: 0 !important; padding: 0 !important; margin: 0; background: none !important; box-shadow: none !important; }
.ctl-groupe legend { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2); padding: 0; margin-bottom: 8px; font-family: inherit !important; }
.ctl-groupe select { width: 100%; }
.ctl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ctl-pills label { position: relative; cursor: pointer; }
.ctl-pills input { position: absolute; opacity: 0; pointer-events: none; }
.ctl-pills span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--bord-fort); font-size: 13.5px; font-weight: 600; color: var(--texte-2); background: var(--surface-2); }
.ctl-pills input:checked + span { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.ctl-pills input:focus-visible + span { box-shadow: var(--focus); }
.ctl-prix { display: flex; align-items: center; gap: 8px; }
.ctl-prix input { width: 100%; min-width: 0; }
.ctl-prix span { color: var(--texte-2); }
.ctl-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ctl-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ctl-glisse { flex: 0 0 auto; width: 40px; height: 24px; border-radius: 999px; background: var(--bord-fort); position: relative; transition: background-color .15s ease; }
.ctl-glisse::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s ease; }
.ctl-switch input:checked + .ctl-glisse { background: var(--em-1); }
.ctl-switch input:checked + .ctl-glisse::after { transform: translateX(16px); }
.ctl-switch input:focus-visible + .ctl-glisse { box-shadow: var(--focus); }
.ctl-actions { display: grid; gap: 8px; text-align: center; }
.ctl-effacer { font-size: 14px; color: var(--texte-2); }

.ctl-barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ctl-barre p { margin: 0; color: var(--texte-2); }
.ctl-barre p strong { color: var(--texte-1); }
.ctl-tri { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--bord); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ctl-tri::-webkit-scrollbar { display: none; }
.ctl-tri a { flex: 0 0 auto; padding: 7px 13px; border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--texte-2); white-space: nowrap; }
.ctl-tri a.on { background: var(--nuit); color: #fff; }
.ctl-tri a:not(.on):hover { background: var(--surface-2); color: var(--texte-1); }
.ctl-grille { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; gap: 16px !important; }
.ctl-vide { text-align: center; padding: 48px 20px; background: var(--surface); border: 1.5px dashed var(--bord-fort); border-radius: 26px; }
.ctl-vide span { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; font-size: 34px; background: var(--marque-doux); margin-bottom: 12px; }
.ctl-vide h2 { font-family: var(--script) !important; font-weight: 400 !important; font-size: 28px !important; margin: 0 0 6px; }
.ctl-vide p { color: var(--texte-2); margin: 0 0 16px; }
.ctl-pages { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.ctl-pages a { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 700;
  background: var(--surface); border: 1px solid var(--bord); color: var(--texte-1); }
.ctl-pages a.on { background: var(--nuit); color: #fff; border-color: var(--nuit); }
@media (max-width: 899px) {
  .ctl { grid-template-columns: 1fr; gap: 14px; }
  .ctl-filtres { position: static; }
}

/* --- Cartes d'annonces (catalogue, accueil, boutique) --- */
.card { border-radius: 22px !important; background: var(--surface) !important; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card .badge { border-radius: 999px; background: rgba(255,255,255,.94) !important; color: var(--nuit) !important; font-weight: 800; letter-spacing: .04em; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.card-body { padding: 14px 16px 16px !important; }
.card h3 { font-size: 1rem !important; line-height: 1.3; margin-bottom: 6px !important; }
.card .price { color: var(--em-1) !important; font-weight: 800; }
:root[data-theme="dark"] .card .price { color: var(--rose) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .price { color: var(--rose) !important; } }

/* --- Boutique : même univers émeraude pour toutes les catégories --- */
.bq { --c1: var(--em-3) !important; --c2: var(--em-1) !important; --acc: var(--rose) !important; }
.bq-cover { background:
    radial-gradient(circle at 12% 24%, transparent 9px, rgba(255,255,255,.2) 10px, transparent 11px),
    radial-gradient(circle at 84% 30%, transparent 12px, rgba(255,255,255,.16) 13px, transparent 14px),
    var(--fond-em) !important; padding-bottom: 140px !important; }
.bq-cover::after { display: none; }
.bq-kicker { background: rgba(255,255,255,.1) !important; border-color: rgba(255,255,255,.2) !important; }
.bq-tagline { color: #fff !important; text-shadow: 0 10px 30px rgba(0,0,0,.25); }
.bq-watermark { opacity: .12 !important; }
.bq-card { border-radius: 28px !important; }
.bq-id-txt h1 { font-family: var(--script) !important; font-weight: 400 !important; font-size: clamp(32px, 4.5vw, 48px) !important; letter-spacing: 0 !important; }
.bq-logo { border-radius: 28px !important; background: var(--rose) !important; }
.bq-logo span { color: var(--nuit) !important; }
.bq-badge { background: var(--rose) !important; color: var(--nuit) !important; border: 0 !important; }
.bq-stats li { background: var(--surface-2); border-radius: 18px; padding: 12px 8px; }
.bq-stats strong { color: var(--texte-1) !important; font-family: var(--script) !important; font-weight: 400 !important; font-size: 30px !important; }
.bq-btn-ghost { border-radius: 999px !important; }
.bq-about { border-left: 0 !important; border-radius: 24px !important; position: relative; overflow: hidden; }
.bq-about::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--em-1), var(--rose)); }
.bq-about h2, .bq-offres h2, .bq-avis h2 { font-family: var(--script) !important; font-weight: 400 !important; font-size: 32px !important; }
.bq-tabs button { border-radius: 999px !important; }
.bq-tabs button.on { background: var(--nuit) !important; border-color: var(--nuit) !important; color: #fff !important; }
.bq-avis-item { border-radius: 22px !important; }
.bq-confiance li { background: var(--fond-em) !important; color: #fff; border: 0 !important; border-radius: 22px !important; }
.bq-confiance li strong { color: #fff; }
.bq-confiance small { color: rgba(255,255,255,.75) !important; }
.bq-confiance li > span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: rgba(255,255,255,.12); }

/* 20b. Sélections bien visibles en mode sombre */
:root[data-theme="dark"] .ctl-pills input:checked + span, :root[data-theme="dark"] .ctl-tri a.on, :root[data-theme="dark"] .ctl-pages a.on, :root[data-theme="dark"] .bq-tabs button.on { background: var(--rose) !important; color: var(--nuit) !important; border-color: var(--rose) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ctl-pills input:checked + span, :root:not([data-theme="light"]) .ctl-tri a.on, :root:not([data-theme="light"]) .ctl-pages a.on, :root:not([data-theme="light"]) .bq-tabs button.on { background: var(--rose) !important; color: var(--nuit) !important; border-color: var(--rose) !important; } }


/* =====================================================================
   18. Correctifs du 2 nov. 2026
   - Mode sombre : anthracite au lieu de l'univers émeraude
   - Mobile : menu du tableau de bord (vendeur/admin) et de « Mon compte »
     sans onglets qui défilent horizontalement
   ===================================================================== */

/* ---------- 18.1 Mode sombre anthracite ---------- */
:root[data-theme="dark"] {
  --bg: #141618; --surface: #1c1f22; --surface-2: #25292d;
  --bord: rgba(255, 255, 255, .08); --bord-fort: rgba(255, 255, 255, .15);
  --em-1: #2a2e33; --em-2: #1f2226; --em-3: #151719;
  --fond-em: linear-gradient(160deg, #2a2e33 0%, #1d2023 60%, #17191c 100%);
  --entete: #101214; --pied: #0d0f10;
  --vert-clair: rgba(76, 195, 138, .10); --sable: #25292d;
}
:root[data-theme="dark"] body { background: var(--bg) !important; }
:root[data-theme="dark"] .site-header {
  background: rgba(16, 18, 20, .92) !important;
  border-bottom: 1px solid var(--bord);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
:root[data-theme="dark"] .site-header .search,
:root[data-theme="dark"] .site-header .search input { background: #23272b !important; }
:root[data-theme="dark"] .site-footer { background: var(--pied) !important; border-top: 1px solid var(--bord); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .cat,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .myitem,
:root[data-theme="dark"] .kpis > *,
:root[data-theme="dark"] .stat-cards li,
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .bq-card,
:root[data-theme="dark"] .plan,
:root[data-theme="dark"] .order,
:root[data-theme="dark"] .compte-nav {
  background: var(--surface) !important;
  border: 1px solid var(--bord) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .compte-head,
:root[data-theme="dark"] .app-side {
  background: var(--fond-em) !important;
  border: 1px solid var(--bord) !important;
  box-shadow: 0 1px 0 rgba(242, 182, 50, .18) inset, 0 18px 40px rgba(0, 0, 0, .35) !important;
}
:root[data-theme="dark"] .order-row,
:root[data-theme="dark"] .btn-ghost,
:root[data-theme="dark"] .tel-prefix { background: var(--surface-2) !important; }
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { background: #181a1d !important; border-color: var(--bord-fort) !important; }
:root[data-theme="dark"] .alert-succes {
  background: rgba(76, 195, 138, .10) !important;
  border-color: rgba(76, 195, 138, .28) !important;
}

/* ---------- 18.2 Menu du tableau de bord sur mobile ---------- */
.app-menu-btn { display: none; }
@media (max-width: 899px) {
  .app-side { padding: 8px !important; gap: 0 !important; overflow: visible !important; }
  .app-menu-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 50px; padding: 12px 14px;
    border: 0; border-radius: 16px; cursor: pointer;
    background: rgba(255, 255, 255, .10); color: #fff;
    font: inherit; font-weight: 700; font-size: 15px; text-align: left;
  }
  .app-menu-btn .ic { width: 19px; height: 19px; flex: 0 0 auto; }
  .app-menu-btn .app-menu-lbl { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .app-menu-btn .app-menu-hint { margin-left: auto; font-size: 12.5px; font-weight: 600; opacity: .75; letter-spacing: .02em; }
  .app-menu-btn .chev { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s ease; }
  .app-side.ouvert .app-menu-btn .chev { transform: rotate(180deg); }
  .app-menu-btn:focus-visible { outline: 2px solid var(--rose, #f9d3e6); outline-offset: 2px; }
  .app-side.js-menu:not(.ouvert) .app-nav { display: none !important; }
  .app-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important; overflow: visible !important; padding-top: 8px;
  }
  .app-nav a {
    flex: none !important; min-width: 0; border-radius: 14px !important;
    white-space: normal !important; overflow-wrap: normal !important; line-height: 1.25;
  }
  .app-nav a .ic { flex: 0 0 auto; }
  .app-nav:not(.app-nav-bas) a {
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px !important; min-height: 66px;
    padding: 10px 12px !important; font-size: 13.5px !important;
  }
  .app-nav.app-nav-bas {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-top: 6px !important; padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, .14) !important;
  }
  .app-nav.app-nav-bas a {
    flex-direction: column; justify-content: center; gap: 4px !important;
    min-height: 56px; padding: 8px 4px !important;
    text-align: center; font-size: 12.5px !important;
    background: transparent !important; border-color: transparent !important;
  }
  .mini-liste li { min-width: 0; max-width: 100%; }
  .mini-liste .ml-txt { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .mini-liste .ml-txt > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .compte-nav {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px;
    overflow: visible !important; padding: 6px !important;
  }
  .compte-nav a {
    display: flex; align-items: center; justify-content: center;
    min-height: 46px; text-align: center;
    background: var(--surface-2); border-radius: 12px !important;
  }
  .compte-nav-out { margin: 0 !important; border: 0 !important; color: #e26a5a !important; }
}
@media (prefers-reduced-motion: reduce) { .app-menu-btn .chev { transition: none; } }


/* =====================================================================
   19. Catalogue sur mobile et recherche de boutiques (2 nov. 2026)
   ===================================================================== */
@media (max-width: 899px) {
  /* Plus de débordement vers la droite */
  .ctl { grid-template-columns: minmax(0, 1fr) !important; }
  .ctl > * { min-width: 0; }
  /* Catégories : grille de 2 colonnes, les premières visibles, le reste à déplier */
  .ctl-cats-in {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important; overflow: visible !important;
  }
  .ctl-cats-in > a {
    display: flex !important; align-items: center; min-width: 0; min-height: 46px;
    padding: 8px 12px !important; font-size: 13.5px !important; line-height: 1.25;
    white-space: normal !important; border-radius: 16px !important;
  }
  .ctl-cats-in.replie > a:nth-child(n+6):not(.on) { display: none !important; }
  .ctl-cats-plus {
    grid-column: 1 / -1; justify-content: center;
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
    border: 1px dashed currentColor; background: transparent; color: inherit;
    font: inherit; font-weight: 700; font-size: 14px;
  }
  .ctl-cats-plus svg { width: 16px; height: 16px; transition: transform .2s ease; }
  .ctl-cats-in:not(.replie) .ctl-cats-plus svg { transform: rotate(180deg); }
  /* Tri : liste déroulante au lieu de pastilles qui défilent */
  .ctl-barre { flex-wrap: wrap; gap: 8px; align-items: center; }
  .ctl-tri.js-tri { display: none !important; }
  .ctl-tri-select { display: flex !important; }
}
.ctl-tri-select { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-left: auto; white-space: nowrap; }
.ctl-tri-select select {
  min-height: 42px; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--bord-fort); background: var(--surface); color: var(--texte-1);
  font: inherit; font-weight: 600;
}
/* Boutiques trouvées par la recherche */
.ctl-boutiques { margin: 0 0 20px; }
.ctl-boutiques-titre { font-size: 1.05rem; margin: 0 0 10px; }
.ctl-boutiques-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ctl-bq {
  display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 16px;
  color: var(--texte-1); text-decoration: none; transition: border-color .15s, transform .15s;
}
.ctl-bq:hover { border-color: var(--bord-fort); transform: translateY(-1px); }
.ctl-bq-logo {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden;
  border-radius: 12px; background: var(--rose, #f9d3e6); color: var(--nuit, #06120d); font-weight: 800; font-size: 18px;
}
.ctl-bq-logo img { width: 100%; height: 100%; object-fit: cover; }
.ctl-bq-txt { display: flex; flex-direction: column; min-width: 0; }
.ctl-bq-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctl-bq-txt small { color: var(--texte-2); }
.ctl-bq-go { margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--texte-2); }
@media (prefers-reduced-motion: reduce) { .ctl-cats-plus svg, .ctl-bq { transition: none; } }


/* =====================================================================
   20. Mode sombre : anthracite + émeraude (2 nov. 2026)
   Base anthracite pour la lecture, émeraude en accent sur les grands blocs
   ===================================================================== */
:root[data-theme="dark"] {
  --bg: #101513;
  --surface: #181e1b;
  --surface-2: #212925;
  --bord: rgba(150, 225, 190, .09);
  --bord-fort: rgba(150, 225, 190, .17);
  --em-1: #0a5f4c; --em-2: #08392d; --em-3: #0d1512;
  --fond-em: linear-gradient(150deg, #0c5141 0%, #0a3027 48%, #161c19 100%);
  --entete: #0c1210; --pied: #0b100e;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(10, 95, 76, .30), transparent 62%),
    radial-gradient(760px 520px at -12% 105%, rgba(10, 95, 76, .18), transparent 60%),
    var(--bg) !important;
  background-attachment: fixed !important;
}
:root[data-theme="dark"] .site-header {
  background: rgba(10, 20, 17, .9) !important;
  border-bottom: 1px solid rgba(76, 195, 138, .16);
}
:root[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, var(--pied) 0%, #0a2a22 100%) !important;
  border-top: 1px solid rgba(76, 195, 138, .14);
}
:root[data-theme="dark"] .hero,
:root[data-theme="dark"] .compte-head,
:root[data-theme="dark"] .app-side {
  background: var(--fond-em) !important;
  border: 1px solid rgba(76, 195, 138, .18) !important;
  box-shadow: 0 1px 0 rgba(242, 182, 50, .16) inset, 0 18px 44px rgba(0, 0, 0, .4) !important;
}
:root[data-theme="dark"] .card:hover,
:root[data-theme="dark"] .ctl-bq:hover,
:root[data-theme="dark"] .myitem:hover { border-color: rgba(76, 195, 138, .32) !important; }
:root[data-theme="dark"] .kpis > *,
:root[data-theme="dark"] .stat-cards li {
  background: linear-gradient(160deg, rgba(10, 95, 76, .14), transparent 70%), var(--surface) !important;
}


/* Le bouton « + autres catégories » ne sert que sur mobile */
@media (min-width: 900px) { .ctl-cats-plus { display: none !important; } }


/* =====================================================================
   21. Mode sombre : listes déroulantes et survol des catégories lisibles (2 nov. 2026)
   ===================================================================== */
:root[data-theme="dark"] select option,
:root[data-theme="dark"] select optgroup { background-color: #181e1b !important; color: #e9edea !important; }
:root[data-theme="dark"] select option:checked { background-color: #0a5f4c !important; color: #fff !important; }
:root[data-theme="dark"] .cat:hover { background: var(--rose) !important; border-color: var(--rose) !important; }
