@media (max-width: 767px) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}
/* ═══════════════════════════════════════════════════════════════
   PESACOP — Modern Design System 2.0
   ═══════════════════════════════════════════════════════════════ */

/* =======================================
   1. DESIGN TOKENS
   ======================================= */
:root {
    /* Brand */
    --p: #e85d04;
    --p-dark: #c44b00;
    --p-light: #f48c37;
    --p-lighter: rgb(49 48 48 / 0.08);
    --p-glow: rgb(255 255 255 / 0.12);
    --p-glow-strong: rgba(232, 93, 4, 0.25);

    /* Surfaces */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.72);
    --overlay: rgba(15, 15, 20, 0.5);

    /* Text */
    --text: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Grays */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #3d87ff;
    --success-bg: rgba(22, 163, 74, 0.1);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.1);
    --warning: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.1);
    --info: #2563eb;
    --info-bg: rgba(37, 99, 235, 0.1);

    /* Shadows — layered for natural depth */
    --shadow: rgba(15, 23, 42, 0.04);
    --shadow-md: rgba(15, 23, 42, 0.06);
    --shadow-lg: rgba(15, 23, 42, 0.08);
    --shadow-xl: rgba(15, 23, 42, 0.12);
    --shadow-card: 0 1px 3px rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.03);
    --shadow-card-hover: 0 4px 12px rgba(15,23,42,0.06), 0 16px 40px rgba(15,23,42,0.08);
    --shadow-float: 0 8px 30px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
    --shadow-navbar: 0 1px 0 rgba(15,23,42,0.06);

    /* Typography */
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;

    /* Radius */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --r-2xl: 24px;
    --r-full: 9999px;

    /* Transitions */
    --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --t-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg: #0c0f17;
    --surface: #151921;
    --surface-elevated: #1c2130;
    --surface-glass: rgba(21, 25, 33, 0.82);
    --overlay: rgba(0, 0, 0, 0.6);
    --text: #e8ecf4;
    --text-secondary: #8b95a8;
    --text-tertiary: #5a6478;
    --border: #232a38;
    --border-light: #1c2130;
    --gray-50: #151921;
    --gray-100: #1c2130;
    --gray-200: #232a38;
    --gray-300: #2e3648;
    --gray-400: #5a6478;
    --gray-500: #6b7a92;
    --gray-600: #8b95a8;
    --gray-700: #b0b9c8;
    --gray-800: #151921;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-md: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.4);
    --shadow-xl: rgba(0, 0, 0, 0.5);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.15);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.25), 0 16px 40px rgba(0,0,0,0.3);
    --shadow-float: 0 8px 30px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    --shadow-navbar: 0 1px 0 rgba(0,0,0,0.3);
    --p-lighter: rgb(3 3 3 / 0.12);
    --p-glow: rgb(175 174 174 / 0.15);
    --p-glow-strong: rgba(232, 93, 4, 0.3);
    --success-bg: rgba(22, 163, 74, 0.15);
    --danger-bg: rgba(220, 38, 38, 0.15);
    --warning-bg: rgba(217, 119, 6, 0.15);
    --info-bg: rgba(37, 99, 235, 0.15);
}

/* =======================================
   2. BASE & RESET
   ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

a { color: var(--p); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--p-dark); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(232, 93, 4, 0.15); color: var(--p-dark); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--gray-400); }

/* =======================================
   3. NAVBAR — Épurée, hauteur constante
   ======================================= */
.navbar-pesacop {
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    z-index: 1050;
    position: sticky; top: 0;
    transition: box-shadow var(--t-base);
}
.navbar-pesacop .container {
    display: flex; align-items: center; gap: 0.75rem;
    min-height: 62px; padding-top: 0; padding-bottom: 0;
}

/* Ombre subtile au scroll — la bordure reste, aucun saut de mise en page */
.navbar-pesacop.scrolled { box-shadow: 0 6px 24px var(--shadow-md); }

.navbar-brand { display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }

/* =======================================
   LOGO PESACOP (bascule clair / sombre)
   Le wordmark orange sert en theme clair, le blanc en theme sombre.
   Les deux <img> sont dans le DOM : la bascule est purement CSS, donc
   instantanee au changement de theme et sans flash au chargement.
   ======================================= */
.pc-logo { display: inline-flex; align-items: center; line-height: 0; }
.pc-logo img {
    display: block; width: auto; height: 26px;
    /* Evite le CLS : le navigateur reserve la place avant le decodage. */
    aspect-ratio: 470 / 96;
}
.pc-logo .logo-dark { display: none; }
[data-theme="dark"] .pc-logo .logo-light { display: none; }
[data-theme="dark"] .pc-logo .logo-dark { display: block; }
.pc-logo--sm img { height: 22px; }
.pc-logo--lg img { height: 34px; }
@media (max-width: 575.98px) { .pc-logo img { height: 23px; } }

/* Boutons icônes — tailles et états uniformes */
.nav-icon, .search-mobile-icon, .mobile-menu-toggle, .theme-toggle {
    width: 40px; height: 40px; border: none; background: transparent;
    border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.25rem; line-height: 1;
    cursor: pointer; position: relative; flex-shrink: 0;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav-icon:hover, .search-mobile-icon:hover, .mobile-menu-toggle:hover, .theme-toggle:hover { background: var(--gray-100); color: var(--text); }
.nav-icon.active { color: var(--p); background: var(--p-lighter); }
.nav-icon.active:hover { color: var(--p); background: var(--p-lighter); }
.nav-icon .badge-dot {
    position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
    background: var(--danger); border-radius: 50%; border: 2px solid var(--surface);
}
.nav-count-badge {
    position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff;
    border: 2px solid var(--surface); display: inline-flex; align-items: center;
    justify-content: center; font: 700 9px/1 Arial, sans-serif;
}
.nav-item-mobile { position: relative; }
.mobile-nav-badge {
    top: 2px;
    right: calc(50% - 14px);
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 8px;
    border-width: 1.5px;
    z-index: 5;
}
.mobile-offers-badge {
    top: -2px;
    right: -2px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 9px;
    font-weight: 800;
    background: var(--danger);
    color: #fff;
    border: 2px solid var(--surface);
}

.nav-avatar {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--p-lighter); color: var(--p); font-weight: 700; font-size: var(--text-xs);
    cursor: pointer; border: 1.5px solid var(--border);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.nav-avatar:hover { border-color: var(--p-glow-strong); box-shadow: 0 0 0 3px var(--p-glow); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.navbar-pesacop .dropdown-menu {
    background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg);
    box-shadow: var(--shadow-float); padding: 0.375rem; min-width: 210px;
    animation: dropdownReveal 0.18s ease;
}
@keyframes dropdownReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.navbar-pesacop .dropdown-item {
    border-radius: var(--r-sm); padding: 0.55rem 0.75rem; font-size: var(--text-sm); font-weight: 500;
    color: var(--text); display: flex; align-items: center; gap: 0.6rem; transition: all var(--t-fast);
}
.navbar-pesacop .dropdown-item:hover { background: var(--gray-100); color: var(--text); }
.navbar-pesacop .dropdown-item i { font-size: 1rem; color: var(--text-tertiary); width: 18px; text-align: center; }
.navbar-pesacop .dropdown-divider { border-color: var(--border-light); margin: 0.35rem 0; }

@media (min-width: 993px) { .search-mobile-icon { display: none !important; } }

.theme-toggle .bi-sun { display: block; font-size: 1.05rem; }
.theme-toggle .bi-moon { display: none; font-size: 1.05rem; }
[data-theme="dark"] .theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-moon { display: block; }

/* =======================================
   4. MOBILE DRAWER — Fluide & épuré
   ======================================= */
.mobile-drawer { position: fixed; inset: 0; z-index: 1090; pointer-events: none; }
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer-overlay {
    position: absolute; inset: 0; background: var(--overlay);
    opacity: 0; transition: opacity var(--t-base); backdrop-filter: blur(4px);
}
.mobile-drawer.open .mobile-drawer-overlay { opacity: 1; }

.mobile-drawer-panel {
    position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--surface);
    border-right: 1px solid var(--border-light);
    box-shadow: var(--shadow-float);
    transform: translateX(-102%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-panel { transform: translateX(0); }

.mobile-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 62px; padding: 0 1rem 0 1.25rem;
    border-bottom: 1px solid var(--border-light);
}
.mobile-drawer-close {
    width: 36px; height: 36px; border-radius: var(--r-md); border: none;
    background: transparent; color: var(--text-secondary); display: flex;
    align-items: center; justify-content: center; cursor: pointer; transition: all var(--t-fast);
}
.mobile-drawer-close:hover { background: var(--gray-100); color: var(--text); }

.mobile-drawer-body { flex: 1; padding: 0.5rem 0 1rem; }

.drawer-profile {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.5rem 1.25rem 1rem; margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.drawer-avatar {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    background: var(--p-lighter); color: var(--p);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    font-size: var(--text-sm); flex-shrink: 0;
}
.drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-profile-info { min-width: 0; }
.drawer-profile-name { font-weight: 700; font-size: var(--text-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-profile-type { font-size: var(--text-xs); color: var(--text-tertiary); text-transform: capitalize; }

.drawer-menu { padding: 0.25rem 0.75rem; display: flex; flex-direction: column; gap: 2px; }
.drawer-item {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 0.85rem;
    border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 500;
    color: var(--text-secondary); transition: all var(--t-fast); text-decoration: none;
}
.drawer-item:hover { background: var(--gray-100); color: var(--text); }
.drawer-item.active { background: var(--p-lighter); color: var(--p); font-weight: 600; }
.drawer-item i { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.drawer-divider { height: 1px; background: var(--border-light); margin: 0.5rem 0.85rem; }

/* =======================================
   5. CARDS — Modern with subtle depth
   ======================================= */
.card-pesacop {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-card); transition: all var(--t-slow); overflow: hidden;
}
.card-pesacop:hover { box-shadow: var(--shadow-card-hover); }
.card-pesacop .card-header {
    padding: 1rem 1.25rem; font-weight: 700; font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 0.5rem;
}
.card-pesacop .card-body { padding: 1.25rem; }

.post-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-card); overflow: hidden; transition: all var(--t-slow);
}
.post-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light);
}
.post-header .author { display: flex; align-items: center; gap: 0.75rem; }
.post-header .author-avatar {
    width: 40px; height: 40px; border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.post-header .author-info .name { font-weight: 700; font-size: var(--text-sm); color: var(--text); }
.post-header .author-info .meta { font-size: var(--text-xs); color: var(--text-tertiary); }
.post-content { padding: 1rem 1.25rem; }
.post-actions {
    padding: 0.65rem 1.25rem; border-top: 1px solid var(--border-light);
    display: flex; gap: 0.35rem;
}

/* =======================================
   6. BUTTONS — Refined
   ======================================= */
.btn-pesacop {
    background: var(--p); color: white; border: none; border-radius: var(--r-md);
    font-weight: 600; font-size: var(--text-sm); padding: 0.6rem 1.25rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--t-fast); position: relative; overflow: hidden;
}
.btn-pesacop:hover {
    background: var(--p-dark); color: white;
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,93,4,0.25);
}
.btn-pesacop:active { transform: translateY(0); box-shadow: none; }

.btn-pesacop-outline {
    background: transparent; color: var(--p); border: 1.5px solid var(--p);
    border-radius: var(--r-md); font-weight: 600; font-size: var(--text-sm);
    padding: 0.55rem 1.2rem; display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--t-fast);
}
.btn-pesacop-outline:hover {
    background: var(--p); color: white;
    transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,93,4,0.2);
}

.btn-gray {
    background: var(--gray-100); color: var(--text-secondary); border: 1px solid var(--border);
    border-radius: var(--r-md); font-weight: 600; font-size: var(--text-sm);
    padding: 0.6rem 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--t-fast);
}
.btn-gray:hover { background: var(--gray-200); color: var(--text); }

.btn-gold {
    background: linear-gradient(135deg, var(--warning), #f59e0b); color: white;
    border: none; border-radius: var(--r-md); font-weight: 600; font-size: var(--text-sm);
    padding: 0.6rem 1.25rem; display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--t-fast);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(217,119,6,0.3); color: white; }

/* =======================================
   7. FORMS — Clean & modern
   ======================================= */
.form-control, .form-select {
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
    padding: 0.65rem 0.875rem; font-size: var(--text-sm); color: var(--text);
    font-family: var(--font); transition: all var(--t-fast);
}
.form-control:focus, .form-select:focus {
    border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow);
    outline: none; background: var(--surface);
}
.form-control::placeholder { color: var(--text-tertiary); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-text { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 0.3rem; }
.form-section-title {
    font-weight: 700; font-size: var(--text-sm); margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-light);
    display: flex; align-items: center; gap: 0.5rem;
}
.form-section-title:first-of-type { margin-top: 0.5rem; }

/* =======================================
   8. AUTH PAGES — Clean flat design (social media style)
   ======================================= */
.auth-card {
    background: var(--surface); border: none; border-radius: var(--r-2xl);
    overflow: hidden;
}
@media (min-width: 769px) {
    .auth-card { border: 1px solid var(--border-light); }
}
.auth-header {
    padding: 2rem 2rem 1.25rem; background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}
.auth-header i { color: var(--p); }
.auth-body { padding: 1.75rem 2rem 2rem; }
.divider-or {
    display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
    color: var(--text-tertiary); font-size: var(--text-sm);
}
.divider-or::before, .divider-or::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* =======================================
   9. PAGE HEADER
   ======================================= */
.page-header {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}
.page-header h2 { font-weight: 800; font-size: var(--text-xl); color: var(--text); letter-spacing: -0.02em; }

/* =======================================
   10. STAT CARDS
   ======================================= */
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 1.25rem; box-shadow: var(--shadow-card); transition: all var(--t-slow);
    position: relative; overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px; height: 48px; border-radius: var(--r-lg); display: flex;
    align-items: center; justify-content: center; font-size: 1.3rem; color: white;
    margin-bottom: 0.75rem;
}
.stat-card .stat-value { font-weight: 800; font-size: var(--text-2xl); color: var(--text); line-height: 1.2; }
.stat-card .stat-label { font-size: var(--text-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; margin-top: 0.15rem; }

/* =======================================
   11. STATUS BADGES
   ======================================= */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.65rem; border-radius: var(--r-full);
    font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em;
}
.badge-en_attente, .badge-en_attente_validation, .badge-pending, .badge-planifie { background: var(--warning-bg); color: var(--warning); }
.badge-approuve, .badge-accepte, .badge-confirme, .badge-termine { background: var(--success-bg); color: var(--success); }
.badge-refuse, .badge-annule { background: var(--danger-bg); color: var(--danger); }
.badge-en_cours { background: var(--info-bg); color: var(--info); }
.badge-retenue { background: var(--success-bg); color: var(--success); }
.badge-rejetee { background: var(--danger-bg); color: var(--danger); }

/* =======================================
   12. TABLES
   ======================================= */
.table-pesacop { font-size: var(--text-sm); margin: 0; }
.table-pesacop th {
    font-weight: 600; font-size: var(--text-xs); text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-tertiary); background: var(--gray-50);
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.table-pesacop td {
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light);
    color: var(--text); vertical-align: middle;
}
.table-pesacop tbody tr { transition: background var(--t-fast); }
.table-pesacop tbody tr:hover { background: var(--gray-50); }

/* =======================================
   13. ALERT & NOTIFICATIONS
   ======================================= */
.alert-pesacop {
    border-radius: var(--r-lg); padding: 0.85rem 1.15rem; font-size: var(--text-sm);
    font-weight: 500; display: flex; align-items: center; gap: 0.5rem; border: none;
}
.alert-pesacop-success { background: var(--success-bg); color: var(--success); }
.alert-pesacop-danger { background: var(--danger-bg); color: var(--danger); }
.alert-pesacop-warning { background: var(--warning-bg); color: var(--warning); }
.alert-pesacop-info { background: var(--info-bg); color: var(--info); }

.notification-item {
    padding: 0.85rem 1rem; border-radius: var(--r-md);
    border-left: 3px solid transparent; transition: all var(--t-fast);
}
.notification-item.unread { background: var(--p-lighter); border-left-color: var(--p); }

/* =======================================
   15. AGENT CARDS
   ======================================= */
.agent-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-card); overflow: hidden; transition: all var(--t-slow);
    text-align: center; position: relative;
    display: block; text-decoration: none; color: inherit;
    height: 100%;
}
.agent-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); border-color: var(--p-glow-strong); }

a.agent-card, .agent-card-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
a.agent-card:hover, .agent-card-link:hover { text-decoration: none; color: inherit; }

/* La carte entière est cliquable (recherche agents), sauf les contrôles au-dessus (z-index 4) */
.agent-card-stretch { position: absolute; inset: 0; z-index: 3; }

/* Bannière de couverture en haut de la carte */
.agent-card .agent-cover {
    height: 92px; background: linear-gradient(1deg, var(--p-glow), var(--p-lighter));
    background-size: cover; background-position: top center;
}

/* Avatar rond centré chevauchant la bannière */
.agent-card .agent-photo-wrapper { position: relative; padding: 0; margin-top: 0; display: block; width: 100%; z-index: 2; }
.agent-card .agent-avatar {
    display: block; width: 100%; max-width: 100%; height: 250px; aspect-ratio: 1 / 1; border-radius: 0; object-fit: cover; object-position: center center;
    overflow: hidden;
    border: 0; box-shadow: none;
    background: var(--gray-100); transition: all var(--t-slow);
}
.home-category-filter {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .75rem;
    color: var(--text-secondary);
    font-size: .85rem;
}
.home-category-filter:empty { display: none; }
.home-category-filter button {
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
}
.home-category-filter button:hover { color: var(--p); }
.home-category-results {
    display: none;
    margin-top: 1rem;
}
.home-category-results.is-open { display: block; }
.agent-card .agent-avatar-placeholder {
    min-height: 0; color: var(--p); font-size: 2rem; font-weight: 700;
    background: var(--p-glow);
}
.agent-card:hover .agent-avatar { transform: scale(1.02); box-shadow: none; }

.agent-card .availability-dot {
    position: absolute; bottom: 4px; right: calc(50% - 70px + 0rem);
    width: 16px; height: 16px; border-radius: 50%; background: var(--success);
    border: 3px solid var(--surface); z-index: 2;
}

/* z-index 4 (> .agent-card-stretch:3) : sans cela, le bouton Suivre (z-index:5)
   reste "piege" dans le contexte d'empilement de .agent-body (z-index:2) et le
   lien plein-carte recupere quand meme le clic. */
.agent-card .agent-body { padding: 0.6rem 1rem 1.15rem; position: relative; z-index: 4; }

/* Bouton Suivre directement sur la carte (agent/entreprise connecté) */
.agent-follow-form { position: relative; z-index: 4; margin-top: 0.5rem; }
.btn-follow-card {
    position: relative; z-index: 5;
    width: 100%; border: 1px solid var(--p); background: var(--p); color: #fff;
    border-radius: var(--r-md); font-size: var(--text-xs); font-weight: 600;
    padding: 0.45rem 0.6rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
    cursor: pointer; transition: all var(--t-fast);
}
.btn-follow-card:hover { background: var(--p-dark); border-color: var(--p-dark); }
.btn-follow-card.is-following { background: transparent; color: var(--p); }
.btn-follow-card.is-following:hover { background: var(--p-lighter); }

/* Ligne nom + badge vérifié, positionnée comme sur les réseaux sociaux (a côté du nom) */
.agent-card .agent-name-row { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-bottom: 0.15rem; max-width: 100%; }
.agent-card .agent-name-row .agent-name { margin-bottom: 0; }
.agent-card .agent-name { font-weight: 700; font-size: var(--text-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.icon-verified { color: #1d9bf0; flex-shrink: 0; }
.agent-card .icon-verified, .agent-name-row .icon-verified { font-size: 0.85rem; }
.agent-card .agent-metier { font-size: var(--text-xs); color: var(--p); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.agent-card .agent-rating { display: flex; align-items: center; justify-content: center; gap: 0.1rem; font-size: 0.7rem; color: var(--warning); margin-bottom: 0.35rem; }
.agent-card .agent-rating .rating-count { color: var(--text-tertiary); font-size: var(--text-xs); margin-left: 0.25rem; }
.agent-card .agent-location { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: 0.2rem; display: flex; align-items: center; justify-content: center; gap: 0.2rem; }

.agent-card .agent-actions { display: flex; gap: 0.35rem; }
.agent-card .agent-actions .btn {
    flex: 1; font-size: var(--text-xs); padding: 0.55rem 0.75rem;
    border-radius: var(--r-md); font-weight: 600;
}

@media (max-width: 575.98px) {
    .agent-card .agent-cover { display: none; }
    .agent-card .agent-photo-wrapper { margin-top: 0; width: 100%; }
    .agent-card .agent-avatar {
        width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1;
        object-fit: cover; object-position: center center;
    }
    .agent-card .availability-dot { right: 0.45rem; bottom: 0.45rem; }
    .agent-card .agent-body { padding: 0.5rem 0.75rem 0.75rem; }
    .agent-card .agent-name { font-size: 0.8rem; }
    .agent-card .agent-metier { font-size: 0.65rem; }
}

/* =======================================
   16. STORIES BAR (Metiers)
   ======================================= */
.stories-bar {
    display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none;
    -ms-overflow-style: none; padding: 0.5rem 0;
}
.stories-bar::-webkit-scrollbar { display: none; }

.story-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    flex-shrink: 0; text-decoration: none; cursor: pointer; transition: all var(--t-fast);
}
.story-item:hover { transform: translateY(-2px); }
.story-ring {
    width: 68px; height: 68px; border-radius: 50%; padding: 3px;
    background: linear-gradient(135deg, var(--p), var(--p-light), #fbbf24);
    transition: all var(--t-fast);
}
.story-item:hover .story-ring { box-shadow: 0 4px 16px rgba(232,93,4,0.25); }
.story-avatar { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); }
.story-label {
    font-size: var(--text-xs); color: var(--text-secondary); max-width: 72px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-weight: 500;
}

/* =======================================
   17. DASHBOARD LAYOUT
   ======================================= */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.dashboard-sidebar-left, .dashboard-sidebar-right { position: sticky; top: 80px; height: fit-content; }

.sidebar-profile {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 1.5rem 1rem; text-align: center; box-shadow: var(--shadow-card); margin-bottom: 0.75rem;
}
.sidebar-profile .name { font-weight: 700; font-size: var(--text-base); color: var(--text); margin-top: 0.75rem; }
.sidebar-profile .handle { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: 0.75rem; }
.sidebar-profile .stats { display: flex; justify-content: center; gap: 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--border-light); }
.sidebar-profile .stats .stat { text-align: center; }
.sidebar-profile .stats .stat-value { font-weight: 800; font-size: var(--text-lg); color: var(--text); }
.sidebar-profile .stats .stat-label { font-size: var(--text-xs); color: var(--text-tertiary); }

.sidebar-menu {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 0.5rem; box-shadow: var(--shadow-card);
}
.sidebar-menu-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem;
    border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 500;
    color: var(--text-secondary); transition: all var(--t-fast); text-decoration: none;
}
.sidebar-menu-item:hover { background: var(--gray-100); color: var(--text); }
.sidebar-menu-item.active { background: var(--p-lighter); color: var(--p); font-weight: 600; }
.sidebar-menu-item i { font-size: 1.05rem; width: 20px; text-align: center; }

/* Dashboard sidebar — fallback for .nav usage */
.dashboard-sidebar {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 1.25rem; box-shadow: var(--shadow-card); position: sticky; top: 80px;
}
.dashboard-sidebar h5 { font-weight: 700; font-size: var(--text-sm); margin-bottom: 1rem; display: flex; align-items: center; }
.dashboard-sidebar .sidebar-menu .nav-link {
    display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem;
    border-radius: var(--r-md); font-size: var(--text-sm); font-weight: 500;
    color: var(--text-secondary); transition: all var(--t-fast);
}
.dashboard-sidebar .sidebar-menu .nav-link:hover { background: var(--gray-100); color: var(--text); }
.dashboard-sidebar .sidebar-menu-item.active .nav-link { background: var(--p-lighter); color: var(--p); font-weight: 600; }

/* Suggestions Box */
.suggestions-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-card); overflow: hidden;
}
.suggestions-box .header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.15rem; border-bottom: 1px solid var(--border-light);
}
.suggestions-box .header h6 { margin: 0; font-weight: 700; font-size: var(--text-sm); }
.suggestions-box .header a { font-size: var(--text-xs); color: var(--p); font-weight: 600; text-decoration: none; }
.suggestion-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.15rem;
    transition: background var(--t-fast); border-bottom: 1px solid var(--border-light);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--gray-50); }
.sugg-avatar {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; font-weight: 700; font-size: var(--text-xs);
}
.sugg-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sugg-info { flex: 1; min-width: 0; }
.sugg-info .name { font-weight: 600; font-size: var(--text-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-info .meta { font-size: var(--text-xs); color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Responsive dashboard */
@media (max-width: 1199px) { .dashboard-layout { grid-template-columns: 240px 1fr; } }
@media (max-width: 991px) { .dashboard-layout { grid-template-columns: 1fr; padding: 0 0.75rem; } }

/* =======================================
   18. CHAT / MESSAGING
   ======================================= */
.chat-container {
    display: flex; flex-direction: column; height: calc(100vh - 120px);
    max-height: 700px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-card);
}
.chat-header {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border); background: var(--surface-glass);
    backdrop-filter: blur(12px);
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 1.25rem; display: flex;
    flex-direction: column; gap: 0.5rem; scrollbar-width: thin;
}
.message-bubble {
    max-width: 75%; padding: 0.75rem 1rem; border-radius: var(--r-lg);
    font-size: var(--text-sm); line-height: 1.5; position: relative;
    animation: messageIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes messageIn { from { opacity: 0; transform: translateY(8px) scale(0.95); } }
.message-bubble.sent {
    align-self: flex-end; background: linear-gradient(135deg, var(--p), var(--p-light));
    color: white; border-bottom-right-radius: 4px;
}
.message-bubble.received {
    align-self: flex-start; background: var(--gray-100);
    color: var(--text); border-bottom-left-radius: 4px;
}
[data-theme="dark"] .message-bubble.received { background: var(--gray-200); }
.message-time { font-size: 0.65rem; opacity: 0.65; margin-top: 0.35rem; text-align: right; }

.chat-input-area {
    display: flex; align-items: flex-end; gap: 0.5rem;
    padding: 0.85rem 1.15rem; border-top: 1px solid var(--border);
    background: var(--surface);
}
.chat-input-area textarea {
    flex: 1; resize: none; border: 1.5px solid var(--border); border-radius: var(--r-lg);
    padding: 0.65rem 0.875rem; font-size: var(--text-sm); font-family: var(--font);
    background: var(--bg); color: var(--text); max-height: 120px;
    transition: border-color var(--t-fast);
}
.chat-input-area textarea:focus { border-color: var(--p); outline: none; box-shadow: 0 0 0 3px var(--p-glow); }
.chat-input-area button[type="submit"] {
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: var(--p); color: white; display: flex; align-items: center;
    justify-content: center; cursor: pointer; font-size: 1.1rem;
    transition: all var(--t-fast); flex-shrink: 0;
}
.chat-input-area button[type="submit"]:hover { background: var(--p-dark); transform: scale(1.05); }

.empty-chat { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-tertiary); text-align: center; }
.empty-chat i { font-size: 3rem; opacity: 0.3; margin-bottom: 0.75rem; }

/* Conversations list */
.conversation-item {
    display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light); transition: background var(--t-fast);
    text-decoration: none; color: var(--text);
}
.conversation-item:hover { background: var(--gray-50); }
.conversation-item.active { background: var(--p-lighter); }
.conversation-item .conv-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--p), var(--p-light)); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm);
}
.conversation-item .conv-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.conversation-item .conv-info { flex: 1; min-width: 0; }
.conversation-item .conv-name { font-weight: 600; font-size: var(--text-sm); }
.conversation-item .conv-last { font-size: var(--text-xs); color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item .conv-time { font-size: var(--text-xs); color: var(--text-tertiary); flex-shrink: 0; }

/* =======================================
   19. FOOTER
   ======================================= */
.footer-pesacop {
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 1.5rem 0; margin-top: auto;
}
.footer-pesacop a { color: var(--text-tertiary); font-size: var(--text-sm); text-decoration: none; transition: color var(--t-fast); }
.footer-pesacop a:hover { color: var(--p); }

/* =======================================
   20. MOBILE BOTTOM NAV
   ======================================= */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    border-top: 1px solid var(--border-light); display: flex; align-items: stretch;
    padding: 0.25rem 0.5rem calc(0.25rem + env(safe-area-inset-bottom));
    min-height: 58px;
}
.nav-item-mobile {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
    padding: 0.4rem 0.25rem; font-size: 0.6875rem; color: var(--text-tertiary);
    text-decoration: none; transition: color var(--t-fast), background var(--t-fast); font-weight: 500;
    letter-spacing: 0.01em; border-radius: var(--r-md);
}
.nav-item-mobile:hover { color: var(--text-secondary); }
.nav-item-mobile i { font-size: 1.25rem; line-height: 1; }
.nav-item-mobile.active { color: var(--p); font-weight: 600; }
.nav-platform-logo {
    width: 40px; height: 40px; border-radius: 0.42rem;
    display: inline-flex; align-items: center; justify-content: center;
    object-fit: contain; background: transparent; line-height: 1;
}

/* =======================================
   21. BACK TO TOP & SCROLL REVEAL
   ======================================= */
.back-to-top {
    position: fixed; bottom: 30px; right: 20px; z-index: 1030;
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: var(--surface); color: var(--text-secondary);
    box-shadow: var(--shadow-float); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; opacity: 0; pointer-events: none;
    transition: all var(--t-base); transform: translateY(8px);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--p); color: white; transform: translateY(-2px); }

.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-scale {
    opacity: 0; transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeInUp { animation: fadeInUp 0.5s ease forwards; }

/* =======================================
   22. UTILITIES
   ======================================= */
.bg-gradient-primary { background: linear-gradient(135deg, var(--p), var(--p-light)); }
.text-gradient { background: linear-gradient(135deg, var(--p), var(--p-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hover-lift { transition: all var(--t-base); }
.hover-lift:hover { transform: translateY(-2px); }

.avatar-small { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--text-xs); flex-shrink: 0; }
.avatar-medium { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; }
.avatar-large { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-xl); flex-shrink: 0; }

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem; color: var(--text-tertiary); text-align: center; }
.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.3; }
.empty-state h5 { color: var(--text); font-weight: 600; font-size: var(--text-base); margin-bottom: 0.25rem; }
.empty-state p { font-size: var(--text-sm); max-width: 280px; }

.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.75rem; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: 600; background: var(--p-lighter); color: var(--p-dark); transition: all var(--t-fast); }
.chip:hover { background: var(--p-glow); }

/* =======================================
   23. HOME PAGE — Hero sobre (demi-écran, statique)
   ======================================= */
.home-hero-v2 {
    position: relative; padding: 3rem 0 2.5rem; overflow: visible; z-index: 100;
    background: linear-gradient(to top, #ffffff, #fce8de);
}
.home-hero-v2::before {
    content: none;
}
.home-hero-v2 .container { position: relative; z-index: 2; }

.hero-v2-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
    min-height: 46vh; position: relative; z-index: 101;
    min-width: 0;
}

.hero-v2-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(0, 127, 255, 0.08); border: 1px solid rgba(0, 127, 255, 0.25);
    color: #0b63c5; padding: 0.45rem 1.1rem; border-radius: var(--r-full);
    font-size: var(--text-xs); font-weight: 600; margin-bottom: 1.1rem;
}

.hero-v2-title {
    font-weight: 900; font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.12;
    letter-spacing: -0.03em; margin-bottom: 0.9rem; color: var(--text);
    overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.hero-v2-title .highlight {
    background: linear-gradient(100deg, #fc5400 0%, #e34d00 50%, #fc5400 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-v2-text { min-width: 0; max-width: 100%; }
.hero-v2-desc {
    font-size: var(--text-base); color: var(--text-secondary);
    max-width: 480px; margin: 0 0 1.5rem; line-height: 1.6;
}

.hero-v2-search-unified { max-width: 480px; margin-bottom: 1.25rem; position: relative; z-index: 1100; }
.hero-v2-search-unified .mobile-search-bar { margin-bottom: 0.6rem; }
.hero-v2-search-unified .filter-pills { margin-bottom: 0; }
/* Ville / Métier partagent exactement la largeur de la barre de recherche au-dessus */
.hero-v2-search-unified .filter-pills .filter-pill { flex: 1 1 0; min-width: 0; }

/* La barre garde la même disposition (recherche en haut, Ville/Métier en bas)
   sur tous les écrans : on annule la règle générique qui la masque en desktop. */
@media (min-width: 769px) {
    .hero-v2-search-unified.hero-v2-search-unified .mobile-search-bar,
    .hero-v2-search-unified.hero-v2-search-unified .filter-pills { display: flex !important; }
}

/* Bouton flèche de recherche — style hero premium, lisible sur tous les écrans */
.hero-v2-search-unified .mobile-search-bar {
    padding-right: 0.35rem; box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}
.hero-v2-search-unified .mobile-search-submit {
    width: 42px; height: 42px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--p), var(--p-light)); color: #fff;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.35); font-size: 1.05rem;
}
.hero-v2-search-unified .mobile-search-submit:hover {
    background: linear-gradient(135deg, var(--p), var(--p-light));
    transform: scale(1.08); box-shadow: 0 6px 18px rgba(232, 93, 4, 0.45);
}

.hero-v2-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-v2-cta .btn {
    padding: 0.7rem 1.5rem; border-radius: var(--r-full); font-weight: 600;
    font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all var(--t-fast);
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; border: none;
    box-shadow: 0 6px 22px rgba(232, 93, 4, 0.28);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232, 93, 4, 0.36); color: white; }
.btn-hero-secondary {
    background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-hero-secondary:hover { background: var(--bg); border-color: var(--p-glow-strong); color: var(--text); }

.hero-v2-stats { display: flex; gap: 2rem; }
.hero-v2-stats .stat strong { display: block; font-size: var(--text-xl); font-weight: 800; color: var(--text); }
.hero-v2-stats .stat span { font-size: var(--text-xs); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }

.hero-v2-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-v2-visual > img { width: 100%; max-width: 420px; height: auto; display: block; }
.hero-smart-search { position: relative; }
.hero-search-suggestions {
    position: absolute; left: 0; right: 0; top: calc(100% - 2.5rem); z-index: 9999;
    display: none; max-height: 320px; overflow-y: auto; padding: .35rem;
    background: var(--surface); border: 1px solid var(--border-light);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.hero-search-suggestions.is-open { display: block; }
.hero-search-suggestion {
    display: flex; align-items: center; gap: .7rem; padding: .65rem;
    color: var(--text); border-radius: var(--r-md); text-decoration: none;
    text-align: left; justify-content: flex-start;
}
.hero-search-suggestion:hover { background: var(--p-lighter); color: var(--text); }
.hero-search-suggestion > span:last-child {
    min-width: 0; flex: 1; text-align: left;
}
.hero-search-suggestion strong, .hero-search-suggestion small {
    display: block; text-align: left; margin-left: 0;
}
.hero-search-suggestion small { color: var(--text-secondary); font-size: .75rem; margin-top: .15rem; }
.hero-search-avatar {
    width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; background: var(--p-lighter); color: var(--p); font-weight: 700;
}
.hero-search-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-search-empty { padding: .8rem; color: var(--text-secondary); font-size: .85rem; }
.hero-v2-float-badge {
    position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
    color: var(--text); font-weight: 700; font-size: var(--text-xs);
    padding: 0.6rem 0.9rem; border-radius: var(--r-lg);
    display: inline-flex; align-items: center; gap: 0.4rem; box-shadow: 0 4px 16px rgba(15,23,42,0.12);
}
.hero-v2-float-badge i { color: #1d9bf0; }

@media (max-width: 991.98px) {
    .hero-v2-grid { grid-template-columns: 1fr; min-height: auto; gap: 1.75rem; }
    .hero-v2-visual { order: -1; }
    .hero-v2-visual > img { max-width: 460px; }
    .hero-v2-text { text-align: center; min-width: 0; max-width: 100%; }
    .hero-v2-desc { margin-left: auto; margin-right: auto; }
    .hero-v2-text .mobile-search-bar,
    .hero-v2-text .filter-pills { margin-left: auto; margin-right: auto; }
    .hero-v2-cta { justify-content: center; }
    .hero-v2-stats { justify-content: center; }
}

@media (max-width: 575.98px) {
    .home-hero-v2 { padding: 1.75rem 0 1.5rem; }
    .hero-v2-visual > img { width: 200px; height: auto; max-width: 150px; object-fit: contain; display: none }
    .hero-v2-title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .hero-v2-desc { font-size: var(--text-sm); max-width: 100%; }
    .hero-v2-text .mobile-search-bar,
    .hero-v2-text .filter-pills { max-width: 100%; }
    .hero-v2-cta { flex-direction: column; width: 100%; }
    .hero-v2-cta .btn { width: 100%; justify-content: center; }
    .hero-v2-stats { gap: 1.25rem; }
}


/* Floating Avatars */
.hero-floating-avatars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-floating-avatars .float-avatar {
    position: absolute; width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--p), var(--p-light)); display: flex;
    align-items: center; justify-content: center; color: white; font-weight: 700;
    font-size: var(--text-sm); box-shadow: 0 4px 20px rgba(232, 93, 4, 0.25);
    animation: floatAvatar 6s ease-in-out infinite;
}
.hero-floating-avatars .float-avatar:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.hero-floating-avatars .float-avatar:nth-child(2) { top: 60%; left: 8%; animation-delay: 1s; }
.hero-floating-avatars .float-avatar:nth-child(3) { top: 30%; right: 10%; animation-delay: 2s; }
.hero-floating-avatars .float-avatar:nth-child(4) { top: 70%; right: 12%; animation-delay: 3s; }
.hero-floating-avatars .float-avatar:nth-child(5) { top: 15%; left: 45%; animation-delay: 4s; }
@keyframes floatAvatar { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }

/* Section titles */
.section-title { font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.5rem); text-align: center; margin-bottom: 0.75rem; letter-spacing: -0.03em; color: var(--text); }
.section-subtitle { text-align: center; color: var(--text-tertiary); font-size: var(--text-base); max-width: 500px; margin: 0 auto 3rem; }

/* Feature cards */
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 2rem; transition: all var(--t-slow); height: 100%; position: relative; overflow: hidden;
    box-shadow: var(--shadow-card);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--p-glow-strong); }
.feature-card .feature-icon {
    width: 56px; height: 56px; border-radius: var(--r-lg); display: flex;
    align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem;
    background: var(--p-lighter); color: var(--p); transition: all var(--t-slow);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); background: var(--p); color: white; }
.feature-card h4 { font-weight: 700; font-size: var(--text-lg); margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; margin: 0; }

/* Step cards */
.step-card-modern { text-align: center; padding: 2rem 1.5rem; position: relative; }
.step-card-modern .step-number {
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem;
    color: white; background: linear-gradient(135deg, var(--p), var(--p-light));
    margin: 0 auto 1.25rem; box-shadow: 0 8px 24px rgba(232,93,4,0.25); transition: all var(--t-slow);
}
.step-card-modern:hover .step-number { transform: scale(1.15) rotate(10deg); box-shadow: 0 12px 32px rgba(232,93,4,0.35); }
.step-card-modern h4 { font-weight: 700; font-size: var(--text-lg); margin-bottom: 0.5rem; color: var(--text); }
.step-card-modern p { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; margin: 0; }
.step-connector { position: absolute; top: 30px; left: calc(50% + 30px); width: calc(100% - 60px); height: 2px; background: linear-gradient(90deg, var(--p), var(--p-light)); opacity: 0.15; }
@media (max-width: 768px) { .step-connector { display: none; } }

/* Testimonials */
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 2rem; transition: all var(--t-slow); box-shadow: var(--shadow-card);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.testimonial-card .quote-icon { font-size: 2.5rem; color: var(--p); opacity: 0.15; line-height: 1; margin-bottom: 0.5rem; }
.testimonial-card .quote-text { font-size: var(--text-base); color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p-light)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; }
.testimonial-card .author-name { font-weight: 700; font-size: var(--text-sm); color: var(--text); margin-bottom: 0.1rem; }
.testimonial-card .author-role { font-size: var(--text-xs); color: var(--text-tertiary); }

/* Marquee */
.marquee-container { overflow: hidden; white-space: nowrap; padding: 1.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.marquee-content { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 2rem; font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.marquee-item i { color: var(--p); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* CTA Section */
.cta-section {
    position: relative; background: linear-gradient(135deg, var(--p), var(--p-light), #f59e0b);
    padding: 5rem 0; overflow: hidden; text-align: center; color: white;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .cta-content { position: relative; z-index: 1; }
.cta-section h2 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; letter-spacing: -0.03em; }
.cta-section p { opacity: 0.9; max-width: 500px; margin: 0 auto 1.5rem; font-weight: 300; }
.cta-section .btn { border-radius: var(--r-full); padding: 0.85rem 2.5rem; font-weight: 600; font-size: var(--text-base); transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; }
.cta-section .btn-white { background: white; color: var(--p-dark); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.cta-section .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); color: var(--p-dark); }
.cta-section .btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); margin-left: 0.75rem; }
.cta-section .btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); color: white; }

/* Trust bar */
.trust-bar { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; padding: 1.5rem 0; }
.trust-bar-item { display: flex; align-items: center; gap: 0.5rem; color: var(--text-tertiary); font-size: var(--text-sm); font-weight: 500; }
.trust-bar-item i { color: var(--p); font-size: 1.1rem; }

/* =======================================
   24. SMART SEARCH — Desktop
   ======================================= */
.smart-search-wrap { position: relative; width: 100%; max-width: 420px; z-index: 1010; }
.smart-search-input-wrap {
    position: relative; display: flex; align-items: center; min-height: 42px;
    background: var(--gray-100); border: 1.5px solid transparent;
    border-radius: var(--r-full); padding: 0 0.375rem 0 0.25rem; transition: all var(--t-fast);
}
.smart-search-input-wrap:focus-within { background: var(--surface); border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }
[data-theme="dark"] .smart-search-input-wrap { background: var(--gray-200); }
[data-theme="dark"] .smart-search-input-wrap:focus-within { background: var(--surface); }
.smart-search-input-wrap .bi-search { color: var(--text-tertiary); font-size: 0.9rem; margin-left: 0.75rem; flex-shrink: 0; }
.smart-search-input-wrap input { flex: 1; border: none; outline: none; background: transparent; padding: 0.55rem 0.5rem; font-size: var(--text-sm); color: var(--text); font-family: var(--font); min-width: 0; }
.smart-search-input-wrap input::placeholder { color: var(--text-tertiary); }
.smart-search-input-wrap .search-clear { width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--gray-200); color: var(--text-tertiary); display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 0.7rem; flex-shrink: 0; transition: all var(--t-fast); }
.smart-search-input-wrap .search-clear:hover { background: var(--gray-300); color: var(--text); }
.smart-search-input-wrap .search-clear.visible { display: flex; }
.smart-search-input-wrap .search-btn { background: var(--p); color: white; border: none; border-radius: var(--r-full); padding: 0.45rem 1.1rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.01em; cursor: pointer; flex-shrink: 0; transition: background var(--t-fast); }
.smart-search-input-wrap .search-btn:hover { background: var(--p-dark); }

.smart-search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg);
    box-shadow: var(--shadow-float); max-height: 460px; overflow-y: auto; scrollbar-width: thin;
    opacity: 0; transform: translateY(-6px); pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease; z-index: 1020;
}
.smart-search-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.smart-search-dropdown .dropdown-section { padding: 0.5rem 0; }
.smart-search-dropdown .dropdown-section + .dropdown-section { border-top: 1px solid var(--border-light); }
.smart-search-dropdown .section-header { display: flex; align-items: center; justify-content: space-between; padding: 0.4rem 1rem; }
.smart-search-dropdown .section-title-sm { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); }
.smart-search-dropdown .section-clear { font-size: var(--text-xs); color: var(--p); font-weight: 600; background: none; border: none; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: var(--r-sm); transition: all var(--t-fast); }
.smart-search-dropdown .section-clear:hover { background: var(--p-lighter); }

.smart-search-dropdown .history-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; cursor: pointer; transition: all var(--t-fast); text-decoration: none; color: var(--text); }
.smart-search-dropdown .history-item:hover { background: var(--gray-50); }
[data-theme="dark"] .smart-search-dropdown .history-item:hover { background: var(--gray-200); }
.smart-search-dropdown .history-item i { color: var(--text-tertiary); font-size: 0.9rem; }
.smart-search-dropdown .history-item span { font-size: var(--text-sm); flex: 1; }
.smart-search-dropdown .history-item .remove-history { width: 20px; height: 20px; border-radius: 50%; border: none; background: transparent; color: var(--text-tertiary); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.7rem; opacity: 0; transition: all var(--t-fast); }
.smart-search-dropdown .history-item:hover .remove-history { opacity: 1; }
.smart-search-dropdown .history-item .remove-history:hover { background: var(--danger-bg); color: var(--danger); }

.smart-search-dropdown .cat-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; cursor: pointer; transition: all var(--t-fast); text-decoration: none; color: var(--text); }
.smart-search-dropdown .cat-item:hover { background: var(--gray-50); }
[data-theme="dark"] .smart-search-dropdown .cat-item:hover { background: var(--gray-200); }
.smart-search-dropdown .cat-item .cat-icon { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--p-lighter); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.smart-search-dropdown .cat-item .cat-name { font-size: var(--text-sm); font-weight: 600; }
.smart-search-dropdown .cat-item .cat-count { font-size: var(--text-xs); color: var(--text-tertiary); }

.smart-search-dropdown .result-agent { display: flex; align-items: center; gap: 0.875rem; padding: 0.6rem 1rem; cursor: pointer; transition: all var(--t-fast); text-decoration: none; color: var(--text); }
.smart-search-dropdown .result-agent:hover { background: var(--gray-50); }
[data-theme="dark"] .smart-search-dropdown .result-agent:hover { background: var(--gray-200); }
.smart-search-dropdown .result-agent .res-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--gray-100); flex-shrink: 0; border: 1px solid var(--border-light); }
.smart-search-dropdown .result-agent .res-avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; background: var(--p-lighter); color: var(--p); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; }
.smart-search-dropdown .result-agent .res-info { flex: 1; min-width: 0; }
.smart-search-dropdown .result-agent .res-name { font-size: var(--text-sm); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smart-search-dropdown .result-agent .res-meta { font-size: var(--text-xs); color: var(--text-tertiary); }
.smart-search-dropdown .result-agent .res-badge { font-size: var(--text-xs); font-weight: 700; color: var(--p); background: var(--p-lighter); padding: 0.2rem 0.6rem; border-radius: var(--r-full); flex-shrink: 0; }

.smart-search-dropdown .no-results { text-align: center; padding: 2rem 1rem; color: var(--text-tertiary); font-size: var(--text-sm); }
.smart-search-dropdown .no-results i { font-size: 2rem; margin-bottom: 0.5rem; display: block; opacity: 0.3; }
.smart-search-dropdown .highlight { color: var(--p); font-weight: 700; }

.search-overlay { position: fixed; inset: 0; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 1005; }
.search-overlay.open { opacity: 1; pointer-events: auto; }

@media (max-width: 992px) {
    .smart-search-wrap { max-width: 100%; }
    .smart-search-dropdown { position: fixed; top: 70px; left: 12px; right: 12px; max-height: calc(100vh - 100px); }
}

/* =======================================
   25. MOBILE SEARCH OVERLAY
   ======================================= */
.mobile-search-overlay {
    position: fixed; inset: 0; background: var(--surface); z-index: 1100;
    display: flex; flex-direction: column; opacity: 0; pointer-events: none;
    transform: translateY(20px); transition: all 0.3s ease;
}
.mobile-search-overlay.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.mobile-search-header {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border); background: var(--surface);
    position: sticky; top: 0; z-index: 1;
}
.mobile-search-header .mobile-search-form {
    flex: 1; display: flex; align-items: center; background: var(--gray-100);
    border-radius: var(--r-full); padding: 0 0.75rem; border: 1.5px solid transparent;
    transition: all var(--t-fast);
}
[data-theme="dark"] .mobile-search-header .mobile-search-form { background: var(--gray-200); }
.mobile-search-header .mobile-search-form:focus-within { border-color: var(--p-glow-strong); box-shadow: 0 0 0 4px var(--p-glow); background: var(--surface); }
.mobile-search-header .mobile-search-form i { color: var(--text-tertiary); font-size: 0.9rem; }
.mobile-search-header .mobile-search-form input { flex: 1; border: none; outline: none; background: transparent; padding: 0.65rem 0.5rem; font-size: var(--text-base); color: var(--text); font-family: var(--font); }
.mobile-search-header .mobile-search-form input::placeholder { color: var(--text-tertiary); }
.mobile-search-header .mobile-search-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; flex-shrink: 0; transition: all var(--t-fast); }
.mobile-search-header .mobile-search-close:hover { background: var(--gray-100); }

.mobile-search-body { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.mobile-search-body .ms-section { padding: 0.5rem 1rem; }
.mobile-search-body .ms-section + .ms-section { border-top: 1px solid var(--border-light); }
.mobile-search-body .ms-section-title { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.mobile-search-body .ms-section-title button { font-size: var(--text-xs); color: var(--p); font-weight: 600; background: none; border: none; cursor: pointer; }

.mobile-search-body .ms-history-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; cursor: pointer; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-light); }
.mobile-search-body .ms-history-item:last-child { border-bottom: none; }
.mobile-search-body .ms-history-item i { color: var(--text-tertiary); font-size: 0.9rem; }
.mobile-search-body .ms-history-item span { font-size: var(--text-sm); flex: 1; }
.mobile-search-body .ms-history-item .ms-remove { color: var(--text-tertiary); border: none; background: none; font-size: 0.8rem; cursor: pointer; padding: 0.25rem; }

.mobile-search-body .ms-cat-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; cursor: pointer; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-light); }
.mobile-search-body .ms-cat-item:last-child { border-bottom: none; }
.mobile-search-body .ms-cat-item .ms-cat-icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--p-lighter); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.mobile-search-body .ms-cat-item .ms-cat-name { font-weight: 600; font-size: var(--text-sm); }
.mobile-search-body .ms-cat-item .ms-cat-count { font-size: var(--text-xs); color: var(--text-tertiary); }

.mobile-search-body .ms-agent-item { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0; cursor: pointer; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-light); }
.mobile-search-body .ms-agent-item:last-child { border-bottom: none; }
.mobile-search-body .ms-agent-item .ms-agent-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--gray-100); flex-shrink: 0; border: 2px solid var(--surface); box-shadow: 0 2px 6px var(--shadow); }
.mobile-search-body .ms-agent-item .ms-agent-avatar-placeholder { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm); flex-shrink: 0; }
.mobile-search-body .ms-agent-item .ms-agent-info { flex: 1; min-width: 0; }
.mobile-search-body .ms-agent-item .ms-agent-name { font-weight: 600; font-size: var(--text-sm); }
.mobile-search-body .ms-agent-item .ms-agent-meta { font-size: var(--text-xs); color: var(--text-tertiary); }
.mobile-search-body .ms-agent-item .ms-agent-price { font-size: var(--text-xs); font-weight: 700; color: var(--p); background: var(--p-lighter); padding: 0.2rem 0.6rem; border-radius: var(--r-full); flex-shrink: 0; }

.mobile-search-body .ms-no-results { text-align: center; padding: 3rem 1rem; color: var(--text-tertiary); }
.mobile-search-body .ms-no-results i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.3; }
.mobile-search-body .ms-highlight { color: var(--p); font-weight: 700; background: var(--p-lighter); border-radius: 2px; padding: 0 2px; }

@media (min-width: 993px) { .mobile-search-overlay { display: none !important; } }

/* =======================================
   26. MOBILE SEARCH BAR (recherche page)
   ======================================= */
.mobile-search-bar {
    display: flex; align-items: center; gap: 0.5rem; background: var(--gray-100);
    border: 1.5px solid transparent; border-radius: var(--r-full); padding: 0 0.75rem;
    transition: all var(--t-fast);
}
.mobile-search-bar:focus-within { background: var(--surface); border-color: var(--p-glow-strong); box-shadow: 0 0 0 4px var(--p-glow); }
[data-theme="dark"] .mobile-search-bar { background: var(--gray-200); }
[data-theme="dark"] .mobile-search-bar:focus-within { background: var(--surface); }
.mobile-search-bar > i { color: var(--text-tertiary); font-size: 0.9rem; flex-shrink: 0; }
.mobile-search-input { flex: 1; border: none; outline: none; background: transparent; padding: 0.6rem 0.25rem; font-size: var(--text-sm); color: var(--text); font-family: var(--font); min-width: 0; }
.mobile-search-input::placeholder { color: var(--text-tertiary); }
.mobile-search-submit { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--p); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem; flex-shrink: 0; transition: all var(--t-fast); }
.mobile-search-submit:hover { background: var(--p-dark); transform: scale(1.05); }

/* Filter pills */
.filter-pills { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill { font-size: var(--text-xs); font-weight: 500; color: var(--text-secondary); background: var(--gray-100); border: 1px solid var(--border-light); border-radius: var(--r-full); padding: 0.4rem 0.85rem; min-width: 80px; text-align: center; transition: all var(--t-fast); outline: none; appearance: none; }
.filter-pill:focus { border-color: var(--p-glow-strong); box-shadow: 0 0 0 3px var(--p-glow); background: var(--surface); }
.filter-pill::placeholder { color: var(--text-tertiary); }

/* Filter chips */
.filter-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--p-lighter); color: var(--p-dark); padding: 0.35rem 0.75rem; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: 600; text-decoration: none; transition: all var(--t-fast); }
.filter-chip a { color: var(--p-dark); text-decoration: none; }
.filter-chip:hover { background: var(--p-glow); }
.filter-chip-clear { background: var(--gray-100); color: var(--text-tertiary); }
.filter-chip-clear:hover { background: var(--danger-bg); color: var(--danger); }

@media (min-width: 769px) { .mobile-search-bar, .filter-pills { display: none !important; } }

/* Icon-only action buttons */
.agent-actions .btn.icon-only { padding: 0.5rem 0; min-width: 36px; }
.agent-actions .btn.icon-only i { margin: 0; font-size: 0.9rem; }
@media (max-width: 576px) { .agent-actions .btn.icon-only { padding: 0.4rem 0; min-width: 32px; } .agent-actions .btn.icon-only i { font-size: 0.8rem; } }

/* =======================================
   27. PROFILE PUBLIC
   ======================================= */
.profile-cover { height: 240px; background: linear-gradient(135deg, var(--p), var(--p-light), #f59e0b); position: relative; }
.profile-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3)); }
.profile-cover-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.25)); }
.profile-header-wrap { margin-top: -95px; position: relative; z-index: 2; }
.profile-top-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 0 1rem; margin-bottom: 1rem; }
.profile-avatar-box { position: relative; flex-shrink: 0; }
.profile-avatar-main { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--surface); background: var(--gray-100); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.agent-card .agent-avatar { min-width: 50px; min-height: 50px; }
.profile-avatar-badge { position: absolute; bottom: 12px; right: 12px; width: 22px; height: 22px; background: var(--success); border-radius: 50%; border: 3px solid var(--surface); z-index: 3; }
.profile-info { padding: 0 1rem 1rem; text-align: left; }
.profile-name-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.profile-info .name { font-weight: 800; font-size: var(--text-2xl); color: var(--text); letter-spacing: -0.02em; }
.verified-badge-lg { color: #1d9bf0; font-size: 1.25rem; display: flex; align-items: center; }
.pp-verified { color: #1d9bf0; font-size: 1.15rem; }
.profile-info .handle { color: var(--text-secondary); font-size: var(--text-sm); margin-bottom: 0.5rem; }
.profile-rating { display: flex; align-items: center; gap: 0.15rem; margin-bottom: 0.75rem; font-size: var(--text-sm); color: var(--warning); }
.profile-rating .rating-count { color: var(--text-tertiary); margin-left: 0.35rem; font-weight: 500; font-size: var(--text-xs); }
.profile-info .bio { color: var(--text-secondary); font-size: var(--text-sm); max-width: 600px; line-height: 1.6; margin-bottom: 1rem; }

/* Profile actions */
.profile-actions { display: flex; gap: 0.5rem; padding: 0 1rem; margin-bottom: 1.25rem; }
.profile-actions .btn { flex: 1; font-size: var(--text-sm); font-weight: 600; padding: 0.65rem 1rem; border-radius: var(--r-md); }
.profile-top-actions { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }

/* Highlights */
.profile-highlights { display: flex; gap: 1.25rem; padding: 0.75rem 1rem; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; border-bottom: 1px solid var(--border-light); margin-bottom: 1rem; }
.profile-highlights::-webkit-scrollbar { display: none; }
.highlight-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; cursor: default; }
.highlight-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--gray-200); display: flex; align-items: center; justify-content: center; }
.highlight-ring.highlight-active { background: linear-gradient(45deg, var(--success), #4ade80); }
.highlight-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--text-secondary); }
.highlight-ring.highlight-active .highlight-icon { color: var(--success); }
.highlight-label { font-size: var(--text-xs); color: var(--text-secondary); max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-weight: 500; }

/* Profile stats */
.profile-stats { display: flex; gap: 2rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light); margin-bottom: 0.5rem; }
.profile-stats .stat { text-align: center; }
.profile-stats .stat-value { font-weight: 700; font-size: var(--text-lg); color: var(--text); }
.profile-stats .stat-label { font-size: var(--text-xs); color: var(--text-tertiary); text-transform: lowercase; }

/* Tabs */
.profile-tabs-nav { display: flex; border-bottom: 1px solid var(--border-light); margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.profile-tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    flex: 1; min-width: 100px; padding: 0.85rem 0.5rem; background: none; border: none;
    border-bottom: 2px solid transparent; color: var(--text-tertiary); font-size: var(--text-sm);
    font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 0.4rem; transition: all var(--t-fast); white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--p); border-bottom-color: var(--p); }
.tab-btn i { font-size: 1rem; }

/* Tab panels */
.tab-panel { display: none; padding: 0 0.5rem 1.5rem; }
.tab-panel.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Content list */
.content-list { display: flex; flex-direction: column; gap: 0.75rem; }
.content-item {
    display: flex; gap: 1rem; padding: 1rem; background: var(--surface);
    border: 1px solid var(--border-light); border-radius: var(--r-lg); transition: all var(--t-fast);
}
.content-item:hover { box-shadow: 0 4px 16px var(--shadow-md); border-color: var(--border); }
.content-icon { width: 48px; height: 48px; border-radius: var(--r-md); background: var(--p-lighter); color: var(--p); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.content-body { flex: 1; min-width: 0; }
.content-title { font-weight: 700; font-size: var(--text-sm); color: var(--text); margin-bottom: 0.15rem; }
.content-subtitle { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 0.25rem; }
.content-meta { font-size: var(--text-xs); color: var(--text-tertiary); margin-bottom: 0.35rem; }
.content-desc { font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.5; }

/* Langues grid */
.langues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.langue-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 1rem; text-align: center; transition: all var(--t-fast); }
.langue-card:hover { box-shadow: 0 4px 16px var(--shadow-md); border-color: var(--border); }
.langue-flag { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p-light)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--text-sm); margin: 0 auto 0.5rem; }
.langue-name { font-weight: 600; font-size: var(--text-sm); color: var(--text); margin-bottom: 0.15rem; }
.langue-level { font-size: var(--text-xs); color: var(--text-tertiary); }

/* Disponibilites grid */
.dispo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.dispo-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 1rem; text-align: center; transition: all var(--t-fast); }
.dispo-card:hover { box-shadow: 0 4px 16px var(--shadow-md); border-color: var(--border); }
.dispo-day { font-weight: 700; font-size: var(--text-sm); color: var(--text); margin-bottom: 0.35rem; text-transform: capitalize; }
.dispo-time { font-size: var(--text-xs); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; gap: 0.25rem; }

/* Empty mini */
.empty-state-mini { text-align: center; padding: 2.5rem 1rem; color: var(--text-tertiary); }
.empty-state-mini i { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.empty-state-mini p { font-size: var(--text-sm); margin: 0; }

/* =======================================
   28. SEARCH BAR (recherche page desktop)
   ======================================= */
.search-bar {
    display: flex; align-items: center; background: var(--surface);
    border-radius: var(--r-full); box-shadow: var(--shadow-card);
    border: 1.5px solid var(--border); transition: all var(--t-fast);
    overflow: hidden;
}
.search-bar:focus-within { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-glow); }

/* =======================================
   29. RESPONSIVE
   ======================================= */
@media (min-width: 769px) {
    .mobile-bottom-nav { display: none !important; }
    .back-to-top { bottom: 30px; }
    body { padding-bottom: 0; }
}

@media (max-width: 992px) {
    .navbar-pesacop .container { gap: 0.5rem; min-height: 56px; }
    .smart-search-wrap { display: none !important; }
    .dashboard-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    body { padding-bottom: 65px; }
    .container { padding-left: 1rem; padding-right: 1rem; }
    .back-to-top { bottom: 75px; right: 12px; }
    .profile-cover { height: 160px; }
    .profile-header-wrap { margin-top: -75px; }
    .profile-avatar-main { width: 100px; height: 100px; margin-top: -50px; border-width: 4px; }
    .profile-top-row { padding: 0 0.75rem; }
    .profile-info { padding: 0 0.75rem 0.75rem; }
    .profile-info .name { font-size: var(--text-xl); }
    .profile-stats { gap: 1.5rem; padding: 0.5rem 0.75rem; }
    .profile-highlights { gap: 1rem; padding: 0.5rem 0.75rem; }
    .highlight-ring { width: 56px; height: 56px; }
    .highlight-icon { width: 50px; height: 50px; font-size: 1.1rem; }
    .tab-btn { font-size: var(--text-xs); padding: 0.65rem 0.35rem; min-width: 80px; }
    .tab-btn span { display: none; }
    .content-item { padding: 0.75rem; gap: 0.75rem; }
    .content-icon { width: 40px; height: 40px; font-size: 1rem; }
    .langues-grid { grid-template-columns: repeat(2, 1fr); }
    .dispo-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-section { padding: 3rem 0; }
    .auth-card .auth-body { padding: 1.25rem; }
    .auth-card .auth-header { padding: 1.5rem 1.25rem 1rem; }
    .hero-floating-avatars { display: none; }
    .cta-section .btn-outline-white { margin-left: 0; margin-top: 0.75rem; }
    .cta-section .btn { width: 100%; justify-content: center; }
    /* Tables responsive */
    .table-responsive-pesacop { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.5rem; padding: 0 0.5rem; }
    .table-pesacop th, .table-pesacop td { white-space: nowrap; padding: 0.6rem 0.75rem; font-size: var(--text-xs); }
    /* Cards responsive */
    .card-pesacop .card-body { padding: 1rem; }
    .card-pesacop .card-header { padding: 0.75rem 1rem; }
}

@media (max-width: 576px) {
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    .agent-card .agent-avatar { aspect-ratio: 1 / 1; height: auto; }
    .agent-card .agent-body { padding: 0.5rem 0.75rem 0.75rem; }
    .agent-card .agent-name { font-size: var(--text-sm); }
    .agent-card .agent-metier { font-size: 0.7rem; }
    .agent-card .agent-actions .btn { padding: 0.5rem 0.75rem; font-size: 0.7rem; }
    .agent-card .availability-dot { right: calc(50% - 50px + 0.1rem); width: 15px; height: 15px; border-width: 2px; }
    .post-header { padding: 0.75rem; }
    .post-content { padding: 0 0.75rem 0.5rem; }
    .post-actions { padding: 0.4rem 0.75rem; }
    .profile-actions { padding: 0 0.75rem; }
    .profile-actions .btn { padding: 0.55rem 0.75rem; font-size: var(--text-xs); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* =======================================
   30. EXTRA BUTTONS
   ======================================= */
.btn-follow {
    background: var(--p); color: white; border: none; border-radius: var(--r-full);
    font-weight: 600; font-size: var(--text-sm); padding: 0.55rem 1.5rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    transition: all var(--t-fast); cursor: pointer;
}
.btn-follow:hover { background: var(--p-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,93,4,0.25); }
.btn-follow.following { background: var(--gray-100); color: var(--text-secondary); border: 1.5px solid var(--border); }
.btn-follow.following:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

.btn-pesacop-success {
    background: var(--success); color: white; border: none; border-radius: var(--r-md);
    font-weight: 600; font-size: var(--text-sm); padding: 0.5rem 1rem;
    display: inline-flex; align-items: center; gap: 0.4rem; transition: all var(--t-fast);
}
.btn-pesacop-success:hover { background: #15803d; color: white; transform: translateY(-1px); }

.btn-pesacop-danger {
    background: var(--danger); color: white; border: none; border-radius: var(--r-md);
    font-weight: 600; font-size: var(--text-sm); padding: 0.5rem 1rem;
    display: inline-flex; align-items: center; gap: 0.4rem; transition: all var(--t-fast);
}
.btn-pesacop-danger:hover { background: #b91c1c; color: white; transform: translateY(-1px); }

.btn-pesacop-warning {
    background: var(--warning); color: white; border: none; border-radius: var(--r-md);
    font-weight: 600; font-size: var(--text-sm); padding: 0.5rem 1rem;
    display: inline-flex; align-items: center; gap: 0.4rem; transition: all var(--t-fast);
}
.btn-pesacop-warning:hover { background: #b45309; color: white; transform: translateY(-1px); }

.btn-pesacop-info {
    background: var(--info); color: white; border: none; border-radius: var(--r-md);
    font-weight: 600; font-size: var(--text-sm); padding: 0.5rem 1rem;
    display: inline-flex; align-items: center; gap: 0.4rem; transition: all var(--t-fast);
}
.btn-pesacop-info:hover { background: #1d4ed8; color: white; transform: translateY(-1px); }

/* =======================================
   31. DARK MODE — Enhanced overrides
   ======================================= */
[data-theme="dark"] .home-hero-v2 { background: #ffffff; }
[data-theme="dark"] .feature-card { background: var(--surface-elevated); }
[data-theme="dark"] .testimonial-card { background: var(--surface-elevated); }
[data-theme="dark"] .marquee-container { background: var(--surface-elevated); }
[data-theme="dark"] .stat-card { background: var(--surface-elevated); }
[data-theme="dark"] .post-card { background: var(--surface-elevated); }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: var(--surface-elevated); border-color: var(--border); }

/* =======================================
   32. DROPDOWN PROFIL — moderne (réseau social)
   ======================================= */
/* Pas de caret disgracieux sur le lien avatar (le toggle reste géré par data-bs-toggle) */
.navbar-pesacop .avatar-toggle::after { display: none; }
.navbar-pesacop .avatar-toggle { display: flex; align-items: center; }

/* Menu profil : coins doux, bordure fine, ombre légère, largeur confortable */
.profile-dropdown-menu {
    min-width: 240px; padding: 0.4rem;
    border: 1px solid var(--border-light); border-radius: var(--r-lg);
    box-shadow: var(--shadow-float);
}

/* En-tête : avatar + nom complet + type d'utilisateur / @username */
.profile-dropdown-menu .dropdown-profile-head {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.7rem 0.75rem 0.6rem;
}
.profile-dropdown-menu .nav-avatar-lg {
    width: 42px; height: 42px; font-size: var(--text-sm); flex-shrink: 0; cursor: default;
}
.profile-dropdown-menu .nav-avatar-lg:hover { border-color: var(--border); box-shadow: none; }
.dropdown-profile-info { min-width: 0; }
.dropdown-profile-name {
    font-weight: 700; font-size: var(--text-sm); color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-profile-sub {
    font-size: var(--text-xs); color: var(--text-tertiary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Items : padding généreux, icônes alignées, hover orange doux */
.profile-dropdown-menu .dropdown-item { padding: 0.6rem 0.75rem; transition: all var(--t-fast); }
.profile-dropdown-menu .dropdown-item:hover { background: var(--p-lighter); color: var(--p); }
.profile-dropdown-menu .dropdown-item:hover i { color: var(--p); }
.profile-dropdown-menu .dropdown-item.text-danger i { color: var(--danger); }
.profile-dropdown-menu .dropdown-item.text-danger:hover { background: var(--danger-bg); color: var(--danger); }
.profile-dropdown-menu .dropdown-item.text-danger:hover i { color: var(--danger); }

/* Mobile : barre compacte, avatar légèrement réduit */
@media (max-width: 480px) {
    .navbar-pesacop .nav-avatar { width: 32px; height: 32px; }
    .profile-dropdown-menu { min-width: 220px; }
}

/* =======================================
   33. ADMIN LAYOUT PARTAGÉ
   (définitions reprises du dashboard admin — référence)
   ======================================= */
.adm { padding-top: 0; padding-bottom: 2rem; }

/* Top bar */
.adm-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 0; border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.6rem;
}
.adm-topbar h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.adm-topbar h1 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; }
.adm-topbar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.adm-nav-pill {
    padding: 0.4rem 0.85rem; border-radius: var(--r-full); font-size: var(--text-xs); font-weight: 600;
    color: var(--text-secondary); background: var(--gray-50); border: 1px solid var(--border-light);
    text-decoration: none; display: flex; align-items: center; gap: 0.35rem; transition: all var(--t-fast);
}
.adm-nav-pill:hover { background: var(--p-lighter); color: var(--p-dark); border-color: var(--p-glow-strong); }
.adm-nav-pill .badge-count {
    background: var(--danger); color: white; font-size: 0.6rem; padding: 0.1rem 0.35rem;
    border-radius: var(--r-full); font-weight: 700; line-height: 1;
}
.adm-nav-pill.active { background: var(--p-lighter); color: var(--p); font-weight: 600; border-color: var(--p-glow-strong); }
.adm-nav-pill.active:hover { background: var(--p-lighter); color: var(--p); border-color: var(--p-glow-strong); }

/* Section */
.adm-section { margin-bottom: 1.5rem; }
.adm-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light);
}
.adm-section-head h2 { font-size: var(--text-base); font-weight: 700; margin: 0; display: flex; align-items: center; gap: 0.4rem; }
.adm-section-head h2 i { color: var(--p); font-size: 1rem; }
.adm-section-head a { font-size: var(--text-xs); font-weight: 600; color: var(--p); text-decoration: none; }

/* Panel card minimal */
.panel {
    background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--r-lg);
    padding: 1rem 1.15rem;
}
@media (max-width: 768px) { .panel { padding: 0.85rem; } }

/* Empty state */
.adm-empty { text-align: center; padding: 1.5rem 0.5rem; color: var(--text-tertiary); font-size: var(--text-sm); }
.adm-empty i { font-size: 1.5rem; opacity: 0.2; display: block; margin-bottom: 0.35rem; }


/* ═══════════════════════════════════════════════════════
   OFFRES DE TRAVAIL — carte + actions
   ═══════════════════════════════════════════════════════ */

/* Variante compacte des boutons maison.
   pesacop.css est charge APRES Bootstrap : sans ces regles, .btn-sm etait
   neutralise par le padding de .btn-pesacop et tous les boutons "petits"
   s'affichaient en taille pleine (cartes serrees, libelles qui passent a la ligne). */
.btn-pesacop.btn-sm,
.btn-pesacop-outline.btn-sm,
.btn-gray.btn-sm,
.btn-gold.btn-sm {
    padding: 0.42rem 0.85rem;
    font-size: var(--text-xs);
    border-radius: var(--r-sm);
    gap: 0.3rem;
}

/* Bouton icone carre : garde une largeur fixe, ne se deforme jamais */
.btn-icon-sq {
    width: 34px; height: 34px; padding: 0; flex: 0 0 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-sm); background: transparent; cursor: pointer;
    border: 1.5px solid var(--border); color: var(--text-secondary);
    transition: all var(--t-fast);
}
.btn-icon-sq:hover { border-color: var(--p); color: var(--p); background: var(--p-lighter); }
.btn-icon-sq i { font-size: 0.95rem; line-height: 1; }

/* En-têtes de section uniformisés (eyebrow + titre) — réutilisable sur toute page */
.section-heading { max-width: 620px; margin-left: auto; margin-right: auto; }
.section-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--p); background: var(--p-lighter);
    padding: 0.32rem 0.9rem; border-radius: var(--r-full); margin-bottom: 0.75rem;
}
.section-heading h2 { font-weight: 800; color: var(--text); font-size: var(--text-2xl); margin-bottom: 0; letter-spacing: -0.02em; }

/* Carte d'offre : hauteur uniforme dans une grille, contenu qui ne deborde pas */
.offre-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    display: flex; flex-direction: column; height: 100%;
    overflow: hidden;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.offre-card:hover {
    border-color: var(--p-glow-strong);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
.offre-card-body { padding: 1.1rem 1.15rem 0.9rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.offre-card-link { display: block; color: inherit; text-decoration: none; }
.offre-card-link:hover { color: inherit; }

/* Banniere image en vedette : degrade de marque si absente */
.offre-banniere {
    height: 500px; min-height: 500px; width: 100%; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--p) 0%, var(--p-dark, var(--p)) 100%);
}
.offre-banniere img { width: 100%; height: 100%; object-fit: contain; display: block;  }
.offre-banniere .offre-banniere-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: rgba(255,255,255,0.55);
}
/* Badge entreprise : logo circulaire chevauchant la banniere, style "page entreprise" */
.offre-entreprise-badge {
    display: flex; align-items: center; gap: 0.5rem; margin: -22px 1.15rem 0.5rem; position: relative; z-index: 2;
}
.offre-entreprise-badge img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--surface); background: var(--surface); box-shadow: var(--shadow-sm);
}
.offre-entreprise-badge .offre-entreprise-fallback {
    width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface);
    background: var(--p-lighter); color: var(--p); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: var(--shadow-sm);
}
.offre-entreprise-badge .offre-entreprise-nom {
    font-size: var(--text-xs); font-weight: 700; color: var(--text);
    background: var(--surface); padding: 0.15rem 0.55rem; border-radius: var(--r-full);
    box-shadow: var(--shadow-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}

/* En-tete : metier recherche + date de publication */
.offre-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.offre-chip {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--p); background: var(--p-lighter);
    padding: 0.2rem 0.55rem; border-radius: var(--r-full);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62%;
}
.offre-date { font-size: var(--text-xs); color: var(--text-tertiary); margin-left: auto; white-space: nowrap; }

/* Titre et description bornes en nombre de lignes : les cartes restent alignees */
.offre-titre {
    font-weight: 700; font-size: var(--text-base); color: var(--text);
    line-height: 1.35; margin: 0 0 0.4rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}


/* Meta : 1 ligne = 1 icone + 1 valeur, l'icone ne se comprime pas */
.offre-meta { display: flex; flex-direction: column; gap: 0.32rem; margin: 0 0 0.85rem; padding: 0; list-style: none; }
.offre-meta li {
    display: flex; align-items: flex-start; gap: 0.45rem;
    font-size: var(--text-xs); color: var(--text-secondary); line-height: 1.45;
}
.offre-meta li i { color: var(--p); flex: 0 0 14px; margin-top: 1px; font-size: 0.8rem; }
.offre-meta li span { min-width: 0; overflow-wrap: anywhere; }

/* Salaire : information la plus importante d'une offre, donc mise en avant */
.offre-salaire {
    margin-top: auto; padding-top: 0.15rem;
    display: flex; align-items: baseline; gap: 0.3rem;
    font-weight: 800; color: var(--text); font-size: var(--text-lg); line-height: 1.1;
}
.offre-salaire small { font-size: var(--text-xs); font-weight: 600; color: var(--text-tertiary); }

/* Pied d'action : zone dediee, separee, largeur maitrisee */
.offre-actions {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.15rem; border-top: 1px solid var(--border-light);
    background: var(--gray-50);
}
.offre-actions form { margin: 0; flex: 1 1 auto; min-width: 0; display: flex; }
.offre-actions .offre-cta {
    flex: 1 1 auto; min-width: 0; justify-content: center; align-items: center;
    min-height: 34px;  /* meme hauteur que .btn-icon-sq : barre d'action alignee */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.offre-actions .offre-cta.is-done {
    color: var(--success); border-color: var(--success);
    background: var(--success-bg); cursor: default; pointer-events: none;
}
[data-theme="dark"] .offre-actions { background: var(--gray-100); }

@media (max-width: 575.98px) {
    .offre-card-body { padding: 0.95rem 1rem 0.8rem; }
    .offre-actions { padding: 0.65rem 1rem; }
}
