/* Thème République de Côte d'Ivoire */
:root {
    --ci-orange: #f77f00;
    --ci-orange-dark: #d96d00;
    --ci-orange-light: #fff4e8;
    --ci-green: #009e60;
    --ci-green-dark: #007a4d;
    --ci-green-light: #e8f7ef;
    --ci-white: #ffffff;
    --ci-dark: #1a2a22;
    --ci-text: #1a2e22;
    --ci-muted: #5a6f62;
    --ci-bg: #f4f9f6;
    --ci-bg-overlay: rgba(244, 249, 246, 0.32);
    --ci-bg-logo-size: min(240px, 34vw);
    --ci-bg-image: none;

    /* Alias rétrocompatibilité */
    --congo-green: var(--ci-green);
    --congo-green-dark: var(--ci-green-dark);
    --congo-green-light: var(--ci-green-light);
    --congo-yellow: var(--ci-orange);
    --congo-yellow-dark: var(--ci-orange-dark);
    --congo-red: var(--ci-green-dark);
    --congo-red-dark: #005c39;
    --congo-red-light: var(--ci-green-light);
    --congo-dark: var(--ci-dark);
    --congo-text: var(--ci-text);
    --congo-muted: var(--ci-muted);
    --congo-bg: var(--ci-bg);
    --congo-bg-overlay: var(--ci-bg-overlay);
    --congo-bg-logo-size: var(--ci-bg-logo-size);
    --congo-bg-image: var(--ci-bg-image);
    --congo-white: var(--ci-white);
    --gradient-congo: linear-gradient(135deg, var(--ci-orange) 0%, var(--ci-white) 48%, var(--ci-green) 100%);
    --gradient-congo-soft: linear-gradient(135deg, var(--ci-green) 0%, var(--ci-green-dark) 100%);
    --gradient-hero: linear-gradient(160deg, rgba(247, 127, 0, 0.9) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(0, 158, 96, 0.9) 100%);
    --shadow-congo: 0 12px 32px rgba(0, 158, 96, 0.18);
    --shadow-card: 0 8px 24px rgba(26, 42, 34, 0.08);
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

.brand-logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid #cfe8db;
    min-height: 52px;
    padding: 6px 16px;
    z-index: 10001;
}

.brand-logo-bar--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.brand-logo-bar__img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-logo {
    object-fit: contain;
    display: block;
}

.institutional-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.institutional-brand__logo {
    flex-shrink: 0;
    object-fit: contain;
}

.institutional-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.institutional-brand__text span {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.institutional-brand--nav .institutional-brand__text span {
    font-size: 0.56rem;
    color: #ffffff;
}

.institutional-brand--sidebar .institutional-brand__text span {
    font-size: 0.46rem;
    color: #ffffff;
}

.institutional-brand--sidebar .institutional-brand__logo {
    width: 36px !important;
    height: 36px !important;
}

.institutional-brand--admin .institutional-brand__text span {
    font-size: 0.5rem;
    color: var(--ci-green-dark);
}

.institutional-brand--admin .institutional-brand__logo {
    width: 34px !important;
    height: 34px !important;
}

.institutional-brand--login .institutional-brand__text span {
    font-size: 0.58rem;
    color: var(--ci-green-dark);
    text-align: left;
}

.institutional-brand--login {
    justify-content: center;
    gap: 10px;
}

.institutional-brand--hero {
    justify-content: center;
    gap: 14px;
    margin: 0 auto 14px;
    max-width: 560px;
}

.institutional-brand--hero .institutional-brand__text span {
    font-size: 0.72rem;
    text-align: left;
    color: #ffffff;
}

@keyframes ciPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 158, 96, 0.35); }
    50% { box-shadow: 0 0 0 12px rgba(0, 158, 96, 0); }
}

@keyframes congoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 158, 96, 0.35); }
    50% { box-shadow: 0 0 0 12px rgba(0, 158, 96, 0); }
}

@keyframes congoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.congo-badge,
.ci-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 158, 96, 0.12);
    border: 1px solid rgba(0, 158, 96, 0.35);
    color: var(--ci-green-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    animation: ciPulse 2.5s infinite;
}

.footer-credits a {
    color: var(--ci-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

.footer-platform-name {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: var(--ci-green-dark);
}

.congo-badge img,
.congo-badge .brand-logo,
.ci-badge img,
.ci-badge .brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-congo,
.btn-ci {
    background: var(--gradient-congo-soft);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-congo:hover,
.btn-ci:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-congo);
    color: #fff !important;
}

.btn-congo-accent,
.btn-ci-accent {
    background: linear-gradient(135deg, var(--ci-orange) 0%, var(--ci-orange-dark) 100%);
    color: var(--ci-dark) !important;
    border: none;
    font-weight: 800;
}

.text-congo-green,
.text-ci-green { color: var(--ci-green) !important; }
.text-congo-red,
.text-ci-orange { color: var(--ci-orange) !important; }
.bg-congo-light,
.bg-ci-light { background: var(--ci-bg) !important; }

body,
body.theme-ci,
body.theme-congo {
    background-color: var(--ci-bg);
    background-image:
        linear-gradient(var(--ci-bg-overlay), var(--ci-bg-overlay)),
        var(--ci-bg-image);
    background-size: 100% 100%, var(--ci-bg-logo-size) auto;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: var(--ci-text);
}

body.theme-ci #accueil.video-section,
body.theme-ci .video-section:has(.hero-slider),
body.theme-ci .video-section:has(.how-slider),
body.theme-congo #accueil.video-section,
body.theme-congo .video-section:has(.hero-slider),
body.theme-congo .video-section:has(.how-slider) {
    background-color: #0a2418;
    background-image: none;
    isolation: isolate;
}

body.theme-ci #fonctionnement.how-section:has(.how-slider),
body.theme-congo #fonctionnement.how-section:has(.how-slider) {
    background-color: #ffffff;
    background-image: none;
}

body.theme-ci.employe-space,
body.theme-congo.employe-space {
    background-position: center center, calc(50% + 135px) 42%;
}

body.theme-ci.admin-space,
body.theme-congo.admin-space {
    background-position: center center, calc(50% + 140px) 48%;
}

@media (max-width: 991.98px) {
    body.theme-ci.employe-space,
    body.theme-ci.admin-space,
    body.theme-congo.employe-space,
    body.theme-congo.admin-space {
        background-position: center center, center 42%;
    }
}

body.theme-ci.app-space .content-wrap,
body.theme-ci.app-space .main-content,
body.theme-congo.app-space .content-wrap,
body.theme-congo.app-space .main-content {
    background: transparent !important;
}

body.theme-ci.app-space .topbar,
body.theme-ci.app-space .top-navbar,
body.theme-congo.app-space .topbar,
body.theme-congo.app-space .top-navbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-ci.app-space .footer,
body.theme-congo.app-space .footer {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.theme-ci.admin-space .sidebar,
body.theme-congo.admin-space .sidebar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.theme-ci.app-space .brand-logo-bar,
body.theme-congo.app-space .brand-logo-bar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-ci.app-space .card:not(.stat-card),
body.theme-ci.app-space .incidents-list,
body.theme-ci.app-space .chart-card .card-body,
body.theme-congo.app-space .card:not(.stat-card),
body.theme-congo.app-space .incidents-list,
body.theme-congo.app-space .chart-card .card-body {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.theme-ci.app-space .dropdown-menu,
body.theme-congo.app-space .dropdown-menu {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.theme-ci.app-space .table,
body.theme-congo.app-space .table {
    --bs-table-bg: rgba(255, 255, 255, 0.8);
    --bs-table-striped-bg: rgba(248, 250, 249, 0.72);
}

body.theme-ci.app-space .alert,
body.theme-congo.app-space .alert {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.theme-ci ::-webkit-scrollbar,
.theme-congo ::-webkit-scrollbar { width: 8px; height: 8px; }

.theme-ci ::-webkit-scrollbar-track,
.theme-congo ::-webkit-scrollbar-track { background: rgba(244, 249, 246, 0.6); }

.theme-ci ::-webkit-scrollbar-thumb,
.theme-congo ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--ci-orange), var(--ci-green));
    border-radius: 4px;
}
