/* GOVASSIST-RDC - Styles principaux */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
    --primary: #0047BB;
    --primary-dark: #003694;
    --primary-light: #E8F0FE;
    --navy: #0D2159;
    --navy-sidebar: #1a2b56;
    --navy-dark: #001A3D;
    --rdc-yellow: #F7D117;
    --rdc-red: #CE1126;
    --bg: #F8FAFC;
    --bg-card: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --success: #059669;
    --success-bg: #ECFDF5;
    --warning: #D97706;
    --warning-bg: #FFF7ED;
    --danger: #DC2626;
    --purple: #7C3AED;
    --sidebar-width: 260px;
    --header-height: 70px;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; }

body {
    font-family: 'Source Sans 3', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    width: 100%;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== PUBLIC LAYOUT ===== */
.public-layout { min-height: 100vh; display: flex; flex-direction: column; }

.public-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.public-nav { display: flex; gap: 2rem; align-items: center; }
.public-nav a {
    color: var(--text-muted);
    font-weight: 500;
    padding: .5rem 0;
    border-bottom: 2px solid transparent;
}
.public-nav a.active, .public-nav a:hover { color: var(--primary); }
.public-nav a.active { border-bottom-color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-switch {
    display: flex; align-items: center; gap: .4rem;
    color: var(--text-muted); font-size: .9rem; cursor: pointer;
}

.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.25rem; border-radius: 8px;
    font-weight: 600; font-size: .9rem; border: none;
    cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

.logo { display: flex; align-items: center; gap: .75rem; }
.nav-main-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}
.logo-icon {
    width: 42px; height: 42px; background: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.logo-text h1 { font-size: 1.1rem; font-weight: 700; color: var(--primary); line-height: 1.2; }
.logo-text span { font-size: .75rem; color: var(--text-muted); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #F0F5FF 0%, #F8FAFC 60%, #fff 100%);
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.hero h2 { font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; }

.search-bar {
    display: flex; background: #fff; border-radius: 12px;
    border: 1.5px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow-md);
}
.search-bar input {
    flex: 1; border: none; padding: 1rem 1.25rem;
    font-size: 1rem; outline: none;
}
.search-bar button { border-radius: 0 10px 10px 0; }

.hero-illustration {
    display: flex; align-items: center; justify-content: center;
    font-size: 8rem; opacity: .15; color: var(--primary);
}

/* Categories */
.section { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.category-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1rem;
    text-align: center; transition: all .2s; cursor: pointer;
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card .icon {
    width: 48px; height: 48px; background: var(--primary-light);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto .75rem; color: var(--primary); font-size: 1.25rem;
}
.category-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.category-card p { font-size: .75rem; color: var(--text-muted); }

/* Value props */
.value-props {
    background: var(--primary-light);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.value-prop { display: flex; gap: .75rem; align-items: flex-start; }
.value-prop .icon { color: var(--primary); font-size: 1.25rem; margin-top: .2rem; }
.value-prop h4 { font-size: .9rem; font-weight: 600; }
.value-prop p { font-size: .8rem; color: var(--text-muted); }

/* Footer */
.public-footer {
    background: var(--navy-dark);
    color: #fff;
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem; max-width: 1200px; margin: 0 auto 2rem;
}
.footer-grid h4 { font-size: .95rem; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: #CBD5E1; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem; text-align: center;
    color: #94A3B8; font-size: .85rem;
    max-width: 1200px; margin: 0 auto;
}
.social-icons { display: flex; gap: .75rem; margin-top: .5rem; }
.social-icons a {
    width: 36px; height: 36px; background: rgba(255,255,255,.1);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #fff;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--navy-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo .logo-text h1 { color: #fff; font-size: 1rem; }
.sidebar-logo .logo-text span { color: #94A3B8; font-size: .7rem; }

.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1.5rem; color: #CBD5E1;
    font-size: .9rem; font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .2s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-nav a.active {
    background: rgba(0,71,187,.3);
    color: #fff; border-left-color: var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; }

.sidebar-bottom {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-bottom a { color: #94A3B8; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.sidebar-bottom a:hover { color: #fff; }

.sidebar-help {
    margin: 1rem; padding: 1rem;
    background: rgba(255,255,255,.08);
    border-radius: var(--radius);
}
.sidebar-help h4 { font-size: .85rem; margin-bottom: .25rem; }
.sidebar-help p { font-size: .75rem; color: #94A3B8; }

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.global-search {
    flex: 1; max-width: 500px;
    display: flex; align-items: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 25px; padding: .5rem 1rem;
}
.global-search input {
    flex: 1; border: none; background: transparent;
    outline: none; font-size: .9rem; padding: .25rem .5rem;
}
.global-search i { color: var(--text-light); }

.header-right { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }

.notif-btn {
    position: relative; background: none; border: none;
    font-size: 1.2rem; color: var(--text-muted); cursor: pointer;
}
.notif-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--danger); color: #fff;
    font-size: .65rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.notif-wrap { position: relative; }
.notif-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: min(360px, 92vw); background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    z-index: 1000; overflow: hidden;
}
.notif-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.notif-mark-all {
    background: none; border: none; color: var(--primary);
    font-size: .78rem; font-weight: 600; cursor: pointer;
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
    display: block; padding: .85rem 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: background .15s;
}
.notif-item:hover { background: var(--primary-light); }
.notif-item.unread { background: #f0f7ff; }
.notif-item-title { font-weight: 600; font-size: .88rem; margin-bottom: .2rem; }
.notif-item-msg { font-size: .8rem; color: var(--text-muted); line-height: 1.45; }
.notif-item-time { font-size: .72rem; color: var(--text-light); margin-top: .35rem; }
.notif-empty, .notif-loading { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: .88rem; }

.user-menu { display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.user-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: .85rem;
}
.user-info .name { font-weight: 600; font-size: .9rem; }
.user-info .role { font-size: .75rem; color: var(--text-muted); }

.page-content { padding: 1.5rem 2rem; flex: 1; }

.page-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: .25rem; }
.page-header p { color: var(--text-muted); }
.page-header-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.card-title-row .card-title { margin: 0; }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

/* KPI Cards */
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; margin-bottom: 1rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.kpi-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem;
    display: flex; flex-direction: column; gap: .5rem;
}
.kpi-card .kpi-icon {
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.kpi-card .kpi-value { font-size: 1.75rem; font-weight: 700; }
.kpi-card .kpi-label { font-size: .85rem; color: var(--text-muted); }
.kpi-card .kpi-trend { font-size: .8rem; font-weight: 600; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* Charts grid */
.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.widgets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Services table */
.services-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }

.category-sidebar .cat-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1rem; border-radius: 8px;
    color: var(--text-muted); font-size: .9rem;
    margin-bottom: .25rem;
}
.category-sidebar .cat-item:hover, .category-sidebar .cat-item.active {
    background: var(--primary-light); color: var(--primary);
}
.category-sidebar .cat-item.active { font-weight: 600; }

.filters-bar {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.25rem; flex-wrap: wrap;
}
.filters-bar .search-input {
    flex: 1; min-width: 200px;
    padding: .6rem 1rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: .9rem;
}

.services-table { width: 100%; border-collapse: collapse; }
.services-table th {
    text-align: left; padding: .75rem 1rem;
    font-size: .8rem; font-weight: 600; color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.services-table td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.service-row-info { display: flex; align-items: center; gap: 1rem; }
.service-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.service-name { font-weight: 600; font-size: .95rem; }
.service-desc { font-size: .8rem; color: var(--text-muted); }

.badge {
    display: inline-block; padding: .25rem .75rem;
    border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.badge-online { background: #ECFDF5; color: var(--success); }
.badge-soon { background: #FFF7ED; color: var(--warning); }
.badge-offline { background: #FEF2F2; color: var(--danger); }
.badge-pending { background: #FFF7ED; color: var(--warning); }
.badge-progress { background: var(--primary-light); color: var(--primary); }
.badge-resolved { background: #ECFDF5; color: var(--success); }

/* Chat / Assistant */
.assistant-page {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}
.assistant-page-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    box-sizing: border-box;
}
.assistant-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}
.assistant-page-intro { flex: 1; min-width: 0; }
.assistant-page-intro h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.25;
    word-wrap: break-word;
}
.assistant-page-intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: .9375rem;
    line-height: 1.5;
}
.assistant-page-note { margin-top: .5rem !important; font-size: .8125rem !important; }
.assistant-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    flex-shrink: 0;
    justify-content: flex-end;
}
.assistant-clear-form { margin: 0; display: inline-flex; }
.assistant-clear-btn { color: #b91c1c; border-color: #fecaca; }
.assistant-clear-btn:hover { background: #fef2f2; }
.assistant-flash {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .875rem;
    text-align: center;
}
.assistant-flash--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.assistant-flash--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.assistant-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.5rem;
    align-items: start;
    width: 100%;
}
.assistant-main,
.assistant-sidebar {
    min-width: 0;
    width: 100%;
}
.assistant-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.assistant-sidebar .card { margin: 0; width: 100%; box-sizing: border-box; }
.chat-container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: min(640px, calc(100dvh - 220px));
    min-height: 420px;
    max-height: 720px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.chat-bubble {
    max-width: min(85%, 520px);
    padding: .875rem 1.125rem;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}
.chat-bubble.user {
    background: var(--primary-light);
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.chat-bubble.assistant {
    background: #fff;
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble .bubble-time { font-size: .7rem; color: var(--text-light); margin-top: .5rem; }
.chat-bubble .bubble-greeting { font-weight: 700; margin-bottom: .35rem; }
.chat-bubble .sources-link { font-size: .85rem; margin-top: .75rem; display: inline-block; }

.conversation-mini-list { display: flex; flex-direction: column; gap: .4rem; }
.conversation-mini {
    display: flex; flex-direction: column; gap: .15rem;
    padding: .65rem .75rem; border-radius: 8px; text-decoration: none;
    color: inherit; border: 1px solid var(--border);
}
.conversation-mini strong { font-size: .85rem; word-break: break-word; }
.conversation-mini span { font-size: .75rem; color: var(--text-muted); }
.conversation-mini.active, .conversation-mini:hover { background: var(--primary-light); border-color: var(--primary); }

.conversation-list { display: flex; flex-direction: column; gap: .75rem; }
.conversation-card {
    display: flex; align-items: center; gap: 1rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem 1.25rem; text-decoration: none; color: inherit;
}
.conversation-card:hover { border-color: var(--primary); }
.conversation-card-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.conversation-card-body { flex: 1; min-width: 0; }
.conversation-card-body p { margin: .35rem 0; color: var(--text-muted); font-size: .9rem; }
.conversation-card-body span { font-size: .8rem; color: var(--text-light); }
.conversation-card-arrow { color: var(--text-light); }
.history-thread { padding: 1.5rem; }
.history-turn { margin-bottom: 1.25rem; }

.chat-input-area {
    padding: .875rem 1rem; border-top: 1px solid var(--border);
    display: flex; gap: .75rem; align-items: flex-end;
    width: 100%; box-sizing: border-box; background: #fff;
}
.chat-input-area textarea {
    flex: 1; min-width: 0; width: 100%;
    border: 1px solid var(--border); border-radius: 10px;
    padding: .75rem 1rem; resize: none; font-family: inherit;
    font-size: 16px; outline: none; min-height: 44px; max-height: 120px;
    box-sizing: border-box;
}
.chat-input-area textarea:focus { border-color: var(--primary); }
.chat-send-btn {
    width: 44px; height: 44px; background: var(--primary);
    color: #fff; border: none; border-radius: 10px;
    cursor: pointer; font-size: 1rem; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

.suggestions-list .suggestion-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; padding: .85rem 1rem; border: 1px solid var(--border);
    border-radius: 8px; margin-bottom: .5rem; cursor: pointer;
    font-size: .85rem; transition: all .2s; word-break: break-word;
}
.suggestions-list .suggestion-item:hover { border-color: var(--primary); background: var(--primary-light); }
.suggestions-list .suggestion-item i { flex-shrink: 0; }

.info-badge {
    background: var(--success-bg); color: var(--success);
    padding: .75rem 1rem; border-radius: 8px;
    font-size: .85rem; font-weight: 500;
    display: flex; align-items: center; gap: .5rem;
}

.reliability-banner {
    background: var(--success-bg); border: 1px solid #A7F3D0;
    border-radius: var(--radius); padding: 1rem 1.25rem;
    display: flex; gap: 1rem; align-items: flex-start;
    margin-top: 1rem; width: 100%; box-sizing: border-box;
}
.reliability-banner i { color: var(--success); font-size: 1.25rem; margin-top: .15rem; flex-shrink: 0; }
.assistant-feedback { margin-top: 1rem; }
.assistant-rating { display: flex; flex-wrap: wrap; gap: .5rem; }
.assistant-empty { color: var(--text-muted); font-size: .875rem; margin: 0; }

/* Assistant — tablette */
@media (max-width: 992px) {
    .assistant-page-inner { padding: 0 .875rem 1.75rem; max-width: 100%; }
    .assistant-page-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 1rem 0 1.25rem;
    }
    .assistant-page-actions { justify-content: center; width: 100%; }
    .assistant-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 720px;
        margin: 0 auto;
    }
    .chat-container {
        height: min(560px, calc(100dvh - 240px));
        min-height: 380px;
        margin: 0 auto;
    }
    .chat-bubble { max-width: 90%; }
    .assistant-sidebar { max-width: 720px; margin: 0 auto; }
}

/* Assistant — mobile */
@media (max-width: 640px) {
    .assistant-page-inner { padding: 0 .75rem 1.5rem; }
    .assistant-page-intro h1 { font-size: 1.35rem; }
    .assistant-page-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 40px;
    }
    .assistant-page-actions .btn span { font-size: .8125rem; }
    .chat-container {
        height: min(520px, calc(100dvh - 200px));
        min-height: 340px;
        border-radius: 12px;
    }
    .chat-messages { padding: 1rem; gap: .875rem; }
    .chat-bubble { max-width: 92%; font-size: .875rem; padding: .75rem 1rem; }
    .chat-input-area { padding: .75rem; gap: .5rem; }
    .chat-send-btn { width: 44px; height: 44px; }
    .reliability-banner { flex-direction: column; text-align: center; align-items: center; }
}

/* Sources */
.sources-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
.source-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1rem; margin-bottom: .75rem; position: relative;
}
.source-number {
    width: 28px; height: 28px; background: var(--primary);
    color: #fff; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem; margin-bottom: .5rem;
}
.source-card h4 { font-size: .9rem; font-weight: 600; }
.source-card p { font-size: .8rem; color: var(--text-muted); }
.source-card .source-date { font-size: .75rem; color: var(--text-light); margin-top: .25rem; }

.info-note {
    background: var(--primary-light); border-left: 3px solid var(--primary);
    padding: .75rem 1rem; border-radius: 0 8px 8px 0;
    font-size: .85rem; margin: 1rem 0;
}

/* Agent orientation */
.agent-hero {
    text-align: center; padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border-radius: var(--radius); margin-bottom: 1.5rem;
}
.agent-hero .agent-icon { font-size: 4rem; color: var(--primary); margin-bottom: 1rem; }

.alert-box {
    background: var(--warning-bg); border: 1px solid #FED7AA;
    border-radius: var(--radius); padding: 1rem 1.25rem;
    display: flex; gap: .75rem; margin-bottom: 1.5rem;
}
.alert-box i { color: var(--warning); font-size: 1.25rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.contact-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.contact-card .contact-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.5rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.contact-card p { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-item { display: flex; gap: .75rem; align-items: flex-start; }
.info-item i { color: var(--primary); margin-top: .2rem; }

.faq-banner {
    background: var(--primary-light); border-radius: var(--radius);
    padding: 1rem 1.5rem; display: flex;
    align-items: center; justify-content: space-between;
    margin-top: 1.5rem;
}

/* Auth */
.auth-layout {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    padding: 2rem;
}
.auth-card {
    background: #fff; border-radius: 16px; padding: 2.5rem;
    width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-card h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .4rem; }
.form-group input {
    width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
    border-radius: 8px; font-size: .95rem; outline: none;
}
.form-group input:focus { border-color: var(--primary); }
.form-error { background: #FEF2F2; color: var(--danger); padding: .75rem 1rem; border-radius: 8px; font-size: .85rem; margin-bottom: 1rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span {
    padding: .5rem .85rem; border: 1px solid var(--border);
    border-radius: 6px; font-size: .85rem; color: var(--text-muted);
}
.pagination a.active, .pagination span.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Info bar */
.info-bar {
    background: var(--primary-light); border-radius: var(--radius);
    padding: 1rem 1.5rem; display: flex;
    align-items: center; justify-content: space-between;
    margin-top: 1.5rem;
}

.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); font-size: .9rem; margin-bottom: 1rem; }

/* Mobile */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }

@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; }
    .hero-illustration { display: none; }
    .kpi-grid, .charts-grid, .widgets-grid, .contact-grid, .info-grid, .admin-grid-2 { grid-template-columns: 1fr; }
    .value-props { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .assistant-layout, .sources-layout, .services-layout { grid-template-columns: 1fr; }
}

/* Lang switcher */
.lang-switcher { display: flex; align-items: center; gap: .4rem; font-size: .85rem; }
.lang-switcher a { color: var(--text-muted); font-weight: 600; padding: .2rem .4rem; border-radius: 4px; }
.lang-switcher a.active { color: var(--primary); background: var(--primary-light); }
.lang-switcher span { color: var(--text-light); }

.logo-flag-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 2px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,71,187,.12);
}
.logo-flag-wrap--sidebar {
    width: 40px;
    height: 27px;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.15);
}
.logo-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

/* Hero updates */
.hero-flag { width: 64px; margin-bottom: 1rem; border-radius: 6px; }
.hero-flag-large { width: 200px; opacity: .9; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.login-notice {
    margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--primary-light);
    border-radius: var(--radius); display: flex; gap: 1rem; align-items: flex-start;
}
.login-notice i { color: var(--primary); font-size: 1.5rem; margin-top: .2rem; }
.login-notice p { font-size: .85rem; color: var(--text-muted); margin: .25rem 0 .75rem; }
.cat-count, .inst-count { font-size: .75rem; color: var(--primary); font-weight: 600; margin-top: .5rem; display: block; }

/* Institutions grid */
.institutions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.institution-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.25rem; text-align: center; transition: all .2s;
}
.institution-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.inst-logo { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 12px; object-fit: contain; background: #fff; padding: 4px; }
.institution-card h4 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.institution-card p { font-size: .75rem; color: var(--text-muted); margin: .25rem 0; }
.institution-card-detailed { display: flex; gap: 1rem; text-align: left; grid-column: span 1; }
.institution-card-detailed .inst-logo { margin: 0; flex-shrink: 0; }
.inst-meta { display: flex; flex-direction: column; gap: .25rem; font-size: .75rem; color: var(--text-muted); margin-top: .5rem; }
.inst-meta a { color: var(--primary); }
.section-desc { color: var(--text-muted); margin: -.75rem 0 1.5rem; }

/* Page hero */
.page-hero { margin-bottom: 2rem; }
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }
.about-hero { text-align: center; }
.about-flag { width: 80px; margin-bottom: 1rem; }

/* Help page — centre d aide */
.help-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0047BB 0%, #1d4ed8 45%, #2563eb 100%);
    color: #fff;
    padding: 3.5rem 2rem 4rem;
    margin-bottom: -2.5rem;
}
.help-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.help-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
    animation: helpOrbFloat 8s ease-in-out infinite;
}
.help-orb-1 { width: 280px; height: 280px; background: #60A5FA; top: -80px; right: 10%; animation-delay: 0s; }
.help-orb-2 { width: 200px; height: 200px; background: #FCD116; bottom: -40px; left: 8%; animation-delay: -3s; }
.help-orb-3 { width: 160px; height: 160px; background: #CE1126; top: 40%; left: 45%; animation-delay: -5s; opacity: .2; }
@keyframes helpOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.05); }
}
.help-hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.help-hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1rem;
    animation: helpFadeUp .6s ease both;
}
.help-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .75rem; animation: helpFadeUp .6s .1s ease both; }
.help-hero p { font-size: 1.1rem; opacity: .92; max-width: 620px; margin: 0 auto 1.75rem; line-height: 1.7; animation: helpFadeUp .6s .2s ease both; }
.help-quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; animation: helpFadeUp .6s .3s ease both; }
.help-quick-link {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
    color: #fff; padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem;
    transition: transform .25s, background .25s, box-shadow .25s;
}
.help-quick-link:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); color: #fff; }
.help-quick-link i { font-size: .95rem; }

.help-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem; position: relative; z-index: 2;
}
.help-stat-card {
    background: #fff; border-radius: 14px; padding: 1.25rem 1rem; text-align: center;
    box-shadow: 0 12px 40px rgba(0,71,187,.12); border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
}
.help-stat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,71,187,.18); }
.help-stat-card strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--primary); line-height: 1.2; }
.help-stat-card span { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; display: block; }

.help-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; max-width: 1100px; margin: 0 auto; padding: 0 2rem 3rem; }
.help-nav { position: sticky; top: 90px; height: fit-content; padding: 1.25rem !important; border-radius: 14px !important; }
.help-nav-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: .75rem; font-weight: 700; }
.help-nav-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .65rem .85rem; color: var(--text-muted); font-size: .9rem;
    border-radius: 10px; margin-bottom: .25rem; transition: all .2s;
}
.help-nav-link i { width: 18px; text-align: center; color: var(--primary); opacity: .7; transition: opacity .2s; }
.help-nav-link:hover, .help-nav-link.active { background: var(--primary-light); color: var(--primary); }
.help-nav-link.active { font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.help-nav-link:hover i, .help-nav-link.active i { opacity: 1; }
.help-nav-cta { margin-top: .75rem; background: var(--primary); color: #fff !important; font-weight: 600; }
.help-nav-cta i { color: #fff !important; opacity: 1 !important; }
.help-nav-cta:hover { background: #003a99; transform: translateY(-1px); }

.help-section { margin-bottom: 1.5rem; padding: 1.75rem !important; border-radius: 16px !important; border: 1px solid var(--border); transition: box-shadow .3s; }
.help-section:hover { box-shadow: 0 8px 32px rgba(0,71,187,.08); }
.help-section-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.help-section-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.help-section-head h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.help-section-head p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin: 0; }

.help-steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.help-step-card {
    position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
    padding: 1.25rem 1rem 1rem; transition: transform .3s, border-color .3s, box-shadow .3s;
    animation: helpFadeUp .5s ease both; animation-delay: var(--delay, 0ms);
}
.help-step-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 28px rgba(0,71,187,.1); }
.help-step-num {
    position: absolute; top: .75rem; right: .75rem; width: 24px; height: 24px;
    background: var(--primary); color: #fff; border-radius: 50%; font-size: .7rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.help-step-icon { font-size: 1.35rem; color: var(--primary); margin-bottom: .65rem; display: block; }
.help-step-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.help-step-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

.help-feature-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.help-feature-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .65rem 0; font-size: .95rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.help-feature-list li:last-child { border-bottom: none; }
.help-feature-list i { color: var(--success); margin-top: .2rem; }
.help-section-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.help-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.help-tag {
    font-size: .8rem; padding: .35rem .75rem; border-radius: 999px;
    background: var(--primary-light); color: var(--primary); font-weight: 600;
    animation: helpPopIn .4s ease both;
}
.help-tag:nth-child(2) { animation-delay: .05s; }
.help-tag:nth-child(3) { animation-delay: .1s; }
.help-tag:nth-child(4) { animation-delay: .15s; }
.help-tag:nth-child(5) { animation-delay: .2s; }

.help-chat-demo { background: var(--bg); border-radius: 14px; padding: 1.25rem; margin-bottom: 1.25rem; border: 1px solid var(--border); }
.help-chat-bubble {
    max-width: 85%; padding: .85rem 1rem; border-radius: 12px; font-size: .9rem; line-height: 1.5;
    margin-bottom: .75rem; animation: helpFadeUp .5s ease both;
}
.help-chat-bubble.user { background: var(--primary-light); margin-left: auto; border-bottom-right-radius: 4px; animation-delay: .1s; }
.help-chat-bubble.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; animation-delay: .35s; }

.help-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.help-contact-card {
    text-align: center; padding: 1.25rem 1rem; background: var(--bg); border-radius: 14px; border: 1px solid var(--border);
    transition: transform .25s, border-color .25s;
}
.help-contact-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.help-contact-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: .5rem; display: block; }
.help-contact-card strong { display: block; font-size: .9rem; margin-bottom: .25rem; }
.help-contact-card span { font-size: .8rem; color: var(--text-muted); }

.help-faq .faq-item {
    border: 1px solid var(--border); border-radius: 12px; margin-bottom: .65rem;
    padding: 0; overflow: hidden; background: #fff;
    animation: helpFadeUp .4s ease both; animation-delay: var(--delay, 0ms);
    transition: border-color .25s, box-shadow .25s;
}
.help-faq .faq-item[open] { border-color: var(--primary); box-shadow: 0 4px 20px rgba(0,71,187,.08); }
.help-faq .faq-item summary {
    list-style: none; cursor: pointer; font-weight: 600; font-size: .95rem;
    padding: 1rem 1.15rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.help-faq .faq-item summary::-webkit-details-marker { display: none; }
.help-faq .faq-item summary i { color: var(--primary); transition: transform .3s; font-size: .85rem; }
.help-faq .faq-item[open] summary i { transform: rotate(180deg); }
.help-faq .faq-answer { padding: 0 1.15rem 1rem; animation: helpFadeUp .3s ease; }
.help-faq .faq-answer p { margin: 0; color: var(--text-muted); font-size: .9rem; line-height: 1.65; }

.help-cta {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
    background: linear-gradient(135deg, #0047BB, #2563eb); color: #fff;
    border-radius: 16px; padding: 2rem 2.25rem; margin-top: .5rem;
    box-shadow: 0 16px 48px rgba(0,71,187,.25);
}
.help-cta h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.help-cta p { opacity: .9; font-size: .95rem; margin: 0; max-width: 480px; }
.help-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; }

.help-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.help-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Shared animated pages */
.gov-page-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0047BB 0%, #1d4ed8 50%, #2563eb 100%);
    color: #fff; padding: 3rem 2rem 3.5rem; margin: -1.5rem -2rem 2rem;
    border-radius: 0 0 24px 24px;
}
.public-layout main > .gov-page-hero,
body > main > .gov-page-hero { margin: 0 0 -2rem; border-radius: 0; padding-bottom: 4rem; }
.gov-page-hero--compact { padding: 2rem 1.75rem; margin: -1.5rem -1.5rem 1.5rem; border-radius: 0 0 20px 20px; }
.gov-page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.gov-page-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; text-align: center; }
.gov-page-hero-inner--row { display: flex; justify-content: space-between; align-items: center; gap: 2rem; text-align: left; flex-wrap: wrap; }
.gov-page-hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; margin-bottom: .75rem;
}
.gov-page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.gov-page-hero p { font-size: 1.05rem; opacity: .92; max-width: 640px; line-height: 1.65; margin: 0 auto; }
.gov-page-hero-inner--row p { margin: 0; }
.about-hero-logo { width: 72px; height: 72px; object-fit: contain; margin-bottom: 1rem; border-radius: 14px; background: rgba(255,255,255,.15); padding: 8px; }

.gov-reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; transition-delay: var(--delay, 0ms); }
.gov-reveal.is-visible { opacity: 1; transform: translateY(0); }

.gov-cta-banner, .gov-cta-banner.help-cta {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
    max-width: 1100px; margin: 2rem auto 3rem; padding: 0 2rem;
}
.gov-cta-banner > div:first-child,
.gov-cta-banner .help-cta-inner { flex: 1; }
.gov-cta-banner {
    background: linear-gradient(135deg, #0047BB, #2563eb); color: #fff;
    border-radius: 16px; padding: 2rem 2.25rem;
    box-shadow: 0 16px 48px rgba(0,71,187,.2);
}
.gov-cta-banner h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.gov-cta-banner p { opacity: .9; margin: 0; font-size: .95rem; }
.gov-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* About */
.about-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem; position: relative; z-index: 2;
}
.about-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
    max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem;
}
.about-card { padding: 1.75rem !important; border-radius: 16px !important; transition: transform .3s, box-shadow .3s; }
.about-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,71,187,.1); }
.about-card-wide { grid-column: 1 / -1; }
.about-card-icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.about-card h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.about-card p { color: var(--text-muted); line-height: 1.7; font-size: .95rem; }
.about-values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: .5rem; }
.about-values-grid li {
    display: flex; gap: .85rem; align-items: flex-start; padding: 1rem;
    background: var(--bg); border-radius: 12px; border: 1px solid var(--border);
    transition: border-color .25s;
}
.about-values-grid li:hover { border-color: var(--primary); }
.about-values-grid i { color: var(--primary); font-size: 1.1rem; margin-top: .15rem; }
.about-values-grid strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.about-values-grid span { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.about-institutions-section { max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem; }
.section-head { margin-bottom: 1.5rem; }
.institution-card {
    transition: transform .3s, box-shadow .3s, border-color .3s;
    animation: helpFadeUp .5s ease both; animation-delay: var(--delay, 0ms);
}
.institution-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,71,187,.1); border-color: var(--primary) !important; }
.institution-card h4 { font-size: 1rem; color: var(--primary); margin-bottom: .15rem; }
.inst-name { font-size: .82rem; color: var(--text); font-weight: 600; margin-bottom: .35rem !important; }
.inst-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.inst-link-btn {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem;
    color: var(--primary); font-weight: 600; margin-top: .5rem;
    padding: .35rem .75rem; background: var(--primary-light); border-radius: 999px;
    transition: background .2s;
}
.inst-link-btn:hover { background: #dbeafe; color: var(--primary); }

/* Contact */
.contact-alert { max-width: 1100px; margin: 0 auto 1rem; padding: 0 2rem; }
.contact-alert.alert-success,
.contact-alert.form-error { margin-left: auto; margin-right: auto; max-width: calc(1100px - 4rem); border-radius: 12px; }
.contact-quick-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    max-width: 1100px; margin: 0 auto 1.5rem; padding: 0 2rem; position: relative; z-index: 2;
}
.contact-quick-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem;
    text-decoration: none; color: inherit; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.contact-quick-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 28px rgba(0,71,187,.1); color: inherit; }
.contact-quick-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: .5rem; }
.contact-quick-card strong { font-size: .85rem; margin-bottom: .25rem; }
.contact-quick-card span { font-size: .82rem; color: var(--text-muted); }
.contact-form-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-form-head h2 { font-size: 1.2rem; margin-bottom: .25rem; }
.contact-form-head p { font-size: .88rem; color: var(--text-muted); margin: 0; }
.contact-form-card { padding: 1.75rem !important; border-radius: 16px !important; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .form-group input,
.contact-form .form-group textarea {
    transition: border-color .2s, box-shadow .2s;
}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,71,187,.12); outline: none;
}
.contact-submit { width: 100%; justify-content: center; margin-top: .5rem; }
.contact-info-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; margin-bottom: .75rem;
}
.contact-info-card { transition: transform .25s, border-color .25s; border-radius: 14px !important; }
.contact-info-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.map-card { border-radius: 16px !important; overflow: hidden; max-width: 1100px; margin: 0 auto 3rem; padding: 0 2rem; background: transparent; border: none; box-shadow: none; }
.map-card .map-container { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.map-card-head { padding: 0 0 1rem; }
.map-card-head h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.map-card-head i { color: var(--primary); }

/* Services catalog */
.services-hero-stats { display: flex; gap: 1rem; }
.services-hero-stat {
    background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.25); border-radius: 14px;
    padding: 1rem 1.5rem; text-align: center; min-width: 100px;
}
.services-hero-stat strong { display: block; font-size: 1.75rem; font-weight: 800; }
.services-hero-stat span { font-size: .78rem; opacity: .9; }
.services-search-bar { padding: 1rem 1.25rem !important; border-radius: 14px !important; margin-bottom: 1.25rem; }
.services-search-wrap { position: relative; flex: 1; min-width: 200px; }
.services-search-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.services-search-wrap .search-input { padding-left: 2.5rem; width: 100%; }
.services-sort { min-width: 160px; }
.category-sidebar { border-radius: 14px !important; position: sticky; top: 90px; height: fit-content; }
.category-sidebar .card-title { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.category-sidebar .card-title i { color: var(--primary); }
.service-card {
    animation: helpFadeUp .45s ease both; animation-delay: var(--delay, 0ms);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,71,187,.12); }
.service-card-inst i { color: var(--primary); margin-right: .25rem; font-size: .75rem; }
.service-delay { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--text-muted); }
.service-delay i { color: var(--primary); }
.empty-state-icon { font-size: 2.5rem; color: var(--primary); opacity: .4; display: block; margin-bottom: 1rem; }

/* Service detail */
.service-detail-hero {
    position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0047BB, #2563eb); color: #fff;
}
.service-detail-hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 50%);
}
.service-detail-hero .service-detail-header {
    position: relative; background: transparent; border: none; padding: 2rem;
    margin: 0; box-shadow: none;
}
.service-detail-hero .service-detail-logo { background: rgba(255,255,255,.95); }
.service-detail-cat {
    display: inline-block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
    background: rgba(255,255,255,.2); padding: .25rem .65rem; border-radius: 999px; margin-bottom: .5rem;
}
.service-detail-hero h1 { color: #fff; }
.service-detail-hero p { color: rgba(255,255,255,.9); }
.service-detail-hero .service-detail-meta { color: rgba(255,255,255,.85); }
.service-detail-hero .service-detail-meta i { margin-right: .35rem; }
.service-detail-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.detail-block { border-radius: 14px !important; padding: 1.5rem !important; margin-bottom: 1rem; transition: box-shadow .3s; }
.detail-block:hover { box-shadow: 0 8px 28px rgba(0,71,187,.08); }
.detail-block-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.detail-block-head h3 { margin: 0; font-size: 1.05rem; }
.detail-block-icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.detail-steps { display: flex; flex-direction: column; gap: .75rem; }
.detail-step {
    display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 1rem;
    background: var(--bg); border-radius: 10px; border-left: 3px solid var(--primary);
    animation: helpFadeUp .4s ease both; animation-delay: var(--delay, 0ms);
}
.detail-step-num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
    font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.detail-step p { margin: 0; font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.detail-doc-list { list-style: none; padding: 0; margin: 0; }
.detail-doc-list li {
    display: flex; gap: .65rem; align-items: flex-start; padding: .65rem 0;
    border-bottom: 1px solid var(--border); font-size: .9rem; color: var(--text-muted);
}
.detail-doc-list li:last-child { border-bottom: none; }
.detail-doc-list i { color: var(--success); margin-top: .2rem; }
.detail-conditions { color: var(--text-muted); line-height: 1.7; font-size: .95rem; margin: 0; }
.detail-sidebar { border-radius: 16px !important; padding: 1.5rem !important; position: sticky; top: 90px; }
.detail-sidebar-head { text-align: center; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.detail-sidebar-logo { width: 56px; height: 56px; object-fit: contain; margin-bottom: .65rem; border-radius: 10px; }
.detail-sidebar-head h3 { font-size: .95rem; line-height: 1.4; }
.detail-dl-modern .detail-dl-item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.detail-dl-modern .detail-dl-item:last-child { border-bottom: none; }
.detail-dl-modern dt { font-size: .78rem; color: var(--text-muted); margin-bottom: .25rem; display: flex; align-items: center; gap: .4rem; }
.detail-dl-modern dt i { color: var(--primary); }
.detail-dl-modern dd { font-weight: 600; font-size: .95rem; margin: 0; }
.detail-sidebar-btn { width: 100%; justify-content: center; margin-top: .5rem; display: flex; align-items: center; gap: .4rem; }
.detail-sidebar-hint { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }

@keyframes helpFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes helpPopIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

.faq-item { border-bottom: 1px solid var(--border); padding: .75rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin-top: .5rem; color: var(--text-muted); font-size: .9rem; }

/* About grid */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto 2rem; padding: 0 2rem; }
.values-list { list-style: none; }
.values-list li { padding: .5rem 0; display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; }
.values-list i { color: var(--primary); margin-top: .2rem; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; max-width: 1100px; margin: 0 auto 1.5rem; padding: 0 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card h3 { font-size: .95rem; margin-bottom: .5rem; color: var(--primary); }
.contact-info-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.map-card { max-width: 1100px; margin: 0 auto 3rem; padding: 0 2rem; }
.map-card h2 { margin-bottom: 1rem; font-size: 1.1rem; }
.alert-success { background: var(--success-bg); color: var(--success); padding: .75rem 1rem; border-radius: 8px; margin: 0 2rem 1rem; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Service card grid */
.services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.service-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 1rem 1rem 0; background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}
.service-card-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.service-card-body { padding: 1rem; flex: 1; }
.service-card-cat { font-size: .75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.service-card-body h3 { font-size: 1rem; font-weight: 700; margin: .35rem 0 .5rem; line-height: 1.3; }
.service-card-body p { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.service-card-inst { font-size: .75rem; color: var(--text-light); margin-top: .5rem; }
.service-card-footer {
    padding: .75rem 1rem 1rem; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: .75rem;
    font-size: .8rem; color: var(--text-muted);
}
.service-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.service-card-actions .btn { flex: 1; min-width: 130px; justify-content: center; }

/* Hero home flag */
.hero-home { align-items: center; }
.hero-illustration {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}
.search-hero-bar {
    display: flex; gap: .75rem; max-width: 700px; margin: 0 0 1.5rem;
    background: #fff; padding: .5rem; border-radius: 12px; border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.search-hero-bar input { flex: 1; border: none; padding: .75rem 1rem; font-size: 1rem; outline: none; }
.search-form-inline { flex: 1; display: flex; gap: .5rem; align-items: center; }
.search-input-lg { flex: 1; min-width: 200px; }

/* Service detail */
.service-detail-header {
    display: flex; gap: 1.5rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 1.5rem; margin-bottom: 1.5rem;
}
.service-detail-logo { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; background: var(--primary-light); padding: 8px; }
.service-detail-header h1 { font-size: 1.5rem; margin: .5rem 0; }
.service-detail-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.detail-block { margin-bottom: 1rem; }
.detail-block h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--primary); }
.detail-line { font-size: .9rem; color: var(--text-muted); margin-bottom: .35rem; padding-left: .5rem; border-left: 2px solid var(--primary-light); }
.detail-dl dt { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; }
.detail-dl dd { font-weight: 600; font-size: .95rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

.typing-indicator { opacity: .85; font-style: normal; color: var(--text-muted); }

.header-greeting {
    display: none;
    font-size: .95rem;
    color: var(--text-muted);
    margin-right: .5rem;
}
.header-greeting strong { color: var(--text); font-weight: 600; }

.welcome-banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.welcome-banner .welcome-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.welcome-banner h2 { font-size: 1.15rem; color: var(--primary); margin-bottom: .25rem; }
.welcome-banner p { font-size: .9rem; color: var(--text-muted); }

.chat-bubble.assistant { line-height: 1.6; }
.chat-bubble.assistant .bubble-greeting { font-weight: 600; color: var(--primary); margin-bottom: .35rem; }

.help-steps-plain p { margin-bottom: .75rem; line-height: 1.7; color: var(--text-muted); font-size: .95rem; }
.help-steps-plain strong { color: var(--text); display: block; margin-bottom: .15rem; }

.public-nav-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.35rem; color: var(--text);
    cursor: pointer; padding: .35rem;
}

.filters-bar { margin-bottom: 1rem; }
.filters-bar .search-form-inline { flex-wrap: wrap; }

@media (min-width: 993px) {
    .header-greeting { display: block; }
}

@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .value-props { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .institutions-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 992px) {
    .public-header {
        position: relative;
        flex-wrap: wrap;
        padding: .75rem 1rem;
        height: auto;
        min-height: var(--header-height);
        gap: .75rem;
    }
    .public-nav-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
    .public-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: .5rem 0;
    }
    .public-nav.open { display: flex; }
    .public-nav a { padding: .75rem 0; border-bottom: none; border-left: 3px solid transparent; padding-left: .5rem; }
    .public-nav a.active { border-left-color: var(--primary); border-bottom-color: transparent; }
    .header-actions { order: 3; gap: .5rem; flex-wrap: wrap; }
    .hero { grid-template-columns: 1fr; padding: 2.5rem 1.25rem; gap: 1.5rem; }
    .hero h2 { font-size: 2rem; }
    .hero-illustration { max-width: 320px; margin: 0 auto; }
    .section { padding: 2rem 1.25rem; }
    .top-header { padding: 0 1rem; gap: .75rem; flex-wrap: wrap; height: auto; min-height: var(--header-height); }
    .global-search { max-width: none; flex: 1 1 100%; order: 3; }
    .header-right { margin-left: 0; gap: .75rem; }
    .header-greeting { display: none; }
    .page-content { padding: 1.25rem 1rem; }
    .services-layout { grid-template-columns: 1fr; }
    .category-sidebar { position: static; }
    .assistant-layout, .sources-layout { grid-template-columns: 1fr; }
    .service-detail-grid { grid-template-columns: 1fr; }
    .about-grid, .contact-layout, .help-layout { grid-template-columns: 1fr; padding: 0 1rem 2rem; }
    .help-nav { position: static; display: flex; flex-wrap: wrap; gap: .35rem; }
    .help-nav-title { width: 100%; }
    .help-nav-link { flex: 1 1 auto; justify-content: center; font-size: .8rem; padding: .5rem .65rem; }
    .help-stats, .about-stats { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
    .about-grid, .about-values-grid, .contact-quick-cards { grid-template-columns: 1fr; }
    .about-grid { padding: 0 1rem; }
    .about-institutions-section, .gov-cta-banner { padding-left: 1rem; padding-right: 1rem; }
    .form-row-2 { grid-template-columns: 1fr; }
    .gov-page-hero { padding: 2.5rem 1rem 3rem; margin-left: -1rem; margin-right: -1rem; }
    .gov-page-hero--compact { margin: -1rem -1rem 1rem; }
    .gov-page-hero-inner--row { flex-direction: column; text-align: center; }
    .gov-page-hero-inner--row p { margin: 0 auto; }
    .services-hero-stats { justify-content: center; width: 100%; }
    .contact-quick-cards { padding: 0 1rem; }
    .help-hero { padding: 2.5rem 1rem 3.5rem; }
    .help-hero h1 { font-size: 1.85rem; }
    .help-contact-cards { grid-template-columns: 1fr; }
    .help-steps-grid { grid-template-columns: 1fr; }
    .help-cta { flex-direction: column; text-align: center; padding: 1.5rem; }
    .help-cta-actions { justify-content: center; width: 100%; }
    .gov-cta-banner { flex-direction: column; text-align: center; }
    .gov-cta-actions { justify-content: center; width: 100%; }
    .map-card { padding: 0 1rem; }
    .map-card iframe { height: 300px; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform .3s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: block; }
    .value-props { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .public-footer { padding: 2rem 1rem 1rem; }
    .institution-card-detailed { flex-direction: column; text-align: center; align-items: center; }
    .hero-visual { display: flex; order: -1; margin-bottom: 1rem; }
    .hero-illustration { max-width: 260px; }
    .search-hero-bar { flex-direction: column; max-width: 100%; }
    .search-hero-bar input, .search-hero-bar button { width: 100%; }
    .login-notice { flex-direction: column; }
    .welcome-banner { flex-direction: column; text-align: center; }
    .service-detail-header { flex-direction: column; align-items: center; text-align: center; padding: 1.25rem; }
    .service-detail-meta { flex-direction: column; gap: .35rem; align-items: center; }
    .services-card-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .institutions-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-footer { flex-direction: column; align-items: stretch; gap: .5rem; }
    .service-card-footer .btn { width: 100%; justify-content: center; }
    .filters-bar .search-form-inline { flex-direction: column; align-items: stretch; }
    .filters-bar .search-input, .filters-bar select, .filters-bar .btn { width: 100%; }
    .user-info { display: none; }
    .assistant-page-header { text-align: center; }
    .chat-container { min-height: 340px; }
    .auth-card { margin: 1rem; padding: 1.5rem; }
    .logo-text h1 { font-size: .95rem; }
    .logo-text span { font-size: .7rem; }
    .page-header h1 { font-size: 1.45rem; }
    .page-hero h1 { font-size: 1.6rem; }
}

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef4ff; color: var(--primary-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Logo principal RDC */
.gov-main-logo, .about-main-logo { max-width: 280px; width: 100%; height: auto; }
.auth-main-logo { width: 120px; height: auto; }
.sidebar-main-logo { width: 52px; height: auto; flex-shrink: 0; }
.footer-main-logo { width: 72px; height: auto; }

/* Page accueil style gouvernemental (inspire finances.gouv.cd) */
.gov-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 3rem 2rem 3.5rem;
}
.gov-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0b2d6b;
}
.gov-hero-bg-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation-name: heroSlideFade;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.gov-hero-bg-slide img {
    width: min(85vw, 900px);
    max-height: 90%;
    object-fit: contain;
    filter: blur(1px) brightness(0.85);
    transform: scale(1);
    animation: heroKenBurns 5s ease-in-out infinite alternate;
}
@keyframes heroSlideFade {
    0%, 100% { opacity: 0; }
    3%, 14% { opacity: 0.55; }
    17% { opacity: 0; }
}
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}
.gov-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(11,45,107,.88) 0%, rgba(0,71,187,.78) 45%, rgba(21,101,216,.82) 100%);
}
.gov-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: center;
}
.gov-hero-content h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.15; }
.gov-hero-lead { font-size: 1.05rem; opacity: .92; margin-bottom: 1.5rem; max-width: 560px; line-height: 1.7; }
.gov-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.gov-search-bar {
    display: flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px; padding: .5rem .75rem;
    max-width: 560px;
}
.gov-search-bar i { opacity: .8; }
.gov-search-bar input {
    flex: 1; border: none; background: transparent;
    color: #fff; font-size: .95rem; outline: none; min-width: 0;
}
.gov-search-bar input::placeholder { color: rgba(255,255,255,.65); }

/* Hero chatbot */
.hero-chatbot {
    background: rgba(255,255,255,.97);
    border-radius: 16px;
    padding: 1rem;
    max-width: 580px;
    color: var(--text);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.hero-chatbot-header {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 700; color: var(--primary);
    margin-bottom: .75rem; font-size: .95rem;
}
.hero-chat-messages {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.hero-chat-msg {
    padding: .65rem .85rem;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.55;
    max-width: 95%;
}
.hero-chat-msg.bot {
    background: var(--primary-light);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.hero-chat-msg.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.hero-chat-msg.typing { color: var(--text-muted); font-style: italic; background: var(--bg); }
.hero-chat-msg .chat-links { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.hero-chat-msg .chat-link {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .65rem;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
}
.hero-chat-msg .chat-link:hover { background: var(--primary); color: #fff; }
.chat-sources-block { margin-top: .65rem; font-size: .78rem; color: var(--text-muted); }
.chat-sources-block ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.chat-sources-block li { margin-bottom: .25rem; }
.chat-sources-block a { color: var(--primary); font-weight: 600; }

.hero-chat-form {
    display: flex;
    gap: .5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .35rem .35rem .35rem .75rem;
}
.hero-chat-form input {
    flex: 1; border: none; background: transparent;
    font-size: .9rem; outline: none; min-width: 0;
}
.hero-chat-suggestions {
    display: flex; flex-wrap: wrap; gap: .4rem;
    margin-top: .65rem;
}
.hero-chat-chip {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-size: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}
.hero-chat-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.gov-partners-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0 1rem;
    overflow: hidden;
}
.gov-partners-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}
.gov-partners-header h2 { font-size: 1.1rem; color: var(--primary); margin-bottom: .25rem; }
.gov-partners-header p { font-size: .85rem; color: var(--text-muted); }

.institutions-carousel { overflow: hidden; width: 100%; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.institutions-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: carousel-scroll 45s linear infinite;
}
.institutions-carousel:hover .institutions-track { animation-play-state: paused; }
@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.institutions-slide {
    flex: 0 0 150px;
    display: flex; flex-direction: column; align-items: center;
    gap: .5rem; padding: .75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
    text-align: center;
}
.institutions-slide:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.institutions-slide img { width: 72px; height: 72px; object-fit: contain; }
.institutions-slide span { font-size: .75rem; font-weight: 700; color: var(--primary); }

.gov-section { max-width: 1200px; margin: 0 auto; padding: 2.5rem 2rem; }
.gov-section-muted { background: var(--bg); max-width: none; }
.gov-section-muted > .gov-section-head,
.gov-section-muted > .gov-services-grid { max-width: 1200px; margin-left: auto; margin-right: auto; }
.gov-section-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.gov-section-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.gov-link-more { font-weight: 600; color: var(--primary); font-size: .9rem; }

.gov-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.gov-highlight-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem;
    display: flex; flex-direction: column;
    transition: box-shadow .2s, border-color .2s;
}
.gov-highlight-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.gov-highlight-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.gov-highlight-logo { width: 48px; height: 48px; object-fit: contain; }
.gov-highlight-card h3 { font-size: 1rem; margin-bottom: .5rem; line-height: 1.35; }
.gov-highlight-card p { font-size: .85rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.gov-highlight-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--border);
    font-size: .8rem;
}
.gov-highlight-foot a { font-weight: 600; color: var(--primary); }

.gov-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.gov-service-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem;
    display: flex; flex-direction: column;
    transition: all .2s; color: inherit;
}
.gov-service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }
.gov-service-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.gov-service-card-top img { width: 52px; height: 52px; object-fit: contain; }
.gov-service-tag { font-size: .7rem; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: .2rem .5rem; border-radius: 6px; }
.gov-service-card h3 { font-size: .95rem; margin-bottom: .5rem; line-height: 1.35; }
.gov-service-card p { font-size: .82rem; color: var(--text-muted); flex: 1; line-height: 1.55; }
.gov-service-link { font-size: .8rem; font-weight: 600; color: var(--primary); margin-top: .75rem; }

.gov-categories-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.gov-category-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem 1rem; background: #fff;
    border: 1px solid var(--border); border-radius: 999px;
    font-size: .85rem; font-weight: 600; color: var(--text);
    transition: all .2s;
}
.gov-category-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.gov-category-pill i { color: var(--primary); }

.gov-cta-band {
    background: linear-gradient(135deg, #0b2d6b, #0047BB);
    color: #fff;
    padding: 2rem;
    display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap; justify-content: center;
    text-align: left;
}
.gov-cta-logo { width: 100px; height: auto; opacity: .95; }
.gov-cta-band h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.gov-cta-band p { font-size: .9rem; opacity: .9; max-width: 480px; }
.gov-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.gov-values {
    background: var(--primary-light);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    border-radius: 14px;
}
.gov-value-item { display: flex; gap: .75rem; align-items: flex-start; }
.gov-value-item i { color: var(--primary); font-size: 1.25rem; margin-top: .15rem; }
.gov-value-item h4 { font-size: .9rem; margin-bottom: .2rem; }
.gov-value-item p { font-size: .8rem; color: var(--text-muted); }

.about-main-logo { max-width: 200px; margin-bottom: 1rem; }

@media (max-width: 992px) {
    .gov-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .gov-hero-brand { display: flex; justify-content: center; }
    .gov-main-logo { max-width: 220px; }
    .gov-hero-lead { margin-left: auto; margin-right: auto; }
    .gov-hero-actions, .hero-chatbot { justify-content: center; margin-left: auto; margin-right: auto; }
    .hero-chatbot { max-width: 100%; }
    .gov-highlight-grid { grid-template-columns: 1fr; }
    .gov-values { grid-template-columns: 1fr 1fr; margin: 0 1rem 2rem; }
    .gov-cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
    .gov-hero { padding: 2rem 1rem; }
    .gov-hero-content h1 { font-size: 1.85rem; }
    .gov-section { padding: 2rem 1rem; }
    .gov-values { grid-template-columns: 1fr; }
    .institutions-slide { flex: 0 0 130px; }
}

@media (max-width: 480px) {
    .categories-grid, .institutions-grid { grid-template-columns: 1fr; }
    .header-actions .btn-outline { display: none; }
    .hero h2 { font-size: 1.65rem; }
    .nav-main-logo { width: 42px; height: 42px; }
    .logo-flag-wrap { width: 38px; height: 26px; }
    .gov-search-bar { flex-wrap: wrap; }
    .gov-search-bar button { width: 100%; justify-content: center; }
}

/* Annuaire — carte nationale */
.map-page { max-width: 1200px; margin: 0 auto 2.5rem; padding: 0 1.25rem; }
.map-filters {
    display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
    padding: 1rem 1.15rem !important; margin-bottom: .85rem; border-radius: 14px !important;
}
.map-count { font-size: .85rem; color: var(--text-muted); margin-left: auto; }
.map-legend {
    display: flex; flex-wrap: wrap; gap: 1rem; padding: .75rem 1rem !important;
    margin-bottom: .85rem; border-radius: 12px !important; font-size: .82rem; color: var(--text-muted);
}
.map-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    margin-right: .35rem; vertical-align: middle; border: 1px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.map-dot-a { background: #0047BB; }
.map-dot-b { background: #0f766e; }
.map-dot-c { background: #b45309; }
.map-dot-d { background: #b91c1c; }
.govassist-map {
    height: min(70vh, 640px); width: 100%; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0,71,187,.08); z-index: 1;
}
.map-attribution { font-size: .75rem; color: var(--text-light); margin-top: .65rem; }
@media (max-width: 768px) {
    .govassist-map { height: 55vh; border-radius: 12px; }
    .map-count { margin-left: 0; width: 100%; }
}

/* ===== Portail (navbar + slider style congo-one) ===== */
.btn-danger { background: var(--rdc-red); color: #fff; }
.btn-danger:hover { background: #a80e1f; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }

.portal-header {
    background: linear-gradient(180deg, #0b1f4d 0%, #0d2159 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.portal-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.portal-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    min-width: 220px;
}
.portal-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(247,209,23,.55);
}
.portal-brand-text strong {
    display: block;
    font-size: .95rem;
    line-height: 1.2;
    color: #fff;
}
.portal-brand-text span {
    display: block;
    font-size: .68rem;
    color: rgba(255,255,255,.72);
    max-width: 200px;
    line-height: 1.3;
}
.portal-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    flex-wrap: wrap;
}
.portal-nav > a,
.portal-nav-item > a {
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: .82rem;
    padding: .55rem .7rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}
.portal-nav > a:hover,
.portal-nav-item > a:hover,
.portal-nav > a.active,
.portal-nav-item > a.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.portal-nav-item { position: relative; }
.portal-nav-item .fa-chevron-down { font-size: .65rem; opacity: .8; }
.portal-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    padding: .4rem;
    z-index: 300;
}
.portal-dropdown a {
    display: block;
    color: var(--text) !important;
    padding: .65rem .85rem !important;
    border-radius: 8px;
    font-size: .85rem !important;
    font-weight: 500 !important;
}
.portal-dropdown a:hover { background: var(--primary-light); color: var(--primary) !important; }
.portal-nav-item:hover .portal-dropdown,
.portal-nav-item.open .portal-dropdown { display: block; }
.portal-header-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.portal-header .lang-switcher { color: rgba(255,255,255,.85); }
.portal-header .lang-switcher a { color: rgba(255,255,255,.75); }
.portal-header .lang-switcher a.active {
    color: #0d2159;
    background: var(--rdc-yellow);
}
.portal-header .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.45);
}
.portal-header .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.portal-header .public-nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

.portal-slider {
    position: relative;
    height: min(62vh, 520px);
    overflow: hidden;
    background: #061433;
}
.portal-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.portal-slide.is-active { opacity: 1; pointer-events: auto; }
.portal-slide-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(247,209,23,.25), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(206,17,38,.28), transparent 40%),
        linear-gradient(135deg, #061433 0%, #0d2159 45%, #0047bb 100%);
}
.portal-slide[data-slide="1"] .portal-slide-bg {
    background: linear-gradient(135deg, #0a274f, #0047bb 55%, #0f766e);
}
.portal-slide[data-slide="2"] .portal-slide-bg {
    background: linear-gradient(135deg, #1a1035, #0d2159 50%, #7c3aed);
}
.portal-slide[data-slide="3"] .portal-slide-bg {
    background: linear-gradient(135deg, #06281f, #0d2159 40%, #ce1126);
}
.portal-slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(6,20,51,.55), rgba(6,20,51,.25));
}
.portal-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem 1.25rem;
    max-width: 820px;
}
.portal-slide-seal {
    width: 88px; height: 88px; object-fit: contain; border-radius: 50%;
    margin-bottom: 1rem; border: 2px solid rgba(247,209,23,.5);
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.portal-slide-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: .75rem;
    line-height: 1.15;
}
.portal-slide-content p {
    font-size: 1.05rem;
    opacity: .92;
    margin-bottom: 1.5rem;
    line-height: 1.65;
}
.portal-slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: .5rem;
    z-index: 3;
}
.portal-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.4); cursor: pointer;
}
.portal-dot.is-active { background: var(--rdc-yellow); transform: scale(1.15); }

.portal-search-band {
    max-width: 920px;
    margin: -2.25rem auto 0;
    padding: 0 1.25rem 2rem;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.portal-search-yellow {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: var(--rdc-yellow);
    border-radius: 14px;
    padding: .55rem .65rem .55rem 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
.portal-search-yellow i { color: #5c4a00; }
.portal-search-yellow input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: #1a1a1a;
    min-width: 0;
}
.portal-search-yellow input::placeholder { color: #6b5a10; }
.portal-search-submit {
    background: var(--navy);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: .7rem 1.15rem;
    font-weight: 700;
    cursor: pointer;
}
.portal-guide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: var(--rdc-red);
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(206,17,38,.35);
    text-align: center;
    transition: transform .15s ease, background .15s ease;
}
.portal-guide-btn:hover { background: #a80e1f; transform: translateY(-1px); color: #fff !important; }

.portal-page-hero {
    background: linear-gradient(135deg, #0d2159, #0047bb);
    color: #fff;
    padding: 2.5rem 1.25rem;
}
.portal-page-hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.portal-page-seal { width: 72px; height: 72px; border-radius: 50%; object-fit: contain; }
.portal-page-eyebrow { font-size: .8rem; opacity: .8; margin-bottom: .35rem; }
.portal-page-lead { opacity: .9; margin-top: .5rem; max-width: 640px; }
.portal-subnav {
    display: flex; flex-wrap: wrap; gap: .5rem;
    max-width: 1000px; margin: 0 auto; padding: 1rem 1.25rem;
}
.portal-subnav a {
    padding: .45rem .85rem; border-radius: 999px; background: #fff;
    border: 1px solid var(--border); color: var(--text-muted); font-size: .85rem; font-weight: 600;
}
.portal-subnav a.active, .portal-subnav a:hover { background: var(--primary-light); color: var(--primary); border-color: transparent; }
.portal-page-body { max-width: 1000px; margin: 0 auto 2.5rem; padding: 0 1.25rem; }
.portal-prose { padding: 1.5rem; line-height: 1.75; }
.portal-prose h2 { margin: 1.25rem 0 .5rem; font-size: 1.15rem; }
.portal-prose ul { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.portal-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.portal-mini-card {
    display: block; padding: 1.1rem; border-radius: 12px; background: var(--bg);
    border: 1px solid var(--border); color: inherit;
}
.portal-mini-card h3 { margin-bottom: .35rem; color: var(--primary); }
.portal-inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; margin-top: 1rem; }
.portal-inst-card {
    display: flex; gap: .75rem; padding: .85rem; border: 1px solid var(--border);
    border-radius: 12px; background: #fff;
}
.portal-inst-card img { width: 40px; height: 40px; object-fit: contain; }
.portal-inst-card p { font-size: .8rem; color: var(--text-muted); margin: .15rem 0 .35rem; }

.lang-switcher { flex-wrap: wrap; max-width: 280px; }
.lang-sep { opacity: .4; font-size: .75rem; }

@media (max-width: 1100px) {
    .portal-brand-text span { display: none; }
    .portal-nav { justify-content: flex-start; }
}
@media (max-width: 900px) {
    .portal-header .public-nav-toggle { display: block; margin-left: auto; }
    .portal-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #0d2159;
        flex-direction: column;
        align-items: stretch;
        padding: .75rem;
        box-shadow: 0 12px 24px rgba(0,0,0,.25);
    }
    .portal-nav.open { display: flex; }
    .portal-dropdown {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        margin: .25rem 0 .5rem;
    }
    .portal-dropdown a { color: #fff !important; }
    .portal-header-actions { display: none; }
    .portal-slider { height: 48vh; }
    .portal-search-band { margin-top: -1.5rem; }
}
