:root {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #eef2f7;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-header {
    height: 70px;
    width: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.site-shell {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.05) 0%, transparent 30%);
}

.site-sidebar {
    min-height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.site-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-weight: 500;
}

.site-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-pills .nav-link.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 10px 25px -15px rgba(13, 110, 253, 0.65);
}

.offcanvas-body .nav {
    margin: 0;
}

.offcanvas-body .nav-link {
    color: rgba(255, 255, 255, 0.85);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
}

.offcanvas-body .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.offcanvas-body .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
}

#main-content {
    background: #ffffff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -5px 30px -28px rgba(0, 0, 0, 0.4);
}

.stat-tile {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 12px 28px -24px rgba(10, 99, 195, 0.55);
    min-width: 160px;
}

header .lead {
    font-size: 1.1rem;
}

section + section,
section + div,
div + section {
    margin-top: 3rem;
}

.card {
    border: none;
    box-shadow: 0 20px 45px -30px rgba(11, 68, 137, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px -35px rgba(11, 68, 137, 0.55);
}

footer {
    font-size: 0.95rem;
}

.carousel-item img {
    object-fit: cover;
    height: 420px;
}

.carousel-caption {
    background: rgba(13, 110, 253, 0.7);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(6px);
}

.carousel-caption h2 {
    font-weight: 600;
}

.object-fit-cover {
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .logo-header {
        height: 58px;
    }

    #main-content {
        border-radius: 0;
        box-shadow: none;
    }

    .carousel-item img {
        height: 320px; /* plus haut pour éviter que la légende ne soit rognée */
    }

    .carousel-caption {
        padding: 0.75rem 1rem; /* réduire l'encombrement de la légende */
        bottom: 0.5rem;       /* positionner plus bas pour rester dans l'image */
        left: 0.5rem;
        right: 0.5rem;
        border-radius: 0.75rem;
    }

    .carousel-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
}
