* {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ============================================
   HEADER STYLES
============================================ */
.top-header {
    background: linear-gradient(135deg, #3580AA 0%, #2a5f7f 100%);
    color: white;
    height: 80px;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(53, 128, 170, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-header .container {
    height: 100%;
}

.logo-container {
    flex: 1;
}

.logo {
    max-height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.navbar {
    flex: 2;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
    border: none;
    padding: 10px 25px !important;
    font-weight: 700;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.navbar-toggler {
    border: 2px solid white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    background: linear-gradient(135deg, #2a5f7f 0%, #3580AA 100%);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-section {
    min-height: calc(100vh - 400px);
    /* padding: 40px 0; */
}

.layout-container {
    width: 95%;
    max-width: 1400px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px auto;
}

/* ============================================
   FOOTER STYLES - MODERNISÉ
============================================ */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3580AA, #5fa3c9, #3580AA);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(53, 128, 170, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 20px;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    font-size: 15px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3580AA, #5fa3c9);
    border-radius: 2px;
}

.footer-links {
    font-size: 15px;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 12px;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3580AA;
    font-weight: bold;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.footer-link:hover {
    color: #3580AA;
    transform: translateX(5px);
    padding-left: 25px;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    font-size: 15px;
}

.footer-contact li {
    margin-bottom: 18px;
    color: #cbd5e1;
    display: flex;
    align-items: start;
    gap: 12px;
}

.footer-contact i {
    color: #3580AA;
    font-size: 18px;
    min-width: 20px;
    margin-top: 3px;
}

.footer hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 40px 0 25px;
}

.footer .text-center p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media screen and (max-width: 991px) {
    .top-header {
        height: auto;
        padding: 15px 20px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: start;
        padding: 15px;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        margin: 5px 0;
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .btn-danger {
        margin-top: 10px;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        max-height: 50px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .footer-description,
    .footer-links,
    .footer-contact {
        font-size: 14px;
    }

    .footer-logo {
        max-width: 120px;
    }
}

@media screen and (max-width: 576px) {
    .nav-link {
        font-size: 15px;
        padding: 12px 15px;
    }

    .logo {
        max-height: 45px;
    }

    .footer-heading {
        font-size: 18px;
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer .col-lg-4 {
        margin-bottom: 30px;
    }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer .row > div {
    animation: fadeInUp 0.6s ease backwards;
}

.footer .row > div:nth-child(1) {
    animation-delay: 0.1s;
}

.footer .row > div:nth-child(2) {
    animation-delay: 0.2s;
}

.footer .row > div:nth-child(3) {
    animation-delay: 0.3s;
}