/* ===== JangaMarket — Catégories & Produits populaires ===== */
.jm-cat-hero, .jm-pop-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-radius: 18px; padding: 22px 26px; color: #fff; margin-bottom: 22px;
}
.jm-cat-hero { background: linear-gradient(120deg, #146c43, #198754 60%, #2eb872); }
.jm-pop-hero { background: linear-gradient(120deg, #b45309, #ea580c 55%, #f97316); }
.jm-cat-hero h2, .jm-pop-hero h2 { font-weight: 800; }

/* Grille catégories */
.jm-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.jm-cat-card { background: #fff; border-radius: 18px; padding: 22px; text-align: center; box-shadow: 0 2px 14px rgba(16,40,30,0.06); border: 1px solid #eef2f0; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; align-items: center; }
.jm-cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(16,40,30,0.14); }
.jm-cat-icon { width: 66px; height: 66px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.8rem; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(0,0,0,0.15); }
.jm-cat-name { font-weight: 800; font-size: 1.05rem; color: #1c2a24; }
.jm-cat-stats { font-size: 0.82rem; color: #64748b; margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.jm-cat-stats strong { color: #198754; }
.jm-cat-dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }
.jm-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.jm-cat-chip { font-size: 0.72rem; background: #f0f7f2; color: #198754; padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.jm-cat-chip:hover { background: #198754; color: #fff; }
.jm-cat-btn { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 8px 16px; border-radius: 999px; }
.jm-cat-btn:hover { color: #fff; filter: brightness(1.06); }

/* Grille produits populaires */
.jm-pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.jm-pop-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 14px rgba(16,40,30,0.06); border: 1px solid #eef2f0; transition: transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column; }
.jm-pop-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,40,30,0.14); }
.jm-pop-media { position: relative; aspect-ratio: 1/1; background: #f0f2f5; }
.jm-pop-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jm-pop-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 2.4rem; }
.jm-pop-rank { position: absolute; top: 10px; left: 10px; background: #1c2a24; color: #fff; font-weight: 800; font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; z-index: 2; }
.jm-pop-promo { position: absolute; top: 10px; right: 10px; background: #dc2626; color: #fff; font-weight: 800; font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; z-index: 2; }
.jm-pop-fav { position: absolute; bottom: 10px; right: 10px; z-index: 2; margin: 0; }
.jm-pop-fav button { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,0.92); color: #dc2626; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.15); }
.jm-pop-fav button:hover { background: #dc2626; color: #fff; }
.jm-pop-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.jm-pop-name { font-weight: 700; font-size: 0.92rem; color: #1c2a24; text-decoration: none; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.jm-pop-name:hover { color: #198754; }
.jm-pop-shop { font-size: 0.76rem; color: #64748b; text-decoration: none; }
.jm-pop-shop:hover { color: #198754; }
.jm-pop-rating { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; }
.jm-stars { color: #f59e0b; }
.jm-pop-rnum { color: #64748b; font-weight: 600; }
.jm-pop-sales { margin-left: auto; background: #fff4e5; color: #b45309; font-weight: 700; padding: 1px 7px; border-radius: 999px; font-size: 0.7rem; }
.jm-pop-price { margin: 2px 0 6px; }
.jm-pop-price .now { font-weight: 800; color: #198754; font-size: 1.05rem; }
.jm-pop-price .old { color: #98a2b3; font-size: 0.8rem; margin-left: 6px; }
.jm-pop-actions { display: flex; gap: 6px; }
.jm-pop-actions form { margin: 0; }
.jm-pop-cart { width: 100%; border: none; background: #198754; color: #fff; font-weight: 700; font-size: 0.82rem; padding: 8px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.jm-pop-cart:hover { background: #146c43; }
.jm-pop-buy, .jm-pop-contact { width: 40px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.jm-pop-buy { background: #f59e0b; color: #fff; }
.jm-pop-buy:hover { background: #d97706; color: #fff; }
.jm-pop-contact { background: #eef2f0; color: #198754; }
.jm-pop-contact:hover { background: #198754; color: #fff; }

/* Dark mode */
:root[data-theme="dark"] .jm-cat-card, :root[data-theme="dark"] .jm-pop-card { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-cat-name, :root[data-theme="dark"] .jm-pop-name { color: #e4e6eb; }
:root[data-theme="dark"] .jm-pop-media { background: #3a3b3c; }
:root[data-theme="dark"] .jm-cat-chip { background: #2d3b34; }
:root[data-theme="dark"] .jm-pop-contact { background: #3a3b3c; }

@media (max-width: 560px) {
    .jm-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jm-pop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .jm-cat-card, .jm-pop-body { padding: 14px; }
}

/* ===== Boutiques (Découvrir + Suivies) ===== */
.jm-shops-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-radius: 18px; padding: 22px 26px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(120deg, #0f766e, #14b8a6 55%, #2dd4bf);
}
.jm-shops-hero h2 { font-weight: 800; }

.jm-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.jm-shop-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 14px rgba(16,40,30,0.06); border: 1px solid #eef2f0; transition: transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column; position: relative; }
.jm-shop-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(16,40,30,0.14); }
.jm-shop-banner { height: 92px; background: linear-gradient(120deg, #146c43, #2eb872); background-size: cover; background-position: center; position: relative; }
.jm-shop-featured { position: absolute; top: 10px; right: 10px; background: #f59e0b; color: #fff; font-weight: 700; font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; }
.jm-shop-logo { width: 66px; height: 66px; border-radius: 18px; background: #fff; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.12); margin: -34px 0 0 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #cbd5e1; font-size: 1.6rem; }
.jm-shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.jm-shop-body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.jm-shop-name { font-weight: 800; font-size: 1.05rem; color: #1c2a24; }
.jm-shop-city { font-size: 0.8rem; color: #64748b; }
.jm-shop-meta { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #64748b; }
.jm-shop-stats { display: flex; gap: 14px; font-size: 0.78rem; color: #475569; margin: 4px 0; }
.jm-shop-stats i { color: #198754; }
.jm-shop-desc { font-size: 0.82rem; color: #64748b; margin: 2px 0 8px; line-height: 1.35; }
.jm-shop-actions { display: flex; gap: 8px; margin-top: auto; }
.jm-shop-visit { flex: 1; text-align: center; background: #198754; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.85rem; padding: 8px; border-radius: 10px; }
.jm-shop-visit:hover { background: #146c43; color: #fff; }
.jm-shop-follow { width: 40px; flex-shrink: 0; border: none; border-radius: 10px; background: #eef2f0; color: #198754; cursor: pointer; }
.jm-shop-follow:hover { background: #198754; color: #fff; }
.jm-shop-follow.jm-unfollow { background: #dcfce7; color: #16a34a; }
.jm-shop-follow.jm-unfollow:hover { background: #dc2626; color: #fff; }

.jm-follow-title { font-weight: 800; color: #1c2a24; margin: 26px 0 14px; display: flex; align-items: center; gap: 8px; }
.jm-follow-empty { background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 20px; text-align: center; color: #64748b; }
.jm-follow-empty i { font-size: 1.4rem; display: block; margin-bottom: 6px; color: #cbd5e1; }

.jm-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.jm-person-card { background: #fff; border-radius: 14px; padding: 18px 14px; text-align: center; box-shadow: 0 2px 12px rgba(16,40,30,0.05); border: 1px solid #eef2f0; transition: transform 0.15s; }
.jm-person-card:hover { transform: translateY(-3px); }
.jm-person-avatar { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.jm-person-name { font-weight: 700; font-size: 0.88rem; color: #1c2a24; }

/* Dark mode */
:root[data-theme="dark"] .jm-shop-card, :root[data-theme="dark"] .jm-person-card, :root[data-theme="dark"] .jm-follow-empty { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-shop-name, :root[data-theme="dark"] .jm-person-name, :root[data-theme="dark"] .jm-follow-title { color: #e4e6eb; }
:root[data-theme="dark"] .jm-shop-logo { background: #242526; border-color: #242526; }
:root[data-theme="dark"] .jm-shop-follow { background: #3a3b3c; }

@media (max-width: 560px) {
    .jm-shop-grid { grid-template-columns: 1fr; }
    .jm-people-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Nouveautés ===== */
.jm-new-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-radius: 18px; padding: 24px 28px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(120deg, #7c3aed, #a855f7 55%, #ec4899);
}
.jm-new-hero h2 { font-weight: 800; }
.jm-new-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.22); padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.jm-new-hero-icon { font-size: 3rem; opacity: 0.85; }
.jm-new-tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: #7c3aed; color: #fff; font-weight: 800; font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 560px) { .jm-new-hero-icon { display: none; } }

/* ===== Liste produits (index) ===== */
.jm-prod-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
    border-radius: 18px; padding: 22px 26px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(120deg, #146c43, #198754 60%, #2eb872);
}
.jm-prod-hero h2 { font-weight: 800; }
.jm-prod-search { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 4px 4px 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.12); flex: 1; min-width: 260px; max-width: 460px; }
.jm-prod-search i { color: #94a3b8; font-size: 1rem; }
.jm-prod-search input { border: none; outline: none; flex: 1; padding: 8px 12px; font-size: 0.9rem; background: transparent; color: #1c2a24; }
.jm-prod-search button { border: none; background: #146c43; color: #fff; font-weight: 700; font-size: 0.85rem; padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.jm-prod-search button:hover { background: #0f5132; }

:root[data-theme="dark"] .jm-prod-search { background: #3a3b3c; }
:root[data-theme="dark"] .jm-prod-search input { color: #e4e6eb; }

@media (max-width: 560px) { .jm-prod-search { max-width: 100%; } }

/* ===== Profil client ===== */
.jm-acc-cover { border-radius: 20px; padding: 28px 32px; margin-bottom: 18px; color: #fff;
    background: linear-gradient(120deg, #146c43, #198754 55%, #2eb872); box-shadow: 0 8px 24px rgba(20,108,67,0.25);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jm-acc-cover-inner { display: flex; align-items: center; gap: 20px; }
.jm-acc-avatar-wrap { width: 88px; height: 88px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.85); overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.jm-acc-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.jm-acc-id h2 { font-weight: 800; margin: 0 0 4px; }
.jm-acc-id p { margin: 0; opacity: 0.92; font-size: 0.86rem; }
.jm-acc-since { margin-top: 4px !important; opacity: 0.8 !important; }
.jm-acc-cover-stats { display: flex; gap: 26px; }
.jm-acc-cover-stats div { text-align: center; }
.jm-acc-cover-stats strong { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.jm-acc-cover-stats span { font-size: 0.76rem; opacity: 0.85; }

.jm-acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }

/* Onglets */
.jm-acc-tabs { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 2px 12px rgba(16,40,30,0.06); border: 1px solid #eef2f0; position: sticky; top: 84px; }
.jm-acc-tab { display: flex; align-items: center; gap: 11px; width: 100%; border: none; background: transparent; text-align: left; padding: 11px 14px; border-radius: 11px; font-size: 0.88rem; font-weight: 600; color: #475569; cursor: pointer; transition: all 0.15s; }
.jm-acc-tab i { font-size: 1.05rem; width: 20px; text-align: center; }
.jm-acc-tab:hover { background: #f0f7f2; color: #198754; }
.jm-acc-tab.active { background: #198754; color: #fff; box-shadow: 0 4px 12px rgba(25,135,84,0.3); }

/* Panneaux */
.jm-acc-panels { min-width: 0; }
.jm-acc-panel { display: none; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(16,40,30,0.06); border: 1px solid #eef2f0; animation: jmFade 0.25s ease; }
.jm-acc-panel.active { display: block; }
@keyframes jmFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.jm-acc-card-title { font-weight: 800; color: #1c2a24; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.jm-acc-link { font-size: 0.8rem; font-weight: 700; color: #198754; text-decoration: none; }
.jm-acc-link:hover { color: #146c43; }
.jm-sub-h { font-weight: 700; color: #334155; font-size: 0.9rem; margin: 4px 0 12px; }
.jm-opt { font-weight: 400; color: #94a3b8; font-size: 0.78rem; }

/* Champs */
.jm-field { margin-bottom: 14px; }
.jm-field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.jm-field-row .jm-field { flex: 1; min-width: 160px; }
.jm-field label { display: block; font-size: 0.78rem; font-weight: 700; color: #475569; margin-bottom: 5px; }
.jm-field input, .jm-field textarea, .jm-field select { width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; color: #1c2a24; background: #f8fafc; transition: border 0.15s, box-shadow 0.15s; }
.jm-field input:focus, .jm-field textarea:focus, .jm-field select:focus { outline: none; border-color: #198754; background: #fff; box-shadow: 0 0 0 3px rgba(25,135,84,0.12); }
.jm-field input:disabled { background: #eef2f0; color: #94a3b8; cursor: not-allowed; }
.jm-lock-hint { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; display: block; }
.jm-acc-save { border: none; background: #198754; color: #fff; font-weight: 700; font-size: 0.88rem; padding: 11px 20px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; width: 100%; }
.jm-acc-save:hover { background: #146c43; }
.jm-acc-subcard { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #e2e8f0; }
.jm-acc-subcard h6 { font-weight: 800; color: #1c2a24; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }

/* Avatar edit */
.jm-avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed #e2e8f0; }
.jm-avatar-edit img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid #eef2f0; }
.jm-photo-btn { display: inline-flex; align-items: center; gap: 6px; background: #e9f7ef; color: #198754; font-weight: 700; font-size: 0.82rem; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.jm-photo-btn:hover { background: #198754; color: #fff; }
.jm-photo-hint { font-size: 0.72rem; color: #94a3b8; margin: 6px 0 0; }

/* Adresses */
.jm-addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.jm-addr-card { position: relative; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; background: #f8fafc; }
.jm-addr-card.is-default { border-color: #198754; background: #f0f7f2; }
.jm-addr-tag { position: absolute; top: 12px; right: 12px; background: #198754; color: #fff; font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.jm-addr-label { font-weight: 700; color: #1c2a24; margin-bottom: 6px; }
.jm-addr-body { font-size: 0.84rem; color: #64748b; line-height: 1.45; margin-bottom: 12px; }
.jm-addr-del { border: none; background: #fee2e2; color: #dc2626; font-size: 0.76rem; font-weight: 600; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
.jm-addr-del:hover { background: #dc2626; color: #fff; }

/* Sécurité */
.jm-sec-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.jm-sec-row { display: flex; align-items: center; gap: 12px; background: #f8fafc; border: 1px solid #eef2f0; border-radius: 12px; padding: 14px; }
.jm-sec-row > i { font-size: 1.3rem; color: #198754; }
.jm-sec-row strong { display: block; font-size: 0.82rem; color: #1c2a24; }
.jm-sec-row span { font-size: 0.82rem; color: #64748b; }
.jm-verified { color: #16a34a; font-style: normal; font-weight: 700; }
.jm-unverified { color: #d97706; font-style: normal; }

/* Commandes */
.jm-order-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.jm-of-btn { border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.jm-of-btn:hover { border-color: #198754; color: #198754; }
.jm-of-btn.active { background: #198754; border-color: #198754; color: #fff; }
.jm-order-list { display: flex; flex-direction: column; gap: 8px; }
.jm-order-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; text-decoration: none; border: 1px solid #eef2f0; transition: background 0.15s, transform 0.15s; }
.jm-order-item:hover { background: #f0f7f2; transform: translateX(3px); }
.jm-order-ic { width: 42px; height: 42px; border-radius: 10px; background: #e9f7ef; color: #198754; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.jm-order-main { min-width: 0; flex: 1; }
.jm-order-num { font-weight: 700; color: #1c2a24; font-size: 0.88rem; }
.jm-order-date { font-size: 0.76rem; color: #94a3b8; margin-top: 2px; }
.jm-order-right { text-align: right; flex-shrink: 0; }
.jm-order-total { font-weight: 800; color: #198754; font-size: 0.92rem; }
.jm-acc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-top: 3px; }

/* Listes mini (panier / favoris) */
.jm-mini-list { display: flex; flex-direction: column; gap: 8px; }
.jm-mini-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f0; }
.jm-mini-thumb { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: #eef2f0; display: flex; align-items: center; justify-content: center; color: #cbd5e1; flex-shrink: 0; }
.jm-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jm-mini-main { min-width: 0; flex: 1; }
.jm-mini-name { font-weight: 700; color: #1c2a24; font-size: 0.86rem; text-decoration: none; display: block; }
.jm-mini-name:hover { color: #198754; }
.jm-mini-sub { font-size: 0.76rem; color: #94a3b8; margin-top: 2px; }
.jm-mini-price { font-weight: 800; color: #198754; font-size: 0.88rem; flex-shrink: 0; }
.jm-cart-total { text-align: right; font-size: 0.95rem; color: #475569; margin: 12px 0; }
.jm-cart-total strong { color: #198754; font-size: 1.15rem; }

/* Chips boutiques */
.jm-chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.jm-shop-chip { display: inline-flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #eef2f0; border-radius: 999px; padding: 6px 14px 6px 6px; text-decoration: none; color: #1c2a24; font-weight: 600; font-size: 0.84rem; }
.jm-shop-chip:hover { background: #f0f7f2; color: #198754; }
.jm-shop-chip img, .jm-chip-ic { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.jm-chip-ic { display: flex; align-items: center; justify-content: center; background: #e9f7ef; color: #198754; }

/* Paiement */
.jm-pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.jm-pay-card { display: flex; align-items: center; gap: 12px; border: 1px solid #eef2f0; border-radius: 14px; padding: 16px; background: #f8fafc; }
.jm-pay-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.jm-pay-card strong { display: block; font-size: 0.9rem; color: #1c2a24; }
.jm-pay-card span { font-size: 0.76rem; color: #94a3b8; }

/* Avis */
.jm-review-list { display: flex; flex-direction: column; gap: 12px; }
.jm-review-card { border: 1px solid #eef2f0; border-radius: 14px; padding: 16px; background: #f8fafc; }
.jm-review-prod { font-weight: 700; color: #1c2a24; text-decoration: none; }
.jm-review-prod:hover { color: #198754; }
.jm-review-date { font-size: 0.74rem; color: #94a3b8; }
.jm-review-txt { font-size: 0.86rem; color: #475569; margin: 0; font-style: italic; }

/* Notifications */
.jm-notif-list { display: flex; flex-direction: column; gap: 6px; }
.jm-notif-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f0; }
.jm-notif-item.unread { background: #f0f7f2; border-color: #cdeddb; }
.jm-notif-ic { width: 38px; height: 38px; border-radius: 10px; background: #e9f7ef; color: #198754; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jm-notif-main { min-width: 0; flex: 1; }
.jm-notif-type { font-weight: 700; color: #1c2a24; font-size: 0.84rem; }
.jm-notif-msg { font-size: 0.78rem; color: #64748b; }
.jm-notif-time { font-size: 0.72rem; color: #94a3b8; flex-shrink: 0; }

/* Social */
.jm-social-list { display: flex; flex-direction: column; gap: 10px; }
.jm-social-item { border: 1px solid #eef2f0; border-radius: 12px; padding: 14px; background: #f8fafc; }
.jm-social-txt { font-size: 0.86rem; color: #1c2a24; margin: 0 0 8px; }
.jm-social-meta { display: flex; align-items: center; gap: 14px; font-size: 0.76rem; color: #94a3b8; }

/* Empty */
.jm-acc-empty { text-align: center; color: #94a3b8; padding: 26px 10px; }
.jm-acc-empty i { font-size: 2rem; display: block; margin-bottom: 8px; color: #cbd5e1; }

/* Dark mode */
:root[data-theme="dark"] .jm-acc-tabs, :root[data-theme="dark"] .jm-acc-panel { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-acc-tab { color: #b0b3b8; }
:root[data-theme="dark"] .jm-acc-tab:hover { background: #313233; }
:root[data-theme="dark"] .jm-acc-card-title, :root[data-theme="dark"] .jm-order-num, :root[data-theme="dark"] .jm-mini-name,
:root[data-theme="dark"] .jm-addr-label, :root[data-theme="dark"] .jm-review-prod, :root[data-theme="dark"] .jm-notif-type,
:root[data-theme="dark"] .jm-social-txt, :root[data-theme="dark"] .jm-pay-card strong, :root[data-theme="dark"] .jm-sub-h { color: #e4e6eb; }
:root[data-theme="dark"] .jm-field input, :root[data-theme="dark"] .jm-field textarea, :root[data-theme="dark"] .jm-field select { background: #3a3b3c; border-color: #4a4b4c; color: #e4e6eb; }
:root[data-theme="dark"] .jm-order-item, :root[data-theme="dark"] .jm-mini-item, :root[data-theme="dark"] .jm-addr-card,
:root[data-theme="dark"] .jm-sec-row, :root[data-theme="dark"] .jm-pay-card, :root[data-theme="dark"] .jm-review-card,
:root[data-theme="dark"] .jm-notif-item, :root[data-theme="dark"] .jm-social-item, :root[data-theme="dark"] .jm-shop-chip { background: #313233; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-of-btn { background: #313233; border-color: #4a4b4c; color: #b0b3b8; }

@media (max-width: 820px) {
    .jm-acc-layout { grid-template-columns: 1fr; }
    .jm-acc-tabs { flex-direction: row; overflow-x: auto; position: static; }
    .jm-acc-tab { flex-shrink: 0; }
    .jm-acc-tab span { display: none; }
    .jm-acc-tab i { font-size: 1.2rem; }
    .jm-acc-tab.active span { display: inline; }
    .jm-acc-cover { flex-direction: column; align-items: flex-start; }
}

/* ===== Mes factures ===== */
.jm-inv-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-radius: 18px; padding: 22px 26px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(120deg, #0f766e, #14b8a6 55%, #2dd4bf); }
.jm-inv-hero h2 { font-weight: 800; }
.jm-inv-hero-stat { text-align: center; background: rgba(255,255,255,0.2); border-radius: 14px; padding: 10px 20px; }
.jm-inv-hero-stat span { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.jm-inv-hero-stat small { font-size: 0.72rem; opacity: 0.9; }

.jm-inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.jm-inv-card { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 2px 12px rgba(16,40,30,0.06); border: 1px solid #eef2f0; transition: transform 0.15s, box-shadow 0.15s; }
.jm-inv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,40,30,0.12); }
.jm-inv-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.jm-inv-icon { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.jm-inv-num { min-width: 0; flex: 1; }
.jm-inv-no { font-weight: 800; color: #0f766e; font-size: 0.95rem; }
.jm-inv-shop { font-size: 0.78rem; color: #94a3b8; margin-top: 2px; }
.jm-inv-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.jm-inv-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: #64748b; margin-bottom: 10px; }
.jm-inv-amount { font-size: 1.5rem; font-weight: 800; color: #1c2a24; margin-bottom: 14px; }
.jm-inv-amount small { font-size: 0.9rem; color: #64748b; font-weight: 600; }
.jm-inv-actions { display: flex; gap: 8px; }
.jm-inv-view { flex: 1; text-align: center; background: #14b8a6; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.82rem; padding: 9px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.jm-inv-view:hover { background: #0f766e; color: #fff; }
.jm-inv-pdf { flex-shrink: 0; background: #fee2e2; color: #dc2626; text-decoration: none; font-weight: 700; font-size: 0.82rem; padding: 9px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 5px; }
.jm-inv-pdf:hover { background: #dc2626; color: #fff; }

:root[data-theme="dark"] .jm-inv-card { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-inv-amount { color: #e4e6eb; }
:root[data-theme="dark"] .jm-inv-pdf { background: #3a2a2a; }

@media (max-width: 560px) { .jm-inv-grid { grid-template-columns: 1fr; } }

/* ===== Favoris / Enregistrements ===== */
.jm-fav-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-radius: 18px; padding: 22px 26px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(120deg, #be123c, #e11d48 55%, #fb7185); }
.jm-fav-hero h2 { font-weight: 800; }


/* ===== Demandes / besoins du client ===== */
.jm-req-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    border-radius: 18px; padding: 22px 26px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(120deg, #1d4ed8, #2563eb 60%, #60a5fa);
}
.jm-req-hero h2 { font-weight: 800; }

.jm-req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.jm-req-card { background: #fff; border: 1px solid #eef2f0; border-radius: 16px; padding: 16px; box-shadow: 0 2px 12px rgba(16,40,30,.05); display: flex; flex-direction: column; }
.jm-req-card.is-closed { opacity: .65; }
.jm-req-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.jm-req-urg { font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.jm-req-closed { font-size: .68rem; font-weight: 700; background: #f1f5f9; color: #64748b; padding: 2px 8px; border-radius: 999px; }
.jm-req-date { margin-left: auto; font-size: .72rem; color: #94a3b8; }
.jm-req-title { font-weight: 800; color: #1c2a24; margin: 0 0 5px; font-size: .98rem; }
.jm-req-desc { font-size: .82rem; color: #64748b; margin: 0 0 10px; line-height: 1.4; }
.jm-req-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.jm-req-meta span { font-size: .72rem; background: #eff6ff; color: #1d4ed8; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.jm-req-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; }
.jm-req-count { font-size: .76rem; color: #64748b; font-weight: 600; }
.jm-req-btn { border: none; background: #f1f5f9; color: #475569; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.jm-req-btn:hover { background: #2563eb; color: #fff; }
.jm-req-del:hover { background: #dc2626; }

.jm-resp-list { display: flex; flex-direction: column; gap: 12px; }
.jm-resp-card { background: #fff; border: 1px solid #eef2f0; border-left: 4px solid #16a34a; border-radius: 14px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(16,40,30,.05); }
.jm-resp-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jm-resp-shop { font-size: .74rem; background: #f0f7f2; color: #198754; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.jm-resp-date { margin-left: auto; font-size: .72rem; color: #94a3b8; }
.jm-resp-for { font-size: .76rem; color: #94a3b8; margin-top: 2px; }
.jm-resp-msg { font-size: .86rem; color: #1c2a24; margin: 8px 0; }
.jm-resp-product { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid #eef2f0; border-radius: 12px; padding: 8px 12px; text-decoration: none; color: #1c2a24; }
.jm-resp-product:hover { background: #eff6ff; }
.jm-resp-product img, .jm-resp-noimg { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: #eef2f0; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.jm-resp-product strong { display: block; font-size: .85rem; }
.jm-resp-product em { font-style: normal; font-size: .8rem; color: #198754; font-weight: 700; }

:root[data-theme="dark"] .jm-req-card, :root[data-theme="dark"] .jm-resp-card { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-req-title, :root[data-theme="dark"] .jm-resp-msg { color: #e4e6eb; }

/* ============================================================
   PUBLICATIONS CLIENT — cartes de besoins (fil style reseau social)
   ============================================================ */
.jm-pub-list { display: flex; flex-direction: column; gap: 16px; }
.jm-pub-card {
    background: #fff; border: 1px solid #eef2f0; border-radius: 16px; padding: 18px;
    box-shadow: 0 2px 12px rgba(16,40,30,.05); transition: box-shadow .18s;
}
.jm-pub-card:hover { box-shadow: 0 10px 26px rgba(16,40,30,.10); }

.jm-pub-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.jm-pub-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.jm-pub-who { min-width: 0; flex: 1; }
.jm-pub-name { display: block; font-weight: 700; color: #1c2a24; font-size: .9rem; }
.jm-pub-date { display: block; font-size: .74rem; color: #94a3b8; }
.jm-pub-status { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

.jm-pub-type {
    display: inline-block; font-size: .76rem; font-weight: 800;
    padding: 3px 12px; border-radius: 999px; margin-bottom: 8px;
}
.jm-pub-title { font-size: 1.05rem; font-weight: 800; color: #1c2a24; margin: 0 0 6px; }
.jm-pub-desc { font-size: .88rem; color: #475569; line-height: 1.5; margin: 0 0 12px; }

.jm-pub-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.jm-pub-meta span {
    font-size: .74rem; background: #f1f5f9; color: #475569;
    padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.jm-pub-budget { background: #dcfce7 !important; color: #15803d !important; }

.jm-pub-foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.jm-pub-foot form { margin: 0; }
.jm-pub-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; font-size: .8rem; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: all .15s;
}
.jm-pub-btn:hover { background: #f0f7f2; color: #198754; border-color: #198754; }
.jm-pub-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.jm-pub-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.jm-pub-count {
    background: rgba(255,255,255,.3); font-size: .68rem;
    padding: 1px 7px; border-radius: 999px; margin-left: 2px;
}
.jm-pub-del:hover { background: #fee2e2; color: #dc2626; border-color: #dc2626; }

/* Choix du type de publication (radios stylees) */
.jm-type-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.jm-type-opt { flex: 1; min-width: 120px; cursor: pointer; }
.jm-type-opt input { position: absolute; opacity: 0; }
.jm-type-opt span {
    display: block; text-align: center; padding: 10px 8px;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: .82rem; font-weight: 700; color: #64748b; transition: all .15s;
}
.jm-type-opt:hover span { border-color: #93c5fd; color: #2563eb; }
.jm-type-opt input:checked + span {
    border-color: #2563eb; background: #eff6ff; color: #1d4ed8;
    box-shadow: 0 3px 10px rgba(37,99,235,.18);
}

/* Reponses : accept / refus */
.jm-resp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.jm-resp-card.is-accepted { border-left-color: #16a34a; background: #f7fdf9; }
.jm-resp-card.is-refused { border-left-color: #cbd5e1; opacity: .7; }
.jm-resp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.jm-resp-actions form { margin: 0; }
.jm-resp-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 10px; border: 1px solid #e2e8f0;
    background: #fff; color: #475569; font-size: .8rem; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: all .15s;
}
.jm-resp-btn:hover { background: #f1f5f9; }
.jm-resp-btn.is-accept { background: #16a34a; border-color: #16a34a; color: #fff; }
.jm-resp-btn.is-accept:hover { background: #15803d; }
.jm-resp-btn.is-refuse { background: #fff; border-color: #fecaca; color: #dc2626; }
.jm-resp-btn.is-refuse:hover { background: #dc2626; color: #fff; }
.jm-resp-tag {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px;
    background: #f1f5f9; color: #94a3b8;
}
.jm-resp-tag.is-ok { background: #dcfce7; color: #15803d; }
.jm-resp-tag.is-no { background: #fee2e2; color: #b91c1c; }

:root[data-theme="dark"] .jm-pub-card { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-pub-title, :root[data-theme="dark"] .jm-pub-name { color: #e4e6eb; }
:root[data-theme="dark"] .jm-pub-btn { background: #313233; border-color: #3a3b3c; color: #b0b3b8; }
:root[data-theme="dark"] .jm-type-opt span { border-color: #3a3b3c; background: #313233; }

/* Badge « nouvelles publications » sur l'Accueil de la barre laterale */
.fb-nav-item { position: relative; }
.fb-nav-badge {
    margin-left: auto;
    background: #dc3545; color: #fff;
    font-size: .68rem; font-weight: 700; line-height: 1;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Menu « ... » d'une publication ===== */
.jm-post-menu {
    min-width: 320px; padding: 8px; border: 0; border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .22);
}
.jm-post-menu form { margin: 0; }
.jm-post-menu .dropdown-divider { margin: 6px 4px; }
.jm-menu-item {
    display: flex; align-items: flex-start; gap: 12px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: 8px;
    text-align: left; background: none; white-space: normal;
}
.jm-menu-item:hover, .jm-menu-item:focus { background: #f1f5f9; }
.jm-menu-item > i { font-size: 1.05rem; color: #475569; line-height: 1.35; flex-shrink: 0; }
.jm-menu-item > span {
    display: flex; flex-direction: column; gap: 1px;
    font-size: .87rem; font-weight: 600; color: #1e293b;
}
.jm-menu-item > span small { font-size: .75rem; font-weight: 400; color: #94a3b8; }
.jm-menu-item.is-danger > i, .jm-menu-item.is-danger > span { color: #dc2626; }
.jm-menu-item.is-danger:hover { background: #fef2f2; }

:root[data-theme="dark"] .jm-post-menu { background: #242526; }
:root[data-theme="dark"] .jm-menu-item:hover { background: #3a3b3c; }
:root[data-theme="dark"] .jm-menu-item > i,
:root[data-theme="dark"] .jm-menu-item > span { color: #e4e6eb; }
:root[data-theme="dark"] .jm-menu-item > span small { color: #b0b3b8; }

@media (max-width: 575.98px) {
    .jm-post-menu { min-width: 260px; }
}

/* ===== Publication d'un client dans le fil ===== */
.jm-demande {
    position: relative;
    margin: 10px 0 12px;
    padding: 14px 16px 14px 18px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--d-bg, #eff6ff) 60%, #fff), #fff);
}
.jm-demande::before {
    content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--d-col, #2563eb);
}
.jm-demande-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.jm-demande-type {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 999px;
    font-size: .74rem; font-weight: 800; letter-spacing: .01em;
    color: var(--d-col); background: var(--d-bg);
}
.jm-demande-urg {
    display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
    padding: 4px 10px; border-radius: 999px;
    font-size: .7rem; font-weight: 800;
}
.jm-demande-urg.is-urgent { color: #b45309; background: #fef3c7; }
.jm-demande-urg.is-critical {
    color: #fff; background: #dc2626;
    animation: jm-urg-pulse 2s ease-in-out infinite;
}
@keyframes jm-urg-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .45); }
    50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.jm-demande-title {
    margin: 8px 0 4px; font-size: 1.08rem; font-weight: 800;
    color: #1e293b; line-height: 1.3;
}
.jm-demande .jm-demande-desc {
    margin: 0 !important; font-size: .89rem !important;
    color: #475569; line-height: 1.55;
}

.jm-demande-budget {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    padding: 7px 14px; border-radius: 12px;
    background: #f0fdf4; border: 1px solid #bbf7d0;
}
.jm-demande-budget-lbl { font-size: .7rem; font-weight: 700; color: #15803d; opacity: .85; }
.jm-demande-budget strong { font-size: .95rem; font-weight: 800; color: #15803d; }

.jm-demande-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jm-demande-meta:empty { display: none; }
.jm-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid #e6ecf4; background: #fff;
    font-size: .74rem; font-weight: 600; color: #64748b;
}
.jm-chip i { color: #94a3b8; }

:root[data-theme="dark"] .jm-demande { background: #2b2c2d; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-demande-title { color: #e4e6eb; }
:root[data-theme="dark"] .jm-demande .jm-demande-desc { color: #b0b3b8; }
:root[data-theme="dark"] .jm-chip { background: #313233; border-color: #3a3b3c; color: #b0b3b8; }
:root[data-theme="dark"] .jm-demande-budget { background: rgba(22, 163, 74, .12); border-color: rgba(22, 163, 74, .35); }

/* ===== Modale « Créer une publication » ===== */
.jm-compose .modal-content {
    border: 0; border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.jm-compose-head {
    background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0ea5e9);
    color: #fff; padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
}
.jm-compose-head-icon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.jm-compose-head h5 { margin: 0; font-weight: 800; font-size: 1.02rem; }
.jm-compose-head p { margin: 0; font-size: .76rem; opacity: .85; }
.jm-compose-head .btn-close {
    margin-left: auto; filter: invert(1) grayscale(1) brightness(2); opacity: .8;
}
.jm-compose-head .btn-close:hover { opacity: 1; }

.jm-compose .modal-body { padding: 18px 20px; background: #f8fafc; }
.jm-compose-section + .jm-compose-section { margin-top: 16px; }
.jm-compose-legend {
    display: flex; align-items: center; gap: 6px;
    font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: #94a3b8; margin-bottom: 8px;
}
.jm-compose-legend i { color: #2563eb; }
.jm-compose-card {
    background: #fff; border: 1px solid #e9eef5; border-radius: 14px; padding: 14px;
}
.jm-compose-field { margin-bottom: 12px; }
.jm-compose-field:last-child { margin-bottom: 0; }
.jm-compose-field > label {
    display: block; font-size: .76rem; font-weight: 700; color: #475569; margin-bottom: 5px;
}
.jm-compose-field .req { color: #ef4444; }
.jm-compose-field .form-control,
.jm-compose-field .form-select {
    border: 1px solid #e2e8f0; border-radius: 10px; font-size: .86rem;
    padding: 9px 12px; background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s;
}
.jm-compose-field .form-control:focus,
.jm-compose-field .form-select:focus {
    background: #fff; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.jm-compose-field .form-control::placeholder { color: #b6c2d2; }
.jm-compose-hint { font-size: .7rem; color: #94a3b8; margin: 4px 0 0; }

/* Type de publication : cartes colorees */
.jm-compose .jm-type-choice { gap: 10px; }
.jm-compose .jm-type-opt span {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 8px; border-radius: 14px; border: 2px solid #e9eef5;
    background: #fff; line-height: 1.25;
}
.jm-compose .jm-type-opt .jm-type-emoji { font-size: 1.3rem; }
.jm-compose .jm-type-opt input:checked + span {
    border-color: var(--t-col, #2563eb); background: var(--t-bg, #eff6ff); color: var(--t-col, #1d4ed8);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}
.jm-compose .jm-type-opt[data-t="search"] { --t-col: #0369a1; --t-bg: #e0f2fe; }
.jm-compose .jm-type-opt[data-t="need"]   { --t-col: #7c3aed; --t-bg: #ede9fe; }
.jm-compose .jm-type-opt[data-t="buy"]    { --t-col: #15803d; --t-bg: #dcfce7; }

/* Zone media */
.jm-compose-media {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.jm-compose-media label {
    flex: 1; min-width: 130px; cursor: pointer; margin: 0;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px; border: 2px dashed #dbe3ee; border-radius: 12px;
    background: #f8fafc; color: #64748b; font-size: .8rem; font-weight: 700;
    transition: all .15s;
}
.jm-compose-media label:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

.jm-compose .modal-footer {
    background: #fff; border-top: 1px solid #eef2f7; padding: 12px 20px; gap: 8px;
}
.jm-compose .modal-footer .btn { border-radius: 10px; font-size: .85rem; padding: 9px 18px; }
.jm-compose-submit {
    background: linear-gradient(135deg, #1d4ed8, #2563eb); border: 0; color: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.jm-compose-submit:hover { background: linear-gradient(135deg, #1e40af, #1d4ed8); color: #fff; }

@media (max-width: 575.98px) {
    .jm-compose .jm-type-opt { min-width: 0; }
    .jm-compose .jm-type-opt span { font-size: .74rem; padding: 10px 4px; }
}

:root[data-theme="dark"] .jm-compose .modal-body { background: #18191a; }
:root[data-theme="dark"] .jm-compose-card { background: #242526; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-compose-field > label { color: #b0b3b8; }
:root[data-theme="dark"] .jm-compose .form-control,
:root[data-theme="dark"] .jm-compose .form-select { background: #313233; border-color: #3a3b3c; color: #e4e6eb; }
:root[data-theme="dark"] .jm-compose .jm-type-opt span { background: #313233; border-color: #3a3b3c; }
:root[data-theme="dark"] .jm-compose-media label { background: #313233; border-color: #3a3b3c; color: #b0b3b8; }
:root[data-theme="dark"] .jm-compose .modal-footer { background: #242526; border-color: #3a3b3c; }