/* JOSESTORE — Dashboard (admin & vendeur), inspiré du dashboard Hóra */
:root {
    --primary: #8b0000;
    --primary-hover: #700000;
    --primary-soft: #fff1f1;
    --secondary: #0f172a;
    --accent: #c9a84c;
    --accent-soft: #fffbeb;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #059669;
    --success-soft: #ecfdf5;
    --info: #3b82f6;
    --info-soft: #eff6ff;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --purple: #7c3aed;
    --purple-soft: #f5f3ff;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Outfit', sans-serif; background: var(--bg-body); color: var(--text-main); line-height: 1.5; min-height: 100vh; display: flex; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[data-lucide] { width: 18px; height: 18px; flex-shrink: 0; }

/* ===================== SIDEBAR ===================== */
.sidebar { width: var(--sidebar-width); background: var(--secondary); color: #fff; height: 100vh; position: fixed; left: 0; top: 0; z-index: 1000; display: flex; flex-direction: column; transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.sidebar-brand { padding: 1.4rem 1.25rem 1.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none; color: #fff; overflow: hidden; }
.sidebar-brand .brand-3d-word { font-size: 1.35rem; }
.sidebar-area { font-size: .65rem; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; padding-left: .2rem; }
.brand-logo { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 900; color: var(--accent); font-size: 1.1rem; letter-spacing: -.05em; }
.brand-text { white-space: nowrap; }
.brand-text strong { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand-text small { font-size: .65rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-nav { flex: 1; padding: 1rem .75rem; list-style: none; overflow-y: auto; }
.nav-section { padding: 1rem 1rem .5rem; font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .1em; }
.nav-item { margin-bottom: .2rem; }
.nav-link { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; color: rgba(255,255,255,.6); text-decoration: none; border-radius: 10px; font-weight: 500; font-size: .9rem; transition: all .2s; }
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-link.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(139,0,0,.3); }
.nav-link .nav-count { margin-left: auto; background: var(--accent); color: var(--secondary); font-size: .7rem; font-weight: 800; padding: .05rem .5rem; border-radius: 100px; }
.sidebar-footer { padding: 1.25rem 1.5rem; border-top: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; gap: 1rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--secondary); font-weight: 800; flex-shrink: 0; }
.sidebar-footer .who { font-weight: 700; font-size: .85rem; }
.sidebar-footer .role { font-size: .7rem; color: rgba(255,255,255,.4); }

/* ===================== MAIN ===================== */
.main-content { margin-left: var(--sidebar-width); flex: 1; padding: 2.25rem 2.5rem; width: calc(100% - var(--sidebar-width)); min-width: 0; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1.25rem; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb [data-lucide] { width: 12px; height: 12px; }
.page-title h1 { font-size: 1.75rem; font-weight: 800; color: var(--secondary); letter-spacing: -.02em; line-height: 1.2; }
.page-title p { color: var(--text-muted); font-size: .95rem; }
.header-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* Topbar notifications */
.topbar { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + .5rem); width: min(360px, 90vw); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); z-index: 1200; overflow: hidden; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu .dm-head { padding: .9rem 1rem; font-weight: 700; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.dropdown-menu a.dm-item { display: flex; gap: .75rem; padding: .8rem 1rem; text-decoration: none; border-bottom: 1px solid var(--bg-body); font-size: .85rem; }
.dropdown-menu a.dm-item:hover { background: #f8fafc; }
.dm-item small { display: block; color: var(--text-muted); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-main); text-decoration: none; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 100px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem 1.2rem; border-radius: 10px; font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .2s; border: 1px solid transparent; font-family: inherit; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--secondary); }
.btn-dark { background: var(--secondary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-muted); background: #f8fafc; }
.btn-sm { padding: .4rem .75rem; font-size: .78rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--primary); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .85rem; text-decoration: none; padding: 0; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.4rem; border-radius: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 1.1rem; text-decoration: none; }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon [data-lucide] { width: 22px; height: 22px; }
.stat-icon.red { background: var(--primary-soft); color: var(--primary); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.green { background: var(--success-soft); color: #10b981; }
.stat-icon.gold { background: var(--accent-soft); color: var(--accent); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-label { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.45rem; font-weight: 800; color: var(--secondary); margin-top: .1rem; line-height: 1.2; }
.stat-sub { font-size: .75rem; color: var(--text-muted); }

/* Todo chips */
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-bottom: 2rem; }
.todo { background: #fff; border-radius: 14px; padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; text-decoration: none; box-shadow: var(--shadow-sm); border-left: 4px solid var(--border); font-size: .85rem; }
.todo strong { font-size: 1.25rem; font-weight: 800; color: var(--secondary); }
.todo.hot { border-left-color: var(--primary); }
.todo.warn { border-left-color: var(--accent); }

/* Layout */
.content-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
/* Grid columns never grow wider than the screen: wide tables scroll inside their card instead. */
.content-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 1280px) { .content-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }

.card { background: #fff; border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-sm); min-width: 0; }
.card + .card { margin-top: 1.5rem; }
.stack > .card + .card, .grid-2 > .card + .card, .content-grid > .card + .card { margin-top: 0; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; flex-wrap: wrap; }
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: .6rem; }
.card-title [data-lucide] { color: var(--primary); }
.chart-box { position: relative; width: 100%; height: 320px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.5rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; padding: .85rem 1rem; font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid var(--bg-body); white-space: nowrap; }
td { padding: .85rem 1rem; font-size: .88rem; border-bottom: 1px solid var(--bg-body); vertical-align: middle; }
tr:hover td { background: #f8fafc; }
td .muted, .muted { color: var(--text-muted); font-size: .8rem; }
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--bg-body); }
.cell-product { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.cell-product a { font-weight: 600; text-decoration: none; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.empty { text-align: center; color: var(--text-muted); padding: 2.5rem 1rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 100px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }
.badge-muted { background: var(--bg-body); color: var(--text-muted); }
.badge-gold { background: var(--accent-soft); color: #a16207; }

/* Filters */
.filters-bar { background: #fff; padding: 1rem 1.25rem; border-radius: 14px; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.filters-bar .grow { flex: 1; min-width: 180px; }
.segmented { display: flex; background: var(--bg-body); padding: .25rem; border-radius: 10px; flex-wrap: wrap; }
.segmented a { padding: .4rem 1rem; border-radius: 8px; font-weight: 700; font-size: .8rem; text-decoration: none; color: var(--text-muted); }
.segmented a.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label, .label { font-size: .78rem; font-weight: 700; color: var(--secondary); }
.field .hint { font-size: .75rem; color: var(--text-muted); }
.form-input, .form-select, .form-textarea { width: 100%; padding: .65rem .85rem; border-radius: 10px; border: 1px solid var(--border); font-family: inherit; font-size: .88rem; outline: none; background: #fff; color: var(--text-main); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,0,0,.08); }
.form-textarea { min-height: 100px; resize: vertical; }
.filters-bar .form-input, .filters-bar .form-select { width: auto; }
.checkbox { display: flex; align-items: center; gap: .5rem; font-size: .88rem; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.error-text { color: var(--danger); font-size: .75rem; font-weight: 600; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; }
.inline-form .form-input { width: 90px; padding: .4rem .6rem; }

/* Rich editor */
.editor { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.editor-toolbar { display: flex; gap: .25rem; padding: .4rem; background: #f8fafc; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.editor-toolbar button { border: none; background: #fff; border-radius: 6px; padding: .35rem .55rem; cursor: pointer; font-weight: 700; font-family: inherit; }
.editor-toolbar button:hover { background: var(--primary-soft); color: var(--primary); }
.editor-area { min-height: 180px; padding: .85rem; outline: none; font-size: .9rem; }
.editor-area ul, .editor-area ol { padding-left: 1.25rem; }

/* Image grid */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; }
.image-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--bg-body); }
.image-tile img { width: 100%; height: 100%; object-fit: cover; }
.image-tile label { position: absolute; inset: auto 0 0 0; background: rgba(15,23,42,.75); color: #fff; font-size: .72rem; padding: .3rem .5rem; display: flex; gap: .35rem; align-items: center; cursor: pointer; }
.dropzone { border: 2px dashed var(--border); border-radius: 14px; padding: 1.5rem; text-align: center; color: var(--text-muted); cursor: pointer; display: block; }
.dropzone:hover { border-color: var(--primary); color: var(--primary); }

/* Alerts */
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.25rem; display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; font-weight: 500; }
.alert-success { background: var(--success-soft); color: #065f46; }
.alert-error { background: var(--danger-soft); color: #991b1b; }
.alert-warning { background: var(--warning-soft); color: #92400e; }
.alert-info { background: var(--info-soft); color: #1e40af; }

/* Timeline */
.timeline { list-style: none; position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-bottom: 1rem; font-size: .85rem; }
.timeline li::before { content: ''; position: absolute; left: -1.5rem; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline time { display: block; font-size: .72rem; color: var(--text-muted); }

/* Key/value list */
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; font-size: .88rem; }
.kv dt { color: var(--text-muted); }
.kv dd { font-weight: 600; text-align: right; word-break: break-word; }
.totals { border-top: 1px dashed var(--border); margin-top: 1rem; padding-top: 1rem; }
.totals .grand { font-size: 1.15rem; font-weight: 800; color: var(--secondary); }

/* Progress */
.progress { height: 6px; background: var(--bg-body); border-radius: 10px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 10px; }

/* Pagination */
.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; list-style: none; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 .75rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: .85rem; background: #fff; border: 1px solid var(--border); }
.pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled span { opacity: .4; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 1.75rem; }
.modal-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; color: var(--secondary); }

/* Permission matrix */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }

/* Mobile */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 64px; background: var(--secondary); z-index: 1100; align-items: center; justify-content: space-between; padding: 0 1rem; box-shadow: 0 2px 10px rgba(0,0,0,.2); color: #fff; }
.mobile-header .brand-logo { width: 34px; height: 34px; background: #fff; color: var(--primary); }
.mobile-header button, .mobile-header a { background: rgba(255,255,255,.15); border: none; color: #fff; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
.mobile-header a.mobile-brand { width: auto; height: auto; background: none; gap: .55rem; font-weight: 800; font-size: .95rem; padding: 0; text-decoration: none; color: #fff; }
.mobile-header .mobile-brand .logo-mark-3d { width: 36px; height: 37px; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1050; display: none; backdrop-filter: blur(4px); }

@media (max-width: 1024px) {
    /* The menu slides above the dark overlay (and the mobile header), so it stays sharp and tappable. */
    .sidebar { transform: translateX(-100%); z-index: 1150; width: min(var(--sidebar-width), 86vw); overflow-y: auto; box-shadow: 8px 0 30px rgba(0,0,0,.35); }
    body.menu-open { overflow: hidden; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; padding: 5.5rem 1rem 2rem; }
    .mobile-header { display: flex; }
    .sidebar-overlay.active { display: block; }
    .topbar { display: none; }
    .page-title h1 { font-size: 1.4rem; }
    .card { padding: 1.15rem; border-radius: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .stat-card { padding: 1rem; flex-direction: column; align-items: flex-start; gap: .6rem; }
    .stat-value { font-size: 1.15rem; }
    .chart-box { height: 240px; }
    .filters-bar .form-input, .filters-bar .form-select { width: 100%; }
}
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr 1fr; } .header-actions .btn { flex: 1; } }
@media print { .sidebar, .mobile-header, .topbar, .header-actions, .filters-bar { display: none !important; } .main-content { margin: 0; width: 100%; padding: 0; } }

[hidden] { display: none !important; }

/* Attributs : choix disponibles par catégorie */
.mini-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; margin: 0 0 .5rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.category-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem 1rem; max-height: 320px; overflow-y: auto; padding: .25rem; }
.category-checklist-group { display: flex; flex-direction: column; gap: .3rem; }
.category-checklist .checkbox.sub { padding-left: 1.4rem; font-size: .88rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }

/* Bandeau de supervision (super admin connecté en tant qu'un autre compte) */
.impersonation-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; padding: .55rem 1rem; background: #0f172a; color: #fbe7a1; font-size: .85rem; font-weight: 600; text-align: center; }
.impersonation-bar form { margin: 0; }
.impersonation-bar button { background: #c9a84c; color: #0f172a; border: 0; border-radius: 999px; padding: .3rem .85rem; font-weight: 800; cursor: pointer; font: inherit; }

/* Choix sous forme de cartes (paramètres boutique) */
.choice-card { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--border, #e2e8f0); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice-card input { margin-top: .25rem; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.choice-card strong { display: block; color: var(--secondary); }
.choice-card small { display: block; color: var(--text-muted); font-size: .82rem; margin-top: .15rem; }
.payment-line { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px dashed var(--border, #e2e8f0); }
.payment-line:last-child { border-bottom: 0; }

/* Catégories et sous-catégories */
.subcategory-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.subcategory-row:last-of-type { border-bottom: 0; }
.subcategory-row [data-lucide] { width: 15px; height: 15px; display: inline; vertical-align: -2px; color: var(--text-muted); }

/* Panneau publicitaire */
.banner-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.1rem; align-items: start; }
.banner-thumb { width: 100%; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 12px; background: var(--bg-body); }
.banner-body { min-width: 0; }
@media (max-width: 640px) { .banner-card { grid-template-columns: 1fr; } }

/* Paramètres boutique : aperçu du logo, de la bannière et du catalogue */
.storefront-preview { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.profile-photos-card { margin-bottom: 1.25rem; }
.profile-preview { border: 1px solid var(--border, #e5e7eb); border-radius: 16px; overflow: hidden; background: #fff; }
.profile-preview-cover { aspect-ratio: 16 / 5; max-height: 220px; width: 100%; background: radial-gradient(circle at 85% 20%, rgba(201,168,76,.55), transparent 45%), linear-gradient(135deg, #0f172a, #5c0000 60%, #8b0000); background-size: cover; background-position: center; }
.profile-preview-cover.has-image { aspect-ratio: auto; max-height: none; position: relative; overflow: hidden; background: #0f172a; }
.profile-preview-backdrop { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.9); transform: scale(1.08); }
.profile-preview-cover:not(.has-image) .profile-preview-backdrop { display: none; }
.profile-preview-cover img { position: relative; display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.profile-unsaved { margin-top: 1rem; }
.btn-attention { animation: btn-attention 1.4s ease-in-out infinite; }
@keyframes btn-attention { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,0,0,.45); } 50% { box-shadow: 0 0 0 8px rgba(139,0,0,0); } }
@media (prefers-reduced-motion: reduce) { .btn-attention { animation: none; } }
.profile-preview-body { display: flex; align-items: flex-end; gap: .9rem; padding: 0 1rem .9rem; }
.profile-preview-avatar { position: relative; z-index: 1; width: 88px; height: 88px; margin-top: -44px; border-radius: 20px; border: 4px solid #fff; background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.15); overflow: hidden; flex-shrink: 0; display: flex; }
.profile-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-preview-avatar span { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--primary, #8b0000); color: #e8c766; font-size: 2.2rem; font-weight: 900; }
.profile-preview-name { min-width: 0; padding-bottom: .2rem; }
.profile-preview-name strong { display: block; font-size: 1.05rem; overflow-wrap: anywhere; }
.profile-preview-name small { color: var(--text-muted, #64748b); }
@media (max-width: 640px) { .profile-preview-cover { aspect-ratio: 16 / 7; } .profile-preview-cover img { max-height: 200px; } .profile-preview-avatar { width: 68px; height: 68px; margin-top: -34px; border-radius: 16px; } }

/* Import du catalogue : description des colonnes du fichier */
.import-columns { display: grid; gap: 0; margin: 0; }
.import-columns > div { display: grid; grid-template-columns: minmax(150px, 190px) 1fr; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--border, #e5e7eb); }
.import-columns > div:last-child { border-bottom: none; }
.import-columns dt { font-weight: 700; overflow-wrap: anywhere; }
.import-columns dt code { font-size: .9em; }
.import-columns dd { margin: 0; color: var(--text, #111827); }
.import-columns dd span { display: block; color: var(--muted, #6b7280); font-size: .85em; margin-top: .15rem; }
@media (max-width: 560px) {
    .import-columns > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* Tableaux en fiches sur téléphone (commandes) : chaque ligne devient une carte avec le libellé de chaque valeur */
@media (max-width: 760px) {
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody { display: block; width: 100%; }
    .table-cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem .9rem; padding: .95rem; margin: 0 .5rem .75rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
    .table-cards tr:hover td { background: none; }
    .table-cards td { display: block; padding: 0; border: 0; font-size: .86rem; min-width: 0; overflow-wrap: anywhere; }
    .table-cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .2rem; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
    .table-cards td.cell-main { grid-column: 1 / -1; padding-bottom: .65rem; border-bottom: 1px dashed var(--border); }
    .table-cards td.cell-full { grid-column: 1 / -1; }
    .table-cards td.text-right { text-align: left; }
    .table-cards td.nowrap { white-space: normal; }
    .table-cards .cell-product { min-width: 0; }
    .table-cards .badge { white-space: normal; max-width: 100%; text-align: left; line-height: 1.3; }
    .table-cards td .btn { margin-top: .25rem; }
    .table-cards tr:has(> td.empty) { display: block; border: 0; }
    .table-cards td.empty { text-align: center; padding: 1.5rem 0; }
    .table-cards td.cell-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
    .table-cards td.cell-actions form { display: inline-flex !important; }
    .table-cards td.cell-actions:empty { display: none; }
}

/* WhatsApp */
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }

/* Orders: quick periods and per-shop figures */
.period-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.5rem 0 1.25rem; }
.period-chips .chip { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--secondary); font-size: .85rem; font-weight: 600; text-decoration: none; }
.period-chips .chip.active { background: var(--secondary, #1f2937); border-color: var(--secondary, #1f2937); color: #fff; }
tr.row-active td { background: var(--primary-soft); }

/* Live notifications */
.dropdown-menu .dm-enable { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%; padding: .8rem 1rem; border: 0; border-bottom: 1px solid var(--border); background: var(--primary-soft); color: var(--primary); font: inherit; font-size: .85rem; font-weight: 700; text-align: left; cursor: pointer; }
.dropdown-menu .dm-enable [data-lucide] { width: 16px; height: 16px; }
.dropdown-menu .dm-enable small { color: var(--text-muted); font-weight: 500; }
.dropdown-menu .dm-enable[hidden], .dot[hidden], .notify-banner[hidden] { display: none; }
.dropdown-menu a.dm-item-new { background: #fffbeb; }
.notify-banner { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.notify-banner > [data-lucide] { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }
.notify-banner div { flex: 1; min-width: 220px; display: grid; gap: .15rem; font-size: .88rem; }
.notify-banner div span { color: var(--text-muted); }
.notify-banner .notify-dismiss { background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: .25rem; }
.live-toast { position: fixed; right: 16px; bottom: 16px; z-index: 1300; display: grid; gap: .2rem; max-width: min(360px, calc(100vw - 32px)); background: var(--secondary); color: #fff; padding: .9rem 1.1rem; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.25); text-decoration: none; font-size: .88rem; transform: translateY(20px); opacity: 0; transition: .3s; }
.live-toast span { color: rgba(255,255,255,.75); }
.live-toast.show { transform: none; opacity: 1; }
.mobile-header .dot { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; border-radius: 100px; background: var(--primary); color: #fff; font-size: .62rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--secondary); }

/* Commission payment */
.btn-wave { background: #1dc8f2; border-color: #1dc8f2; color: #04254a; font-weight: 800; justify-content: center; }
.btn-wave:hover { background: #12b5de; border-color: #12b5de; color: #04254a; }
.commission-declare { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--border); }
.commission-declare h3 { font-size: 1rem; margin: 0 0 .75rem; }
.commission-due { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.declared-payment { border-left: 4px solid var(--warning, #f59e0b); margin-bottom: 1.5rem; }
.declared-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .75rem; }
.declared-actions .inline-form { display: flex; gap: .5rem; flex: 1; min-width: 260px; }
.declared-actions .inline-form .form-input { flex: 1; min-width: 0; }

/* Long commands and links never push the page wider than the screen */
code, pre { overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
@media (max-width: 400px) {
    .main-content { padding-left: 12px; padding-right: 12px; }
    .page-title h1, .page-header h1 { font-size: 1.35rem; }
    .card { padding: 1rem; border-radius: 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .stat-card { padding: .85rem; gap: .6rem; flex-direction: column; align-items: flex-start; }
    .stat-icon { width: 38px; height: 38px; border-radius: 10px; }
    .stat-icon [data-lucide] { width: 18px; height: 18px; }
    .stat-value { font-size: 1.05rem; word-break: break-word; }
    .filters-bar { padding: .75rem; gap: .5rem; }
    .filters-bar > * { flex: 1 1 calc(50% - .5rem); min-width: 0; }
    .filters-bar > input[type=search], .filters-bar > .grow { flex-basis: 100%; }
    .notify-banner { gap: .6rem; padding: .75rem; }
    .notify-banner div span { display: none; }
}

.sidebar-close { display: none; position: absolute; top: .85rem; right: .85rem; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.sidebar-close [data-lucide] { width: 20px; height: 20px; }
@media (max-width: 1024px) { .sidebar-close { display: flex; } }

/* Vendor ↔ JOSESTORE conversation */
.thread { display: flex; flex-direction: column; gap: .75rem; max-height: 60vh; overflow-y: auto; padding: .25rem .25rem 1rem; }
.thread-empty { text-align: center; padding: 2rem 0; }
.bubble { max-width: min(80%, 560px); align-self: flex-start; background: var(--bg-body, #f1f5f9); border-radius: 16px 16px 16px 4px; padding: .7rem .9rem; }
.bubble.mine { align-self: flex-end; background: var(--primary-soft); border-radius: 16px 16px 4px 16px; }
.bubble-meta { font-size: .72rem; color: var(--text-muted); margin-bottom: .25rem; }
.bubble-body { white-space: pre-line; word-break: break-word; font-size: .92rem; }
.bubble-read { font-size: .7rem; color: var(--text-muted); text-align: right; margin-top: .2rem; }
.bubble-read [data-lucide] { width: 13px; height: 13px; vertical-align: -2px; }
.thread-form { display: grid; gap: .6rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.thread-form .form-textarea { min-height: 90px; }
.thread-form .btn { justify-self: end; }
.conversation { display: flex; align-items: center; gap: .85rem; padding: .85rem .5rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--secondary); }
.conversation:hover { background: #f8fafc; }
.conversation.unread strong { color: var(--primary); }
.conversation-avatar { width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #e8c766; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.conversation-text { display: grid; min-width: 0; flex: 1; }
.conversation-text small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-side { display: grid; justify-items: end; gap: .25rem; flex-shrink: 0; }
.conversation-side small { color: var(--text-muted); font-size: .72rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .bubble { max-width: 92%; } .thread-form .btn { justify-self: stretch; } }
.nav-count[hidden], [data-nav-total][hidden] { display: none !important; }
.conversation .nav-count { background: var(--accent); color: var(--secondary); font-size: .7rem; font-weight: 800; padding: .05rem .5rem; border-radius: 100px; }
.danger-zone { border: 1px solid #fecaca; }
.danger-zone .card-title { color: var(--danger, #dc2626); }
.danger-reasons { margin: .5rem 0 0; padding-left: 1.1rem; color: #991b1b; font-size: .88rem; display: grid; gap: .3rem; }

/* Vendor space: shortcuts, "À faire maintenant", setup checklist */
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.quick-actions a { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem .5rem; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--secondary); font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.2; }
.quick-actions a:hover { color: var(--primary); }
.quick-actions [data-lucide] { width: 24px; height: 24px; color: var(--primary); }
.todo-card .card-header { margin-bottom: .25rem; }
.task { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.task:last-child { border-bottom: 0; }
.task-main { display: flex; align-items: center; gap: .75rem; flex: 1 1 100%; min-width: 0; padding: .8rem 0; text-decoration: none; color: var(--secondary); }
.task-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-body, #f1f5f9); color: var(--text-muted); }
.task-icon [data-lucide] { width: 18px; height: 18px; }
.task-hot .task-icon { background: var(--primary-soft); color: var(--primary); }
.task-warn .task-icon { background: var(--warning-soft); color: #b45309; }
.task-info .task-icon { background: var(--info-soft); color: var(--info); }
.task-danger .task-icon { background: var(--danger-soft); color: var(--danger); }
.task-danger strong { color: var(--danger); }
.task-label { flex: 1; font-size: .9rem; font-weight: 600; }
.task-value { font-size: 1rem; white-space: nowrap; }
.task-hot .task-value { color: var(--primary); }
.task-go { width: 18px; height: 18px; color: var(--text-muted); }
.task-pay { margin: -.35rem 0 .8rem 48px; }
.task-empty { display: flex; align-items: center; gap: .6rem; padding: 1rem 0; color: var(--success, #16a34a); font-weight: 700; }
.task-empty [data-lucide] { width: 22px; height: 22px; }
.setup-card { border: 1px solid #fde68a; background: linear-gradient(180deg, #fffbeb, #fff 60%); }
.setup-progress { height: 8px; border-radius: 99px; background: #fef3c7; overflow: hidden; margin-bottom: .75rem; }
.setup-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 99px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.setup-steps a { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .25rem; text-decoration: none; color: var(--secondary); border-radius: 10px; }
.setup-steps a:hover { background: rgba(255,255,255,.7); }
.setup-steps [data-lucide] { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); margin-top: .1rem; }
.setup-steps span { display: grid; gap: .1rem; }
.setup-steps small { color: var(--text-muted); font-size: .8rem; }
.setup-steps li.done strong { text-decoration: line-through; color: var(--text-muted); font-weight: 600; font-size: .88rem; }
.setup-steps li.done small { display: none; }
.setup-steps li.done a { padding-top: .3rem; padding-bottom: .3rem; }
.setup-steps li.done [data-lucide] { color: var(--success, #16a34a); }
.welcome-line { margin: -.75rem 0 1.25rem; color: #166534; font-size: .85rem; }
.welcome-line [data-lucide] { width: 16px; height: 16px; display: inline; vertical-align: -3px; }

/* Vendor space on phones: app-like bottom navigation */
.bottom-nav { display: none; }
@media (max-width: 1024px) {
    .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(15,23,42,.08); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); }
    .bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; border: 0; background: none; color: var(--text-muted); font: inherit; font-size: .68rem; font-weight: 700; text-decoration: none; cursor: pointer; }
    .bottom-nav [data-lucide] { width: 22px; height: 22px; }
    .bottom-nav .active { color: var(--primary); }
    .bottom-nav .nav-count { position: absolute; top: .1rem; left: 50%; margin-left: 6px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border-radius: 99px; background: var(--primary); color: #fff; font-size: .62rem; font-weight: 800; }
    body:has(.bottom-nav) .main-content { padding-bottom: 6rem; }
    body:has(.bottom-nav) .live-toast { bottom: 84px; }
}
@media (max-width: 480px) {
    .quick-actions { gap: .4rem; }
    .quick-actions a { padding: .7rem .25rem; font-size: .68rem; border-radius: 12px; }
    .quick-actions [data-lucide] { width: 20px; height: 20px; }
    .task-main { gap: .6rem; }
    .task-label { font-size: .84rem; }
    .task-pay { margin-left: 46px; }
}
.status-tabs { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1rem; padding-bottom: .1rem; }
.status-tabs::-webkit-scrollbar { display: none; }
.status-tabs a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .85rem; border-radius: 99px; background: #fff; border: 1px solid var(--border); color: var(--secondary); text-decoration: none; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.status-tabs a span { background: var(--bg-body, #f1f5f9); border-radius: 99px; padding: 0 .45rem; font-size: .72rem; }
.status-tabs a.active { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.status-tabs a.active span { background: rgba(255,255,255,.2); }
.invoice-customize { margin-bottom: 1rem; }
.invoice-customize summary { cursor: pointer; display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--secondary); list-style: none; flex-wrap: wrap; }
.invoice-customize summary::-webkit-details-marker { display: none; }
.invoice-customize summary [data-lucide] { width: 18px; height: 18px; color: var(--primary); }
.invoice-customize summary .muted { font-weight: 500; font-size: .85rem; }

/* Finances: money movements and amount breakdowns */
.money-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.money-feed li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.money-feed li:last-child { border-bottom: 0; }
.money-feed-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-body); color: var(--text-muted); }
.money-feed-icon [data-lucide] { width: 18px; height: 18px; }
.money-feed-icon.in { background: var(--success-soft); color: var(--success); }
.money-feed-icon.out { background: var(--danger-soft); color: var(--danger); }
.money-feed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.money-feed-main a { color: inherit; text-decoration: none; }
.money-feed-main a:hover strong { color: var(--primary); }
.money-feed-main strong { font-size: .9rem; overflow-wrap: anywhere; }
.money-feed-main small { color: var(--text-muted); font-size: .78rem; overflow-wrap: anywhere; }
.money-feed-amount { font-weight: 800; white-space: nowrap; font-size: .92rem; }
.money-feed-amount.in { color: var(--success); }
.money-feed-amount.out { color: var(--danger); }
.money-lines { margin: 0; display: grid; gap: .1rem; }
.money-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
.money-lines > div:last-child { border-bottom: 0; }
.money-lines dt { color: var(--text-muted); }
.money-lines dd { margin: 0; font-weight: 700; white-space: nowrap; }
.money-lines .total dt { color: var(--text-main, inherit); font-weight: 800; }
.money-lines .total dd { font-size: 1.15rem; color: var(--success); }
@media (max-width: 480px) { .money-feed li { align-items: flex-start; } .money-feed-amount { font-size: .85rem; } }

/* Reminder to keep orders and payments on JOSESTORE (traceability and security) */
.on-site-notice { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .86rem; line-height: 1.5; margin: 1rem 0; }
.on-site-notice > [data-lucide], .on-site-notice > svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; color: #059669; }
.on-site-notice strong { display: block; font-size: .92rem; color: #064e3b; margin-bottom: .1rem; }
.on-site-notice span { display: block; overflow-wrap: anywhere; }
.on-site-notice.compact { padding: .6rem .8rem; font-size: .8rem; margin: .75rem 0 0; }
.on-site-notice.compact strong { font-size: .85rem; }

/* Vendor referral goal of the month */
.referral-strip { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; margin-bottom: 1.25rem; border-radius: 14px; background: var(--accent-soft, #fdf6e3); border: 1px solid #f0dfa8; color: #5c4400; text-decoration: none; font-size: .9rem; line-height: 1.45; }
.referral-strip > svg:first-child, .referral-strip > [data-lucide]:first-child { width: 22px; height: 22px; flex-shrink: 0; color: #a07c26; }
.referral-strip > svg:last-child, .referral-strip > [data-lucide]:last-child { width: 18px; height: 18px; flex-shrink: 0; margin-left: auto; }
.referral-strip span { flex: 1; min-width: 0; }
.referral-strip.earned { background: var(--success-soft); border-color: #a7f3d0; color: #065f46; }
.referral-strip.earned > svg:first-child { color: var(--success); }

/* ---------- Location, vidéos, biens confiés ---------- */
.listing-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.listing-option { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--bg-card, #fff); }
.listing-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft, rgba(139,0,0,.08)); }
.listing-option > svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: .1rem; }
.listing-option strong { display: block; }
.listing-option small { display: block; color: var(--text-muted); font-weight: 400; line-height: 1.4; }
.listing-option input { margin-top: .25rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.video-tile { display: flex; flex-direction: column; gap: .4rem; }
.video-tile video, .video-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #000; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1rem; }
.detail-list dt { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.detail-list dd { margin: 0; font-weight: 600; }
.note-box { padding: .75rem 1rem; border-radius: 10px; background: var(--bg-body); }
.note-box p { margin: .3rem 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.rental-promo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.rental-promo > div { display: flex; gap: .75rem; align-items: flex-start; flex-wrap: wrap; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card, #fff); }
.rental-promo > div > svg { flex: none; width: 22px; height: 22px; color: var(--primary); }
.rental-promo span { flex: 1; min-width: 200px; font-size: .9rem; }
@media (max-width: 760px) {
    .listing-choice, .detail-list, .rental-promo { grid-template-columns: 1fr; }
}
