/* =========================================================
   QVCT MARKET - STYLE.CSS
   Version réorganisée et nettoyée
   Mobile-first • Marketplace interne • Thèmes Light / Dark / Ocean

   Sommaire :
   01. Design tokens / thèmes
   02. Reset / base
   03. Utilities / composants communs
   04. Formulaires
   05. Auth / dashboard
   06. Header / catalogue / filtres
   07. Drawer / navigation mobile
   08. Pages mobiles / formulaires annonces
   09. Admin
   10. Détail article
   11. Messagerie
   12. Mes annonces / édition / profil
   13. Toasts / modales
   14. Responsive général
   15. Signalements
   16. Opérations / catégories / utilisateurs admin
   17. Pages légales / footer
   18. Catalogue Bento / scroll infini / filtres mobile
========================================================= */

/* =========================================================
   01. DESIGN TOKENS / THEMES
========================================================= */

:root,
[data-theme="light"] {
    --primary: #00a878;
    --primary-dark: #007f5f;
    --primary-soft: #ecfdf5;
    --secondary: #5e60ce;
    --secondary-soft: #eef2ff;

    --background: #f7f7f2;
    --background-gradient-a: rgba(0, 168, 120, 0.14);
    --background-gradient-b: rgba(94, 96, 206, 0.14);

    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --surface-muted: #f3f4f6;
    --input-bg: #ffffff;

    --text: #1f2937;
    --text-strong: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;

    --danger: #ef4444;
    --danger-dark: #991b1b;
    --danger-soft: #fef2f2;
    --success: #16a34a;
    --success-dark: #166534;
    --success-soft: #ecfdf5;
    --warning: #f59e0b;
    --warning-dark: #92400e;
    --warning-soft: #fffbeb;

    --shadow-xs: 0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 12px 34px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 16px 45px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 80px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 28px 90px rgba(15, 23, 42, 0.34);

    --header-bg: rgba(247, 247, 242, 0.94);
    --overlay-bg: rgba(15, 23, 42, 0.44);
    --white-border: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] {
    --primary: #18c99a;
    --primary-dark: #6ee7c4;
    --primary-soft: rgba(24, 201, 154, 0.14);
    --secondary: #a5b4fc;
    --secondary-soft: rgba(99, 102, 241, 0.16);

    --background: #0f172a;
    --background-gradient-a: rgba(24, 201, 154, 0.13);
    --background-gradient-b: rgba(165, 180, 252, 0.12);

    --surface: #111827;
    --surface-soft: #172033;
    --surface-muted: #1f2937;
    --input-bg: #0b1220;

    --text: #e5e7eb;
    --text-strong: #f9fafb;
    --muted: #9ca3af;
    --border: rgba(148, 163, 184, 0.22);

    --danger: #f87171;
    --danger-dark: #fecaca;
    --danger-soft: rgba(239, 68, 68, 0.16);
    --success: #34d399;
    --success-dark: #bbf7d0;
    --success-soft: rgba(22, 163, 74, 0.14);
    --warning: #fbbf24;
    --warning-dark: #fde68a;
    --warning-soft: rgba(245, 158, 11, 0.16);

    --shadow-xs: 0 8px 22px rgba(0, 0, 0, 0.28);
    --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 16px 45px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-xl: 0 28px 90px rgba(0, 0, 0, 0.56);

    --header-bg: rgba(15, 23, 42, 0.92);
    --overlay-bg: rgba(0, 0, 0, 0.58);
    --white-border: rgba(255, 255, 255, 0.16);
}

[data-theme="ocean"] {
    --primary: #0ea5e9;
    --primary-dark: #0369a1;
    --primary-soft: #e0f2fe;
    --secondary: #14b8a6;
    --secondary-soft: #ccfbf1;

    --background: #f0f9ff;
    --background-gradient-a: rgba(14, 165, 233, 0.16);
    --background-gradient-b: rgba(20, 184, 166, 0.16);

    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #e0f2fe;
    --input-bg: #ffffff;

    --text: #0f172a;
    --text-strong: #082f49;
    --muted: #64748b;
    --border: #bae6fd;

    --danger: #ef4444;
    --danger-dark: #991b1b;
    --danger-soft: #fef2f2;
    --success: #0f766e;
    --success-dark: #115e59;
    --success-soft: #ccfbf1;
    --warning: #f59e0b;
    --warning-dark: #92400e;
    --warning-soft: #fffbeb;

    --shadow-xs: 0 8px 20px rgba(8, 47, 73, 0.07);
    --shadow-sm: 0 12px 34px rgba(8, 47, 73, 0.08);
    --shadow-md: 0 16px 45px rgba(8, 47, 73, 0.10);
    --shadow-lg: 0 24px 80px rgba(8, 47, 73, 0.16);
    --shadow-xl: 0 28px 90px rgba(8, 47, 73, 0.30);

    --header-bg: rgba(240, 249, 255, 0.94);
    --overlay-bg: rgba(8, 47, 73, 0.42);
    --white-border: rgba(255, 255, 255, 0.88);
}
/* =========================================================
   THEME SWITCHER - ICONES
========================================================= */

.theme-switcher {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.theme-switcher p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.theme-icon-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-icon-option {
    min-height: 78px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 20px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.theme-icon-option:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.theme-icon-option.is-active {
    border-color: var(--primary);
    background: rgba(0, 168, 120, 0.12);
    box-shadow: 0 10px 24px rgba(0, 168, 120, 0.14);
}

.theme-icon {
    width: 38px;
    height: 38px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.theme-icon-option small {
    color: var(--muted);
    font-weight: 850;
    font-size: 0.72rem;
}

.theme-icon-option.is-active small {
    color: var(--primary-dark);
}
/* =========================================================
   02. RESET / BASE
========================================================= */

* { box-sizing: border-box; }

html {
    min-height: 100%;
    color-scheme: light;
}

[data-theme="dark"] { color-scheme: dark; }

body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.drawer-open,
body.filters-open { overflow: hidden; }

a { color: inherit; }

button,
input,
select,
textarea {
    font: inherit;
}

button { -webkit-tap-highlight-color: transparent; }

img { max-width: 100%; }

.hidden { display: none !important; }

/* =========================================================
   03. UTILITIES / COMMON COMPONENTS
========================================================= */

.page-bg,
.auth-page,
.dashboard-page,
.admin-shell,
.article-detail-shell,
.messages-shell,
.my-articles-shell,
.profile-shell,
.mobile-page-shell {
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34%),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 36%),
        var(--background);
}

.market-kicker,
.dashboard-kicker {
    margin: 0 0 8px;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 950;
    letter-spacing: 0.09em;
}

.btn-primary,
.btn-secondary,
.btn-primary-link,
.btn-danger-link,
.btn-deposit,
.my-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn-primary,
.btn-deposit,
.btn-primary-link {
    border: none;
    background: var(--primary);
    color: #fff;
}

.btn-primary {
    padding: 14px 20px;
    font-size: 1rem;
}

.btn-deposit,
.btn-primary-link,
.btn-secondary,
.btn-danger-link {
    padding: 12px 18px;
}

.btn-primary:hover,
.btn-deposit:hover,
.btn-primary-link:hover { transform: translateY(-1px); background: var(--primary-dark); }

.btn-primary:disabled,
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
    border: none;
    background: var(--secondary-soft);
    color: var(--secondary);
}

.btn-danger-link {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

.form-alert {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 800;
}

.form-alert.error {
    background: var(--danger-soft);
    color: var(--danger-dark);
    border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}

.form-alert.success {
    background: var(--success-soft);
    color: var(--success-dark);
    border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
}

.skeleton-card {
    min-height: 310px;
    border-radius: 24px;
    background: linear-gradient(90deg, var(--surface-muted), var(--surface), var(--surface-muted));
    background-size: 200% 100%;
    animation: skeletonMove 1.2s infinite linear;
    border: 1px solid var(--border);
}

@keyframes skeletonMove {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.empty-catalogue,
.empty-state,
.empty-mini {
    color: var(--muted);
}

.empty-catalogue,
.empty-state {
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 26px;
    padding: 38px;
    text-align: center;
}

.empty-catalogue h3 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 1.5rem;
    letter-spacing: -0.04em;
}

.empty-mini { padding: 18px; }
.empty-mini strong,
.empty-mini span { display: block; }
.empty-mini strong { color: var(--text-strong); margin-bottom: 4px; }

/* =========================================================
   04. FORMS
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-weight: 800;
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea,
.article-form textarea,
.filter-group input,
.filter-group select,
.chat-send-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 14px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.article-form textarea:focus,
.filter-group input:focus,
.filter-group select:focus,
.chat-send-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid { border-color: var(--danger); }

.form-group small,
.auth-form > small {
    min-height: 16px;
    color: var(--danger-dark);
    font-size: 0.82rem;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.95rem;
}

.checkbox-line input { margin-top: 3px; accent-color: var(--primary); }

.article-form { display: flex; flex-direction: column; gap: 18px; }

.article-form textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
}

.form-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
}

.form-section:last-of-type { border-bottom: none; }

.form-section h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.form-section > p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.92rem;
}

.price-input-wrap { position: relative; }
.price-input-wrap input { padding-right: 42px; }
.price-input-wrap span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 900;
}

.rules-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
}

/* =========================================================
   05. AUTH / DASHBOARD LEGACY
========================================================= */

.auth-page,
.dashboard-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card,
.dashboard-card {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.auth-card { max-width: 620px; padding: 32px; }
.auth-card-small { max-width: 480px; }
.dashboard-card { max-width: 760px; padding: 36px; }

.auth-header { margin-bottom: 24px; }
.auth-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 950;
    color: var(--primary-dark);
    text-decoration: none;
    letter-spacing: -0.04em;
    font-size: 1.3rem;
}

.auth-header h1,
.dashboard-card h1 {
    margin: 0 0 10px;
    line-height: 1;
    letter-spacing: -0.06em;
}
.auth-header h1 { font-size: clamp(2rem, 5vw, 3rem); }
.dashboard-card h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.auth-header p,
.dashboard-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.dashboard-card p { margin-top: 10px; }
.dashboard-card strong { color: var(--text-strong); }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--primary-dark); font-weight: 900; text-decoration: none; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* =========================================================
   06. APP HEADER / CATALOGUE
========================================================= */

.app-shell { min-height: 100vh; background: var(--background); }

.app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(360px, 680px) auto;
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 950;
    text-decoration: none;
    letter-spacing: -0.05em;
    font-size: 1.25rem;
}

.app-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
}

.app-search input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 13px 18px;
    font-size: 0.98rem;
    outline: none;
    background: var(--input-bg);
    color: var(--text);
}

.app-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.app-header-actions { display: flex; align-items: center; gap: 12px; }
.desktop-message-link,
.desktop-deposit-btn { display: inline-flex; }

.header-message-link {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
}

.header-message-icon { font-size: 1.2rem; line-height: 1; }

.message-badge,
.mobile-message-badge {
    position: absolute;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

.message-badge {
    top: -5px;
    right: -5px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    font-size: 0.72rem;
}

.user-menu-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 6px 12px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 850;
    color: var(--text);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--secondary-soft);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.app-body {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 28px 40px;
}

.market-main { min-width: 0; }

.market-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 35%),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 35%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.market-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2.1rem, 5vw, 4.6rem);
    letter-spacing: -0.075em;
    line-height: 0.95;
    color: var(--text-strong);
}

.market-hero p { margin: 0; color: var(--muted); max-width: 620px; line-height: 1.6; }

.mobile-filter-btn {
    display: none;
    border: none;
    border-radius: 999px;
    background: var(--secondary-soft);
    color: var(--secondary);
    padding: 12px 16px;
    font-weight: 900;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.quick-stats article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 18px;
}

.quick-stats span {
    display: block;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: var(--text-strong);
}
.quick-stats small { color: var(--muted); font-weight: 700; }

.catalogue-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 16px; }
.catalogue-toolbar h2 { margin: 0; font-size: 1.7rem; letter-spacing: -0.05em; }
.catalogue-toolbar p { margin: 4px 0 0; color: var(--muted); }


.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.article-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--surface-muted);
    overflow: hidden;
}
.article-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge-don,
.article-status-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 950;
    font-size: 0.76rem;
    border: 2px solid var(--white-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}
.badge-don { left: 12px; background: var(--primary); color: #fff; }
.article-status-badge { right: 12px; }
.article-status-badge.status-reserved { background: var(--secondary-soft); color: var(--secondary); }

.article-card-body { padding: 15px; }
.article-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.article-card-top h3 { margin: 0; font-size: 1rem; line-height: 1.25; letter-spacing: -0.025em; }
.article-card-top strong { color: var(--primary-dark); white-space: nowrap; }
.article-meta,
.article-seller { margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.4; }

.article-tags,
.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}
.article-tags span,
.article-detail-tags span {
    background: var(--surface-muted);
    color: var(--text);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.76rem;
    font-weight: 800;
}
/* =========================================================
   FAVORIS
========================================================= */

.favorites-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 168, 120, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(94, 96, 206, 0.10), transparent 36%),
        var(--background);
}

.favorites-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px;
}

.favorites-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-card {
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.05);
}

.favorite-btn.is-active {
    color: #ef4444;
    background: #fff;
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.article-status-badge.status-reserved {
    right: 54px;
}

@media (min-width: 760px) {
    .favorites-page {
        padding: 28px;
    }

    .favorites-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 1100px) {
    .favorites-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .favorite-btn {
        width: 34px;
        height: 34px;
        font-size: 1.18rem;
        top: 8px;
        right: 8px;
    }

    .article-status-badge.status-reserved {
        right: 48px;
    }
}
/* =========================================================
   07. FILTERS / QUICK CHIPS
========================================================= */

.filters-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.filters-header,
.filters-header-actions { display: flex; align-items: center; gap: 12px; }
.filters-header { justify-content: space-between; margin-bottom: 18px; }
.filters-header h2 { margin: 0; letter-spacing: -0.04em; }
.filters-header-actions { gap: 8px; }

.filters-reset {
    border: none;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 900;
    cursor: pointer;
}

.filters-close-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.filter-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.filter-group label { font-size: 0.86rem; font-weight: 850; color: var(--muted); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.quick-category-strip {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
}
.quick-category-strip::-webkit-scrollbar { display: none; }
.quick-category-chip {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--muted);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.quick-category-chip:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary-dark); }
.quick-category-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 24%, transparent); }

/* =========================================================
   08. DRAWER / MOBILE NAV
========================================================= */

.user-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
}

.user-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(390px, 92vw);
    height: 100vh;
    background: var(--surface);
    box-shadow: -24px 0 80px rgba(15, 23, 42, 0.22);
    transform: translateX(110%);
    transition: transform 0.28s ease;
    padding: 24px;
    display: flex;
    flex-direction: column;
}
.user-drawer.is-open { transform: translateX(0); }
.user-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.user-drawer-header p { margin: 0 0 6px; color: var(--primary-dark); font-weight: 950; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.user-drawer-header h2 { margin: 0 0 4px; letter-spacing: -0.05em; }
.user-drawer-header span { color: var(--muted); font-weight: 700; }
.user-drawer-header button { width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--surface-muted); color: var(--text); font-size: 1.5rem; cursor: pointer; }
.user-drawer-nav { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.user-drawer-nav a { display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 14px; background: var(--surface-soft); color: var(--text); text-decoration: none; font-weight: 850; }
.user-drawer-nav a:hover { background: var(--secondary-soft); }
.user-drawer-nav .admin-link { background: var(--secondary-soft); color: var(--secondary); }
.user-drawer-nav .logout-link { margin-top: 10px; background: var(--danger-soft); color: var(--danger-dark); }

.mobile-bottom-nav { display: none; }

/* =========================================================
   09. MOBILE TOPBAR / FORM PAGES
========================================================= */

.mobile-page-shell { min-height: 100vh; background: var(--background); padding-bottom: 96px; }
.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.mobile-back {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--text);
    box-shadow: var(--shadow-xs);
}
.mobile-topbar h1 { margin: 0; font-size: 1.15rem; letter-spacing: -0.04em; }
.mobile-topbar p { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }

.form-page { width: 100%; max-width: 860px; margin: 0 auto; padding: 16px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 18px; box-shadow: var(--shadow-md); }
.mobile-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    padding: 12px;
    margin: 0 -18px -18px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    border-radius: 0 0 26px 26px;
}
.mobile-sticky-actions .btn-primary,
.mobile-sticky-actions .btn-secondary { width: 100%; min-height: 48px; }

.upload-zone {
    min-height: 150px;
    border: 2px dashed color-mix(in srgb, var(--primary) 35%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    padding: 18px;
}
.upload-icon { font-size: 2rem; }
.upload-zone strong { font-size: 1.05rem; }
.upload-zone small { color: var(--muted); }
#articleImages[hidden], #editArticleImages[hidden] { display: none !important; }
.image-preview-list:empty { display: none; }
.image-preview-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.image-preview-item { position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: var(--surface-muted); border: 1px solid var(--border); }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-item span { position: absolute; left: 8px; bottom: 8px; border-radius: 999px; background: var(--primary); color: #fff; padding: 5px 8px; font-size: 0.72rem; font-weight: 900; }
.image-preview-error { grid-column: 1 / -1; border-radius: 14px; background: var(--danger-soft); color: var(--danger-dark); padding: 12px; font-weight: 800; }

/* =========================================================
   10. ADMIN
========================================================= */

.admin-shell { min-height: 100vh; }
.admin-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 14px 16px; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.admin-topbar h1 { margin: 0; font-size: 1.15rem; letter-spacing: -0.04em; }
.admin-topbar p { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.admin-page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px; }
.admin-hero { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-md); margin-bottom: 16px; }
.admin-hero h2 { margin: 0 0 8px; font-size: clamp(1.9rem, 8vw, 3.5rem); line-height: 0.95; letter-spacing: -0.07em; }
.admin-hero p { margin: 0; color: var(--muted); line-height: 1.5; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.admin-card { display: flex; flex-direction: column; gap: 8px; min-height: 140px; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; box-shadow: var(--shadow-sm); }
.admin-card span { font-size: 1.8rem; }
.admin-card strong { font-size: 1.25rem; letter-spacing: -0.04em; }
.admin-card small { color: var(--muted); line-height: 1.4; }
.admin-card.is-disabled { opacity: 0.55; pointer-events: none; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.admin-toolbar h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.05em; }
.admin-toolbar p { margin: 4px 0 0; color: var(--muted); }
.admin-articles-list { display: flex; flex-direction: column; gap: 14px; }
.admin-article-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 12px; box-shadow: var(--shadow-sm); }
.admin-article-image { width: 96px; height: 96px; border-radius: 18px; overflow: hidden; background: var(--surface-muted); }
.admin-article-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-article-content { min-width: 0; }
.admin-article-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.admin-article-head h3 { margin: 0; font-size: 1.05rem; letter-spacing: -0.035em; }
.admin-article-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.admin-article-head strong { color: var(--primary-dark); white-space: nowrap; }
.admin-article-description { margin: 10px 0; color: var(--text); line-height: 1.45; font-size: 0.92rem; }
.admin-article-seller { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.admin-article-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn-admin-validate,
.btn-admin-refuse { border: none; border-radius: 999px; padding: 12px 14px; min-height: 46px; font-weight: 900; cursor: pointer; }
.btn-admin-validate { background: var(--primary); color: #fff; }
.btn-admin-refuse { background: var(--danger-soft); color: var(--danger-dark); }

/* =========================================================
   ADMIN - SIGNALEMENTS
========================================================= */

.admin-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-filter-select {
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0 14px;
    font-weight: 850;
    outline: none;
}

.admin-reports-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-report-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.admin-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-report-head h3 {
    margin: 7px 0 4px;
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.admin-report-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-report-head > strong {
    color: var(--muted);
}

.report-status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 950;
}

.report-status-pending {
    background: #fffbeb;
    color: #92400e;
}

.report-status-reviewed {
    background: #ecfdf5;
    color: #166534;
}

.report-status-closed {
    background: #f3f4f6;
    color: #4b5563;
}

.report-people {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.report-people p {
    margin: 0;
}

.report-people strong {
    color: var(--text);
}

.report-target {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 12px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.report-target img {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
    background: #f3f4f6;
}

.report-target strong,
.report-target span,
.report-target a {
    display: block;
}

.report-target span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.84rem;
}

.report-target a {
    margin-top: 8px;
    color: var(--primary-dark);
    font-weight: 900;
    text-decoration: none;
}

.report-message,
.report-comment,
.report-admin-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 20px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.report-message strong,
.report-comment strong,
.report-admin-note label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 900;
}

.report-message p,
.report-comment p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    white-space: pre-wrap;
}

.report-comment.is-empty p {
    font-style: italic;
}

.report-admin-note textarea {
    width: 100%;
    min-height: 88px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
}

.report-admin-note textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}

.admin-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.admin-report-actions button {
    border: none;
    border-radius: 999px;
    min-height: 44px;
    padding: 10px 14px;
    font-weight: 900;
    cursor: pointer;
}

.btn-report-reviewed {
    background: var(--primary);
    color: #fff;
}

.btn-report-closed {
    background: #fffbeb;
    color: #92400e;
}

.btn-report-pending {
    background: #eef2ff;
    color: var(--secondary);
}

.admin-report-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .admin-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-filter-select,
    .admin-toolbar-actions .btn-secondary {
        width: 100%;
    }

    .admin-report-head {
        flex-direction: column;
    }

    .report-target {
        grid-template-columns: 62px 1fr;
    }

    .report-target img {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }

    .admin-report-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
.btn-report-delete-article {
    background: #fef2f2;
    color: #991b1b;
}
/* =========================================================
   ADMIN - TOUTES LES ANNONCES
========================================================= */

.admin-toolbar-wrap {
    align-items: flex-start;
}

.admin-articles-filters {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-search-input {
    min-height: 44px;
    min-width: min(320px, 100%);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 750;
    outline: none;
}

.admin-search-input:focus,
.admin-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}

.admin-all-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-all-article-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 14px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.admin-all-article-image {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-soft);
}

.admin-all-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-all-article-content {
    min-width: 0;
}

.admin-all-article-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-all-article-head h3 {
    margin: 7px 0 4px;
    font-size: 1.12rem;
    letter-spacing: -0.04em;
}

.admin-all-article-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-all-article-head strong {
    color: var(--primary-dark);
    white-space: nowrap;
}

.admin-all-article-desc {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.admin-all-article-meta {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-all-article-meta p {
    margin: 0;
}

.admin-all-article-meta strong {
    color: var(--text);
}

.admin-all-article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.admin-all-article-links a {
    color: var(--primary-dark);
    font-weight: 900;
    text-decoration: none;
}

.admin-all-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.admin-all-article-actions button {
    border: none;
    border-radius: 999px;
    min-height: 42px;
    padding: 9px 13px;
    font-weight: 900;
    cursor: pointer;
}

.admin-all-article-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 760px) {
    .admin-all-article-card {
        grid-template-columns: 150px 1fr;
        padding: 16px;
    }

    .admin-all-article-image {
        width: 150px;
        height: 150px;
        border-radius: 22px;
    }
}

@media (max-width: 680px) {
    .admin-toolbar-wrap {
        flex-direction: column;
    }

    .admin-articles-filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-search-input,
    .admin-filter-select,
    .admin-articles-filters .btn-secondary {
        width: 100%;
    }

    .admin-all-article-card {
        grid-template-columns: 1fr;
    }

    .admin-all-article-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .admin-all-article-head {
        flex-direction: column;
    }

    .admin-all-article-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ADMIN TOUTES ANNONCES - GRILLE COMPACTE
========================================================= */

.admin-all-articles-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.admin-all-article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-all-article-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: var(--shadow-md);
}

.admin-all-article-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-soft);
}

.admin-all-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-all-article-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.admin-all-article-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-all-article-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.96rem;
    line-height: 1.14;
    letter-spacing: -0.04em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-all-article-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-all-article-head strong {
    width: fit-content;
    color: var(--primary-dark);
    font-size: 1rem;
    white-space: nowrap;
}

.admin-all-article-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-all-article-card .my-status-badge {
    width: fit-content;
    font-size: 0.66rem;
    padding: 4px 7px;
}

.admin-all-article-card .article-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-all-article-card .article-tags::-webkit-scrollbar {
    display: none;
}

.admin-all-article-card .article-tags span {
    flex: 0 0 auto;
    max-width: 110px;
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.64rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-all-article-meta {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.25;
}

.admin-all-article-meta p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-all-article-meta strong {
    color: var(--text);
}

.admin-all-article-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
}

.admin-all-article-links a {
    min-height: 34px;
    border-radius: 13px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-all-article-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: auto 0 0;
}

.admin-all-article-actions button {
    width: 100%;
    min-height: 34px;
    border: none;
    border-radius: 13px;
    padding: 7px 9px;
    font-size: 0.72rem;
    font-weight: 950;
    cursor: pointer;
}

.admin-all-article-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toolbar annonces plus propre */
.admin-articles-filters {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-articles-filters .admin-search-input,
.admin-articles-filters .admin-filter-select {
    background: var(--input-bg);
    box-shadow: var(--shadow-xs);
}

.admin-articles-filters .admin-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 6px 6px no-repeat,
        var(--input-bg);
}

/* Responsive */
@media (max-width: 1320px) {
    .admin-all-articles-list {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

@media (max-width: 1080px) {
    .admin-all-articles-list {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-all-articles-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-all-article-card {
        padding: 10px;
        border-radius: 20px;
    }

    .admin-all-article-image {
        border-radius: 16px;
    }

    .admin-all-article-head h3 {
        font-size: 0.84rem;
    }

    .admin-all-article-head p,
    .admin-all-article-desc,
    .admin-all-article-meta {
        font-size: 0.66rem;
    }

    .admin-all-article-card .article-tags span {
        max-width: 86px;
        font-size: 0.58rem;
        padding: 4px 5px;
    }

    .admin-all-article-links {
        grid-template-columns: 1fr;
    }

    .admin-all-article-actions button,
    .admin-all-article-links a {
        min-height: 32px;
        border-radius: 12px;
        font-size: 0.66rem;
        padding: 6px 8px;
    }

    .admin-articles-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-articles-filters .admin-search-input,
    .admin-articles-filters .admin-filter-select,
    .admin-articles-filters .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .admin-all-articles-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .admin-all-article-card {
        padding: 9px;
        border-radius: 18px;
    }
}
/* =========================================================
   ADMIN ARTICLES - BARRE ACTIONS ICONES
========================================================= */

.admin-all-article-iconbar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-all-article-iconbar::-webkit-scrollbar {
    display: none;
}

.admin-icon-action {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.admin-icon-action:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.admin-icon-action.is-success {
    background: var(--success-soft);
    color: var(--success-dark);
    border-color: color-mix(in srgb, var(--success) 25%, var(--border));
}

.admin-icon-action.is-danger {
    background: var(--danger-soft);
    color: var(--danger-dark);
    border-color: color-mix(in srgb, var(--danger) 25%, var(--border));
}

.admin-icon-action.is-warning {
    background: var(--warning-soft);
    color: var(--warning-dark);
    border-color: color-mix(in srgb, var(--warning) 25%, var(--border));
}

.admin-icon-action.is-info {
    background: var(--secondary-soft);
    color: var(--secondary);
    border-color: color-mix(in srgb, var(--secondary) 25%, var(--border));
}

.admin-icon-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 760px) {
    .admin-all-article-iconbar {
        gap: 6px;
        padding-top: 7px;
    }

    .admin-icon-action {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
        border-radius: 11px;
        font-size: 0.82rem;
    }
}
/* =========================================================
   ADMIN ARTICLES - SCROLL HORIZONTAL ICONBAR PC
========================================================= */

.admin-all-article-iconbar {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--primary) 45%, transparent) transparent;
    padding-bottom: 5px;
}

.admin-all-article-iconbar::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.admin-all-article-iconbar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-all-article-iconbar::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--primary) 38%, transparent);
    border-radius: 999px;
}

.admin-all-article-iconbar::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--primary) 58%, transparent);
}

.admin-icon-action {
    flex: 0 0 34px;
}
/* =========================================================
   ADMIN ARTICLES - ICONBAR AVEC FLECHES
========================================================= */

.admin-all-article-iconbar-wrap {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.admin-all-article-iconbar-wrap .admin-all-article-iconbar {
    min-width: 0;
    margin: 0;
    padding-top: 0;
    border-top: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.admin-all-article-iconbar-wrap .admin-all-article-iconbar::-webkit-scrollbar {
    display: none;
}

.admin-icon-scroll-btn {
    width: 28px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.admin-icon-scroll-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

@media (max-width: 760px) {
    .admin-all-article-iconbar-wrap {
        grid-template-columns: 25px minmax(0, 1fr) 25px;
        gap: 4px;
    }

    .admin-icon-scroll-btn {
        width: 25px;
        height: 31px;
        border-radius: 10px;
        font-size: 1rem;
    }
}
/* =========================================================
   11. ARTICLE DETAIL
========================================================= */

.article-detail-page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px; }
.article-detail-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
.article-gallery,
.article-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 14px; box-shadow: var(--shadow-md); }
.article-main-photo { width: 100%; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--surface-muted); }
.article-main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.article-thumb { border: 2px solid transparent; border-radius: 16px; padding: 0; overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface-muted); cursor: pointer; }
.article-thumb.is-active { border-color: var(--primary); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.article-detail-head h2 { margin: 0; font-size: clamp(1.8rem, 9vw, 3.4rem); line-height: 0.95; letter-spacing: -0.07em; color: var(--text-strong); }
.article-detail-price { color: var(--primary-dark); font-size: 1.25rem; white-space: nowrap; font-weight: 950; }
.article-detail-tags { gap: 8px; margin: 18px 0; }
.article-detail-tags span { padding: 7px 10px; font-size: 0.8rem; font-weight: 850; }
.article-detail-section { border-top: 1px solid var(--border); padding-top: 18px; }
.article-detail-section h3 { margin: 0 0 8px; font-size: 1.05rem; }
.article-detail-section p { margin: 0; color: var(--text); line-height: 1.65; white-space: pre-wrap; }
.seller-box { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border-radius: 20px; background: var(--surface-soft); border: 1px solid var(--border); }
.seller-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 950; }
.seller-box strong { display: block; }
.seller-box span { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.article-detail-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin: 20px -14px -14px; padding: 12px; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--border); border-radius: 0 0 26px 26px; }
.article-detail-actions .btn-primary,
.article-detail-actions .btn-secondary { min-height: 50px; width: 100%; }
.article-detail-note { margin: 16px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }

/* =========================================================
   12. MESSAGES
========================================================= */

.messages-page { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px; }
.messages-list-panel,
.chat-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-md); overflow: hidden; }
.messages-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--border); }
.messages-panel-head h2 { margin: 0; font-size: 1.1rem; letter-spacing: -0.04em; }
.messages-panel-head button { width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--secondary-soft); color: var(--secondary); font-weight: 900; cursor: pointer; }
.conversations-list { display: flex; flex-direction: column; gap: 0; }
.conversation-item { position: relative; width: 100%; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; border: none; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: left; padding: 12px 14px; cursor: pointer; }
.conversation-item.is-active { background: var(--primary-soft); }
.conversation-item img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: var(--surface-muted); }
.conversation-item strong,
.conversation-item span,
.conversation-item small { display: block; }
.conversation-item strong { font-size: 0.95rem; }
.conversation-item span { color: var(--text); font-size: 0.86rem; margin-top: 2px; }
.conversation-item small { color: var(--muted); font-size: 0.78rem; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item em { min-width: 24px; height: 24px; border-radius: 999px; background: var(--primary); color: #fff; font-style: normal; font-size: 0.78rem; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.chat-panel { display: flex; flex-direction: column; min-height: 520px; }
.chat-content { flex: 1; display: flex; flex-direction: column; min-height: 420px; }
.empty-chat { align-items: center; justify-content: center; text-align: center; padding: 28px; color: var(--muted); }
.empty-chat h2 { margin: 0 0 8px; color: var(--text-strong); letter-spacing: -0.05em; }
.chat-article-summary { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.chat-article-summary img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; background: var(--surface-muted); }
.chat-article-summary strong,
.chat-article-summary span { display: block; }
.chat-article-summary span { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; max-height: 58vh; }
.message-row { display: flex; margin-bottom: 10px; }
.message-row.is-mine { justify-content: flex-end; }
.message-row.is-other { justify-content: flex-start; }
.message-bubble { max-width: 82%; border-radius: 20px; padding: 10px 12px; }
.message-row.is-mine .message-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.message-row.is-other .message-bubble { background: var(--surface-muted); color: var(--text); border-bottom-left-radius: 6px; }
.message-bubble p { margin: 0; line-height: 1.45; white-space: pre-wrap; }
.message-bubble small { display: block; margin-top: 6px; opacity: 0.75; font-size: 0.72rem; }
.chat-send-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 96%, transparent); }
.chat-send-form button { border: none; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 900; padding: 0 18px; min-height: 48px; cursor: pointer; }
.chat-loading { padding: 18px; color: var(--muted); }

/* =========================================================
   13. MY ARTICLES / EDIT / PROFILE
========================================================= */

.my-articles-page,
.profile-page { width: 100%; margin: 0 auto; padding: 14px; }
.my-articles-page { max-width: 1120px; }
.profile-page { max-width: 860px; }
.my-articles-hero,
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-md); }
.my-articles-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px; margin-bottom: 14px; }
.my-articles-hero h2 { margin: 0 0 8px; font-size: clamp(2rem, 9vw, 4rem); line-height: 0.95; letter-spacing: -0.07em; }
.my-articles-hero p { margin: 0; color: var(--muted); line-height: 1.5; }
.my-articles-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.my-articles-tabs::-webkit-scrollbar { display: none; }
.my-articles-tabs button { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 10px 14px; font-weight: 850; color: var(--muted); white-space: nowrap; cursor: pointer; }
.my-articles-tabs button.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.my-articles-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.my-article-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.my-article-image { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 0; overflow: hidden; background: var(--surface-muted); display: block; }
.my-article-image img { width: 100%; height: 100%; object-fit: cover; }
.my-article-content { padding: 11px; min-width: 0; }
.my-article-head { display: flex; flex-direction: column; gap: 4px; }
.my-article-head h3 { margin: 4px 0 0; font-size: 0.92rem; line-height: 1.2; letter-spacing: -0.025em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-article-head p { margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-article-head strong { color: var(--primary-dark); white-space: nowrap; font-size: 1rem; margin-top: 2px; }
.my-status-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 4px 7px; font-size: 0.66rem; font-weight: 950; }
.status-pending { background: var(--warning-soft); color: var(--warning-dark); }
.status-available { background: var(--success-soft); color: var(--success-dark); }
.status-reserved { background: var(--secondary-soft); color: var(--secondary); }
.status-sold,
.status-archived { background: var(--surface-muted); color: var(--muted); }
.status-refused { background: var(--danger-soft); color: var(--danger-dark); }
.my-article-card .article-tags { gap: 5px; margin-top: 8px; }
.my-article-card .article-tags span { font-size: 0.66rem; padding: 4px 6px; }
.my-article-actions { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 10px; }
.my-article-actions button,
.my-edit-link { border: none; min-height: 36px; padding: 8px 10px; font-size: 0.76rem; background: var(--secondary-soft); color: var(--secondary); }
.my-article-actions button:nth-child(2) { background: var(--primary); color: #fff; }
.my-article-actions button:nth-child(3) { background: var(--danger-soft); color: var(--danger-dark); }
.my-edit-link { background: var(--surface-muted); color: var(--text); }
.my-muted-info { display: inline-flex; color: var(--muted); font-size: 0.74rem; line-height: 1.3; font-weight: 750; }

.profile-card { padding: 18px; }
.profile-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.profile-avatar-large { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 26px; background: radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 38%), var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 950; box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 24%, transparent); }
.profile-hero h2 { margin: 0 0 6px; font-size: clamp(1.7rem, 7vw, 3rem); line-height: 0.95; letter-spacing: -0.065em; }
.profile-hero p:last-child { margin: 0; color: var(--muted); line-height: 1.4; font-size: 0.9rem; word-break: break-word; }

.image-edit-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-edit-item { overflow: hidden; }
.image-edit-actions { position: absolute; inset: auto 6px 6px 6px; display: flex; flex-direction: column; gap: 5px; }
.image-edit-actions button { border: none; border-radius: 999px; padding: 6px 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); font-size: 0.72rem; font-weight: 900; cursor: pointer; box-shadow: 0 6px 16px rgba(15,23,42,0.16); }
.image-edit-actions button:last-child { background: var(--danger-soft); color: var(--danger-dark); }
.edit-upload-block { margin-top: 16px; }
.small-upload-zone { min-height: 130px; }
.edit-add-images-btn { width: 100%; margin-top: 12px; }

/* =========================================================
   14. TOASTS / CONFIRM MODAL
========================================================= */

.toast-container {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 200;
    width: min(420px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast { pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xl); animation: toastIn 0.25s ease both; }
.toast-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 950; }
.toast-content strong { display: block; margin-bottom: 2px; color: var(--text-strong); font-size: 0.95rem; }
.toast-content span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.toast-close { border: none; background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 2px; }
.toast-success { border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.toast-success .toast-icon { background: var(--success-soft); color: var(--success-dark); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.toast-error .toast-icon { background: var(--danger-soft); color: var(--danger-dark); }
.toast-info { border-color: color-mix(in srgb, var(--secondary) 35%, transparent); }
.toast-info .toast-icon { background: var(--secondary-soft); color: var(--secondary); }
.toast.is-hiding { animation: toastOut 0.2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(12px) scale(0.98); } }

.confirm-modal-overlay { position: fixed; inset: 0; z-index: 250; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: var(--overlay-bg); backdrop-filter: blur(6px); }
.confirm-modal-overlay.hidden { display: none !important; }
.confirm-modal { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 22px; box-shadow: var(--shadow-xl); animation: confirmModalIn 0.22s ease both; }
.confirm-modal-icon { width: 54px; height: 54px; border-radius: 20px; background: var(--secondary-soft); color: var(--secondary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 950; margin-bottom: 14px; }
.confirm-modal-icon.is-danger { background: var(--danger-soft); color: var(--danger-dark); }
.confirm-modal-icon.is-warning { background: var(--warning-soft); color: var(--warning-dark); }
.confirm-modal-icon.is-success { background: var(--success-soft); color: var(--success-dark); }
.confirm-modal-content h2 { margin: 0 0 8px; font-size: 1.45rem; letter-spacing: -0.055em; }
.confirm-modal-content p { margin: 0; color: var(--muted); line-height: 1.5; }
.confirm-modal-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 22px; }
.confirm-cancel-btn,
.confirm-action-btn { border: none; border-radius: 999px; min-height: 48px; padding: 12px 16px; font-weight: 900; cursor: pointer; font-family: inherit; }
.confirm-cancel-btn { background: var(--surface-muted); color: var(--text); }
.confirm-action-btn { background: var(--primary); color: #fff; }
.confirm-action-btn.is-danger { background: var(--danger); }
.confirm-action-btn.is-warning { background: var(--warning); }
.confirm-action-btn.is-success { background: var(--primary); }
@keyframes confirmModalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* =========================================================
   15. RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .my-articles-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 921px) {
    .quick-category-strip { display: none !important; }
}

@media (min-width: 860px) {
    .article-detail-page { padding: 28px; }
    .article-detail-layout { grid-template-columns: minmax(0, 1fr) 430px; align-items: start; }
    .article-gallery,
    .article-detail-card { padding: 18px; }
    .article-detail-card { position: sticky; top: 96px; }
    .article-detail-actions { position: static; margin: 22px 0 0; padding: 0; background: transparent; backdrop-filter: none; border-top: none; border-radius: 0; }

    .messages-page { grid-template-columns: 360px minmax(0, 1fr); padding: 28px; }
    .messages-list-panel,
    .chat-panel { height: calc(100vh - 130px); }
    .conversations-list { max-height: calc(100vh - 210px); overflow-y: auto; }
    .chat-content { min-height: 0; }
    .chat-messages { max-height: none; }
}

@media (min-width: 760px) {
    .mobile-page-shell { padding-bottom: 40px; }
    .mobile-topbar { padding: 18px 28px; }
    .mobile-topbar h1 { font-size: 1.5rem; }
    .form-page,
    .admin-page,
    .my-articles-page,
    .profile-page { padding: 28px; }
    .form-card,
    .profile-card { padding: 28px; }
    .mobile-sticky-actions { position: static; margin: 10px 0 0; border-radius: 0; border-top: none; padding: 0; background: transparent; backdrop-filter: none; max-width: 420px; align-self: flex-end; }
    .admin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .admin-article-card { grid-template-columns: 150px 1fr; padding: 16px; }
    .admin-article-image { width: 150px; height: 150px; }
    .admin-article-actions { display: flex; justify-content: flex-end; }
    .btn-admin-validate,
    .btn-admin-refuse { min-width: 130px; }
    .my-articles-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .my-article-card { border-radius: 24px; }
    .my-article-content { padding: 14px; }
    .my-article-head h3 { font-size: 1rem; }
    .my-articles-hero { align-items: center; padding: 26px; }
    .profile-avatar-large { width: 92px; height: 92px; flex-basis: 92px; border-radius: 30px; font-size: 2.4rem; }
    .toast-container { left: auto; right: 24px; bottom: 24px; transform: none; width: 380px; }
    .confirm-modal-overlay { align-items: center; }
}

@media (max-width: 920px) {
    .app-header { grid-template-columns: 1fr auto; height: auto; min-height: 72px; padding: 12px 14px; gap: 12px; }
    .app-search { grid-column: 1 / -1; order: 3; }
    .quick-category-strip { display: flex !important; grid-column: 1 / -1; order: 4; margin-top: -2px; padding: 0 0 4px; }
    .app-body { grid-template-columns: 1fr; padding: 18px; }
    .filters-panel { display: none; position: fixed; z-index: 70; left: 16px; right: 16px; top: 110px; max-height: calc(100vh - 130px); overflow: auto; border-radius: 26px; box-shadow: var(--shadow-lg); }
    .filters-panel.is-open { display: block; }
    .filters-close-btn { display: inline-flex; align-items: center; justify-content: center; }
    .mobile-filter-btn { display: inline-flex; }
    .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .app-shell,
    .my-articles-shell,
    .messages-shell,
    .profile-shell,
    .article-detail-shell { padding-bottom: 92px; }

    .desktop-message-link,
    .desktop-deposit-btn { display: none; }
    .app-logo { font-size: 1rem; }
    .app-logo span:last-child { display: inline; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .app-logo-icon { width: 38px; height: 38px; border-radius: 16px; }
    .app-search input { height: 46px; padding: 12px 16px; font-size: 16px; box-shadow: var(--shadow-xs); }
    .user-menu-btn { width: 42px; height: 42px; padding: 0; justify-content: center; }
    .user-avatar { width: 36px; height: 36px; }
    .user-menu-name { display: none; }
    .app-body { padding: 14px 12px 24px; }
    .market-hero { border-radius: 24px; padding: 22px; align-items: flex-start; flex-direction: column; }
    .market-hero h1 { font-size: clamp(2.2rem, 12vw, 3.4rem); }
    .quick-stats { margin: 14px 0; }
    .catalogue-toolbar { margin: 18px 0 12px; }
    .articles-grid { gap: 12px; }
    .quick-category-chip { padding: 8px 12px; font-size: 0.78rem; }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 100;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        gap: 4px;
        padding: 8px;
        border-radius: 26px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .mobile-nav-item { position: relative; min-width: 0; min-height: 54px; border: none; border-radius: 20px; background: transparent; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: inherit; cursor: pointer; }
    .mobile-nav-item span { font-size: 1.2rem; line-height: 1; }
    .mobile-nav-item small { font-size: 0.66rem; font-weight: 850; white-space: nowrap; }
    .mobile-nav-item.is-active { background: var(--primary-soft); color: var(--primary-dark); }
    .mobile-nav-main { background: var(--primary); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 28%, transparent); }
    .mobile-nav-main span { font-size: 1.5rem; font-weight: 950; }
    .mobile-message-badge { top: 3px; right: 12px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 0.68rem; }
}

@media (min-width: 761px) {
    .mobile-bottom-nav { display: none !important; }
}

@media (max-width: 640px) {
    .auth-card { padding: 24px; border-radius: 24px; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .article-card { border-radius: 18px; }
    .article-card-body { padding: 12px; }
    .article-tags span { font-size: 0.7rem; }
    .header-message-link { width: 40px; height: 40px; }
    .message-badge { top: -6px; right: -6px; }
    .article-status-badge,
    .badge-don { top: 8px; font-size: 0.68rem; padding: 5px 8px; }
    .article-status-badge { right: 8px; }
    .badge-don { left: 8px; }
}

@media (max-width: 520px) {
    .messages-page { padding: 10px; }
    .chat-panel { min-height: 480px; }
    .message-bubble { max-width: 90%; }
    .chat-send-form { position: sticky; bottom: 0; }
}

@media (max-width: 480px) {
    .my-articles-hero { flex-direction: column; }
    .my-articles-hero .btn-primary-link { width: 100%; }
}

@media (max-width: 440px) {
    .admin-article-card { grid-template-columns: 1fr; }
    .admin-article-image { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    .admin-toolbar { align-items: flex-start; flex-direction: column; }
    .admin-toolbar .btn-secondary { width: 100%; }
}

@media (max-width: 430px) {
    .article-detail-page { padding: 10px; }
    .article-gallery,
    .article-detail-card { border-radius: 22px; padding: 12px; }
    .article-detail-head { flex-direction: column; }
    .article-detail-actions { grid-template-columns: 1fr; margin: 18px -12px -12px; border-radius: 0 0 22px 22px; }
    .profile-hero { align-items: flex-start; }
    .profile-avatar-large { width: 60px; height: 60px; flex-basis: 60px; border-radius: 22px; font-size: 1.6rem; }
    .image-edit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .image-edit-actions button { font-size: 0.68rem; padding: 6px; }
}

@media (max-width: 420px) {
    .form-page { padding: 12px; }
    .form-card { border-radius: 22px; padding: 14px; }
    .image-preview-list { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .mobile-sticky-actions { margin: 0 -14px -14px; border-radius: 0 0 22px 22px; }
    .mobile-topbar { align-items: flex-start; }
    .mobile-topbar h1 { font-size: 1.05rem; }
    .mobile-topbar p { font-size: 0.78rem; line-height: 1.3; }
    .form-section h2 { font-size: 1.1rem; }
    .upload-zone { min-height: 145px; border-radius: 20px; }
    .mobile-sticky-actions { grid-template-columns: 1fr; }
    .confirm-modal { border-radius: 24px; padding: 20px; }
    .confirm-modal-actions { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .mobile-bottom-nav { left: 6px; right: 6px; bottom: 6px; padding: 6px; border-radius: 22px; }
    .mobile-nav-item { min-height: 50px; border-radius: 18px; }
    .mobile-nav-item small { font-size: 0.6rem; }
    .mobile-nav-item span { font-size: 1.1rem; }
    .mobile-nav-main span { font-size: 1.35rem; }
}

@media (max-width: 380px) {
    .my-articles-list { gap: 9px; }
    .my-article-content { padding: 9px; }
    .my-article-head h3 { font-size: 0.84rem; }
    .my-article-actions button,
    .my-edit-link { font-size: 0.7rem; padding: 7px 8px; }
    .my-article-card .article-tags span { font-size: 0.62rem; }
}
/* =========================================================
   SIGNALEMENTS
========================================================= */

.report-modal {
    max-width: 480px;
}

.report-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.report-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 850;
}

.report-form select,
.report-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--text);
    padding: 12px 13px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.report-form textarea {
    resize: vertical;
    min-height: 110px;
}

.report-form select:focus,
.report-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}
/* =========================================================
   ADMIN - OPERATIONS
========================================================= */

.admin-operations-page {
    max-width: 1080px;
}

.admin-operation-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.admin-operation-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-operation-form-head h3 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.05em;
}

.admin-form-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.admin-form-actions .btn-primary,
.admin-form-actions .btn-secondary {
    min-height: 46px;
}

.admin-operations-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-operation-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.admin-operation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-operation-head h3 {
    margin: 7px 0 4px;
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.admin-operation-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-operation-head > strong {
    color: var(--muted);
}

.admin-operation-description {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.admin-operation-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-operation-stats span {
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 850;
}

.admin-operation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.admin-operation-actions button {
    border: none;
    border-radius: 999px;
    min-height: 42px;
    padding: 9px 13px;
    font-weight: 900;
    cursor: pointer;
}

.admin-operation-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (min-width: 820px) {
    .admin-operations-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-operation-form-card {
        padding: 22px;
    }
}

@media (max-width: 560px) {
    .admin-form-actions,
    .admin-operation-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-operation-form-card {
        padding: 14px;
        border-radius: 22px;
    }

    .admin-operation-card {
        border-radius: 22px;
    }
}
/* =========================================================
   ADMIN - CATEGORIES / SOUS-CATEGORIES
========================================================= */

.admin-categories-page {
    max-width: 1180px;
}

.category-admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.category-admin-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 16px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
    min-width: 0;
}

.category-admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.category-admin-panel-head h3 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.055em;
}

.category-add-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 168, 120, 0.20);
}

.category-add-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.category-inline-form {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 14px;
    margin-bottom: 14px;
}

.category-form-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 12px;
}

.category-form-actions .btn-primary,
.category-form-actions .btn-secondary {
    width: 100%;
    min-height: 44px;
}

.admin-categories-list,
.admin-subcategories-list {
    display: grid;
    gap: 12px;
}

.admin-category-card,
.admin-subcategory-card {
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: 22px;
    padding: 12px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.admin-category-card.is-selected {
    border-color: var(--primary);
    background: rgba(0, 168, 120, 0.08);
}

.admin-category-card.is-disabled,
.admin-subcategory-card.is-disabled {
    opacity: 0.64;
}

.admin-category-main {
    width: 100%;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.admin-category-main strong,
.admin-subcategory-main strong {
    display: block;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.admin-category-main small,
.admin-subcategory-main small {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.admin-category-main em {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    box-shadow: 0 0 0 4px rgba(209, 213, 219, 0.18);
}

.category-status-dot.is-active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.14);
}

.admin-category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.admin-category-meta span {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 850;
}

.admin-category-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.admin-category-actions button {
    border: none;
    border-radius: 999px;
    min-height: 36px;
    padding: 8px 10px;
    background: var(--surface);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.admin-category-actions button:last-child {
    background: #eef2ff;
    color: var(--secondary);
}

.admin-subcategory-main {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 9px;
}

.drag-handle {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    cursor: grab;
}

@media (min-width: 900px) {
    .category-admin-layout {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

    .category-admin-panel {
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .category-form-actions,
    .admin-category-actions {
        grid-template-columns: 1fr;
    }

    .admin-category-actions {
        display: grid;
    }

    .category-admin-panel {
        border-radius: 24px;
        padding: 14px;
    }
}
/* =========================================================
   ADMIN CATEGORIES - DRAG & DROP
========================================================= */

.admin-subcategory-card[draggable="true"] {
    cursor: grab;
}

.admin-subcategory-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.98);
}

.admin-category-card.is-drop-target {
    border-color: var(--primary);
    background: rgba(0, 168, 120, 0.14);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 168, 120, 0.16);
}

.admin-category-card.is-drop-target .admin-category-main em {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (hover: none) {
    .drag-handle::after {
        content: " glisser";
        font-size: 0.65rem;
        font-weight: 700;
    }
}
/* =========================================================
   ADMIN CATEGORIES - COLONNES SCROLLABLES
========================================================= */

@media (min-width: 900px) {
    .category-admin-layout {
        align-items: start;
        max-height: calc(100vh - 190px);
    }

    .category-admin-panel {
        max-height: calc(100vh - 190px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .category-admin-panel-head,
    .category-inline-form {
        flex: 0 0 auto;
    }

    .admin-categories-list,
    .admin-subcategories-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 6px;
        scroll-behavior: smooth;
    }

    .admin-categories-list::-webkit-scrollbar,
    .admin-subcategories-list::-webkit-scrollbar {
        width: 8px;
    }

    .admin-categories-list::-webkit-scrollbar-thumb,
    .admin-subcategories-list::-webkit-scrollbar-thumb {
        background: rgba(107, 114, 128, 0.35);
        border-radius: 999px;
    }

    .admin-categories-list::-webkit-scrollbar-track,
    .admin-subcategories-list::-webkit-scrollbar-track {
        background: transparent;
    }
}
/* =========================================================
   ADMIN CATEGORIES - DEPLACEMENT MOBILE
========================================================= */

.move-subcategory-modal {
    max-width: 460px;
}

.move-category-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 4px;
}

.move-category-option {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 18px;
    padding: 12px 13px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.move-category-option span,
.move-category-option small {
    display: block;
}

.move-category-option span {
    font-weight: 950;
    letter-spacing: -0.025em;
}

.move-category-option small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 750;
}

.move-category-option:hover {
    border-color: var(--primary);
    background: rgba(0, 168, 120, 0.08);
}

.move-category-option.is-current {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (min-width: 900px) {
    .admin-category-actions [data-subcategory-move] {
        display: none;
    }
}
/* =========================================================
   ADMIN UTILISATEURS - UI COMPACTE PREMIUM
========================================================= */

.admin-users-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.admin-user-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 42%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-user-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: var(--shadow-md);
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.36), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 950;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 18%, transparent);
}

.admin-user-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.admin-user-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-user-head > div {
    min-width: 0;
}

.admin-user-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.98rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-head > strong {
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--secondary-soft);
    color: var(--secondary);
    border: 1px solid color-mix(in srgb, var(--secondary) 20%, var(--border));
    font-size: 0.72rem;
    font-weight: 950;
    white-space: nowrap;
}

.admin-user-card .my-status-badge {
    width: fit-content;
    padding: 4px 8px;
    font-size: 0.66rem;
    font-weight: 950;
}

.admin-user-card .article-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-user-card .article-tags::-webkit-scrollbar {
    display: none;
}

.admin-user-card .article-tags span {
    flex: 0 0 auto;
    max-width: 110px;
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.64rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
}

.admin-user-stats span {
    min-width: 0;
    padding: 6px 4px;
    border-radius: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.admin-user-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 2px 0 0;
}

.admin-user-edit-grid label {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
}

.admin-user-edit-grid select {
    width: 100%;
    min-height: 36px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 13px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 8px center / 6px 6px no-repeat,
        var(--input-bg);
    color: var(--text);
    padding: 0 26px 0 11px;
    font-size: 0.76rem;
    font-weight: 850;
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
}

.admin-user-edit-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.admin-user-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto 0 0;
}

.admin-user-actions button {
    width: 100%;
    min-height: 38px;
    border: none;
    border-radius: 15px;
    background: var(--primary);
    color: #fff;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 18%, transparent);
}

.admin-user-actions button:hover {
    background: var(--primary-dark);
}

.admin-user-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toolbar utilisateurs plus propre */
.admin-users-filters {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-users-filters .admin-search-input,
.admin-users-filters .admin-filter-select {
    background: var(--input-bg);
    box-shadow: var(--shadow-xs);
}

.admin-users-filters .admin-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 6px 6px no-repeat,
        var(--input-bg);
}

/* Responsive */
@media (max-width: 1320px) {
    .admin-users-list {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

@media (max-width: 1080px) {
    .admin-users-list {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-users-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-user-card {
        padding: 11px;
        border-radius: 21px;
    }

    .admin-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 15px;
    }

    .admin-user-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-edit-grid label {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-users-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-users-filters .admin-search-input,
    .admin-users-filters .admin-filter-select,
    .admin-users-filters .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .admin-users-list {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   ADMIN UTILISATEURS - MOBILE 2 COLONNES
========================================================= */

@media (max-width: 440px) {
    .admin-users-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .admin-user-card {
        padding: 9px;
        border-radius: 18px;
    }

    .admin-user-avatar {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        font-size: 0.95rem;
    }

    .admin-user-head h3 {
        font-size: 0.84rem;
    }

    .admin-user-head p {
        font-size: 0.68rem;
    }

    .admin-user-head > strong {
        font-size: 0.62rem;
        padding: 4px 6px;
    }

    .admin-user-card .my-status-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .admin-user-card .article-tags span {
        max-width: 86px;
        font-size: 0.58rem;
        padding: 4px 5px;
    }

    .admin-user-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .admin-user-stats span {
        font-size: 0.56rem;
        padding: 4px 3px;
    }

    .admin-user-edit-grid label {
        font-size: 0.6rem;
    }

    .admin-user-edit-grid select {
        min-height: 32px;
        border-radius: 12px;
        font-size: 0.68rem;
        padding-left: 8px;
        padding-right: 24px;
    }

    .admin-user-actions button {
        min-height: 34px;
        border-radius: 13px;
        font-size: 0.68rem;
        padding: 7px 8px;
    }
}
/* =========================================================
   CHAT CLOSED NOTICE
========================================================= */

.chat-closed-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 16px 0;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.72));
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.08);
}

.chat-closed-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    font-size: 1.25rem;
}

.chat-closed-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-closed-text strong {
    color: #78350f;
    font-size: 0.98rem;
    font-weight: 850;
}

.chat-closed-text span {
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.45;
}

[data-theme="dark"] .chat-closed-card {
    border-color: rgba(251, 191, 36, 0.25);
    background:
        linear-gradient(135deg, rgba(69, 26, 3, 0.72), rgba(120, 53, 15, 0.38));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .chat-closed-icon {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

[data-theme="dark"] .chat-closed-text strong {
    color: #fde68a;
}

[data-theme="dark"] .chat-closed-text span {
    color: #fcd34d;
}

[data-theme="ocean"] .chat-closed-card {
    border-color: rgba(14, 165, 233, 0.25);
    background:
        linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(224, 242, 254, 0.78));
    box-shadow: 0 14px 32px rgba(12, 74, 110, 0.08);
}

[data-theme="ocean"] .chat-closed-icon {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
}

[data-theme="ocean"] .chat-closed-text strong {
    color: #075985;
}

[data-theme="ocean"] .chat-closed-text span {
    color: #0369a1;
}
/* =========================================================
   LEGAL / CHARTER PAGES
========================================================= */

.legal-page {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 32rem),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 28rem),
        var(--background);
}

.legal-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.legal-hero {
    margin-bottom: 22px;
    padding: 30px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,250,252,0.82));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.legal-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-card {
    margin-top: 16px;
    padding: 24px 26px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.06);
}

.legal-card h2 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: 1.18rem;
    line-height: 1.25;
}

.legal-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.72;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.legal-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-final-card {
    border-color: rgba(16, 185, 129, 0.26);
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.92), rgba(255,255,255,0.95));
}

[data-theme="dark"] .legal-hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.84));
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .legal-card {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .legal-final-card {
    background:
        linear-gradient(135deg, rgba(6, 78, 59, 0.36), rgba(15, 23, 42, 0.96));
    border-color: rgba(16, 185, 129, 0.22);
}

[data-theme="ocean"] .legal-hero-badge {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}

[data-theme="ocean"] .legal-final-card {
    border-color: rgba(14, 165, 233, 0.26);
    background:
        linear-gradient(135deg, rgba(240, 249, 255, 0.95), rgba(255,255,255,0.96));
}

@media (max-width: 640px) {
    .legal-shell {
        width: min(100% - 22px, 980px);
        padding: 20px 0 92px;
    }

    .legal-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .legal-card {
        padding: 20px;
        border-radius: 22px;
    }

    .legal-card h2 {
        font-size: 1.05rem;
    }

    .legal-card p,
    .legal-card li {
        font-size: 0.9rem;
    }
}
/* =========================================================
   SITE FOOTER
========================================================= */

.site-footer {
    width: 100%;
    margin-top: 48px;
    padding: 28px 16px 32px;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.7), rgba(255, 255, 255, 0.96));
}

.site-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.site-footer-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.site-footer-logo span {
    font-size: 1.1rem;
    font-weight: 900;
}

.site-footer-brand strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.98rem;
    font-weight: 850;
}

.site-footer-brand p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.site-footer-links {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.72);
    transition: 0.18s ease;
}

.site-footer-links a:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

.site-footer-copy {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

[data-theme="dark"] .site-footer {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.96));
    border-top-color: rgba(148, 163, 184, 0.16);
}

[data-theme="dark"] .site-footer-links a {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .site-footer-links a:hover {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(147, 197, 253, 0.16);
}

[data-theme="ocean"] .site-footer-logo {
    background: linear-gradient(135deg, #0284c7, #0f766e);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

[data-theme="ocean"] .site-footer-links a:hover {
    color: #0284c7;
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.16);
}

@media (max-width: 820px) {
    .site-footer {
        margin-top: 34px;
        padding-bottom: 92px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer-brand {
        justify-content: center;
        min-width: 0;
    }

    .site-footer-links {
        width: 100%;
    }

    .site-footer-copy {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .site-footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer-links a {
        width: 100%;
    }
}
/* =========================================================
   CATALOGUE BENTO GRID
========================================================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
    align-items: stretch;
}

.catalogue-bento-card {
    grid-column: span 3;
    min-height: 100%;
    animation: bentoCardIn 0.35s ease both;
}

.catalogue-bento-card.is-featured {
    grid-column: span 6;
    grid-row: span 2;
}

.catalogue-bento-card.is-wide {
    grid-column: span 6;
}

.catalogue-bento-card.is-tall {
    grid-column: span 3;
    grid-row: span 2;
}

.catalogue-bento-card.is-featured .article-card-image {
    aspect-ratio: 16 / 10;
}

.catalogue-bento-card.is-wide .article-card-image {
    aspect-ratio: 16 / 9;
}

.catalogue-bento-card.is-tall .article-card-image {
    aspect-ratio: 3 / 4;
}

.catalogue-bento-card.is-featured .article-card-body {
    padding: 18px;
}

.catalogue-bento-card.is-featured .article-card-top h3 {
    font-size: 1.28rem;
    line-height: 1.15;
}

.catalogue-bento-card.is-featured .article-card-top strong {
    font-size: 1.18rem;
}

.catalogue-bento-card.is-wide .article-card-body {
    padding: 16px;
}

.catalogue-bento-card.is-tall .article-card-body {
    padding: 16px;
}

.article-card {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 44%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: var(--shadow-md);
}

.article-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--surface-muted);
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.04);
    filter: saturate(1.05);
}

.article-card-body {
    position: relative;
    z-index: 2;
    padding: 14px;
}

.article-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.article-card-top h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-top strong {
    color: var(--primary-dark);
    white-space: nowrap;
    font-weight: 950;
}

.article-meta,
.article-seller {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.article-tags span {
    max-width: 100%;
    background: var(--surface-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.06);
}

.favorite-btn.is-active {
    color: #ef4444;
    background: #fff;
}

.badge-don,
.article-status-badge {
    position: absolute;
    top: 12px;
    z-index: 7;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 950;
    font-size: 0.74rem;
    border: 2px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.badge-don {
    left: 12px;
    background: var(--primary);
    color: #fff;
}

.article-status-badge {
    right: 58px;
}

.article-status-badge.status-reserved {
    background: var(--secondary-soft);
    color: var(--secondary);
}

@keyframes bentoCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* =========================================================
   CATALOGUE BENTO RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .articles-grid {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }

    .catalogue-bento-card {
        grid-column: span 3;
    }

    .catalogue-bento-card.is-featured,
    .catalogue-bento-card.is-wide {
        grid-column: span 6;
    }
}

@media (max-width: 920px) {
    .articles-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 13px;
    }

    .catalogue-bento-card {
        grid-column: span 3;
    }

    .catalogue-bento-card.is-featured {
        grid-column: span 6;
        grid-row: span 1;
    }

    .catalogue-bento-card.is-wide {
        grid-column: span 6;
    }

    .catalogue-bento-card.is-tall {
        grid-column: span 3;
        grid-row: span 1;
    }

    .catalogue-bento-card.is-featured .article-card-image {
        aspect-ratio: 16 / 9;
    }

    .catalogue-bento-card.is-tall .article-card-image {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 760px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .catalogue-bento-card,
    .catalogue-bento-card.is-tall {
        grid-column: span 1;
        grid-row: auto;
    }

    .catalogue-bento-card.is-featured,
    .catalogue-bento-card.is-wide {
        grid-column: span 2;
        grid-row: auto;
    }

    .catalogue-bento-card.is-featured .article-card-image,
    .catalogue-bento-card.is-wide .article-card-image {
        aspect-ratio: 16 / 10;
    }

    .catalogue-bento-card .article-card-image,
    .catalogue-bento-card.is-tall .article-card-image {
        aspect-ratio: 1 / 1;
    }

    .article-card {
        border-radius: 21px;
    }

    .article-card-body {
        padding: 11px;
    }

    .catalogue-bento-card.is-featured .article-card-body,
    .catalogue-bento-card.is-wide .article-card-body,
    .catalogue-bento-card.is-tall .article-card-body {
        padding: 12px;
    }

    .catalogue-bento-card.is-featured .article-card-top h3 {
        font-size: 1.05rem;
    }

    .catalogue-bento-card.is-featured .article-card-top strong {
        font-size: 1rem;
    }

    .article-card-top {
        flex-direction: column;
        gap: 4px;
    }

    .article-card-top h3 {
        font-size: 0.88rem;
    }

    .article-card-top strong {
        font-size: 0.92rem;
    }

    .article-meta,
    .article-seller {
        font-size: 0.72rem;
        margin-top: 6px;
    }

    .article-tags {
        gap: 5px;
        margin-top: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .article-tags::-webkit-scrollbar {
        display: none;
    }

    .article-tags span {
        flex: 0 0 auto;
        max-width: 96px;
        font-size: 0.62rem;
        padding: 4px 6px;
    }

    .favorite-btn {
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
        font-size: 1.16rem;
    }

    .badge-don,
    .article-status-badge {
        top: 8px;
        padding: 5px 8px;
        font-size: 0.64rem;
    }

    .badge-don {
        left: 8px;
    }

    .article-status-badge {
        right: 48px;
    }
}

@media (max-width: 360px) {
    .articles-grid {
        gap: 9px;
    }

    .article-card-body {
        padding: 9px;
    }

    .article-card-top h3 {
        font-size: 0.82rem;
    }

    .article-meta,
    .article-seller {
        font-size: 0.68rem;
    }
}
/* =========================================================
   CATALOGUE INFINITE SCROLL STATES
========================================================= */

.catalogue-scroll-sentinel {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 6px;
}

.catalogue-loading-more,
.catalogue-end {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    box-shadow: var(--shadow-xs);
    text-align: center;
}

.catalogue-loading-more span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--surface-muted);
    border-top-color: var(--primary);
    animation: catalogueSpinner 0.8s linear infinite;
}

.catalogue-loading-more strong,
.catalogue-end strong {
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 900;
}

.catalogue-end {
    flex-direction: column;
    gap: 3px;
    border-style: dashed;
    border-radius: 22px;
}

.catalogue-end span {
    font-size: 0.8rem;
}

@keyframes catalogueSpinner {
    to {
        transform: rotate(360deg);
    }
}
/* =========================================================
   CATALOGUE - BADGE NOUVEAU
========================================================= */

.badge-new {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.catalogue-bento-card.is-featured .badge-new {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 0.78rem;
}

@media (max-width: 760px) {
    .badge-new {
        left: 8px;
        bottom: 8px;
        min-height: 25px;
        padding: 5px 8px;
        font-size: 0.62rem;
    }
}
/* =========================================================
   BACK TO TOP BUTTON
========================================================= */

.back-to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 140;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 42%),
        var(--primary);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--primary) 26%, transparent);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
}

[data-theme="dark"] .back-to-top-btn {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

@media (min-width: 761px) {
    .back-to-top-btn {
        bottom: 24px;
    }
}

@media (max-width: 420px) {
    .back-to-top-btn {
        right: 14px;
        bottom: 88px;
        width: 44px;
        height: 44px;
        border-radius: 16px;
        font-size: 1.25rem;
    }
}
/* =========================================================
   CATALOGUE EDITORIAL CARD
========================================================= */

.catalogue-editorial-card {
    grid-column: span 6;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 22%, transparent), transparent 44%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow-md);
    animation: bentoCardIn 0.35s ease both;
}

.catalogue-editorial-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    font-size: 1.6rem;
}

.catalogue-editorial-card h3 {
    max-width: 520px;
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.catalogue-editorial-card p {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.catalogue-editorial-card a {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 20%, transparent);
    transition: transform 0.2s ease, background 0.2s ease;
}

.catalogue-editorial-card a:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}

@media (max-width: 920px) {
    .catalogue-editorial-card {
        grid-column: span 6;
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .catalogue-editorial-card {
        grid-column: span 2;
        min-height: 210px;
        padding: 20px;
        border-radius: 24px;
    }

    .catalogue-editorial-icon {
        width: 46px;
        height: 46px;
        border-radius: 17px;
        font-size: 1.35rem;
    }

    .catalogue-editorial-card h3 {
        font-size: 1.4rem;
    }

    .catalogue-editorial-card p {
        font-size: 0.86rem;
    }

    .catalogue-editorial-card a {
        width: 100%;
    }
}
/* =========================================================
   CATALOGUE VIEW TOGGLE
========================================================= */

.catalogue-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.catalogue-view-toggle button {
    min-height: 34px;
    border: none;
    border-radius: 999px;
    padding: 7px 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.catalogue-view-toggle button:hover {
    color: var(--primary-dark);
}

.catalogue-view-toggle button.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* =========================================================
   CATALOGUE COMPACT MODE
========================================================= */

.articles-grid[data-catalogue-view="compact"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 14px;
}

.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-featured,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-wide,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-tall {
    grid-column: span 1;
    grid-row: auto;
}

.articles-grid[data-catalogue-view="compact"] .catalogue-editorial-card {
    grid-column: span 2;
    min-height: 220px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-image,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-featured .article-card-image,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-wide .article-card-image,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-tall .article-card-image {
    aspect-ratio: 1 / 1;
}

.articles-grid[data-catalogue-view="compact"] .article-card {
    border-radius: 22px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-body {
    padding: 12px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-top {
    flex-direction: column;
    gap: 4px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-top h3 {
    font-size: 0.92rem;
}

.articles-grid[data-catalogue-view="compact"] .article-meta,
.articles-grid[data-catalogue-view="compact"] .article-seller {
    font-size: 0.74rem;
}

@media (max-width: 1180px) {
    .articles-grid[data-catalogue-view="compact"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .articles-grid[data-catalogue-view="compact"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .articles-grid[data-catalogue-view="compact"] .catalogue-editorial-card {
        grid-column: span 3;
    }
}

@media (max-width: 760px) {
    .catalogue-toolbar {
        align-items: flex-start;
        gap: 12px;
    }

    .catalogue-view-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .catalogue-view-toggle button {
        width: 100%;
    }

    .articles-grid[data-catalogue-view="compact"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .articles-grid[data-catalogue-view="compact"] .catalogue-editorial-card {
        grid-column: span 2;
    }
}
/* =========================================================
   QUICK STATS COMPACTES
========================================================= */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.quick-stats article {
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72));
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.quick-stats span {
    display: block;
    color: var(--text-strong);
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.quick-stats small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 850;
}

[data-theme="dark"] .quick-stats article {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(31, 41, 55, 0.76));
}

@media (max-width: 760px) {
    .quick-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin: 12px 0 14px;
    }

    .quick-stats article {
        min-height: 58px;
        padding: 10px 9px;
        border-radius: 17px;
    }

    .quick-stats span {
        font-size: 1rem;
    }

    .quick-stats small {
        margin-top: 5px;
        font-size: 0.62rem;
        line-height: 1.15;
    }
}
/* =========================================================
   CATALOGUE TOOLBAR CLEAN
========================================================= */

.catalogue-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 14px;
}

.catalogue-toolbar h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

.catalogue-toolbar p {
    display: none;
}

@media (max-width: 760px) {
    .catalogue-toolbar {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 10px;
        margin: 12px 0 12px;
    }

    .catalogue-toolbar h2 {
        font-size: 1.55rem;
    }
}
/* =========================================================
   MOBILE FILTERS BOTTOM SHEET + ACTIVE CHIPS
========================================================= */

.mobile-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mobile-filter-btn em {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 68;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(5px);
}

.filters-sheet-overlay.hidden {
    display: none !important;
}

.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 14px;
    padding: 2px 0 4px;
    scrollbar-width: none;
}

.active-filters-bar::-webkit-scrollbar {
    display: none;
}

.active-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    color: var(--primary-dark);
    padding: 7px 10px 7px 12px;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.active-filter-chip strong {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

.filters-mobile-actions {
    display: none;
}

@media (max-width: 920px) {
    .filters-panel {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        z-index: 72;
        max-height: min(82vh, 720px);
        overflow-y: auto;
        padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
        border-radius: 28px 28px 0 0;
        border: 1px solid var(--border);
        background: var(--surface);
        box-shadow: 0 -24px 80px rgba(15, 23, 42, 0.26);
        transform: translateY(105%);
        transition: transform 0.28s ease;
    }

    .filters-panel.is-open {
        transform: translateY(0);
    }

    .filters-panel::before {
        content: "";
        display: block;
        width: 44px;
        height: 5px;
        margin: 0 auto 16px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--muted) 34%, transparent);
    }

    .filters-header {
        position: sticky;
        top: -20px;
        z-index: 3;
        margin: -4px -2px 16px;
        padding: 4px 2px 12px;
        background: var(--surface);
    }

    .filters-mobile-actions {
        position: sticky;
        bottom: -18px;
        z-index: 4;
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        gap: 10px;
        margin: 18px -18px calc(-18px - env(safe-area-inset-bottom));
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
    }

    .filters-mobile-reset,
    .filters-mobile-apply {
        min-height: 48px;
        border: none;
        border-radius: 999px;
        font-weight: 950;
        cursor: pointer;
    }

    .filters-mobile-reset {
        background: var(--surface-muted);
        color: var(--text);
    }

    .filters-mobile-apply {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 22%, transparent);
    }
}

@media (max-width: 420px) {
    .filters-panel {
        max-height: 86vh;
        border-radius: 24px 24px 0 0;
        padding-inline: 14px;
    }

    .filters-mobile-actions {
        margin-inline: -14px;
        padding-inline: 14px;
    }
}
/* =========================================================
   LANDING PAGE / INDEX
========================================================= */

.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 168, 120, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(94, 96, 206, 0.18), transparent 34%),
        #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
}

.landing-light {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.32;
    pointer-events: none;
    animation: landingBreathe 10s ease-in-out infinite alternate;
}

.landing-light-one {
    width: 42vw;
    height: 42vw;
    top: -16vw;
    left: -12vw;
    background: #00a878;
}

.landing-light-two {
    width: 38vw;
    height: 38vw;
    right: -14vw;
    bottom: -16vw;
    background: #5e60ce;
    animation-direction: alternate-reverse;
}

@keyframes landingBreathe {
    from {
        transform: scale(0.86) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.12) translate3d(24px, 24px, 0);
    }
}

.landing-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 80;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.landing-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.landing-brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    transition: 0.22s ease;
}

.landing-nav a:hover {
    background: rgba(15, 23, 42, 0.07);
    color: #0f172a;
}

.landing-nav-main {
    background: #0f172a;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.landing-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 46px;
    min-height: 100vh;
    padding: 120px 0 130px;
}

.landing-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 24px;
    padding: 9px 15px;
    border: 1px solid rgba(0, 168, 120, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: #008a63;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.landing-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(4rem, 10vw, 9.4rem);
    font-weight: 950;
    line-height: 0.84;
    letter-spacing: -0.085em;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, #00a878, #5e60ce);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-intro {
    max-width: 690px;
    margin: 30px 0 0;
    color: #475569;
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    line-height: 1.45;
    font-weight: 600;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: 0.24s ease;
}

.landing-btn-primary {
    background: linear-gradient(135deg, #00a878, #16db93);
    color: #052e24;
    box-shadow: 0 16px 30px rgba(0, 168, 120, 0.22);
}

.landing-btn-secondary {
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.landing-btn:hover {
    transform: translateY(-3px);
}

.landing-hero-card {
    display: flex;
    justify-content: center;
}

.landing-phone {
    width: min(360px, 100%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(26px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
    transform: rotate(2deg);
}

.landing-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.landing-phone-top span {
    width: 34px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
}

.landing-phone-top strong {
    font-size: 0.88rem;
    font-weight: 900;
}

.landing-phone-top em {
    color: #00a878;
    font-style: normal;
    filter: drop-shadow(0 0 5px rgba(0, 168, 120, 0.8));
}

.landing-product {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.landing-product-large {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.1)),
        linear-gradient(135deg, #c7d2fe, #bdeadd);
    color: #ffffff;
}

.landing-product-large strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.landing-product-large small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.landing-product-large b {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
}

.landing-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.landing-product.small {
    min-height: 110px;
    padding: 16px;
}

.landing-product.small strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 950;
}

.landing-product.small small {
    color: #475569;
    font-weight: 900;
}

.landing-product.small.teal {
    background: linear-gradient(135deg, #dcfce7, #bdeadd);
}

.landing-product.small.purple {
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
}

.landing-message-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #0f172a;
    color: #ffffff;
}

.landing-message-preview p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
}

.landing-marquee {
    position: absolute;
    bottom: 62px;
    left: 50%;
    z-index: 12;
    width: 120vw;
    overflow: hidden;
    padding: 20px 0;
    background: #0f172a;
    transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.landing-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 28px;
    color: #ffffff;
    white-space: nowrap;
    animation: landingMarquee 28s linear infinite;
}

.landing-marquee-track span {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-marquee-track span:nth-of-type(3n + 1) {
    color: #16db93;
}

.landing-marquee-track span:nth-of-type(3n + 2) {
    color: #c7d2fe;
}

.landing-marquee-track span:nth-of-type(3n + 3) {
    color: #fbcfe8;
}

.landing-marquee-track em {
    color: rgba(255, 255, 255, 0.28);
    font-style: normal;
    font-weight: 900;
}

@keyframes landingMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.landing-section {
    padding: 70px 0 30px;
}

.landing-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.landing-section-heading p {
    margin: 0;
    color: #00a878;
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.landing-section-heading h2 {
    max-width: 600px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-align: right;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.landing-steps article {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.landing-steps span {
    display: inline-flex;
    margin-bottom: 38px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 950;
}

.landing-steps h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.landing-steps p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-weight: 650;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 50px 0 90px;
    padding: 36px;
    border-radius: 42px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.landing-cta p {
    margin: 0 0 10px;
    color: #16db93;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.landing-cta h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

@media (max-width: 900px) {
    .landing-header {
        top: 10px;
        border-radius: 28px;
        align-items: flex-start;
    }

    .landing-nav {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .landing-nav a {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 130px;
        padding-bottom: 150px;
    }

    .landing-hero h1 {
        font-size: clamp(4rem, 18vw, 7.2rem);
    }

    .landing-phone {
        transform: none;
    }

    .landing-marquee {
        bottom: 50px;
        padding: 16px 0;
    }

    .landing-section-heading {
        display: block;
    }

    .landing-section-heading h2 {
        margin-top: 10px;
        text-align: left;
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .landing-page {
        width: min(100% - 24px, 1180px);
    }

    .landing-header {
        width: calc(100% - 20px);
        padding: 10px;
    }

    .landing-brand span:last-child {
        display: none;
    }

    .landing-nav a[href="privacy.php"],
    .landing-nav a[href="charte.php"] {
        display: none;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 116px;
    }

    .landing-kicker {
        font-size: 0.7rem;
    }

    .landing-intro {
        font-size: 1rem;
    }

    .landing-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .landing-btn {
        width: 100%;
    }

    .landing-phone {
        border-radius: 34px;
    }

    .landing-product-large {
        min-height: 220px;
    }

    .landing-marquee {
        bottom: 20px;
    }

    .landing-marquee-track {
        gap: 20px;
        animation-duration: 22s;
    }

    .landing-cta {
        padding: 26px;
        border-radius: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-light,
    .landing-marquee-track {
        animation: none;
    }

    .landing-btn:hover {
        transform: none;
    }
}
/* =========================================================
   LANDING HEADER MOBILE COMPACT
========================================================= */

@media (max-width: 560px) {
    .landing-header {
        width: calc(100% - 20px);
        padding: 8px 10px;
        border-radius: 999px;
        gap: 8px;
    }

    .landing-brand {
        flex-shrink: 0;
    }

    .landing-brand-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .landing-nav {
        margin-left: auto;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .landing-nav a {
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .landing-nav a[href="charte.php"],
    .landing-nav a[href="privacy.php"] {
        display: none;
    }

    .landing-nav a[href="login.php"] {
        display: none;
    }

    .landing-nav a[href="register.php"] {
        padding: 0 14px;
    }

    .landing-nav a[href="register.php"]::before {
        content: "Créer";
    }

    .landing-nav a[href="register.php"] {
        font-size: 0;
    }

    .landing-nav a[href="register.php"]::before {
        font-size: 0.76rem;
    }
}
/* =========================================================
   FIX LANDING HEADER - NO HORIZONTAL SCROLL
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.landing-header {
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.landing-nav {
    min-width: 0;
    flex-shrink: 1;
}

.landing-nav a {
    white-space: nowrap;
}

/* Tablette / petit écran */
@media (max-width: 760px) {
    .landing-header {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        transform: none;
        padding: 8px 10px;
        gap: 8px;
    }

    .landing-brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .landing-brand span:last-child {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .landing-nav {
        margin-left: auto;
        flex-shrink: 0;
        gap: 6px;
    }

    .landing-nav a[href="charte.php"],
    .landing-nav a[href="privacy.php"] {
        display: none;
    }

    .landing-nav a {
        min-height: 36px;
        padding: 0 13px;
        font-size: 0.78rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .landing-header {
        top: 10px;
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        padding: 7px 8px;
        border-radius: 999px;
    }

    .landing-brand-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .landing-brand span:last-child {
        max-width: 95px;
        font-size: 0.9rem;
    }

    .landing-nav a[href="login.php"] {
        display: none;
    }

    .landing-nav a[href="register.php"] {
        font-size: 0;
        padding: 0 14px;
    }

    .landing-nav a[href="register.php"]::before {
        content: "Créer";
        font-size: 0.78rem;
    }

    .landing-nav a[href="app.php"] {
        font-size: 0;
        padding: 0 14px;
    }

    .landing-nav a[href="app.php"]::before {
        content: "Entrer";
        font-size: 0.78rem;
    }
}
/* =========================================================
   PREMIUM UI LAYER - ALIGNEMENT AVEC INDEX
   À placer tout à la fin du fichier
========================================================= */

:root,
[data-theme="light"] {
    --premium-dark: #0f172a;
    --premium-glass: rgba(255, 255, 255, 0.72);
    --premium-glass-strong: rgba(255, 255, 255, 0.88);
    --premium-border: rgba(255, 255, 255, 0.72);
    --premium-radius-xl: 34px;
    --premium-radius-lg: 26px;
    --premium-ring: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

[data-theme="dark"] {
    --premium-dark: #f8fafc;
    --premium-glass: rgba(15, 23, 42, 0.72);
    --premium-glass-strong: rgba(17, 24, 39, 0.9);
    --premium-border: rgba(255, 255, 255, 0.12);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.app-shell,
.mobile-page-shell,
.article-detail-shell,
.messages-shell,
.my-articles-shell,
.profile-shell,
.favorites-shell,
.admin-shell,
.auth-page,
.dashboard-page,
.legal-page {
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

/* Header principal façon landing */
.app-header,
.mobile-topbar,
.admin-topbar {
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

@media (min-width: 921px) {
    .app-header {
        position: sticky;
        top: 14px;
        width: min(1280px, calc(100% - 32px));
        margin: 14px auto 0;
        border: 1px solid var(--premium-border);
        border-radius: 999px;
        padding: 10px 14px;
        min-height: 66px;
        box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
    }

    .app-body {
        width: min(1280px, calc(100% - 32px));
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Logo plus premium */
.app-logo-icon,
.site-footer-logo,
.profile-avatar-large,
.admin-user-avatar {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.38), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.app-logo {
    letter-spacing: -0.055em;
}

/* Recherche façon app moderne */
.app-search input,
.admin-search-input,
.filter-group input,
.filter-group select,
.form-group input,
.form-group select,
.form-group textarea,
.article-form textarea,
.chat-send-form textarea,
.report-form select,
.report-form textarea {
    border-color: color-mix(in srgb, var(--border) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}

.app-search input:focus,
.admin-search-input:focus,
.filter-group input:focus,
.filter-group select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.article-form textarea:focus,
.chat-send-form textarea:focus,
.report-form select:focus,
.report-form textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--premium-ring);
}

/* Boutons plus proches de l'index */
.btn-primary,
.btn-deposit,
.btn-primary-link,
.chat-send-form button,
.btn-admin-validate,
.btn-report-reviewed,
.filters-mobile-apply,
.confirm-action-btn,
.admin-user-actions button,
.catalogue-editorial-card a {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.btn-primary:hover,
.btn-deposit:hover,
.btn-primary-link:hover,
.chat-send-form button:hover,
.btn-admin-validate:hover,
.btn-report-reviewed:hover,
.filters-mobile-apply:hover,
.confirm-action-btn:hover,
.admin-user-actions button:hover,
.catalogue-editorial-card a:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
}

.btn-secondary,
.mobile-filter-btn,
.header-message-link,
.user-menu-btn,
.mobile-back,
.filters-reset,
.catalogue-view-toggle,
.quick-category-chip,
.my-articles-tabs button,
.admin-filter-select,
.admin-icon-action,
.admin-icon-scroll-btn {
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    box-shadow: var(--shadow-xs);
}

/* Hero catalogue plus cohérent avec index */
.market-hero,
.admin-hero,
.my-articles-hero,
.profile-card,
.auth-card,
.dashboard-card,
.legal-hero,
.form-card,
.article-gallery,
.article-detail-card,
.messages-list-panel,
.chat-panel,
.filters-panel,
.user-drawer,
.admin-operation-form-card,
.category-admin-panel,
.dash-contentbox {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, var(--premium-border));
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.market-hero,
.admin-hero,
.my-articles-hero,
.profile-card,
.form-card,
.article-gallery,
.article-detail-card,
.messages-list-panel,
.chat-panel {
    border-radius: var(--premium-radius-xl);
}

.market-hero h1,
.admin-hero h2,
.my-articles-hero h2,
.profile-hero h2,
.auth-header h1,
.dashboard-card h1,
.legal-hero h1,
.article-detail-head h2 {
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

/* Cartes catalogue plus modernes */
.article-card,
.my-article-card,
.admin-card,
.admin-article-card,
.admin-all-article-card,
.admin-user-card,
.admin-operation-card,
.admin-category-card,
.admin-subcategory-card,
.admin-report-card,
.legal-card,
.quick-stats article,
.landing-steps article {
    border-color: color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.article-card:hover,
.my-article-card:hover,
.admin-card:hover,
.admin-all-article-card:hover,
.admin-user-card:hover,
.admin-operation-card:hover,
.admin-category-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

/* Images plus "premium" */
.article-card-image,
.my-article-image,
.article-main-photo,
.admin-all-article-image,
.admin-article-image,
.report-target img,
.mc-img {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface-muted)), color-mix(in srgb, var(--secondary) 12%, var(--surface-muted)));
}

.article-card-image img,
.my-article-image img,
.article-main-photo img,
.admin-all-article-image img,
.admin-article-image img {
    transition: transform 0.38s ease, filter 0.38s ease;
}

.article-card:hover .article-card-image img,
.my-article-card:hover .my-article-image img,
.admin-all-article-card:hover .admin-all-article-image img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

/* Badges plus arrondis / visibles */
/* =========================================================
   DESKTOP FULL WIDTH MODE
   Affichage pleine largeur sur PC
========================================================= */

@media (min-width: 921px) {
    .app-header {
        width: calc(100% - 32px);
        max-width: none;
        margin: 14px 16px 0;
    }

    .app-body {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 16px;
        padding-left: 0;
        padding-right: 0;
    }

    .market-main {
        width: 100%;
    }

    .articles-grid {
        width: 100%;
    }
}
.badge-don,
.article-status-badge,
.badge-new,
.my-status-badge,
.report-status-badge,
.article-tags span,
.article-detail-tags span,
.admin-operation-stats span,
.admin-category-meta span {
    border: 1px solid color-mix(in srgb, var(--border) 62%, rgba(255,255,255,0.7));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.badge-new {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Filtres en panneau plus doux */
.filters-panel {
    border-radius: 30px;
}

.filter-group label {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 950;
}

/* Navigation mobile façon app */
.mobile-bottom-nav {
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(24px);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.mobile-nav-item {
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mobile-nav-item:active {
    transform: scale(0.96);
}

/* Toasts et modales plus cohérents */
.toast,
.confirm-modal {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    backdrop-filter: blur(22px);
}

.confirm-modal {
    border-radius: 34px;
}

/* Footer plus cohérent */
.site-footer {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(16px);
}

/* Petites corrections mobile */
@media (max-width: 920px) {
    .app-header {
        box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    }

    .filters-panel {
        border-radius: 30px 30px 0 0;
    }
}

@media (max-width: 760px) {
    .market-hero,
    .admin-hero,
    .my-articles-hero,
    .profile-card,
    .form-card,
    .article-gallery,
    .article-detail-card,
    .messages-list-panel,
    .chat-panel {
        border-radius: 26px;
    }

    .market-hero {
        padding: 24px;
    }

    .article-card,
    .my-article-card,
    .admin-all-article-card,
    .admin-user-card {
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    }
}
/* =========================================================
   ARTICLE DETAIL PREMIUM V2
========================================================= */

.article-premium-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
    gap: 22px;
    align-items: start;
}

.article-premium-gallery,
.article-premium-card {
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    border-radius: 36px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(20px);
}

.article-premium-gallery {
    padding: 16px;
}

.article-premium-main-photo {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface-muted)), color-mix(in srgb, var(--secondary) 12%, var(--surface-muted)));
}

.article-premium-main-photo img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    display: block;
    object-fit: cover;
}

.article-premium-floating {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.article-premium-status,
.article-premium-price {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
    font-size: 0.88rem;
    font-weight: 950;
}

.article-premium-price {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.article-premium-status.status-available {
    color: #bbf7d0;
}

.article-premium-status.status-reserved {
    color: #fde68a;
}

.article-premium-status.status-sold {
    color: #e5e7eb;
}

.article-premium-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.article-premium-thumbs .article-thumb {
    border-radius: 22px;
    border: 2px solid transparent;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.article-premium-thumbs .article-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 22%, transparent);
}

.article-premium-card {
    position: sticky;
    top: 96px;
    padding: 26px;
}

.article-premium-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.article-premium-head h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: -0.085em;
    font-weight: 950;
}

.article-premium-price-card {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 14px 16px;
    border-radius: 24px;
    background: #0f172a;
    color: #fff;
    text-align: right;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.20);
}

.article-premium-price-card span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.62);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-premium-price-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
}

.article-premium-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.article-premium-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 850;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.article-premium-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.article-premium-meta article {
    min-width: 0;
    padding: 13px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid var(--border);
}

.article-premium-meta strong,
.article-premium-meta span {
    display: block;
}

.article-premium-meta strong {
    color: var(--text-strong);
    font-size: 0.92rem;
    line-height: 1.1;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-premium-meta span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-premium-section {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-premium-section h3 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.article-premium-section p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.article-premium-seller {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 14px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 46%),
        color-mix(in srgb, var(--surface-soft) 82%, transparent);
    border: 1px solid var(--border);
}

.article-premium-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.34), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 950;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.article-premium-seller-text {
    min-width: 0;
}

.article-premium-seller-text span {
    display: block;
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-premium-seller-text strong {
    display: block;
    margin-top: 2px;
    color: var(--text-strong);
    font-size: 1.05rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-premium-seller-text p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.article-premium-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.6fr);
    gap: 10px;
    margin-top: 22px;
}

.article-premium-actions .btn-primary,
.article-premium-actions .btn-secondary {
    min-height: 52px;
    width: 100%;
}

.article-report-btn {
    background: color-mix(in srgb, var(--surface-soft) 90%, transparent);
    color: var(--muted);
}

.article-premium-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}

.article-premium-note strong {
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 950;
}

.article-premium-note span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 700;
}

[data-theme="dark"] .article-premium-price-card {
    background: #020617;
}

@media (max-width: 960px) {
    .article-premium-layout {
        grid-template-columns: 1fr;
    }

    .article-premium-card {
        position: static;
    }

    .article-premium-main-photo,
    .article-premium-main-photo img {
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    .article-detail-page {
        padding: 12px;
    }

    .article-premium-layout {
        gap: 12px;
    }

    .article-premium-gallery,
    .article-premium-card {
        border-radius: 28px;
    }

    .article-premium-gallery {
        padding: 10px;
    }

    .article-premium-main-photo {
        border-radius: 24px;
    }

    .article-premium-main-photo,
    .article-premium-main-photo img {
        min-height: 390px;
    }

    .article-premium-floating {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .article-premium-status,
    .article-premium-price {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 0.78rem;
    }

    .article-premium-card {
        padding: 18px;
    }

    .article-premium-head {
        flex-direction: column;
    }

    .article-premium-head h2 {
        font-size: clamp(2rem, 12vw, 3.3rem);
    }

    .article-premium-price-card {
        width: 100%;
        text-align: left;
    }

    .article-premium-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .article-premium-meta article {
        padding: 10px 8px;
        border-radius: 18px;
    }

    .article-premium-meta strong {
        font-size: 0.76rem;
    }

    .article-premium-meta span {
        font-size: 0.58rem;
    }

    .article-premium-actions {
        position: sticky;
        bottom: 92px;
        z-index: 20;
        grid-template-columns: 1fr auto;
        margin: 22px -18px -18px;
        padding: 12px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(18px);
        border-radius: 0 0 28px 28px;
    }

    .article-premium-actions .btn-primary {
        min-height: 50px;
    }

    .article-premium-actions .article-report-btn {
        width: 52px;
        min-width: 52px;
        padding: 0;
        font-size: 0;
    }

    .article-premium-actions .article-report-btn::before {
        content: "!";
        font-size: 1.2rem;
        font-weight: 950;
    }

    .article-premium-note {
        margin-bottom: 12px;
    }
}

@media (max-width: 420px) {
    .article-premium-main-photo,
    .article-premium-main-photo img {
        min-height: 330px;
    }

    .article-premium-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .article-premium-tags::-webkit-scrollbar {
        display: none;
    }

    .article-premium-tags span {
        flex: 0 0 auto;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .article-premium-seller {
        align-items: flex-start;
    }
}
/* =========================================================
   ARTICLES SIMILAIRES
========================================================= */

.similar-articles-section {
    margin-top: 22px;
    padding: 26px;
    border-radius: 36px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.similar-articles-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.similar-articles-head h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.similar-articles-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 950;
    box-shadow: var(--shadow-xs);
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.similar-article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.similar-article-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
}

.similar-article-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 12%, var(--surface-muted)), color-mix(in srgb, var(--secondary) 12%, var(--surface-muted)));
    overflow: hidden;
}

.similar-article-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.similar-article-card:hover .similar-article-img img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.similar-article-img span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(12px);
    font-size: 0.68rem;
    font-weight: 950;
}

.similar-article-body {
    padding: 13px;
}

.similar-article-body strong {
    display: -webkit-box;
    color: var(--text-strong);
    font-size: 0.95rem;
    line-height: 1.18;
    letter-spacing: -0.035em;
    font-weight: 950;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-article-body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-article-body b {
    display: block;
    margin-top: 9px;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 950;
}

.similar-loading,
.similar-empty {
    grid-column: 1 / -1;
    min-height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 26px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border: 1px dashed var(--border);
    color: var(--muted);
    font-weight: 850;
}

.similar-empty {
    gap: 5px;
}

.similar-empty strong,
.similar-empty span {
    display: block;
}

.similar-empty strong {
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 950;
}

.similar-empty span {
    color: var(--muted);
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .similar-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .similar-articles-section {
        margin-top: 12px;
        padding: 18px;
        border-radius: 28px;
    }

    .similar-articles-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .similar-articles-link {
        width: 100%;
    }

    .similar-articles-grid {
        gap: 10px;
    }

    .similar-article-card {
        border-radius: 22px;
    }

    .similar-article-body {
        padding: 10px;
    }

    .similar-article-body strong {
        font-size: 0.84rem;
    }

    .similar-article-body p {
        font-size: 0.68rem;
    }

    .similar-article-body b {
        font-size: 0.9rem;
    }
}

@media (max-width: 380px) {
    .similar-articles-grid {
        gap: 8px;
    }

    .similar-article-card {
        border-radius: 18px;
    }

    .similar-article-body {
        padding: 9px;
    }
}
/* =========================================================
   ADD ARTICLE PREMIUM
========================================================= */

.add-article-premium-page {
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.add-article-premium-main {
    max-width: 1280px;
}

.add-article-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 12%, transparent), transparent 40%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.add-article-hero h2 {
    max-width: 760px;
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.085em;
    font-weight: 950;
}

.add-article-hero p:last-child {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 700;
}

.add-article-hero-badge {
    flex: 0 0 auto;
    width: 172px;
    min-height: 150px;
    padding: 18px;
    border-radius: 30px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
}

.add-article-hero-badge span,
.add-article-hero-badge strong,
.add-article-hero-badge small {
    display: block;
}

.add-article-hero-badge span {
    font-size: 2rem;
    margin-bottom: 18px;
}

.add-article-hero-badge strong {
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.add-article-hero-badge small {
    margin-top: 8px;
    color: rgba(255,255,255,0.62);
    font-weight: 800;
}

.add-article-premium-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.add-article-form-card,
.add-preview-card {
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.add-form-section {
    padding-bottom: 24px;
}

.add-section-title {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    align-items: start;
    margin-bottom: 16px;
}

.add-section-title > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 20%, transparent);
}

.add-section-title h2 {
    margin: 0 0 5px;
    color: var(--text-strong);
    font-size: 1.35rem;
    letter-spacing: -0.05em;
}

.add-section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
    font-weight: 650;
}

.add-upload-zone {
    min-height: 190px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 14%, transparent), transparent 45%),
        color-mix(in srgb, var(--primary) 6%, var(--surface));
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.add-upload-zone:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.add-price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.add-free-btn {
    min-height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.add-rules-box {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface-soft) 84%, transparent);
}

.add-article-preview {
    position: sticky;
    top: 100px;
}

.add-preview-card {
    padding: 18px;
}

.add-preview-header {
    margin-bottom: 14px;
}

.add-preview-header h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 2rem;
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.add-preview-visual {
    min-height: 330px;
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 15%, var(--surface-muted)), color-mix(in srgb, var(--secondary) 14%, var(--surface-muted)));
    color: var(--muted);
    position: relative;
}

.add-preview-visual span,
.add-preview-visual strong {
    display: block;
}

.add-preview-visual span {
    font-size: 2.3rem;
    margin-bottom: 8px;
}

.add-preview-visual strong {
    font-weight: 950;
}

.add-preview-visual img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    display: block;
}

.add-preview-content {
    padding: 14px 2px 0;
}

.add-preview-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.add-preview-title-row strong {
    color: var(--text-strong);
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.add-preview-title-row b {
    color: var(--primary-dark);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 950;
}

.add-preview-content p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 650;
}

.add-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.add-preview-tags span {
    max-width: 100%;
    padding: 6px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-preview-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}

.add-preview-note strong {
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 950;
}

.add-preview-note span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

@media (max-width: 980px) {
    .add-article-premium-layout {
        grid-template-columns: 1fr;
    }

    .add-article-preview {
        position: static;
        order: -1;
    }

    .add-preview-visual {
        min-height: 260px;
    }

    .add-preview-visual img {
        min-height: 260px;
    }
}

@media (max-width: 760px) {
    .add-article-premium-main {
        padding: 12px;
    }

    .add-article-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
        border-radius: 28px;
    }

    .add-article-hero h2 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .add-article-hero-badge {
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px 12px;
        align-items: center;
        padding: 14px;
        border-radius: 24px;
    }

    .add-article-hero-badge span {
        grid-row: span 2;
        margin: 0;
    }

    .add-article-form-card,
    .add-preview-card {
        border-radius: 28px;
    }

    .add-price-line {
        grid-template-columns: 1fr;
    }

    .add-free-btn {
        width: 100%;
    }

    .add-sticky-actions {
        margin-top: 18px;
    }
}

@media (max-width: 480px) {
    .add-section-title {
        grid-template-columns: 1fr;
    }

    .add-section-title > span {
        width: 34px;
        height: 34px;
        border-radius: 14px;
    }

    .add-preview-card {
        padding: 14px;
    }

    .add-preview-visual {
        min-height: 220px;
        border-radius: 22px;
    }

    .add-preview-visual img {
        min-height: 220px;
    }

    .add-preview-header h3 {
        font-size: 1.7rem;
    }
}
/* =========================================================
   ADD ARTICLE - PHOTO MANAGER
========================================================= */

.add-photo-manager {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.add-photo-manager:empty {
    display: none;
}

.add-photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    background: var(--surface-muted);
    border: 2px solid transparent;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.add-photo-item.is-main {
    border-color: var(--primary);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 22%, transparent);
}

.add-photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.add-photo-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(12px);
}

.add-photo-item.is-main .add-photo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.add-photo-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 6px;
}

.add-photo-actions button {
    border: none;
    min-height: 34px;
    border-radius: 999px;
    font-weight: 950;
    cursor: pointer;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.add-photo-main-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.72rem;
}

.add-photo-item.is-main .add-photo-main-btn {
    background: var(--primary);
    color: #fff;
}

.add-photo-delete-btn {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

.add-photo-help {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
}

.add-photo-help strong {
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 950;
}

.add-photo-help span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

@media (max-width: 520px) {
    .add-photo-manager {
        gap: 8px;
    }

    .add-photo-item {
        border-radius: 18px;
    }

    .add-photo-badge {
        font-size: 0.56rem;
        padding: 4px 6px;
    }

    .add-photo-actions {
        left: 6px;
        right: 6px;
        bottom: 6px;
        grid-template-columns: 1fr 30px;
        gap: 5px;
    }

    .add-photo-actions button {
        min-height: 30px;
    }

    .add-photo-main-btn {
        font-size: 0.62rem;
    }

    .add-photo-delete-btn {
        font-size: 1rem;
    }
}
/* =========================================================
   MESSAGES PREMIUM V2
========================================================= */

.messages-page {
    width: min(1320px, calc(100% - 24px));
    max-width: none;
    gap: 18px;
}

.messages-list-panel,
.chat-panel {
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.conversation-item-v2 {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 13px 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

.conversation-item-v2:hover,
.conversation-item-v2.is-active {
    background: color-mix(in srgb, var(--primary) 9%, transparent);
}

.conversation-item-v2.has-unread {
    background:
        radial-gradient(circle at left, color-mix(in srgb, var(--primary) 11%, transparent), transparent 54%),
        color-mix(in srgb, var(--surface) 88%, transparent);
}

.conversation-v2-img {
    position: relative;
    width: 64px;
    height: 64px;
}

.conversation-v2-img img {
    width: 64px;
    height: 64px;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    background: var(--surface-muted);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.conversation-v2-img em {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 950;
}

.conversation-v2-main {
    min-width: 0;
}

.conversation-v2-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.conversation-v2-top strong {
    min-width: 0;
    color: var(--text-strong);
    font-size: 0.96rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-v2-top small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.conversation-v2-title {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-v2-main p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.conversation-v2-meta span,
.conversation-v2-meta b {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 950;
}

.conversation-v2-meta span {
    background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
}

.conversation-v2-meta b {
    background: #0f172a;
    color: #fff;
}

.conversation-v2-meta .status-available {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}

.conversation-v2-meta .status-reserved {
    color: #92400e;
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.24);
}

.conversation-v2-meta .status-sold,
.conversation-v2-meta .status-archived,
.conversation-v2-meta .status-deleted {
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.22);
}

.chat-premium-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.chat-premium-article {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.chat-premium-article img {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--surface-muted);
}

.chat-premium-article span,
.chat-premium-article strong,
.chat-premium-article p {
    display: block;
}

.chat-premium-article span {
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.chat-premium-article strong {
    margin-top: 2px;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-premium-article p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.chat-see-article {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.quick-replies {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    scrollbar-width: none;
}

.quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-replies button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

.premium-chat-messages {
    padding: 18px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 5%, transparent), transparent 42%),
        transparent;
}

.premium-message-bubble {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.message-row.is-mine .premium-message-bubble {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 68%, var(--secondary)));
}

.message-row.is-other .premium-message-bubble {
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    border: 1px solid var(--border);
}

.premium-closed {
    margin: 12px 14px 0;
    border-radius: 24px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 42%),
        color-mix(in srgb, var(--surface) 88%, transparent);
}

.chat-send-form {
    position: sticky;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.chat-send-form textarea {
    resize: none;
    min-height: 48px;
    max-height: 110px;
    border-radius: 22px;
}

@media (min-width: 900px) {
    .messages-page {
        grid-template-columns: 390px minmax(0, 1fr);
        height: calc(100vh - 112px);
        align-items: stretch;
    }

    .messages-list-panel,
    .chat-panel {
        min-height: 0;
    }

    .conversations-list {
        max-height: calc(100vh - 210px);
        overflow-y: auto;
    }

    .chat-panel {
        min-height: 0;
    }

    .chat-content {
        min-height: 0;
    }

    .premium-chat-messages {
        max-height: none;
    }
}

@media (max-width: 760px) {
    .messages-page {
        width: min(100% - 18px, 1320px);
        padding: 8px 0 92px;
    }

    .messages-list-panel,
    .chat-panel {
        border-radius: 28px;
    }

    .conversation-item-v2 {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 12px;
    }

    .conversation-v2-img,
    .conversation-v2-img img {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .chat-premium-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-see-article {
        width: 100%;
    }

    .chat-send-form {
        grid-template-columns: 1fr auto;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .chat-send-form button {
        padding: 0 14px;
    }
}
/* =========================================================
   MESSAGES MOBILE APP MODE
========================================================= */

.mobile-chat-back-btn {
    display: none;
}

@media (max-width: 760px) {
    .messages-shell {
        min-height: 100vh;
    }

    .messages-page {
        display: block;
        width: min(100% - 18px, 1320px);
        margin: 0 auto;
        padding-bottom: 92px;
    }

    .messages-list-panel,
    .chat-panel {
        width: 100%;
    }

    .messages-shell:not(.is-chat-open) .chat-panel {
        display: none;
    }

    .messages-shell.is-chat-open .messages-list-panel {
        display: none;
    }

    .messages-shell.is-chat-open .chat-panel {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 96px);
        animation: mobileChatSlideIn 0.22s ease both;
    }

    .mobile-chat-back-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        color: var(--text-strong);
        font-weight: 950;
        cursor: pointer;
        backdrop-filter: blur(18px);
    }

    .mobile-chat-back-btn span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: color-mix(in srgb, var(--primary) 10%, var(--surface));
        color: var(--primary-dark);
        font-size: 1.1rem;
        font-weight: 950;
    }

    .mobile-chat-back-btn strong {
        font-size: 0.94rem;
        letter-spacing: -0.03em;
    }

    .messages-shell.is-chat-open .chat-content {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .messages-shell.is-chat-open .premium-chat-messages,
    .messages-shell.is-chat-open .chat-messages {
        flex: 1;
        overflow-y: auto;
        max-height: none;
        padding-bottom: 18px;
    }

    .messages-shell.is-chat-open .chat-send-form {
        position: sticky;
        bottom: 76px;
        z-index: 20;
        border-top: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(20px);
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .messages-shell.is-chat-open .chat-panel {
        border-radius: 28px;
        overflow: hidden;
    }

    .messages-shell.is-chat-open .chat-premium-head {
        border-top: none;
    }
}

@keyframes mobileChatSlideIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}




/* =========================================================
   CLEAN PATCH 01 — HEADER / CATALOGUE / FILTRES
   Nettoyage sécurisé sans toucher add-article / messages / admin
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* =========================
   APP SHELL
========================= */

.app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

/* =========================
   HEADER DESKTOP
========================= */

@media (min-width: 921px) {
    .app-header {
        position: sticky;
        top: 14px;
        z-index: 60;
        width: calc(100% - 32px);
        max-width: none;
        min-height: 66px;
        margin: 14px 16px 0;
        padding: 10px 14px;
        display: grid;
        grid-template-columns: auto minmax(320px, 720px) auto;
        align-items: center;
        gap: 18px;
        border-radius: 999px;
        border: 1px solid color-mix(in srgb, var(--border) 68%, rgba(255,255,255,0.72));
        background: color-mix(in srgb, var(--surface) 78%, transparent);
        backdrop-filter: blur(22px);
        box-shadow: 0 20px 55px rgba(15, 23, 42, 0.09);
    }

    .app-body {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 16px;
        padding: 24px 0 40px;
        display: grid;
        grid-template-columns: 286px minmax(0, 1fr);
        gap: 24px;
    }

    .market-main,
    .articles-grid {
        width: 100%;
    }
}

/* =========================
   LOGO / ACTIONS HEADER
========================= */

.app-logo {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 950;
    text-decoration: none;
    letter-spacing: -0.055em;
}

.app-logo-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.38), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 20%, transparent);
}

.app-search {
    min-width: 0;
}

.app-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    border-radius: 999px;
    padding: 0 18px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}

.app-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.app-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.header-message-link,
.user-menu-btn,
.btn-deposit {
    box-shadow: var(--shadow-xs);
}

.btn-deposit {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
}

/* =========================
   HERO CATALOGUE
========================= */

.market-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 32px;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.market-hero h1 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.market-hero p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   STATS CATALOGUE
========================= */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}

.quick-stats article {
    min-height: 78px;
    padding: 14px 16px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.quick-stats span {
    display: block;
    color: var(--text-strong);
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.quick-stats small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 850;
}

/* =========================
   TOOLBAR CATALOGUE
========================= */

.catalogue-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 14px;
}

.catalogue-toolbar h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.catalogue-toolbar p {
    display: none;
}

.catalogue-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    box-shadow: var(--shadow-xs);
}

.catalogue-view-toggle button {
    min-height: 34px;
    border: none;
    border-radius: 999px;
    padding: 7px 12px;
    background: transparent;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
}

.catalogue-view-toggle button.is-active {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* =========================
   FILTRES DESKTOP
========================= */

.filters-panel {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 20px;
    border-radius: 30px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.filters-header h2 {
    margin: 0;
    color: var(--text-strong);
    letter-spacing: -0.05em;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 15px;
}

.filter-group label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 950;
}

.filter-group input,
.filter-group select {
    min-height: 44px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    padding: 0 13px;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* =========================
   CHIPS CATEGORIES
========================= */

.quick-category-strip {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
}

.quick-category-strip::-webkit-scrollbar {
    display: none;
}

.quick-category-chip {
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--muted);
    padding: 8px 13px;
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.quick-category-chip.is-active {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    border-color: var(--primary);
    color: #fff;
}

/* =========================
   ACTIVE FILTERS
========================= */

.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 14px;
    padding: 2px 0 4px;
    scrollbar-width: none;
}

.active-filters-bar::-webkit-scrollbar {
    display: none;
}

.active-filter-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    color: var(--primary-dark);
    padding: 7px 10px 7px 12px;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
}

.active-filter-chip strong {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

/* =========================
   MOBILE HEADER / FILTRES
========================= */

@media (max-width: 920px) {
    .app-header {
        position: sticky;
        top: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        min-height: 72px;
        padding: 12px 14px;
        border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
        background: color-mix(in srgb, var(--surface) 78%, transparent);
        backdrop-filter: blur(22px);
        box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    }

    .app-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .quick-category-strip {
        display: flex !important;
        grid-column: 1 / -1;
        order: 4;
        margin-top: -2px;
        padding: 0 0 4px;
    }

    .app-body {
        display: grid;
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .filters-sheet-overlay {
        position: fixed;
        inset: 0;
        z-index: 68;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(5px);
    }

    .filters-sheet-overlay.hidden {
        display: none !important;
    }

    .filters-panel {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        z-index: 72;
        max-height: min(82vh, 720px);
        overflow-y: auto;
        padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
        border-radius: 30px 30px 0 0;
        border: 1px solid var(--border);
        background: var(--surface);
        box-shadow: 0 -24px 80px rgba(15, 23, 42, 0.26);
        transform: translateY(105%);
        transition: transform 0.28s ease;
    }

    .filters-panel.is-open {
        transform: translateY(0);
    }

    .filters-panel::before {
        content: "";
        display: block;
        width: 44px;
        height: 5px;
        margin: 0 auto 16px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--muted) 34%, transparent);
    }

    .filters-header {
        position: sticky;
        top: -20px;
        z-index: 3;
        margin: -4px -2px 16px;
        padding: 4px 2px 12px;
        background: var(--surface);
    }

    .filters-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
        border-radius: 999px;
        background: color-mix(in srgb, var(--surface) 82%, transparent);
        color: var(--text);
        padding: 12px 16px;
        font-weight: 900;
        box-shadow: var(--shadow-xs);
    }

    .mobile-filter-btn em {
        min-width: 22px;
        height: 22px;
        padding: 0 7px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 950;
        font-style: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .filters-mobile-actions {
        position: sticky;
        bottom: -18px;
        z-index: 4;
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        gap: 10px;
        margin: 18px -18px calc(-18px - env(safe-area-inset-bottom));
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--border);
    }

    .filters-mobile-reset,
    .filters-mobile-apply {
        min-height: 48px;
        border: none;
        border-radius: 999px;
        font-weight: 950;
        cursor: pointer;
    }

    .filters-mobile-reset {
        background: var(--surface-muted);
        color: var(--text);
    }

    .filters-mobile-apply {
        background:
            radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
            linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
        color: #fff;
        box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 22%, transparent);
    }
}

@media (min-width: 921px) {
    .quick-category-strip {
        display: none !important;
    }
}

/* =========================
   MOBILE COMPACT
========================= */

@media (max-width: 760px) {
    .app-shell {
        padding-bottom: 92px;
    }

    .desktop-message-link,
    .desktop-deposit-btn {
        display: none;
    }

    .app-logo {
        font-size: 1rem;
    }

    .app-logo span:last-child {
        display: inline;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-search input {
        height: 46px;
        padding: 12px 16px;
        font-size: 16px;
    }

    .user-menu-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
    }

    .user-menu-name {
        display: none;
    }

    .market-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
        border-radius: 26px;
    }

    .market-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .quick-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin: 12px 0 14px;
    }

    .quick-stats article {
        min-height: 58px;
        padding: 10px 9px;
        border-radius: 17px;
    }

    .quick-stats span {
        font-size: 1rem;
    }

    .quick-stats small {
        margin-top: 5px;
        font-size: 0.62rem;
        line-height: 1.15;
    }

    .catalogue-toolbar {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 10px;
        margin: 12px 0;
    }

    .catalogue-view-toggle {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .catalogue-view-toggle button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .filters-panel {
        max-height: 86vh;
        border-radius: 24px 24px 0 0;
        padding-inline: 14px;
    }

    .filters-mobile-actions {
        margin-inline: -14px;
        padding-inline: 14px;
    }
}

/* =========================================================
   CLEAN PATCH 02 — CARTES ARTICLES / FAVORIS / BENTO GRID
   Nettoyage sécurisé du catalogue sans toucher formulaires/messages/admin
========================================================= */

/* =========================
   GRILLE CATALOGUE BENTO
========================= */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.catalogue-bento-card {
    grid-column: span 3;
    min-height: 100%;
    animation: bentoCardIn 0.35s ease both;
}

.catalogue-bento-card.is-featured {
    grid-column: span 6;
    grid-row: span 2;
}

.catalogue-bento-card.is-wide {
    grid-column: span 6;
}

.catalogue-bento-card.is-tall {
    grid-column: span 3;
    grid-row: span 2;
}

.catalogue-bento-card .article-card-image {
    aspect-ratio: 1 / 1;
}

.catalogue-bento-card.is-featured .article-card-image {
    aspect-ratio: 16 / 10;
}

.catalogue-bento-card.is-wide .article-card-image {
    aspect-ratio: 16 / 9;
}

.catalogue-bento-card.is-tall .article-card-image {
    aspect-ratio: 3 / 4;
}

/* =========================
   CARTE ARTICLE
========================= */

.article-card {
    position: relative;
    isolation: isolate;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.article-card-image {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.article-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.38s ease, filter 0.38s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.article-card-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.catalogue-bento-card.is-featured .article-card-body,
.catalogue-bento-card.is-wide .article-card-body,
.catalogue-bento-card.is-tall .article-card-body {
    padding: 16px;
}

.catalogue-bento-card.is-featured .article-card-body {
    padding: 18px;
}

.article-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.article-card-top h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalogue-bento-card.is-featured .article-card-top h3 {
    font-size: 1.28rem;
    line-height: 1.15;
}

.article-card-top strong {
    flex: 0 0 auto;
    color: var(--primary-dark);
    white-space: nowrap;
    font-weight: 950;
}

.catalogue-bento-card.is-featured .article-card-top strong {
    font-size: 1.18rem;
}

.article-meta,
.article-seller {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.article-tags span {
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 62%, rgba(255,255,255,0.7));
    background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
    color: var(--text);
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

/* =========================
   BADGES ARTICLE
========================= */

.badge-don,
.article-status-badge,
.badge-new {
    position: absolute;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 6px 10px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: -0.01em;
}

.badge-don {
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
}

.article-status-badge {
    top: 12px;
    right: 58px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--text);
    backdrop-filter: blur(12px);
}

.article-status-badge.status-reserved {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.article-status-badge.status-sold,
.article-status-badge.status-archived {
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

.badge-new {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
}

.catalogue-bento-card.is-featured .badge-new {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 0.78rem;
}

/* =========================
   FAVORIS
========================= */

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 8;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--muted);
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.06);
}

.favorite-btn.is-active {
    color: #ef4444;
    background: #fff;
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =========================
   CARTE EDITORIALE
========================= */

.catalogue-editorial-card {
    grid-column: span 6;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 22%, transparent), transparent 44%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 18%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    animation: bentoCardIn 0.35s ease both;
}

.catalogue-editorial-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
    font-size: 1.6rem;
}

.catalogue-editorial-card h3 {
    max-width: 520px;
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.35rem, 3vw, 2.15rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.catalogue-editorial-card p {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.catalogue-editorial-card a {
    width: fit-content;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    font-size: 0.86rem;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 20%, transparent);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.catalogue-editorial-card a:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
}

/* =========================
   MODE COMPACT
========================= */

.articles-grid[data-catalogue-view="compact"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 14px;
}

.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-featured,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-wide,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-tall {
    grid-column: span 1;
    grid-row: auto;
}

.articles-grid[data-catalogue-view="compact"] .catalogue-editorial-card {
    grid-column: span 2;
    min-height: 220px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-image,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-featured .article-card-image,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-wide .article-card-image,
.articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-tall .article-card-image {
    aspect-ratio: 1 / 1;
}

.articles-grid[data-catalogue-view="compact"] .article-card {
    border-radius: 22px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-body {
    padding: 12px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-top {
    flex-direction: column;
    gap: 4px;
}

.articles-grid[data-catalogue-view="compact"] .article-card-top h3 {
    font-size: 0.92rem;
}

.articles-grid[data-catalogue-view="compact"] .article-meta,
.articles-grid[data-catalogue-view="compact"] .article-seller {
    font-size: 0.74rem;
}

/* =========================
   ANIMATIONS / STATES
========================= */

@keyframes bentoCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.catalogue-scroll-sentinel {
    width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 6px;
}

.catalogue-loading-more,
.catalogue-end {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 14px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    box-shadow: var(--shadow-xs);
    text-align: center;
}

.catalogue-loading-more span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid var(--surface-muted);
    border-top-color: var(--primary);
    animation: catalogueSpinner 0.8s linear infinite;
}

.catalogue-loading-more strong,
.catalogue-end strong {
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 900;
}

.catalogue-end {
    flex-direction: column;
    gap: 3px;
    border-style: dashed;
    border-radius: 22px;
}

.catalogue-end span {
    font-size: 0.8rem;
}

@keyframes catalogueSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   RESPONSIVE GRILLE
========================= */

@media (max-width: 1180px) {
    .articles-grid {
        grid-template-columns: repeat(9, minmax(0, 1fr));
    }

    .catalogue-bento-card {
        grid-column: span 3;
    }

    .catalogue-bento-card.is-featured,
    .catalogue-bento-card.is-wide {
        grid-column: span 6;
    }

    .articles-grid[data-catalogue-view="compact"] {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .articles-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 13px;
    }

    .catalogue-bento-card {
        grid-column: span 3;
    }

    .catalogue-bento-card.is-featured,
    .catalogue-bento-card.is-wide {
        grid-column: span 6;
        grid-row: auto;
    }

    .catalogue-bento-card.is-tall {
        grid-column: span 3;
        grid-row: auto;
    }

    .catalogue-bento-card.is-featured .article-card-image,
    .catalogue-bento-card.is-wide .article-card-image {
        aspect-ratio: 16 / 9;
    }

    .catalogue-bento-card.is-tall .article-card-image {
        aspect-ratio: 1 / 1;
    }

    .articles-grid[data-catalogue-view="compact"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .articles-grid[data-catalogue-view="compact"] .catalogue-editorial-card {
        grid-column: span 3;
    }

    .catalogue-editorial-card {
        grid-column: span 6;
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .articles-grid,
    .articles-grid[data-catalogue-view="compact"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .catalogue-bento-card,
    .catalogue-bento-card.is-tall,
    .articles-grid[data-catalogue-view="compact"] .catalogue-bento-card,
    .articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-featured,
    .articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-wide,
    .articles-grid[data-catalogue-view="compact"] .catalogue-bento-card.is-tall {
        grid-column: span 1;
        grid-row: auto;
    }

    .catalogue-bento-card.is-featured,
    .catalogue-bento-card.is-wide,
    .catalogue-editorial-card,
    .articles-grid[data-catalogue-view="compact"] .catalogue-editorial-card {
        grid-column: span 2;
        grid-row: auto;
    }

    .catalogue-bento-card .article-card-image,
    .catalogue-bento-card.is-tall .article-card-image,
    .catalogue-bento-card.is-featured .article-card-image,
    .catalogue-bento-card.is-wide .article-card-image {
        aspect-ratio: 1 / 1;
    }

    .catalogue-bento-card.is-featured .article-card-image,
    .catalogue-bento-card.is-wide .article-card-image {
        aspect-ratio: 16 / 10;
    }

    .article-card {
        border-radius: 21px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    }

    .article-card-body,
    .catalogue-bento-card.is-featured .article-card-body,
    .catalogue-bento-card.is-wide .article-card-body,
    .catalogue-bento-card.is-tall .article-card-body {
        padding: 11px;
    }

    .article-card-top {
        flex-direction: column;
        gap: 4px;
    }

    .article-card-top h3 {
        font-size: 0.88rem;
    }

    .catalogue-bento-card.is-featured .article-card-top h3 {
        font-size: 1.05rem;
    }

    .article-card-top strong,
    .catalogue-bento-card.is-featured .article-card-top strong {
        font-size: 0.92rem;
    }

    .article-meta,
    .article-seller {
        margin-top: 6px;
        font-size: 0.72rem;
    }

    .article-tags {
        flex-wrap: nowrap;
        gap: 5px;
        margin-top: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .article-tags::-webkit-scrollbar {
        display: none;
    }

    .article-tags span {
        flex: 0 0 auto;
        max-width: 96px;
        padding: 4px 6px;
        font-size: 0.62rem;
    }

    .favorite-btn {
        width: 34px;
        height: 34px;
        top: 8px;
        right: 8px;
        font-size: 1.16rem;
    }

    .badge-don,
    .article-status-badge,
    .badge-new {
        min-height: 25px;
        padding: 5px 8px;
        font-size: 0.62rem;
    }

    .badge-don {
        top: 8px;
        left: 8px;
    }

    .article-status-badge {
        top: 8px;
        right: 48px;
    }

    .badge-new {
        left: 8px;
        bottom: 8px;
    }

    .catalogue-editorial-card {
        min-height: 210px;
        padding: 20px;
        border-radius: 24px;
    }

    .catalogue-editorial-icon {
        width: 46px;
        height: 46px;
        border-radius: 17px;
        font-size: 1.35rem;
    }

    .catalogue-editorial-card h3 {
        font-size: 1.4rem;
    }

    .catalogue-editorial-card p {
        font-size: 0.86rem;
    }

    .catalogue-editorial-card a {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .articles-grid,
    .articles-grid[data-catalogue-view="compact"] {
        gap: 9px;
    }

    .article-card-body {
        padding: 9px;
    }

    .article-card-top h3 {
        font-size: 0.82rem;
    }

    .article-meta,
    .article-seller {
        font-size: 0.68rem;
    }
}
/* =========================================================
   CLEAN PATCH 03 — FICHE ARTICLE PREMIUM + SIMILAIRES
   Nettoyage sécurisé sans toucher add-article / messages / admin
========================================================= */

/* =========================
   PAGE DETAIL ARTICLE
========================= */

.article-detail-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.article-detail-page {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

@media (min-width: 921px) {
    .article-detail-page {
        width: calc(100% - 32px);
        margin: 0 16px;
        padding: 24px 0 40px;
    }
}

/* =========================
   LAYOUT PREMIUM
========================= */

.article-premium-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
    gap: 22px;
    align-items: start;
}

.article-premium-gallery,
.article-premium-card {
    border-radius: 36px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    backdrop-filter: blur(20px);
}

.article-premium-gallery {
    padding: 16px;
}

.article-premium-card {
    position: sticky;
    top: 96px;
    padding: 26px;
}

/* =========================
   GALERIE
========================= */

.article-premium-main-photo {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.article-premium-main-photo img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    display: block;
    object-fit: cover;
}

.article-premium-floating {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.article-premium-status,
.article-premium-price {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(15, 23, 42, 0.84);
    color: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
    font-size: 0.88rem;
    font-weight: 950;
}

.article-premium-price {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.article-premium-status.status-available {
    color: #bbf7d0;
}

.article-premium-status.status-reserved {
    color: #fde68a;
}

.article-premium-status.status-sold {
    color: #e5e7eb;
}

.article-premium-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.article-premium-thumbs .article-thumb {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 22px;
    border: 2px solid transparent;
    background: var(--surface-muted);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.article-premium-thumbs .article-thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 22%, transparent);
}

.article-premium-thumbs .article-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   INFOS ARTICLE
========================= */

.article-premium-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.article-premium-head h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: -0.085em;
    font-weight: 950;
}

.article-premium-price-card {
    flex: 0 0 auto;
    min-width: 110px;
    padding: 14px 16px;
    border-radius: 24px;
    background: #0f172a;
    color: #fff;
    text-align: right;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.20);
}

.article-premium-price-card span,
.article-premium-price-card strong {
    display: block;
}

.article-premium-price-card span {
    margin-bottom: 5px;
    color: rgba(255,255,255,0.62);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-premium-price-card strong {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 950;
}

.article-premium-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.article-premium-tags span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
    font-size: 0.78rem;
    font-weight: 850;
}

.article-premium-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.article-premium-meta article {
    min-width: 0;
    padding: 13px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.article-premium-meta strong,
.article-premium-meta span {
    display: block;
}

.article-premium-meta strong {
    color: var(--text-strong);
    font-size: 0.92rem;
    line-height: 1.1;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-premium-meta span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.article-premium-section {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.article-premium-section h3 {
    margin: 0 0 10px;
    color: var(--text-strong);
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.article-premium-section p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* =========================
   VENDEUR / ACTIONS
========================= */

.article-premium-seller {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 46%),
        color-mix(in srgb, var(--surface-soft) 82%, transparent);
}

.article-premium-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.34), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
    font-size: 1.05rem;
    font-weight: 950;
}

.article-premium-seller-text {
    min-width: 0;
}

.article-premium-seller-text span,
.article-premium-seller-text strong,
.article-premium-seller-text p {
    display: block;
}

.article-premium-seller-text span {
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-premium-seller-text strong {
    margin-top: 2px;
    color: var(--text-strong);
    font-size: 1.05rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-premium-seller-text p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.article-premium-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, 0.6fr);
    gap: 10px;
    margin-top: 22px;
}

.article-premium-actions .btn-primary,
.article-premium-actions .btn-secondary {
    width: 100%;
    min-height: 52px;
}

.article-report-btn {
    background: color-mix(in srgb, var(--surface-soft) 90%, transparent);
    color: var(--muted);
}

.article-premium-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.article-premium-note strong {
    color: var(--text-strong);
    font-size: 0.88rem;
    font-weight: 950;
}

.article-premium-note span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 700;
}

[data-theme="dark"] .article-premium-price-card {
    background: #020617;
}

/* =========================
   ARTICLES SIMILAIRES
========================= */

.similar-articles-section {
    margin-top: 22px;
    padding: 26px;
    border-radius: 36px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.similar-articles-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.similar-articles-head h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.similar-articles-link {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    color: var(--text);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 950;
}

.similar-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.similar-article-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
    color: var(--text);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.similar-article-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
}

.similar-article-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.similar-article-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.similar-article-card:hover .similar-article-img img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.similar-article-img span {
    position: absolute;
    left: 10px;
    top: 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    backdrop-filter: blur(12px);
    font-size: 0.68rem;
    font-weight: 950;
}

.similar-article-body {
    padding: 13px;
}

.similar-article-body strong {
    display: -webkit-box;
    color: var(--text-strong);
    font-size: 0.95rem;
    line-height: 1.18;
    letter-spacing: -0.035em;
    font-weight: 950;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-article-body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-article-body b {
    display: block;
    margin-top: 9px;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 950;
}

.similar-loading,
.similar-empty {
    grid-column: 1 / -1;
    min-height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 26px;
    border: 1px dashed var(--border);
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--muted);
    font-weight: 850;
}

.similar-empty {
    gap: 5px;
}

.similar-empty strong,
.similar-empty span {
    display: block;
}

.similar-empty strong {
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 950;
}

.similar-empty span {
    color: var(--muted);
    font-size: 0.88rem;
}

/* =========================
   RESPONSIVE ARTICLE
========================= */

@media (max-width: 960px) {
    .article-premium-layout {
        grid-template-columns: 1fr;
    }

    .article-premium-card {
        position: static;
    }

    .article-premium-main-photo,
    .article-premium-main-photo img {
        min-height: 460px;
    }

    .similar-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .article-detail-page {
        padding: 12px;
    }

    .article-premium-layout {
        gap: 12px;
    }

    .article-premium-gallery,
    .article-premium-card,
    .similar-articles-section {
        border-radius: 28px;
    }

    .article-premium-gallery {
        padding: 10px;
    }

    .article-premium-main-photo {
        border-radius: 24px;
    }

    .article-premium-main-photo,
    .article-premium-main-photo img {
        min-height: 390px;
    }

    .article-premium-floating {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .article-premium-status,
    .article-premium-price {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 0.78rem;
    }

    .article-premium-card {
        padding: 18px;
    }

    .article-premium-head {
        flex-direction: column;
    }

    .article-premium-head h2 {
        font-size: clamp(2rem, 12vw, 3.3rem);
    }

    .article-premium-price-card {
        width: 100%;
        text-align: left;
    }

    .article-premium-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .article-premium-meta article {
        padding: 10px 8px;
        border-radius: 18px;
    }

    .article-premium-meta strong {
        font-size: 0.76rem;
    }

    .article-premium-meta span {
        font-size: 0.58rem;
    }

    .article-premium-actions {
        position: sticky;
        bottom: 92px;
        z-index: 20;
        grid-template-columns: 1fr auto;
        margin: 22px -18px -18px;
        padding: 12px;
        border-top: 1px solid var(--border);
        border-radius: 0 0 28px 28px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(18px);
    }

    .article-premium-actions .btn-primary {
        min-height: 50px;
    }

    .article-premium-actions .article-report-btn {
        width: 52px;
        min-width: 52px;
        padding: 0;
        font-size: 0;
    }

    .article-premium-actions .article-report-btn::before {
        content: "!";
        font-size: 1.2rem;
        font-weight: 950;
    }

    .article-premium-note {
        margin-bottom: 12px;
    }

    .similar-articles-section {
        margin-top: 12px;
        padding: 18px;
    }

    .similar-articles-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .similar-articles-link {
        width: 100%;
    }

    .similar-articles-grid {
        gap: 10px;
    }

    .similar-article-card {
        border-radius: 22px;
    }

    .similar-article-body {
        padding: 10px;
    }

    .similar-article-body strong {
        font-size: 0.84rem;
    }

    .similar-article-body p {
        font-size: 0.68rem;
    }

    .similar-article-body b {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .article-premium-main-photo,
    .article-premium-main-photo img {
        min-height: 330px;
    }

    .article-premium-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .article-premium-tags::-webkit-scrollbar {
        display: none;
    }

    .article-premium-tags span {
        flex: 0 0 auto;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .article-premium-seller {
        align-items: flex-start;
    }
}

@media (max-width: 380px) {
    .similar-articles-grid {
        gap: 8px;
    }

    .similar-article-card {
        border-radius: 18px;
    }

    .similar-article-body {
        padding: 9px;
    }
}
/* =========================================================
   CLEAN PATCH 04 — DEPOT D'ANNONCE / APERÇU LIVE / PHOTOS
   Nettoyage sécurisé add-article sans toucher messages/admin
========================================================= */

/* =========================
   PAGE DEPOT ANNONCE
========================= */

.add-article-premium-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.add-article-premium-main {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

/* =========================
   HERO DEPOT
========================= */

.add-article-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 12%, transparent), transparent 40%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.add-article-hero h2 {
    max-width: 760px;
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 0.9;
    letter-spacing: -0.085em;
    font-weight: 950;
}

.add-article-hero p:last-child {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    font-weight: 700;
}

.add-article-hero-badge {
    flex: 0 0 auto;
    width: 172px;
    min-height: 150px;
    padding: 18px;
    border-radius: 30px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18);
}

.add-article-hero-badge span,
.add-article-hero-badge strong,
.add-article-hero-badge small {
    display: block;
}

.add-article-hero-badge span {
    margin-bottom: 18px;
    font-size: 2rem;
}

.add-article-hero-badge strong {
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.add-article-hero-badge small {
    margin-top: 8px;
    color: rgba(255,255,255,0.62);
    font-weight: 800;
}

/* =========================
   LAYOUT FORM + APERÇU
========================= */

.add-article-premium-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.add-article-form-card,
.add-preview-card {
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.add-form-section {
    padding-bottom: 24px;
}

.add-section-title {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    align-items: start;
    margin-bottom: 16px;
}

.add-section-title > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.32), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--primary) 20%, transparent);
}

.add-section-title h2 {
    margin: 0 0 5px;
    color: var(--text-strong);
    font-size: 1.35rem;
    letter-spacing: -0.05em;
}

.add-section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 650;
}

/* =========================
   UPLOAD PHOTOS
========================= */

.add-upload-zone {
    min-height: 190px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 14%, transparent), transparent 45%),
        color-mix(in srgb, var(--primary) 6%, var(--surface));
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.add-upload-zone:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.add-photo-help {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.add-photo-help strong {
    color: var(--text-strong);
    font-size: 0.84rem;
    font-weight: 950;
}

.add-photo-help span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

/* =========================
   PHOTO MANAGER
========================= */

.add-photo-manager {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.add-photo-manager:empty {
    display: none;
}

.add-photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    border: 2px solid transparent;
    background: var(--surface-muted);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.add-photo-item.is-main {
    border-color: var(--primary);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 22%, transparent);
}

.add-photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.add-photo-badge {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(12px);
}

.add-photo-item.is-main .add-photo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.add-photo-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 6px;
}

.add-photo-actions button {
    min-height: 34px;
    border: none;
    border-radius: 999px;
    font-weight: 950;
    cursor: pointer;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.add-photo-main-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.72rem;
}

.add-photo-item.is-main .add-photo-main-btn {
    background: var(--primary);
    color: #fff;
}

.add-photo-delete-btn {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

/* =========================
   PRIX / VALIDATION
========================= */

.add-price-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.add-free-btn {
    min-height: 50px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.add-rules-box {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface-soft) 84%, transparent);
}

/* =========================
   APERÇU LIVE
========================= */

.add-article-preview {
    position: sticky;
    top: 100px;
}

.add-preview-card {
    padding: 18px;
}

.add-preview-header {
    margin-bottom: 14px;
}

.add-preview-header h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 2rem;
    line-height: 0.92;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.add-preview-visual {
    position: relative;
    min-height: 330px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 15%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 14%, var(--surface-muted))
        );
    color: var(--muted);
    text-align: center;
}

.add-preview-visual span,
.add-preview-visual strong {
    display: block;
}

.add-preview-visual span {
    margin-bottom: 8px;
    font-size: 2.3rem;
}

.add-preview-visual strong {
    font-weight: 950;
}

.add-preview-visual img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    display: block;
    object-fit: cover;
}

.add-preview-content {
    padding: 14px 2px 0;
}

.add-preview-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.add-preview-title-row strong {
    color: var(--text-strong);
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.add-preview-title-row b {
    color: var(--primary-dark);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 950;
}

.add-preview-content p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 650;
}

.add-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.add-preview-tags span {
    max-width: 100%;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-soft) 82%, transparent);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.add-preview-note {
    display: grid;
    gap: 4px;
    margin-top: 16px;
    padding: 13px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.add-preview-note strong {
    color: var(--text-strong);
    font-size: 0.86rem;
    font-weight: 950;
}

.add-preview-note span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 700;
}

/* =========================
   RESPONSIVE DEPOT
========================= */

@media (max-width: 980px) {
    .add-article-premium-layout {
        grid-template-columns: 1fr;
    }

    .add-article-preview {
        position: static;
        order: -1;
    }

    .add-preview-visual,
    .add-preview-visual img {
        min-height: 260px;
    }
}

@media (max-width: 760px) {
    .add-article-premium-main {
        padding: 12px;
    }

    .add-article-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
        border-radius: 28px;
    }

    .add-article-hero h2 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .add-article-hero-badge {
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 8px 12px;
        align-items: center;
        padding: 14px;
        border-radius: 24px;
    }

    .add-article-hero-badge span {
        grid-row: span 2;
        margin: 0;
    }

    .add-article-form-card,
    .add-preview-card {
        border-radius: 28px;
    }

    .add-price-line {
        grid-template-columns: 1fr;
    }

    .add-free-btn {
        width: 100%;
    }

    .add-sticky-actions {
        margin-top: 18px;
    }
}

@media (max-width: 520px) {
    .add-photo-manager {
        gap: 8px;
    }

    .add-photo-item {
        border-radius: 18px;
    }

    .add-photo-badge {
        padding: 4px 6px;
        font-size: 0.56rem;
    }

    .add-photo-actions {
        left: 6px;
        right: 6px;
        bottom: 6px;
        grid-template-columns: 1fr 30px;
        gap: 5px;
    }

    .add-photo-actions button {
        min-height: 30px;
    }

    .add-photo-main-btn {
        font-size: 0.62rem;
    }

    .add-photo-delete-btn {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .add-section-title {
        grid-template-columns: 1fr;
    }

    .add-section-title > span {
        width: 34px;
        height: 34px;
        border-radius: 14px;
    }

    .add-preview-card {
        padding: 14px;
    }

    .add-preview-visual,
    .add-preview-visual img {
        min-height: 220px;
        border-radius: 22px;
    }

    .add-preview-header h3 {
        font-size: 1.7rem;
    }
}
/* =========================================================
   CLEAN PATCH 05 — MESSAGERIE PREMIUM + MODE MOBILE
   Nettoyage sécurisé sans toucher add-article / admin
========================================================= */

/* =========================
   PAGE MESSAGES
========================= */

.messages-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.messages-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(1320px, calc(100% - 24px));
    max-width: none;
    margin: 0 auto;
    padding: 14px;
}

.messages-list-panel,
.chat-panel {
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 90%, transparent);
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.messages-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.messages-panel-head h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.1rem;
    letter-spacing: -0.04em;
}

.messages-panel-head button {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--secondary-soft);
    color: var(--secondary);
    font-weight: 900;
    cursor: pointer;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* =========================
   LISTE CONVERSATIONS V2
========================= */

.conversation-item-v2 {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 13px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.conversation-item-v2:hover,
.conversation-item-v2.is-active {
    background: color-mix(in srgb, var(--primary) 9%, transparent);
}

.conversation-item-v2.has-unread {
    background:
        radial-gradient(circle at left, color-mix(in srgb, var(--primary) 11%, transparent), transparent 54%),
        color-mix(in srgb, var(--surface) 88%, transparent);
}

.conversation-v2-img {
    position: relative;
    width: 64px;
    height: 64px;
}

.conversation-v2-img img {
    width: 64px;
    height: 64px;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    background: var(--surface-muted);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.conversation-v2-img em {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 950;
}

.conversation-v2-main {
    min-width: 0;
}

.conversation-v2-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.conversation-v2-top strong {
    min-width: 0;
    color: var(--text-strong);
    font-size: 0.96rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-v2-top small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.conversation-v2-title {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-v2-main p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-v2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.conversation-v2-meta span,
.conversation-v2-meta b {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 950;
}

.conversation-v2-meta span {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-soft) 86%, transparent);
    color: var(--text);
}

.conversation-v2-meta b {
    background: #0f172a;
    color: #fff;
}

.conversation-v2-meta .status-available {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
}

.conversation-v2-meta .status-reserved {
    color: #92400e;
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.24);
}

.conversation-v2-meta .status-sold,
.conversation-v2-meta .status-archived,
.conversation-v2-meta .status-deleted {
    color: #64748b;
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.22);
}

/* =========================
   PANEL CHAT
========================= */

.chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.empty-chat {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    color: var(--muted);
}

.empty-chat h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    letter-spacing: -0.05em;
}

.chat-premium-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 9%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.chat-premium-article {
    min-width: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.chat-premium-article img {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    object-fit: cover;
    background: var(--surface-muted);
}

.chat-premium-article span,
.chat-premium-article strong,
.chat-premium-article p {
    display: block;
}

.chat-premium-article span {
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.chat-premium-article strong {
    margin-top: 2px;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-premium-article p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.chat-see-article {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 950;
}

/* =========================
   RÉPONSES RAPIDES
========================= */

.quick-replies {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    scrollbar-width: none;
}

.quick-replies::-webkit-scrollbar {
    display: none;
}

.quick-replies button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 850;
    cursor: pointer;
}

/* =========================
   MESSAGES
========================= */

.chat-messages,
.premium-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    max-height: 58vh;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 5%, transparent), transparent 42%),
        transparent;
}

.message-row {
    display: flex;
    margin-bottom: 10px;
}

.message-row.is-mine {
    justify-content: flex-end;
}

.message-row.is-other {
    justify-content: flex-start;
}

.message-bubble,
.premium-message-bubble {
    max-width: 82%;
    border-radius: 20px;
    padding: 10px 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.message-row.is-mine .message-bubble,
.message-row.is-mine .premium-message-bubble {
    border-bottom-right-radius: 6px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 68%, var(--secondary)));
    color: #fff;
}

.message-row.is-other .message-bubble,
.message-row.is-other .premium-message-bubble {
    border: 1px solid var(--border);
    border-bottom-left-radius: 6px;
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
    color: var(--text);
}

.message-bubble p,
.premium-message-bubble p {
    margin: 0;
    line-height: 1.45;
    white-space: pre-wrap;
}

.message-bubble small,
.premium-message-bubble small {
    display: block;
    margin-top: 6px;
    opacity: 0.75;
    font-size: 0.72rem;
}

/* =========================
   CHAT CLOS
========================= */

.chat-closed-card,
.premium-closed {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 12px 14px 0;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 42%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 14px 32px rgba(120, 53, 15, 0.08);
}

.chat-closed-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    font-size: 1.25rem;
}

.chat-closed-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-closed-text strong {
    color: #78350f;
    font-size: 0.98rem;
    font-weight: 850;
}

.chat-closed-text span {
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.45;
}

[data-theme="dark"] .chat-closed-card,
[data-theme="dark"] .premium-closed {
    border-color: rgba(251, 191, 36, 0.25);
    background:
        linear-gradient(135deg, rgba(69, 26, 3, 0.72), rgba(120, 53, 15, 0.38));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] .chat-closed-icon {
    background: rgba(251, 191, 36, 0.16);
    color: #fbbf24;
}

[data-theme="dark"] .chat-closed-text strong {
    color: #fde68a;
}

[data-theme="dark"] .chat-closed-text span {
    color: #fcd34d;
}

/* =========================
   FORMULAIRE ENVOI
========================= */

.chat-send-form {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(18px);
}

.chat-send-form textarea {
    min-height: 48px;
    max-height: 110px;
    resize: none;
    border-radius: 22px;
}

.chat-send-form button {
    min-height: 48px;
    border: none;
    border-radius: 999px;
    padding: 0 18px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.chat-loading {
    padding: 18px;
    color: var(--muted);
}

/* =========================
   BOUTON RETOUR MOBILE
========================= */

.mobile-chat-back-btn {
    display: none;
}

/* =========================
   RESPONSIVE DESKTOP
========================= */

@media (min-width: 900px) {
    .messages-page {
        grid-template-columns: 390px minmax(0, 1fr);
        height: calc(100vh - 112px);
        align-items: stretch;
        padding: 28px 0;
    }

    .messages-list-panel,
    .chat-panel {
        min-height: 0;
        height: auto;
    }

    .conversations-list {
        max-height: calc(100vh - 210px);
        overflow-y: auto;
    }

    .chat-content {
        min-height: 0;
    }

    .chat-messages,
    .premium-chat-messages {
        max-height: none;
    }
}

/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 760px) {
    .messages-shell {
        min-height: 100vh;
        padding-bottom: 92px;
    }

    .messages-page {
        display: block;
        width: min(100% - 18px, 1320px);
        margin: 0 auto;
        padding: 8px 0 92px;
    }

    .messages-list-panel,
    .chat-panel {
        width: 100%;
        border-radius: 28px;
    }

    .messages-shell:not(.is-chat-open) .chat-panel {
        display: none;
    }

    .messages-shell.is-chat-open .messages-list-panel {
        display: none;
    }

    .messages-shell.is-chat-open .chat-panel {
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 96px);
        overflow: hidden;
        animation: mobileChatSlideIn 0.22s ease both;
    }

    .mobile-chat-back-btn {
        width: 100%;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border: none;
        border-bottom: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 92%, transparent);
        color: var(--text-strong);
        backdrop-filter: blur(18px);
        font-weight: 950;
        cursor: pointer;
    }

    .mobile-chat-back-btn span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: color-mix(in srgb, var(--primary) 10%, var(--surface));
        color: var(--primary-dark);
        font-size: 1.1rem;
        font-weight: 950;
    }

    .mobile-chat-back-btn strong {
        font-size: 0.94rem;
        letter-spacing: -0.03em;
    }

    .conversation-item-v2 {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 12px;
    }

    .conversation-v2-img,
    .conversation-v2-img img {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .messages-shell.is-chat-open .chat-content {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .messages-shell.is-chat-open .chat-messages,
    .messages-shell.is-chat-open .premium-chat-messages {
        flex: 1;
        overflow-y: auto;
        max-height: none;
        padding-bottom: 18px;
    }

    .chat-premium-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-see-article {
        width: 100%;
    }

    .chat-send-form,
    .messages-shell.is-chat-open .chat-send-form {
        position: sticky;
        bottom: 76px;
        z-index: 20;
        grid-template-columns: 1fr auto;
        border-top: 1px solid var(--border);
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        backdrop-filter: blur(20px);
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }

    .chat-send-form button {
        padding: 0 14px;
    }

    .message-bubble,
    .premium-message-bubble {
        max-width: 90%;
    }

    .messages-shell.is-chat-open .chat-premium-head {
        border-top: none;
    }
}

@media (max-width: 420px) {
    .conversation-v2-top small {
        display: none;
    }

    .chat-premium-article {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .chat-premium-article img {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }
}

@keyframes mobileChatSlideIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* =========================================================
   CLEAN PATCH 06 — MES ANNONCES / FAVORIS / PROFIL
   Nettoyage sécurisé sans toucher catalogue/add-article/messages/admin
========================================================= */

/* =========================
   SHELLS
========================= */

.my-articles-shell,
.favorites-shell,
.profile-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.my-articles-page,
.favorites-page,
.profile-page {
    width: 100%;
    margin: 0 auto;
    padding: 14px;
}

.my-articles-page,
.favorites-page {
    max-width: 1280px;
}

.profile-page {
    max-width: 860px;
}

/* =========================
   HERO MES ANNONCES
========================= */

.my-articles-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 26px;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.my-articles-hero h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: clamp(2rem, 9vw, 4rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.my-articles-hero p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 650;
}

/* =========================
   TABS MES ANNONCES
========================= */

.my-articles-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    scrollbar-width: none;
}

.my-articles-tabs::-webkit-scrollbar {
    display: none;
}

.my-articles-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--muted);
    padding: 10px 14px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.my-articles-tabs button.is-active {
    border-color: var(--primary);
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
}

/* =========================
   GRILLE MES ANNONCES / FAVORIS
========================= */

.my-articles-list,
.favorites-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.my-article-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.my-article-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.my-article-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.my-article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.38s ease, filter 0.38s ease;
}

.my-article-card:hover .my-article-image img {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.my-article-content {
    min-width: 0;
    padding: 14px;
}

.my-article-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-article-head h3 {
    margin: 4px 0 0;
    color: var(--text-strong);
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-article-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-article-head strong {
    margin-top: 2px;
    color: var(--primary-dark);
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 950;
}

.my-article-card .article-tags {
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.my-article-card .article-tags::-webkit-scrollbar {
    display: none;
}

.my-article-card .article-tags span {
    flex: 0 0 auto;
    max-width: 110px;
    padding: 4px 6px;
    font-size: 0.66rem;
}

/* =========================
   STATUTS
========================= */

.my-status-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid color-mix(in srgb, var(--border) 62%, rgba(255,255,255,0.7));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    font-size: 0.66rem;
    font-weight: 950;
}

.status-pending {
    background: var(--warning-soft);
    color: var(--warning-dark);
}

.status-available {
    background: var(--success-soft);
    color: var(--success-dark);
}

.status-reserved {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.status-sold,
.status-archived {
    background: var(--surface-muted);
    color: var(--muted);
}

.status-refused {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

.my-muted-info {
    display: inline-flex;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 750;
}

/* =========================
   ACTIONS MES ANNONCES
========================= */

.my-article-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 10px;
}

.my-article-actions button,
.my-edit-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 8px 10px;
    background: var(--secondary-soft);
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.my-edit-link {
    background: var(--surface-muted);
    color: var(--text);
}

.my-article-actions button:nth-child(2) {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
}

.my-article-actions button:nth-child(3) {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

/* =========================
   PROFIL
========================= */

.profile-card {
    padding: 28px;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar-large {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 38%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 24%, transparent);
    font-size: 2.4rem;
    font-weight: 950;
}

.profile-hero h2 {
    margin: 0 0 6px;
    color: var(--text-strong);
    font-size: clamp(1.7rem, 7vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 950;
}

.profile-hero p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.9rem;
    word-break: break-word;
}

/* =========================
   EDIT ARTICLE IMAGES
========================= */

.image-edit-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-edit-item {
    overflow: hidden;
}

.image-edit-actions {
    position: absolute;
    inset: auto 6px 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.image-edit-actions button {
    border: none;
    border-radius: 999px;
    padding: 6px 8px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--text);
    box-shadow: 0 6px 16px rgba(15,23,42,0.16);
    font-size: 0.72rem;
    font-weight: 900;
    cursor: pointer;
}

.image-edit-actions button:last-child {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

.edit-upload-block {
    margin-top: 16px;
}

.small-upload-zone {
    min-height: 130px;
}

.edit-add-images-btn {
    width: 100%;
    margin-top: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 760px) {
    .my-articles-page,
    .favorites-page,
    .profile-page {
        padding: 28px;
    }

    .my-articles-list,
    .favorites-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .my-article-card {
        border-radius: 24px;
    }
}

@media (min-width: 1100px) {
    .my-articles-list,
    .favorites-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .my-articles-shell,
    .favorites-shell,
    .profile-shell {
        padding-bottom: 92px;
    }

    .my-articles-hero,
    .profile-card {
        border-radius: 26px;
    }

    .my-articles-hero {
        padding: 22px;
    }

    .my-articles-hero h2 {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .profile-card {
        padding: 18px;
    }

    .profile-avatar-large {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
        border-radius: 26px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .my-articles-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .my-articles-hero .btn-primary-link {
        width: 100%;
    }

    .my-article-content {
        padding: 11px;
    }

    .my-article-head h3 {
        font-size: 0.92rem;
    }

    .profile-hero {
        align-items: flex-start;
    }

    .profile-avatar-large {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        border-radius: 22px;
        font-size: 1.6rem;
    }
}

@media (max-width: 430px) {
    .image-edit-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-edit-actions button {
        padding: 6px;
        font-size: 0.68rem;
    }
}

@media (max-width: 380px) {
    .my-articles-list,
    .favorites-list {
        gap: 9px;
    }

    .my-article-content {
        padding: 9px;
    }

    .my-article-head h3 {
        font-size: 0.84rem;
    }

    .my-article-actions button,
    .my-edit-link {
        padding: 7px 8px;
        font-size: 0.7rem;
    }

    .my-article-card .article-tags span {
        font-size: 0.62rem;
    }
}
/* =========================================================
   CLEAN PATCH 07 — ADMIN
   Nettoyage sécurisé admin : dashboard, annonces, users,
   opérations, catégories, signalements
========================================================= */

/* =========================
   ADMIN SHELL / TOPBAR
========================= */

.admin-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(22px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.admin-topbar h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.admin-topbar p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px;
}

.admin-hero,
.admin-operation-form-card,
.category-admin-panel {
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.admin-hero {
    margin-bottom: 16px;
    padding: 26px;
}

.admin-hero h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: clamp(2rem, 8vw, 3.8rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.admin-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 650;
}

/* =========================
   ADMIN DASHBOARD CARDS
========================= */

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.admin-card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    color: var(--text);
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.admin-card span {
    font-size: 1.8rem;
}

.admin-card strong {
    color: var(--text-strong);
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.admin-card small {
    color: var(--muted);
    line-height: 1.4;
}

.admin-card.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

/* =========================
   TOOLBAR ADMIN
========================= */

.admin-toolbar,
.admin-toolbar-actions,
.admin-articles-filters,
.admin-users-filters {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-toolbar {
    justify-content: space-between;
    margin-bottom: 16px;
}

.admin-toolbar-wrap {
    align-items: flex-start;
}

.admin-toolbar h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.55rem;
    letter-spacing: -0.055em;
}

.admin-toolbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-toolbar-actions,
.admin-articles-filters,
.admin-users-filters {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-search-input,
.admin-filter-select {
    min-height: 44px;
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 750;
    outline: none;
    box-shadow: var(--shadow-xs);
}

.admin-search-input {
    min-width: min(320px, 100%);
}

.admin-filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 6px 6px no-repeat,
        color-mix(in srgb, var(--surface) 86%, transparent);
}

.admin-search-input:focus,
.admin-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* =========================
   ADMIN ARTICLES VALIDATION
========================= */

.admin-articles-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-article-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.admin-article-image {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.admin-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-article-content {
    min-width: 0;
}

.admin-article-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-article-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.05rem;
    letter-spacing: -0.035em;
}

.admin-article-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.admin-article-head strong {
    color: var(--primary-dark);
    white-space: nowrap;
}

.admin-article-description {
    margin: 10px 0;
    color: var(--text);
    line-height: 1.45;
    font-size: 0.92rem;
}

.admin-article-seller {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.admin-article-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.btn-admin-validate,
.btn-admin-refuse {
    min-height: 46px;
    border: none;
    border-radius: 999px;
    padding: 12px 14px;
    font-weight: 900;
    cursor: pointer;
}

.btn-admin-validate {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.btn-admin-refuse {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

/* =========================
   ADMIN TOUTES LES ANNONCES
========================= */

.admin-all-articles-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.admin-all-article-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.admin-all-article-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.admin-all-article-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.admin-all-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-all-article-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.admin-all-article-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-all-article-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.96rem;
    line-height: 1.14;
    letter-spacing: -0.04em;
    font-weight: 950;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-all-article-head p,
.admin-all-article-desc,
.admin-all-article-meta {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.admin-all-article-head p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-all-article-head strong {
    width: fit-content;
    color: var(--primary-dark);
    font-size: 1rem;
    white-space: nowrap;
}

.admin-all-article-desc {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-all-article-meta {
    display: grid;
    gap: 4px;
    margin: 0;
}

.admin-all-article-meta p {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-all-article-meta strong {
    color: var(--text);
}

.admin-all-article-card .article-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-all-article-card .article-tags::-webkit-scrollbar {
    display: none;
}

.admin-all-article-card .article-tags span {
    flex: 0 0 auto;
    max-width: 110px;
    padding: 5px 7px;
    font-size: 0.64rem;
}

.admin-all-article-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
}

.admin-all-article-links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 950;
}

/* =========================
   ADMIN ICONBAR
========================= */

.admin-all-article-iconbar-wrap {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.admin-all-article-iconbar {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0 0 5px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.admin-all-article-iconbar::-webkit-scrollbar {
    display: none;
}

.admin-icon-action {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--text);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 950;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.admin-icon-action:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.admin-icon-action.is-success {
    background: var(--success-soft);
    color: var(--success-dark);
    border-color: color-mix(in srgb, var(--success) 25%, var(--border));
}

.admin-icon-action.is-danger {
    background: var(--danger-soft);
    color: var(--danger-dark);
    border-color: color-mix(in srgb, var(--danger) 25%, var(--border));
}

.admin-icon-action.is-warning {
    background: var(--warning-soft);
    color: var(--warning-dark);
    border-color: color-mix(in srgb, var(--warning) 25%, var(--border));
}

.admin-icon-action.is-info {
    background: var(--secondary-soft);
    color: var(--secondary);
    border-color: color-mix(in srgb, var(--secondary) 25%, var(--border));
}

.admin-icon-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.admin-icon-scroll-btn {
    width: 28px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--text);
    box-shadow: var(--shadow-xs);
    font-size: 1.1rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.admin-icon-scroll-btn:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

/* =========================
   ADMIN USERS
========================= */

.admin-users-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 14px;
    align-items: stretch;
}

.admin-user-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 42%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.admin-user-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.admin-user-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.36), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 18%, transparent);
    font-size: 1.15rem;
    font-weight: 950;
}

.admin-user-content,
.admin-user-head {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-user-content {
    gap: 9px;
}

.admin-user-head {
    gap: 6px;
}

.admin-user-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 0.98rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-head > strong {
    width: fit-content;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--secondary) 20%, var(--border));
    background: var(--secondary-soft);
    color: var(--secondary);
    font-size: 0.72rem;
    font-weight: 950;
    white-space: nowrap;
}

.admin-user-card .article-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-user-card .article-tags::-webkit-scrollbar {
    display: none;
}

.admin-user-card .article-tags span {
    flex: 0 0 auto;
    max-width: 110px;
    padding: 5px 7px;
    font-size: 0.64rem;
}

.admin-user-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.admin-user-stats span {
    min-width: 0;
    padding: 6px 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.admin-user-edit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 2px 0 0;
}

.admin-user-edit-grid label {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
}

.admin-user-edit-grid select {
    width: 100%;
    min-height: 36px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 13px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 8px center / 6px 6px no-repeat,
        var(--input-bg);
    color: var(--text);
    padding: 0 26px 0 11px;
    font-size: 0.76rem;
    font-weight: 850;
    outline: none;
}

.admin-user-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto 0 0;
}

.admin-user-actions button {
    width: 100%;
    min-height: 38px;
    border: none;
    border-radius: 15px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 18%, transparent);
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 950;
    cursor: pointer;
}

/* =========================
   ADMIN OPERATIONS
========================= */

.admin-operations-page {
    max-width: 1080px;
}

.admin-operation-form-card {
    margin-bottom: 16px;
    padding: 22px;
}

.admin-operation-form-head,
.admin-operation-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.admin-operation-form-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-operation-form-head h3,
.admin-operation-head h3 {
    margin: 0;
    color: var(--text-strong);
    letter-spacing: -0.05em;
}

.admin-operation-form-head h3 {
    font-size: 1.4rem;
}

.admin-operation-head h3 {
    margin-top: 7px;
    font-size: 1.2rem;
}

.admin-form-actions,
.admin-operation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-form-actions {
    justify-content: flex-end;
    margin-top: 4px;
}

.admin-operations-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-operation-card {
    padding: 16px;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.admin-operation-head p,
.admin-operation-description {
    color: var(--muted);
}

.admin-operation-head p {
    margin: 0;
    font-size: 0.86rem;
}

.admin-operation-description {
    margin: 14px 0 0;
    line-height: 1.5;
}

.admin-operation-stats,
.admin-category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-operation-stats span,
.admin-category-meta span {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 62%, rgba(255,255,255,0.7));
    background: var(--surface-soft);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    padding: 7px 10px;
    font-size: 0.8rem;
    font-weight: 850;
}

.admin-operation-actions {
    margin-top: 16px;
}

.admin-operation-actions button,
.admin-category-actions button,
.admin-report-actions button {
    min-height: 42px;
    border: none;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 900;
    cursor: pointer;
}

/* =========================
   ADMIN CATEGORIES
========================= */

.admin-categories-page {
    max-width: 1180px;
}

.category-admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.category-admin-panel {
    min-width: 0;
    padding: 18px;
}

.category-admin-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.category-admin-panel-head h3 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.45rem;
    letter-spacing: -0.055em;
}

.category-add-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 168, 120, 0.20);
    font-size: 1.5rem;
    font-weight: 950;
    cursor: pointer;
}

.category-inline-form {
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.category-form-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 12px;
}

.admin-categories-list,
.admin-subcategories-list {
    display: grid;
    gap: 12px;
}

.admin-category-card,
.admin-subcategory-card {
    padding: 12px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-category-card.is-selected {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.admin-category-card.is-drop-target {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    box-shadow: 0 16px 40px rgba(0, 168, 120, 0.16);
}

.admin-category-card.is-disabled,
.admin-subcategory-card.is-disabled {
    opacity: 0.64;
}

.admin-category-main {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: none;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.admin-category-main strong,
.admin-subcategory-main strong {
    display: block;
    color: var(--text-strong);
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.admin-category-main small,
.admin-subcategory-main small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.admin-category-main em {
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 950;
}

.category-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    box-shadow: 0 0 0 4px rgba(209, 213, 219, 0.18);
}

.category-status-dot.is-active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.14);
}

.admin-category-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.admin-category-actions button {
    background: var(--surface);
    color: var(--text);
}

.admin-category-actions button:last-child {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.admin-subcategory-main {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 9px;
}

.drag-handle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-weight: 950;
    cursor: grab;
}

.admin-subcategory-card[draggable="true"] {
    cursor: grab;
}

.admin-subcategory-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.98);
}

/* =========================
   MODALE DEPLACEMENT CATEGORIE
========================= */

.move-subcategory-modal {
    max-width: 460px;
}

.move-category-list {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    max-height: 42vh;
    overflow-y: auto;
    padding-right: 4px;
}

.move-category-option {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 18px;
    padding: 12px 13px;
    text-align: left;
    cursor: pointer;
}

.move-category-option span,
.move-category-option small {
    display: block;
}

.move-category-option span {
    font-weight: 950;
    letter-spacing: -0.025em;
}

.move-category-option small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 750;
}

.move-category-option:hover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.move-category-option.is-current {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================
   ADMIN SIGNALEMENTS
========================= */

.admin-reports-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-report-card {
    padding: 16px;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.admin-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-report-head h3 {
    margin: 7px 0 4px;
    color: var(--text-strong);
    font-size: 1.15rem;
    letter-spacing: -0.04em;
}

.admin-report-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.report-status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 950;
}

.report-status-pending {
    background: var(--warning-soft);
    color: var(--warning-dark);
}

.report-status-reviewed {
    background: var(--success-soft);
    color: var(--success-dark);
}

.report-status-closed {
    background: var(--surface-muted);
    color: var(--muted);
}

.report-people {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

.report-people p {
    margin: 0;
}

.report-people strong {
    color: var(--text);
}

.report-target {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.report-target img {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    object-fit: cover;
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 12%, var(--surface-muted)),
            color-mix(in srgb, var(--secondary) 12%, var(--surface-muted))
        );
}

.report-target strong,
.report-target span,
.report-target a {
    display: block;
}

.report-target span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.84rem;
}

.report-target a {
    margin-top: 8px;
    color: var(--primary-dark);
    font-weight: 900;
    text-decoration: none;
}

.report-message,
.report-comment,
.report-admin-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.report-message strong,
.report-comment strong,
.report-admin-note label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 900;
}

.report-message p,
.report-comment p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    white-space: pre-wrap;
}

.report-admin-note textarea {
    width: 100%;
    min-height: 88px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    resize: vertical;
    outline: none;
    font-size: 1rem;
}

.admin-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.btn-report-reviewed {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
}

.btn-report-closed {
    background: var(--warning-soft);
    color: var(--warning-dark);
}

.btn-report-pending {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.btn-report-delete-article {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

/* =========================
   RESPONSIVE ADMIN
========================= */

@media (min-width: 760px) {
    .admin-page {
        padding: 28px;
    }

    .admin-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-article-card {
        grid-template-columns: 150px 1fr;
        padding: 16px;
    }

    .admin-article-image {
        width: 150px;
        height: 150px;
    }

    .admin-article-actions {
        display: flex;
        justify-content: flex-end;
    }

    .btn-admin-validate,
    .btn-admin-refuse {
        min-width: 130px;
    }
}

@media (min-width: 820px) {
    .admin-operations-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .category-admin-layout {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
        max-height: calc(100vh - 190px);
    }

    .category-admin-panel {
        max-height: calc(100vh - 190px);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .category-admin-panel-head,
    .category-inline-form {
        flex: 0 0 auto;
    }

    .admin-categories-list,
    .admin-subcategories-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        padding-right: 6px;
        scroll-behavior: smooth;
    }

    .admin-category-actions [data-subcategory-move] {
        display: none;
    }
}

@media (max-width: 1320px) {
    .admin-all-articles-list,
    .admin-users-list {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

@media (max-width: 1080px) {
    .admin-all-articles-list,
    .admin-users-list {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 760px) {
    .admin-shell {
        padding-bottom: 92px;
    }

    .admin-hero,
    .admin-operation-form-card,
    .category-admin-panel {
        border-radius: 26px;
    }

    .admin-hero {
        padding: 22px;
    }

    .admin-toolbar,
    .admin-toolbar-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-toolbar-actions,
    .admin-articles-filters,
    .admin-users-filters {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-search-input,
    .admin-filter-select,
    .admin-toolbar .btn-secondary,
    .admin-toolbar-actions .btn-secondary,
    .admin-articles-filters .btn-secondary,
    .admin-users-filters .btn-secondary {
        width: 100%;
    }

    .admin-all-articles-list,
    .admin-users-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-all-article-card,
    .admin-user-card {
        padding: 10px;
        border-radius: 20px;
    }

    .admin-all-article-image {
        border-radius: 16px;
    }

    .admin-all-article-head h3,
    .admin-user-head h3 {
        font-size: 0.84rem;
    }

    .admin-all-article-head p,
    .admin-all-article-desc,
    .admin-all-article-meta,
    .admin-user-head p {
        font-size: 0.66rem;
    }

    .admin-all-article-card .article-tags span,
    .admin-user-card .article-tags span {
        max-width: 86px;
        padding: 4px 5px;
        font-size: 0.58rem;
    }

    .admin-all-article-links {
        grid-template-columns: 1fr;
    }

    .admin-icon-action {
        flex-basis: 31px;
        width: 31px;
        height: 31px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .admin-all-article-iconbar-wrap {
        grid-template-columns: 25px minmax(0, 1fr) 25px;
        gap: 4px;
    }

    .admin-icon-scroll-btn {
        width: 25px;
        height: 31px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .admin-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 15px;
    }

    .admin-user-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-edit-grid label {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .admin-report-head,
    .admin-operation-form-head,
    .admin-operation-head {
        flex-direction: column;
    }

    .admin-report-actions,
    .admin-form-actions,
    .admin-operation-actions,
    .admin-category-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-target {
        grid-template-columns: 62px 1fr;
    }

    .report-target img {
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .category-form-actions {
        grid-template-columns: 1fr;
    }

    .category-admin-panel {
        padding: 14px;
        border-radius: 24px;
    }
}

@media (max-width: 440px) {
    .admin-article-card {
        grid-template-columns: 1fr;
    }

    .admin-article-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .admin-all-articles-list,
    .admin-users-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .admin-all-article-card,
    .admin-user-card {
        padding: 9px;
        border-radius: 18px;
    }

    .admin-user-avatar {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        font-size: 0.95rem;
    }

    .admin-user-head > strong,
    .admin-user-card .my-status-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }

    .admin-user-stats span {
        padding: 4px 3px;
        font-size: 0.56rem;
    }

    .admin-user-edit-grid label {
        font-size: 0.6rem;
    }

    .admin-user-edit-grid select {
        min-height: 32px;
        border-radius: 12px;
        padding-left: 8px;
        padding-right: 24px;
        font-size: 0.68rem;
    }

    .admin-user-actions button,
    .admin-all-article-actions button,
    .admin-all-article-links a {
        min-height: 32px;
        border-radius: 12px;
        padding: 6px 8px;
        font-size: 0.66rem;
    }
}
/* =========================================================
   CLEAN PATCH 08 — LANDING INDEX
   Nettoyage sécurisé index.php
========================================================= */

.landing-body {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(0, 168, 120, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(94, 96, 206, 0.18), transparent 34%),
        #f8fafc;
    color: #0f172a;
}

.landing-light {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(110px);
    opacity: 0.32;
    pointer-events: none;
    animation: landingBreathe 10s ease-in-out infinite alternate;
}

.landing-light-one {
    width: 42vw;
    height: 42vw;
    top: -16vw;
    left: -12vw;
    background: #00a878;
}

.landing-light-two {
    width: 38vw;
    height: 38vw;
    right: -14vw;
    bottom: -16vw;
    background: #5e60ce;
    animation-direction: alternate-reverse;
}

@keyframes landingBreathe {
    from {
        transform: scale(0.86) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.12) translate3d(24px, 24px, 0);
    }
}

.landing-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 80;
    width: min(1180px, calc(100vw - 32px));
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.landing-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.landing-brand-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.landing-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
}

.landing-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #334155;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.landing-nav a:hover {
    background: rgba(15, 23, 42, 0.07);
    color: #0f172a;
}

.landing-nav-main {
    background: #0f172a;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.landing-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.landing-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 46px;
    padding: 120px 0 130px;
}

.landing-kicker {
    width: fit-content;
    display: inline-flex;
    margin-bottom: 24px;
    padding: 9px 15px;
    border: 1px solid rgba(0, 168, 120, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: #008a63;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.landing-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(4rem, 10vw, 9.4rem);
    font-weight: 950;
    line-height: 0.84;
    letter-spacing: -0.085em;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, #00a878, #5e60ce);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-intro {
    max-width: 690px;
    margin: 30px 0 0;
    color: #475569;
    font-size: clamp(1.08rem, 2vw, 1.45rem);
    line-height: 1.45;
    font-weight: 600;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.landing-btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    transition: transform 0.24s ease, filter 0.24s ease;
}

.landing-btn-primary {
    background: linear-gradient(135deg, #00a878, #16db93);
    color: #052e24;
    box-shadow: 0 16px 30px rgba(0, 168, 120, 0.22);
}

.landing-btn-secondary {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: #0f172a;
}

.landing-btn:hover {
    transform: translateY(-3px);
    filter: saturate(1.08);
}

.landing-hero-card {
    display: flex;
    justify-content: center;
}

.landing-phone {
    width: min(360px, 100%);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(26px);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
    transform: rotate(2deg);
}

.landing-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.landing-phone-top span {
    width: 34px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
}

.landing-phone-top strong {
    font-size: 0.88rem;
    font-weight: 900;
}

.landing-phone-top em {
    color: #00a878;
    font-style: normal;
    filter: drop-shadow(0 0 5px rgba(0, 168, 120, 0.8));
}

.landing-product {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.landing-product-large {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    background:
        linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.1)),
        linear-gradient(135deg, #c7d2fe, #bdeadd);
    color: #fff;
}

.landing-product-large strong {
    display: block;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.landing-product-large small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.landing-product-large b {
    width: fit-content;
    padding: 6px 12px;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
}

.landing-product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.landing-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.landing-product.small {
    min-height: 110px;
    padding: 16px;
}

.landing-product.small strong {
    display: block;
    font-size: 1.12rem;
    font-weight: 950;
}

.landing-product.small small {
    color: #475569;
    font-weight: 900;
}

.landing-product.small.teal {
    background: linear-gradient(135deg, #dcfce7, #bdeadd);
}

.landing-product.small.purple {
    background: linear-gradient(135deg, #eef2ff, #c7d2fe);
}

.landing-message-preview {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #0f172a;
    color: #fff;
}

.landing-message-preview p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
}

.landing-marquee {
    position: absolute;
    left: 50%;
    bottom: 62px;
    z-index: 12;
    width: 120vw;
    max-width: 120vw;
    overflow: hidden;
    padding: 20px 0;
    background: #0f172a;
    transform: translateX(-50%) rotate(-3deg);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.landing-marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #fff;
    white-space: nowrap;
    animation: landingMarquee 28s linear infinite;
}

.landing-marquee-track span {
    font-size: clamp(1.1rem, 2vw, 1.75rem);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.landing-marquee-track span:nth-of-type(3n + 1) {
    color: #16db93;
}

.landing-marquee-track span:nth-of-type(3n + 2) {
    color: #c7d2fe;
}

.landing-marquee-track span:nth-of-type(3n + 3) {
    color: #fbcfe8;
}

.landing-marquee-track em {
    color: rgba(255, 255, 255, 0.28);
    font-style: normal;
    font-weight: 900;
}

@keyframes landingMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.landing-section {
    padding: 70px 0 30px;
}

.landing-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.landing-section-heading p {
    margin: 0;
    color: #00a878;
    font-size: 0.82rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.landing-section-heading h2 {
    max-width: 600px;
    margin: 0;
    color: #0f172a;
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-align: right;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.landing-steps article {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.landing-steps span {
    display: inline-flex;
    margin-bottom: 38px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 950;
}

.landing-steps h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.landing-steps p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
    font-weight: 650;
}

.landing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 50px 0 90px;
    padding: 36px;
    border-radius: 42px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.landing-cta p {
    margin: 0 0 10px;
    color: #16db93;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.landing-cta h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

@media (max-width: 900px) {
    .landing-header {
        top: 10px;
        align-items: flex-start;
        border-radius: 28px;
    }

    .landing-nav {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .landing-nav a {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 130px;
        padding-bottom: 150px;
    }

    .landing-hero h1 {
        font-size: clamp(4rem, 18vw, 7.2rem);
    }

    .landing-phone {
        transform: none;
    }

    .landing-marquee {
        bottom: 50px;
        padding: 16px 0;
    }

    .landing-section-heading {
        display: block;
    }

    .landing-section-heading h2 {
        margin-top: 10px;
        text-align: left;
    }

    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .landing-header {
        width: calc(100vw - 20px);
        left: 10px;
        right: 10px;
        transform: none;
        padding: 8px 10px;
        gap: 8px;
    }

    .landing-brand {
        min-width: 0;
        flex-shrink: 1;
    }

    .landing-brand span:last-child {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .landing-nav {
        margin-left: auto;
        flex-shrink: 0;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .landing-nav a[href="charte.php"],
    .landing-nav a[href="privacy.php"] {
        display: none;
    }

    .landing-nav a {
        min-height: 36px;
        padding: 0 13px;
        font-size: 0.78rem;
    }
}

@media (max-width: 560px) {
    .landing-page {
        width: min(100% - 24px, 1180px);
    }

    .landing-header {
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        top: 10px;
        padding: 7px 8px;
        border-radius: 999px;
    }

    .landing-brand-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        font-size: 0.95rem;
    }

    .landing-brand span:last-child {
        max-width: 95px;
        font-size: 0.9rem;
    }

    .landing-nav a[href="login.php"] {
        display: none;
    }

    .landing-nav a[href="register.php"],
    .landing-nav a[href="app.php"] {
        padding: 0 14px;
        font-size: 0;
    }

    .landing-nav a[href="register.php"]::before {
        content: "Créer";
        font-size: 0.78rem;
    }

    .landing-nav a[href="app.php"]::before {
        content: "Entrer";
        font-size: 0.78rem;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 116px;
    }

    .landing-kicker {
        font-size: 0.7rem;
    }

    .landing-intro {
        font-size: 1rem;
    }

    .landing-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .landing-btn {
        width: 100%;
    }

    .landing-phone {
        border-radius: 34px;
    }

    .landing-product-large {
        min-height: 220px;
    }

    .landing-marquee {
        bottom: 32px;
        padding: 12px 0;
        transform: translateX(-50%) rotate(-4deg);
    }

    .landing-marquee-track {
        gap: 20px;
        animation-duration: 22s;
    }

    .landing-marquee-track span {
        font-size: 0.95rem;
        letter-spacing: 0.06em;
    }

    .landing-cta {
        padding: 26px;
        border-radius: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-light,
    .landing-marquee-track {
        animation: none;
    }

    .landing-btn:hover {
        transform: none;
    }
}
/* =========================================================
   CLEAN PATCH 09 — LEGAL / FOOTER / TOASTS / MODALES
========================================================= */

/* =========================
   PAGES LEGALES
========================= */

.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, var(--background-gradient-a), transparent 34rem),
        radial-gradient(circle at bottom right, var(--background-gradient-b), transparent 34rem),
        var(--background);
}

.legal-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.legal-hero {
    margin-bottom: 22px;
    padding: 30px;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 70%, rgba(255,255,255,0.72));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 10%, transparent), transparent 38%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--secondary) 9%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.legal-hero-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.legal-hero h1 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 950;
}

.legal-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-card {
    margin-top: 16px;
    padding: 24px 26px;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 7%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(12px);
}

.legal-card h2 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: 1.18rem;
    line-height: 1.25;
}

.legal-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.72;
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.legal-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-final-card {
    border-color: color-mix(in srgb, var(--primary) 26%, var(--border));
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 12%, transparent), transparent 44%),
        color-mix(in srgb, var(--surface) 94%, transparent);
}

/* =========================
   FOOTER
========================= */

.site-footer {
    width: 100%;
    margin-top: 48px;
    padding: 28px 16px 32px;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 40%),
        color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(16px);
}

.site-footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer-brand {
    min-width: 260px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.38), transparent 42%),
        linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 22%, transparent);
}

.site-footer-logo span {
    font-size: 1.1rem;
    font-weight: 900;
}

.site-footer-brand strong {
    display: block;
    color: var(--text-strong);
    font-size: 0.98rem;
    font-weight: 850;
}

.site-footer-brand p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.site-footer-links {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 750;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.site-footer-links a:hover {
    transform: translateY(-1px);
    color: var(--primary-dark);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.site-footer-copy {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================
   TOASTS
========================= */

.toast-container {
    position: fixed;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 200;
    width: min(420px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(22px);
    animation: toastIn 0.25s ease both;
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 950;
}

.toast-content strong {
    display: block;
    margin-bottom: 2px;
    color: var(--text-strong);
    font-size: 0.95rem;
}

.toast-content span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.toast-close {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

.toast-success {
    border-color: color-mix(in srgb, var(--success) 35%, transparent);
}

.toast-success .toast-icon {
    background: var(--success-soft);
    color: var(--success-dark);
}

.toast-error {
    border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}

.toast-error .toast-icon {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

.toast-info {
    border-color: color-mix(in srgb, var(--secondary) 35%, transparent);
}

.toast-info .toast-icon {
    background: var(--secondary-soft);
    color: var(--secondary);
}

.toast.is-hiding {
    animation: toastOut 0.2s ease both;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
}

/* =========================
   CONFIRM MODAL
========================= */

.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: var(--overlay-bg);
    backdrop-filter: blur(6px);
}

.confirm-modal-overlay.hidden {
    display: none !important;
}

.confirm-modal {
    width: min(440px, 100%);
    padding: 22px;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(22px);
    animation: confirmModalIn 0.22s ease both;
}

.confirm-modal-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 20px;
    background: var(--secondary-soft);
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 950;
}

.confirm-modal-icon.is-danger {
    background: var(--danger-soft);
    color: var(--danger-dark);
}

.confirm-modal-icon.is-warning {
    background: var(--warning-soft);
    color: var(--warning-dark);
}

.confirm-modal-icon.is-success {
    background: var(--success-soft);
    color: var(--success-dark);
}

.confirm-modal-content h2 {
    margin: 0 0 8px;
    color: var(--text-strong);
    font-size: 1.45rem;
    letter-spacing: -0.055em;
}

.confirm-modal-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 10px;
    margin-top: 22px;
}

.confirm-cancel-btn,
.confirm-action-btn {
    min-height: 48px;
    border: none;
    border-radius: 999px;
    padding: 12px 16px;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

.confirm-cancel-btn {
    background: var(--surface-muted);
    color: var(--text);
}

.confirm-action-btn {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
    color: #fff;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.confirm-action-btn.is-danger {
    background: var(--danger);
    box-shadow: none;
}

.confirm-action-btn.is-warning {
    background: var(--warning);
    box-shadow: none;
}

.confirm-action-btn.is-success {
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.28), transparent 42%),
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 72%, var(--secondary)));
}

@keyframes confirmModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   REPORT MODAL
========================= */

.report-modal {
    max-width: 480px;
}

.report-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.report-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 850;
}

.report-form select,
.report-form textarea {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    padding: 12px 13px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.report-form textarea {
    min-height: 110px;
    resize: vertical;
}

.report-form select:focus,
.report-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 140;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 42%),
        var(--primary);
    color: #fff;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--primary) 26%, transparent);
    font-size: 1.35rem;
    font-weight: 950;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.92);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.back-to-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
}

/* =========================
   DARK / OCEAN ADJUSTMENTS
========================= */

[data-theme="dark"] .site-footer {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary) 8%, transparent), transparent 40%),
        rgba(15, 23, 42, 0.96);
}

[data-theme="dark"] .legal-card,
[data-theme="dark"] .legal-hero,
[data-theme="dark"] .toast,
[data-theme="dark"] .confirm-modal {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

[data-theme="ocean"] .site-footer-logo {
    background: linear-gradient(135deg, #0284c7, #0f766e);
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 761px) {
    .toast-container {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 380px;
        transform: none;
    }

    .confirm-modal-overlay {
        align-items: center;
    }

    .back-to-top-btn {
        bottom: 24px;
    }
}

@media (max-width: 820px) {
    .site-footer {
        margin-top: 34px;
        padding-bottom: 92px;
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer-brand {
        justify-content: center;
        min-width: 0;
    }

    .site-footer-links {
        width: 100%;
    }

    .site-footer-copy {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .legal-shell {
        width: min(100% - 22px, 980px);
        padding: 20px 0 92px;
    }

    .legal-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .legal-card {
        padding: 20px;
        border-radius: 22px;
    }

    .legal-card h2 {
        font-size: 1.05rem;
    }

    .legal-card p,
    .legal-card li {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .site-footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer-links a {
        width: 100%;
    }

    .confirm-modal {
        padding: 20px;
        border-radius: 24px;
    }

    .confirm-modal-actions {
        grid-template-columns: 1fr;
    }

    .back-to-top-btn {
        right: 14px;
        bottom: 88px;
        width: 44px;
        height: 44px;
        border-radius: 16px;
        font-size: 1.25rem;
    }
}
/* =========================================================
   PARCOURS RENCONTRE - MESSAGERIE
========================================================= */
.meeting-panel{
    margin: 14px 0;
}

.meeting-panel-loading{
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15,23,42,.04);
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.meeting-card{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(15,23,42,.08);
    background:
        radial-gradient(circle at top left, rgba(99,102,241,.12), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 18px 45px rgba(15,23,42,.07);
}

.meeting-card.status-accepted{
    border-color: rgba(34,197,94,.22);
    background:
        radial-gradient(circle at top left, rgba(34,197,94,.14), transparent 36%),
        linear-gradient(135deg, #ffffff, #f0fdf4);
}

.meeting-card.status-pending{
    border-color: rgba(245,158,11,.25);
    background:
        radial-gradient(circle at top left, rgba(245,158,11,.18), transparent 36%),
        linear-gradient(135deg, #ffffff, #fffbeb);
}

.meeting-card.status-completed{
    border-color: rgba(99,102,241,.25);
    background:
        radial-gradient(circle at top left, rgba(99,102,241,.16), transparent 36%),
        linear-gradient(135deg, #ffffff, #eef2ff);
}

.meeting-card.is-error,
.meeting-card.is-closed{
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.meeting-icon{
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    font-size: 22px;
}

.meeting-main{
    min-width: 0;
}

.meeting-topline{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.meeting-topline strong{
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.meeting-topline span{
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(15,23,42,.06);
    color: #475569;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.meeting-card p{
    margin: 0;
    color: #64748b;
    line-height: 1.45;
    font-size: 14px;
}

.meeting-details{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.meeting-details div{
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(15,23,42,.06);
}

.meeting-details small{
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 4px;
}

.meeting-details b{
    display: block;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
}

.meeting-note{
    margin-top: 10px !important;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(15,23,42,.06);
}

.meeting-actions,
.meeting-form-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.meeting-primary-btn,
.meeting-secondary-btn{
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.meeting-primary-btn:hover,
.meeting-secondary-btn:hover{
    transform: translateY(-1px);
}

.meeting-primary-btn:disabled,
.meeting-secondary-btn:disabled{
    opacity: .65;
    cursor: wait;
    transform: none;
}

.meeting-primary-btn{
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 12px 28px rgba(99,102,241,.28);
}

.meeting-secondary-btn{
    color: #334155;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(15,23,42,.10);
}

.meeting-form{
    margin-top: 14px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(15,23,42,.08);
}

.meeting-form-grid{
    display: grid;
    grid-template-columns: 1.5fr .9fr .7fr;
    gap: 10px;
}

.meeting-form label{
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.meeting-form label span{
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.meeting-form input,
.meeting-form textarea{
    width: 100%;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    padding: 11px 12px;
    color: #0f172a;
    background: #fff;
    outline: none;
    font: inherit;
}

.meeting-form input:focus,
.meeting-form textarea:focus{
    border-color: rgba(99,102,241,.45);
    box-shadow: 0 0 0 4px rgba(99,102,241,.10);
}

@media(max-width: 760px){
    .meeting-card{
        grid-template-columns: 1fr;
    }

    .meeting-topline{
        flex-direction: column;
        align-items: flex-start;
    }

    .meeting-details,
    .meeting-form-grid{
        grid-template-columns: 1fr;
    }

    .meeting-actions,
    .meeting-form-actions{
        align-items: stretch;
    }

    .meeting-actions button,
    .meeting-form-actions button{
        width: 100%;
    }
}
/* =========================================================
   PARCOURS RENCONTRE COMPACT
========================================================= */

.meeting-panel{
    margin: 10px 0;
}

.meeting-card.meeting-card-compact{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 20px;
    min-height: 76px;
}

.meeting-compact-left{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.meeting-card-compact .meeting-icon{
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 18px;
    flex: 0 0 auto;
}

.meeting-card-compact .meeting-main{
    min-width: 0;
    flex: 1;
}

.meeting-topline-compact{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 3px;
}

.meeting-topline-compact strong{
    font-size: 15px;
    line-height: 1.1;
}

.meeting-topline-compact span{
    padding: 4px 8px;
    font-size: 11px;
}

.meeting-compact-help{
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.3;
}

.meeting-inline-details{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.25;
}

.meeting-inline-details span{
    white-space: nowrap;
}

.meeting-inline-details b{
    color: #334155;
    font-weight: 900;
}

.meeting-note-compact{
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.3;
    color: #64748b;
}

.meeting-actions-compact{
    margin-top: 0;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.meeting-actions-compact .meeting-primary-btn,
.meeting-actions-compact .meeting-secondary-btn{
    padding: 9px 13px;
    font-size: 13px;
    white-space: nowrap;
}

.meeting-form-compact{
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    flex-basis: 100%;
}

.meeting-form-grid-compact{
    display: grid;
    grid-template-columns: 1.4fr .8fr .6fr 1.4fr;
    gap: 8px;
}

.meeting-form-grid-compact label{
    margin-bottom: 0;
}

.meeting-form-grid-compact input{
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.meeting-form-actions-compact{
    margin-top: 10px;
    justify-content: flex-end;
}

.meeting-form-actions-compact .meeting-primary-btn,
.meeting-form-actions-compact .meeting-secondary-btn{
    padding: 9px 13px;
    font-size: 13px;
}

@media(max-width: 900px){
    .meeting-card.meeting-card-compact{
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .meeting-actions-compact{
        width: 100%;
        justify-content: flex-start;
    }

    .meeting-form-grid-compact{
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 560px){
    .meeting-card.meeting-card-compact{
        padding: 12px;
    }

    .meeting-compact-left{
        align-items: flex-start;
    }

    .meeting-topline-compact{
        flex-wrap: wrap;
    }

    .meeting-inline-details{
        display: grid;
        gap: 4px;
    }

    .meeting-inline-details span{
        white-space: normal;
    }

    .meeting-form-grid-compact{
        grid-template-columns: 1fr;
    }

    .meeting-actions-compact .meeting-primary-btn,
    .meeting-actions-compact .meeting-secondary-btn,
    .meeting-form-actions-compact .meeting-primary-btn,
    .meeting-form-actions-compact .meeting-secondary-btn{
        width: 100%;
    }
}
/* =========================================================
   FIX MOBILE - SCROLL MESSAGERIE
========================================================= */

@media (max-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    .messages-page,
    .messages-shell,
    .messages-premium-shell {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    .chat-content,
    #chatContent {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .premium-chat-panel,
    .chat-panel,
    .chat-window {
        height: 100%;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .chat-messages,
    .premium-chat-messages {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding-bottom: 110px;
    }

    .chat-send-form,
    .premium-chat-form,
    #chatSendForm {
        flex: 0 0 auto;
        position: sticky;
        bottom: 0;
        z-index: 20;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(12px);
    }

    .meeting-panel {
        flex: 0 0 auto;
    }

    .quick-replies {
        flex: 0 0 auto;
    }
}
/* =========================================================
   MOBILE - MESSAGERIE ULTRA COMPACTE
   À placer tout en bas du fichier style.css
========================================================= */

@media (max-width: 768px) {

    /* Header annonce plus compact */
    .chat-header,
    .premium-chat-header {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 54px 1fr auto !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 12px !important;
        min-height: 74px !important;
    }

    .chat-header img,
    .premium-chat-header img,
    .conversation-article-thumb {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        grid-column: 1 !important;
    }

    .chat-header h2,
    .premium-chat-header h2 {
        font-size: 15px !important;
        line-height: 1.05 !important;
        margin: 0 !important;
    }

    .chat-header p,
    .premium-chat-header p {
        font-size: 12px !important;
        line-height: 1.15 !important;
        margin: 3px 0 0 !important;
    }

    /* Bouton voir article en haut à droite, petit */
    .chat-header a[href*="article"],
    .premium-chat-header a[href*="article"],
    .view-article-btn,
    .btn-view-article {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;
        width: auto !important;
        min-width: auto !important;
        min-height: 30px !important;
        height: 30px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        font-size: 11px !important;
        line-height: 30px !important;
        box-shadow: none !important;
        z-index: 5 !important;
    }

    /* Laisse de la place au bouton à droite */
    .chat-header > div,
    .premium-chat-header > div {
        padding-right: 90px !important;
        min-width: 0 !important;
    }

    /* Bloc rencontre en bandeau compact */
    .meeting-panel {
        margin: 6px 10px !important;
    }

    .meeting-card,
    .meeting-card.meeting-card-compact {
        display: grid !important;
        grid-template-columns: 28px 1fr auto !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 10px !important;
        min-height: 52px !important;
        border-radius: 16px !important;
        box-shadow: 0 8px 20px rgba(15,23,42,.06) !important;
    }

    .meeting-compact-left {
        display: contents !important;
    }

    .meeting-card .meeting-icon,
    .meeting-card-compact .meeting-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        grid-column: 1 !important;
    }

    .meeting-card .meeting-main,
    .meeting-card-compact .meeting-main {
        grid-column: 2 !important;
        min-width: 0 !important;
    }

    .meeting-topline,
    .meeting-topline-compact {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .meeting-topline strong,
    .meeting-topline-compact strong {
        font-size: 13px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 145px !important;
    }

    .meeting-topline span,
    .meeting-topline-compact span {
        padding: 2px 6px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    /* Détails sur une ligne compacte */
    .meeting-inline-details {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 3px !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
        color: #64748b !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .meeting-inline-details span {
        display: inline !important;
        white-space: nowrap !important;
    }

    .meeting-inline-details span:nth-child(3) {
        display: none !important;
    }

    .meeting-inline-details b {
        font-weight: 900 !important;
        color: #334155 !important;
    }

    .meeting-note,
    .meeting-note-compact,
    .meeting-compact-help {
        display: none !important;
    }

    /* Boutons rencontre plus petits */
    .meeting-actions,
    .meeting-actions-compact {
        grid-column: 3 !important;
        width: auto !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        gap: 5px !important;
    }

    .meeting-actions .meeting-primary-btn,
    .meeting-actions .meeting-secondary-btn,
    .meeting-actions-compact .meeting-primary-btn,
    .meeting-actions-compact .meeting-secondary-btn {
        width: auto !important;
        min-width: auto !important;
        min-height: 30px !important;
        height: 30px !important;
        padding: 0 9px !important;
        border-radius: 999px !important;
        font-size: 10.5px !important;
        line-height: 30px !important;
        white-space: nowrap !important;
    }

    /* Quand il n'y a qu'un bouton "Nouvelle rencontre" */
    .meeting-actions .meeting-primary-btn {
        max-width: 118px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Formulaire rencontre compact sous le bandeau */
    .meeting-form,
    .meeting-form-compact {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px !important;
        border-radius: 14px !important;
    }

    .meeting-form-grid,
    .meeting-form-grid-compact {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }

    .meeting-form-grid label:first-child,
    .meeting-form-grid label:last-child,
    .meeting-form-grid-compact label:first-child,
    .meeting-form-grid-compact label:last-child {
        grid-column: 1 / -1 !important;
    }

    .meeting-form label span {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .meeting-form input,
    .meeting-form textarea {
        height: 32px !important;
        min-height: 32px !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }

    .meeting-form-actions,
    .meeting-form-actions-compact {
        margin-top: 8px !important;
        justify-content: flex-end !important;
        gap: 6px !important;
    }

    .meeting-form-actions button,
    .meeting-form-actions-compact button {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    /* Réponses rapides moins hautes */
    .quick-replies {
        padding: 7px 10px !important;
        gap: 7px !important;
    }

    .quick-replies button {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    /* Plus d'espace pour les messages */
    .chat-messages,
    .premium-chat-messages {
        padding-top: 10px !important;
        padding-bottom: 96px !important;
    }
}
/* =========================================================
   MOBILE - BOUTON VOIR ARTICLE EN HAUT À DROITE
========================================================= */

@media (max-width: 768px) {
    .chat-premium-head {
        position: relative !important;
        padding: 10px 105px 10px 12px !important;
        min-height: 74px !important;
        display: flex !important;
        align-items: center !important;
    }

    .chat-premium-article {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .chat-premium-article img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        flex: 0 0 auto !important;
    }

    .chat-premium-article div {
        min-width: 0 !important;
    }

    .chat-premium-article span {
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    .chat-premium-article strong {
        display: block !important;
        font-size: 15px !important;
        line-height: 1.1 !important;
        max-width: 190px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .chat-premium-article p {
        font-size: 12px !important;
        line-height: 1.15 !important;
        margin: 3px 0 0 !important;
    }

    .chat-see-article {
        position: absolute !important;
        top: 10px !important;
        right: 12px !important;

        width: auto !important;
        min-width: auto !important;
        height: 30px !important;
        min-height: 30px !important;

        padding: 0 10px !important;
        border-radius: 999px !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 11px !important;
        font-weight: 850 !important;
        line-height: 1 !important;
        white-space: nowrap !important;

        box-shadow: none !important;
        z-index: 10 !important;
    }
}
/* =========================================================
   MOBILE - RENCONTRE SUR UNE SEULE LIGNE
========================================================= */

@media (max-width: 768px) {
    .meeting-card,
    .meeting-card.meeting-card-compact {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) auto !important;
        grid-template-rows: auto !important;
        align-items: center !important;
        gap: 8px !important;

        padding: 8px 10px !important;
        min-height: 52px !important;
        border-radius: 16px !important;
    }

    .meeting-compact-left {
        display: contents !important;
    }

    .meeting-icon {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    .meeting-main {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
    }

    .meeting-topline,
    .meeting-topline-compact {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    .meeting-topline strong,
    .meeting-topline-compact strong {
        font-size: 13px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .meeting-topline span,
    .meeting-topline-compact span {
        font-size: 10px !important;
        padding: 2px 6px !important;
        white-space: nowrap !important;
    }

    .meeting-inline-details {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 3px !important;

        font-size: 10.5px !important;
        line-height: 1.1 !important;

        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .meeting-inline-details span {
        display: inline !important;
        white-space: nowrap !important;
    }

    .meeting-inline-details span:nth-child(3) {
        display: none !important;
    }

    .meeting-note,
    .meeting-note-compact,
    .meeting-compact-help {
        display: none !important;
    }

    .meeting-actions,
    .meeting-actions-compact {
        grid-column: 3 !important;
        grid-row: 1 !important;

        width: auto !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .meeting-actions .meeting-primary-btn,
    .meeting-actions .meeting-secondary-btn,
    .meeting-actions-compact .meeting-primary-btn,
    .meeting-actions-compact .meeting-secondary-btn {
        width: auto !important;
        min-width: auto !important;
        height: 30px !important;
        min-height: 30px !important;

        padding: 0 9px !important;
        border-radius: 999px !important;

        font-size: 10.5px !important;
        line-height: 30px !important;
        white-space: nowrap !important;
    }

    .meeting-actions .meeting-primary-btn {
        max-width: 122px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}
/* =========================================================
   LANDING LOGO
========================================================= */

.landing-brand-logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
}

.landing-brand-logo img{
    display:block;
    height:54px;
    width:auto;
    max-width:240px;
    object-fit:contain;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,.18));
}

@media (max-width: 640px){
    .landing-brand-logo img{
        height:44px;
        max-width:190px;
    }
}