/* ========================================================== */
/* == VARIABLES ET MISE EN PAGE GLOBALE (STICKY FOOTER) == */
/* ========================================================== */
:root {
    --brand-blue: #125195;
    --brand-orange: #f15a29;
    --primary-blue: #1a4b8c; /* Gardé pour la compatibilité avec vos anciens styles */
    --secondary-blue: #003366; /* Gardé */
    --accent-color: #e74c3c; /* Gardé */
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --white: #ffffff;
    --success-green: #20bf6b;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    padding-top: 90px; /* Espace pour la navbar fixe */
}

main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* ========================================================== */
/* == STYLES POUR LE FORMULAIRE D'INSCRIPTION == */
/* ========================================================== */

.form-container {
    background-color: var(--white);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 850px;
}

/* Barre de progression */
.progress-bar-container { width: 100%; height: 8px; background-color: #e9ecef; border-radius: 5px; margin-bottom: 30px; overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange)); border-radius: 5px; transition: width 0.4s ease-in-out; }

/* Transitions entre étapes */
.form-step { display: none; animation: fadeIn 0.5s; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Titres */
.form-container h1 { font-size: 2.2rem; color: var(--brand-blue); text-align: center; font-weight: 700; margin-bottom: 10px; }
.form-container h2 { font-size: 1.1rem; color: #888; text-align: center; font-weight: 500; margin-bottom: 35px; }
.form-container h3 { font-size: 1.3rem; color: var(--brand-blue); border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 25px; font-weight: 600; text-align: left; }

/* Champs de formulaire */
.form-container label { display: block; margin-bottom: 8px; font-weight: 500; color: #576574; }
.form-container input[type="text"], .form-container input[type="email"], .form-container input[type="tel"], .form-container input[type="date"], .form-container select, .form-container textarea { width: 100%; padding: 12px 15px; margin-bottom: 20px; border: 1px solid #ced4da; border-radius: 8px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-container input:focus, .form-container select:focus, .form-container textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(18, 81, 149, 0.1); }

/* Boutons */
.form-container .btn-group { display: flex; justify-content: space-between; margin-top: 30px; }
.form-container button { padding: 12px 30px; border: none; border-radius: 50px; color: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.form-container button i { margin: 0 8px; }
.form-container button.next-btn, .form-container button.submit-btn { background: var(--brand-blue); }
.form-container button.next-btn:hover, .form-container button.submit-btn:hover { background: #10447c; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.form-container button.prev-btn { background-color: #6c757d; }
.form-container button.prev-btn:hover { background-color: #5a6268; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
#add-langue-btn, #add-experience-btn { background-color: var(--brand-orange); margin-bottom: 20px; }
#add-langue-btn:hover, #add-experience-btn:hover { background-color: #d94b1c; transform: translateY(-2px); }

/* Groupes dynamiques */
.dynamic-group { border: 1px solid #e9ecef; padding: 20px; margin-bottom: 20px; border-radius: 8px; background-color: #fdfdfd; position: relative; }
.dynamic-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.dynamic-group-header label { font-weight: 600; color: var(--brand-blue); margin-bottom: 0; }
button.remove-btn { background: #e74c3c; border-radius: 50%; width: 25px; height: 25px; padding: 0; font-size: 16px; line-height: 25px; color: white; text-align: center; }

/* ========================================================== */
/* == STYLES POUR LA PAGE DE SUCCÈS == */
/* ========================================================== */
.success-box { text-align: center; background-color: var(--white); padding: 50px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); border: 1px solid #e9ecef; max-width: 600px; }
.success-icon i { font-size: 80px; color: var(--success-green); margin-bottom: 20px; }
.success-box h1 { font-size: 2.5rem; color: var(--brand-blue); margin-bottom: 15px; }
.success-box p { font-size: 1.1rem; color: #576574; margin-bottom: 30px; }
.btn-home { display: inline-block; padding: 12px 30px; border-radius: 8px; color: var(--white); font-size: 16px; font-weight: 600; text-decoration: none; background-color: var(--brand-blue); transition: all 0.3s ease; }
.btn-home:hover { background-color: var(--secondary-blue); transform: translateY(-2px); color: var(--white); }

/* ========================================================== */
/* == VOS AUTRES STYLES (NAVBAR, FOOTER, RESPONSIVE...) == */
/* ========================================================== */
/* ... Collez ici le reste de vos styles pour la navbar et le footer ... */

/* ========================================================== */
/* == STYLES DE LA PAGE DE SUCCÈS == */
/* ========================================================== */
.success-box {
    text-align: center;
    background-color: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    max-width: 600px;
}
.success-icon i {
    font-size: 80px;
    color: var(--success-green);
    margin-bottom: 20px;
}
.success-box h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}
.success-box p {
    font-size: 1.1rem;
    color: #576574;
    margin-bottom: 30px;
}
.btn-home {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}
.btn-home:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    color: var(--white);
}

/* HEADER & NAVIGATION */
.navbar-esicim { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 5px 30px var(--light-shadow); padding: 0; transition: all 0.4s ease; border-bottom: 1px solid rgba(0, 0, 0, 0.03); }
.navbar-esicim .navbar-brand img { height: 55px; transition: all 0.4s ease; }
.nav-item { position: relative; margin: 0 3px; }
.nav-link { color: var(--primary-blue) !important; font-weight: 500; text-transform: uppercase; font-size: 13px; letter-spacing: 0.8px; padding: 30px 15px !important; transition: all 0.3s ease; position: relative; overflow: hidden; }
.nav-link:hover, .nav-link.active { color: var(--accent-color) !important; }
/* ... (gardez ici tous vos autres styles pour la navbar, les dropdowns, etc.) ... */

/* FOOTER */
.footer-esicim { background: var(--gradient-blue); position: relative; color: var(--white); padding: 80px 0 30px; overflow: hidden; border-top: 5px solid var(--accent-color); flex-shrink: 0; }
.footer-content { position: relative; z-index: 2; }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: 25px; font-size: 18px; position: relative; padding-bottom: 12px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--gradient-accent); border-radius: 2px; }
/* ... (gardez ici tous vos autres styles pour le footer) ... */

/* RESPONSIVE */
@media (max-width: 991.98px) { 
    body { padding-top: 70px; } 
    /* ... (gardez tous vos styles responsives) ... */
}

/* --- Barre de progression --- */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #125195, #f15a29); /* Utilise vos couleurs */
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

/* --- Groupes dynamiques améliorés --- */
.dynamic-group {
    position: relative;
    /* ... autres styles ... */
}
.dynamic-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.dynamic-group-header label {
    font-weight: 600;
    color: var(--brand-blue); /* Votre variable de couleur */
    margin-bottom: 0;
}
button.remove-btn {
    background: #e74c3c;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    padding: 0;
    font-size: 16px;
    line-height: 25px;
    color: white;
    text-align: center;
    border: none;
    cursor: pointer;
}
/* ==================== */
/* HEADER & NAVIGATION  */
/* ==================== */
.navbar-esicim {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px var(--light-shadow);
    padding: 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar-scrolled {
    padding: 0;
    box-shadow: 0 10px 30px var(--medium-shadow);
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar-esicim .navbar-brand {
    padding: 15px 0;
}

.navbar-esicim .navbar-brand img {
    height: 55px;
    transition: all 0.4s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 45px;
}

.nav-item {
    position: relative;
    margin: 0 3px;
}

.nav-link {
    color: var(--primary-blue) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    padding: 30px 15px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-scrolled .nav-link {
    padding: 25px 15px !important;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover:before,
.nav-link.active:before {
    transform: translateX(0);
}

.nav-link:hover, 
.nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-esicim .dropdown-toggle::after {
    font-family: "Font Awesome 6 Free";
    content: "\f107";
    border: none;
    vertical-align: middle;
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.navbar-esicim .dropdown-toggle:hover::after,
.navbar-esicim .dropdown-toggle.show::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--medium-shadow);
    margin-top: 0;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    display: block;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--primary-blue);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(26, 75, 140, 0.08);
    color: var(--accent-color);
    transform: translateX(5px);
}

.dropdown-item:active {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Mega menu */
.mega-dropdown {
    position: static !important;
}

.mega-dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 20px 20px;
    padding: 30px;
    box-shadow: 0 20px 50px var(--medium-shadow);
    background: linear-gradient(to right, rgba(255,255,255,0.98), rgba(255,255,255,0.95)), 
      url('https://esicim-academy.fr/wp-content/uploads/2023/03/formation-professionnelle.jpg') no-repeat center center;
    background-size: cover;
    background-blend-mode: overlay;
}

.mega-menu-title {
    color: var(--secondary-blue);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 16px;
    position: relative;
    padding-bottom: 10px;
}

.mega-menu-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
}

.mega-dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
}

/* Formation card dans le mega menu */
.formation-promo {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px var(--light-shadow);
    transition: all 0.4s ease;
}

.formation-promo:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--medium-shadow);
}

.formation-promo img {
    border-radius: 15px 15px 0 0;
    transition: all 0.5s ease;
}

.formation-promo:hover img {
    transform: scale(1.05);
}

.formation-promo-content {
    padding: 20px;
}

/* Bouton Admission */
.btn-admission {
    background: var(--gradient-accent);
    border: none;
    color: var(--white) !important;
    border-radius: 30px;
    padding: 10px 25px !important;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    font-size: 13px;
}

.btn-admission:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.btn-admission:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.4);
}

.btn-admission:hover:before {
    opacity: 1;
}

.btn-admission:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(231, 76, 60, 0.4);
}

/* Mobile menu */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after,
.navbar-toggler-icon {
    width: 30px;
    height: 2px;
    background-color: var(--primary-blue);
    display: block;
    transition: all 0.3s ease;
}

.navbar-toggler-icon:before,
.navbar-toggler-icon:after {
    content: '';
    position: absolute;
    left: 0;
}

.navbar-toggler-icon:before {
    top: -8px;
}

.navbar-toggler-icon:after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--accent-color);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
    bottom: 0;
    transform: rotate(-45deg);
    background-color: var(--accent-color);
}

/* ==================== */
/* LOADER STYLES        */
/* ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-logo {
    width: 200px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #f8b400;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 1199.98px) {
    .nav-link {
        padding: 25px 10px !important;
        font-size: 12px;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-esicim {
        padding: 8px 0;
    }
    
    .navbar-esicim .navbar-brand img {
        height: 40px;
    }
    
    /* Menu hamburger amélioré */
    .navbar-toggler {
        padding: 0.25rem;
    }
    
    .navbar-toggler-icon {
        width: 25px;
    }
    
    .navbar-toggler-icon:before,
    .navbar-toggler-icon:after {
        width: 25px;
    }
    
    /* Menu déroulant complet */
    .navbar-collapse {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 15px 20px;
        z-index: 1000;
        border-radius: 0;
        margin-top: 0;
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .nav-link {
        padding: 12px 15px !important;
        font-size: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Mega menu adapté */
    .mega-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        background: transparent;
    }
    
    .mega-dropdown-menu .container {
        padding: 0;
    }
    
    .mega-dropdown-menu .row {
        margin: 0;
    }
    
    .mega-dropdown-menu [class*="col-"] {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .mega-menu-title {
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .dropdown-item {
        padding: 10px 15px !important;
        margin-bottom: 0;
    }
    
    /* Bouton admission visible */
    .btn-admission {
        display: block;
        width: 100%;
        margin: 15px 0;
        padding: 12px 20px !important;
    }
    
    /* Sous-menus */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
        margin: 5px 0 15px 15px;
        border-left: 2px solid var(--accent-color);
        background-color: rgba(0,0,0,0.02);
    }
    
    /* Formation promo en mobile */
    .formation-promo {
        margin: 20px 0;
    }
    
    /* Masquer l'effet hover sur mobile */
    .nav-link:before,
    .dropdown-item:hover {
        transform: none !important;
    }
    
    .loader-logo {
        width: 150px;
    }
}

@media (max-width: 767.98px) {
    .mega-dropdown-menu {
        display: flex;
        flex-direction: column;
        padding: 20px 15px;
    }

    .formation-promo {
        width: 100%;
        margin-bottom: 20px;
    }

    .navbar-brand img {
        height: 40px;
    }

    .nav-link {
        font-size: 14px;
    }
    
    .dropdown-menu {
        margin-left: 10px;
        padding: 5px 0 5px 10px;
    }
}

@media (max-width: 575.98px) {
    .navbar-collapse {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    .navbar-esicim .navbar-brand img {
        height: 35px;
    }
    
    .mega-dropdown-menu [class*="col-"] {
        width: 100%;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 10px 15px !important;
    }
    
    .btn-admission {
        font-size: 12px !important;
        padding: 10px 15px !important;
    }
    
    .loader-logo {
        width: 120px;
        margin-bottom: 20px;
    }
    
    .loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
}

/* ==================== */
/* FOOTER STYLES        */
/* ==================== */
.footer-esicim {
    background: var(--gradient-blue);
    position: relative;
    color: var(--white);
    padding: 80px 0 30px;
    overflow: hidden;
    z-index: 1;
    margin-top: 100px;
    border-top: 5px solid var(--accent-color);
}

.footer-esicim::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(35deg);
    z-index: 0;
    pointer-events: none;
}

.footer-esicim::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -30%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,51,102,0.4) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo {
    margin-bottom: 25px;
    display: block;
}

.footer-logo img {
    height: 65px;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 90%;
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 22px;
}

.footer-links a:before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover:before {
    color: var(--white);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 18px;
    padding-left: 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

.contact-info li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-color);
    font-size: 18px;
}

.social-icons {
    margin-top: 30px;
    display: flex;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    color: var(--white);
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    z-index: -1;
    transition: all 0.3s ease;
    transform: scale(0);
    border-radius: 50%;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--white);
}

.social-icon:hover:before {
    opacity: 1;
    transform: scale(1);
}

.newsletter-form {
    position: relative;
    margin-top: 25px;
}

.newsletter-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    border: none;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 25px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.newsletter-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.5);
    border-radius: 25px;
}

.newsletter-btn:hover:before {
    opacity: 1;
    transform: scale(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom-links {
    margin-top: 15px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    transform: translateY(-5px);
}

.footer-badge {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.footer-badge:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Animation légère sur les éléments du footer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-col {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.footer-col:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-col:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-col:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-col:nth-child(4) {
    animation-delay: 0.4s;
}

/* ==================== */
/* FOOTER RESPONSIVE    */
/* ==================== */
@media (max-width: 991.98px) {
    .footer-esicim {
        padding: 60px 0 30px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-description,
    .footer-links,
    .contact-info {
        text-align: center;
    }
    
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a:before {
        display: none;
    }
    
    .contact-info li {
        padding-left: 0;
        text-align: center;
    }
    
    .contact-info li i {
        position: static;
        display: block;
        margin-bottom: 5px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter-form {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .footer-esicim {
        padding: 50px 0 25px;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 25px;
    }
}

@media (max-width: 575.98px) {
    .footer-logo img {
        height: 50px;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links a,
    .contact-info li {
        font-size: 13px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
}
@media (max-width: 991px) {
    /* ... autres styles ... */
    
    .navbar-collapse {
        position: fixed;
        top: 70px; /* Ajustez selon la hauteur de votre navbar */
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        overflow-y: auto; /* Permet le défilement */
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 999;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
    }
    
    /* Ajustez la hauteur maximale des sous-menus */
    .mega-dropdown-menu {
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        max-height: 50vh;
        overflow-y: auto;
    }
}