/* Définition des couleurs */
:root {
    --rouge: #e53935;
    --bleu-roi: #141a99;
    --bleu-fonce: #1E1F57;
    --bleu-ciel: #25274d;
    --jaune: #FFC107;
    --jaune-fonce: #E0A800;
    --blanc: #ffffff;
    --bleu-principal: #0a1931;
    --accent: #185adb;
    --gris-clair: #f4f4f4;
    --gris-moyen: #cccccc;
    --gris-fonce: #333333;
    --vert: #2fa002;
    --ombre: rgba(0, 0, 0, 0.2);
    
    /* Variables pour les animations */
    --transition-rapide: 0.2s;
    --transition-moyenne: 0.3s;
    --transition-lente: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gris-fonce);
    overflow-x: hidden;
    background-color: var(--gris-clair);
}

/* Header avec animation au scroll */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: var(--bleu-fonce);
padding: 10px 20px;
display: flex;
flex-direction: column;
box-shadow: 0 4px 12px var(--ombre);
z-index: 1000;
transition: all var(--transition-moyenne) ease;
}

/* Header réduit au scroll */
header.scrolled {
padding: 5px 20px;
background: rgba(30, 31, 87, 0.95);
backdrop-filter: blur(5px);
}

/* Logo + Bouton Menu */
.logo-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
}

.logo-container h1 {
color: var(--gris-clair);
font-size: 20px;
font-weight: bold;
transition: font-size var(--transition-rapide) ease;
}

header.scrolled .logo-container h1 {
font-size: 22px;
}

.menu-toggle {
display: none;
background: none;
border: none;
font-size: 30px;
color: var(--gris-clair);
cursor: pointer;
transition: transform var(--transition-rapide) ease, color var(--transition-rapide) ease;
}

.menu-toggle:hover {
color: var(--jaune);
transform: scale(1.1);
}

/* Menu */
nav {
width: 100%;
background: var(--bleu-roi);
border-radius: 6px;
transition: all var(--transition-rapide) ease;
}

header.scrolled nav {
border-radius: 4px;
}

.menu {
list-style: none;
display: flex;
justify-content: center;
gap: 25px;
padding: 10px 0;
}

.menu li {
position: relative;
}

.menu a {
text-decoration: none;
color: var(--gris-clair);
font-size: 16px;
font-weight: bold;
padding: 12px 18px;
display: flex;
align-items: center;
border-radius: 6px;
transition: all var(--transition-moyenne) cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu a i:not(.submenu-indicator) {
margin-right: 8px;
transition: transform var(--transition-rapide) ease;
}

.submenu-indicator {
margin-left: 6px;
font-size: 12px;
transition: transform var(--transition-rapide) ease;
}

.dropdown.active .submenu-indicator,
.dropdown:hover .submenu-indicator {
transform: rotate(-180deg);
}

.menu a:hover i:not(.submenu-indicator), 
.menu a.active i:not(.submenu-indicator) {
transform: scale(1.2);
}

.menu a:hover{
background-color: var(--jaune);
color: var(--bleu-fonce);
transform: translateY(-3px);
box-shadow: 0 4px 8px var(--ombre);
}

/* Effet de clic */
.menu a:active {
transform: translateY(0);
box-shadow: 0 2px 4px var(--ombre);
}

/* Style spécial pour les liens avec sous-menus */
.has-submenu {
position: relative;
}

/* Sous-menu */
.submenu {
position: absolute;
top: calc(100% + 5px);
left: 0;
background-color: var(--bleu-roi);
min-width: 260px;
border-radius: 8px;
box-shadow: 0px 8px 16px var(--ombre);
opacity: 0;
visibility: hidden;
transform: translateY(15px);
z-index: 100;
overflow: hidden;
transition: all var(--transition-moyenne) cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
}

.dropdown:hover .submenu,
.dropdown.active .submenu {
opacity: 1;
visibility: visible;
transform: translateY(0);
pointer-events: all;
}

.submenu a {
padding: 12px 15px;
font-size: 14px;
color: var(--blanc);
display: flex;
align-items: center;
transition: all var(--transition-rapide) ease;
border-left: 3px solid transparent;
border-radius: 0;
}

.submenu a:hover {
background-color: rgba(255, 193, 7, 0.2);
border-left: 3px solid var(--jaune);
transform: translateX(5px);
box-shadow: none;
}

/* Style pour le lien actif dans le sous-menu */
.submenu a.active {
background-color: rgba(255, 193, 7, 0.3);
border-left: 3px solid var(--jaune);
color: var(--jaune);
}

/* Responsive pour mobile */
@media (max-width: 768px) {

.menu-toggle {
display: block;
}

.menu-toggle.active {
color: var(--jaune);
}

.menu {
flex-direction: column;
align-items: flex-start;
position: fixed;
left: -100%;
top: 80px;
width: 85%;
height: calc(100vh - 80px);
background: var(--bleu-ciel);
padding: 20px;
opacity: 0;
visibility: hidden;
transition: all var(--transition-lente) cubic-bezier(0.23, 1, 0.32, 1);
z-index: 999;
overflow-y: auto;
box-shadow: 5px 0 15px var(--ombre);
}

.menu.active {
left: 0;
opacity: 1;
visibility: visible;
}

.menu li {
width: 100%;
margin-bottom: 5px;
}

.menu a {
padding: 15px;
width: 100%;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
justify-content: left;
}

.menu a i:not(.submenu-indicator) {
margin-right: 10px;
}

/* Correction pour les sous-menus sur mobile */
.submenu {
position: static;
width: 100%;
box-shadow: none;
margin-top: 5px;
margin-left: 15px;
margin-bottom: 10px;
background-color: rgba(20, 26, 153, 0.3);
border-radius: 8px;
max-height: 0;
opacity: 1;
visibility: hidden;
transform: none;
transition: max-height var(--transition-lente) ease, visibility var(--transition-lente) ease, padding var(--transition-lente) ease;
padding: 0;
pointer-events: none; /* Ajout pour cohérence avec l'état desktop */
}

.dropdown.active .submenu {
max-height: 500px;
visibility: visible;
padding: 5px;
pointer-events: all; /* Ajout pour cohérence avec l'état desktop */
}

.submenu a {
padding: 12px 15px;
border-left: none;
border-radius: 6px;
margin-bottom: 3px;
}

.submenu a:hover {
transform: none;
background-color: rgba(255, 193, 7, 0.1);
border-left: 3px solid var(--jaune);
}

/* Animation du bouton hamburger */
.menu-toggle.active i.fa-bars:before {
content: "\f00d"; /* Icône 'x' de Font Awesome */
}

/* Animation pour le menu mobile */
@keyframes slideInMenu {
0% {
    opacity: 0;
    transform: translateX(-20px);
}
100% {
    opacity: 1;
    transform: translateX(0);
}
}

.menu.active li {
animation: slideInMenu 0.4s ease forwards;
animation-delay: calc(0.05s * var(--item-index, 0));
opacity: 0;
}

.menu li:nth-child(1) { --item-index: 1; }
.menu li:nth-child(2) { --item-index: 2; }
.menu li:nth-child(3) { --item-index: 3; }
.menu li:nth-child(4) { --item-index: 4; }
.menu li:nth-child(5) { --item-index: 5; }

/* Suppression du conflit avec les styles desktop pour les dropdowns */
.dropdown::after {
display: none; /* Supprime la zone tampon qui est utilisée uniquement en desktop */
}
}

/* Animation pour le header au défilement */
@keyframes headerShadowPulse {
0% {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
50% {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
100% {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
}

/* Appliquer l'animation au scroll */
header.scrolled {
animation: headerShadowPulse 2s infinite;
}

/* Ajouter un indicateur visuel pour les sous-menus mobiles */
@media (max-width: 768px) {
.submenu::before {
content: '';
display: block;
width: 100%;
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin-bottom: 5px;
}
}

/* Effet de zoom pour le menu actif */
.menu a.active {
position: relative;
z-index: 2;
}

/* Ajouter un badge "NEW" à un élément si nécessaire */
.new-badge::after {
content: 'NEW';
font-size: 10px;
background-color: var(--rouge);
color: white;
padding: 2px 4px;
border-radius: 4px;
margin-left: 8px;
font-weight: bold;
}

/* Réparation des menus déroulants - Version Desktop */
@media (min-width: 769px) {
/* Créer une zone de survol sécurisée */
.dropdown {
position: relative;
}

/* Ajouter une zone invisible pour maintenir le hover */
.dropdown::after {
content: '';
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 20px; /* Zone tampon entre le menu principal et le sous-menu */
background: transparent; /* Invisible mais détecte le survol */
}

/* Repositionner le sous-menu pour éliminer l'espace mort */
.dropdown .submenu {
top: calc(100% + 20px); /* Correspond à la hauteur de la zone tampon */
}
}

/* S'assurer que le menu reste visible pendant le survol */
.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
opacity: 1;
visibility: visible;
transform: translateY(0);
pointer-events: all;
}

/* Ajouter une transition au hover pour une meilleure expérience */
.dropdown {
transition: all 0.2s ease;
}

/* Améliorer la zone de clic sur mobile */
@media (max-width: 768px) {
.dropdown > a {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}
}


.section {
    padding: 80px 0;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Bannière */
.banner {
    background: linear-gradient(135deg, var(--bleu-principal) 0%, var(--bleu-roi) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 80vh;
} 

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1200/400') center/cover;
    opacity: 0.15;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--blanc);
    padding: 0 20px;
}

.banner h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--jaune);
    border-radius: 2px;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sections générales */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-size: 2.2rem;
    color: var(--bleu-principal);
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.card {
    background-color: var(--blanc);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--ombre);
    overflow: hidden;
    transition: transform var(--transition-moyenne), box-shadow var(--transition-moyenne);
    margin-bottom: 30px;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bleu-roi);
    color: var(--blanc);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: all var(--transition-moyenne);
}

.section-content {
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* Présentation */
#presentation {
    background-color: var(--blanc);
}

.presentation-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.presentation-text {
    flex: 1;
    min-width: 300px;
}

.presentation-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.presentation-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--ombre);
}

.highlight-box {
    background-color: var(--bleu-ciel);
    padding: 30px;
    border-radius: 10px;
    color: var(--blanc);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--jaune);
}

.highlight-box h3 {
    color: var(--jaune);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.highlight-list {
    list-style: none;
    margin-top: 15px;
}

.highlight-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.highlight-list li:last-child {
    border-bottom: none;
}

.highlight-list li i {
    color: var(--jaune);
    margin-right: 10px;
}

/* Notre Vision */
#notre_vision {
    background-color: var(--gris-clair);
    position: relative;
    overflow: hidden;
}

#notre_vision::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background-color: rgba(24, 90, 219, 0.1);
    border-radius: 50%;
    z-index: 0;
}

#notre_vision::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.vision-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.vision-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    background-color: var(--blanc);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--ombre);
    transition: all var(--transition-moyenne);
    position: relative;
    overflow: hidden;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.vision-card h3 {
    color: var(--bleu-principal);
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
}

.vision-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.vision-ambition {
    background-color: var(--bleu-principal);
    color: var(--blanc);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vision-ambition::before {
    content: "\f521";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    font-size: 12rem;
    opacity: 0.05;
    right: -20px;
    bottom: -20px;
    transform: rotate(-15deg);
}

.vision-ambition h3 {
    color: var(--jaune);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.vision-ambition p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Mot du directeur */
#mot_du_directeur_general {
    background-color: var(--blanc);
    position: relative;
    overflow: hidden;
}

.director-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.director-image {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    position: relative;
}

.director-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--ombre);
    transition: all var(--transition-moyenne);
}

.director-content {
    flex: 2;
    min-width: 300px;
}

.director-signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 1.8rem;
    color: var(--bleu-roi);
    margin-top: 20px;
    display: block;
}

.director-position {
    color: var(--gris-fonce);
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.quotation {
    position: relative;
    padding: 30px;
    background-color: var(--gris-clair);
    border-radius: 10px;
    margin: 30px 0;
}

.quotation::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.2;
    top: 10px;
    left: 10px;
}

.engagement-list {
    list-style: none;
    margin-top: 20px;
}

.engagement-list li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.engagement-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--vert);
}

/* Présentation du Directeur */
#presentation_du_directeur {
    background-color: var(--gris-clair);
    position: relative;
}

.director-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.director-bio {
    flex: 2;
    min-width: 300px;
}

.director-photo {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.director-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px var(--ombre);
}

.credentials {
    background-color: var(--blanc);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--ombre);
}

.credentials::before {
    content: "\f5fc";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    font-size: 8rem;
    opacity: 0.03;
    right: -10px;
    bottom: -20px;
}

.credentials h3 {
    color: var(--bleu-roi);
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.credentials h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.credentials ul {
    list-style: none;
}

.credentials li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.credentials li::before {
    content: "\f19d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.expertise {
    background-color: var(--blanc);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px var(--ombre);
}

.expertise h3 {
    color: var(--bleu-roi);
    margin-bottom: 20px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 10px;
}

.expertise h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.expertise p {
    margin-bottom: 20px;
}

.expertise-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.expertise-item {
    background-color: var(--gris-clair);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all var(--transition-rapide);
    border-left: 3px solid var(--accent);
}

.expertise-item:hover {
    background-color: var(--accent);
    color: var(--blanc);
    transform: translateY(-3px);
}

.formation-list {
    counter-reset: counter;
    list-style: none;
    margin-top: 20px;
}

.formation-list li {
    margin-bottom: 15px;
    padding-left: 40px;
    position: relative;
    counter-increment: counter;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gris-moyen);
}

.formation-list li:last-child {
    border-bottom: none;
}

.formation-list li::before {
    content: counter(counter);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--accent);
    color: var(--blanc);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bounce-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bounce-in.visible {
    opacity: 1;
    transform: scale(1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .banner {
        height: 350px;

    }
    
    .banner h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .director-section, .director-profile {
        flex-direction: column;
    }
    
    .director-image, .director-photo {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;

    }
    
    .banner h1 {
        font-size: 2.2rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .vision-card {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 250px;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}


/* --- FOOTER FUTURISTE ANIMÉ --- */
.footer {
    background: linear-gradient(180deg, var(--bleu-fonce), #080b29);
    color: var(--blanc);
    padding: 60px 20px 0;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

/* --- PARTICULES FLOTTANTES --- */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jaune);
    opacity: 0.2;
    pointer-events: none;
}

.particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: float 15s infinite linear alternate;
}

.particle:nth-child(2) {
    top: 20%;
    left: 80%;
    width: 12px;
    height: 12px;
    animation: float 20s infinite linear alternate-reverse;
}

.particle:nth-child(3) {
    top: 60%;
    left: 50%;
    width: 5px;
    height: 5px;
    animation: float 18s infinite linear alternate;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation: float 25s infinite linear alternate-reverse;
}

.particle:nth-child(5) {
    top: 40%;
    left: 85%;
    width: 10px;
    height: 10px;
    animation: float 22s infinite linear alternate;
}

.particle:nth-child(6) {
    top: 75%;
    left: 70%;
    width: 6px;
    height: 6px;
    animation: float 17s infinite linear alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, 20px) rotate(180deg);
        opacity: 0.5;
    }
    100% {
        transform: translate(-20px, 40px) rotate(360deg);
        opacity: 0.3;
    }
}

/* --- LIGNE LUMINEUSE FUTURISTE --- */
.footer-glow {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--jaune), transparent);
    position: absolute;
    top: 0;
    left: -100%;
    animation: glow-animation 5s infinite linear;
}

@keyframes glow-animation {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- GRID DU FOOTER --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.footer-col {
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-in 0.8s forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LOGO & DESCRIPTION --- */
.footer-logo {
    width: 180px;
    margin-bottom: 15px;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.3));
    transform-origin: center;
    animation: pulse-subtle 4s infinite alternate ease-in-out;
}

@keyframes pulse-subtle {
    0% {
        filter: drop-shadow(0px 0px 8px rgba(255, 193, 7, 0.3));
    }
    100% {
        filter: drop-shadow(0px 0px 15px rgba(255, 193, 7, 0.7));
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.6s forwards 0.3s;
}

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- ICÔNES SOCIALES --- */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    opacity: 0;
    animation: fade-in 0.8s forwards 0.8s;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanc);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--jaune);
    border-radius: 50%;
    top: 100%;
    left: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: var(--bleu-fonce);
    transform: translateY(-5px);
}

.social-icon:hover::before {
    top: 0;
}

/* --- TITRES DU FOOTER --- */
.footer h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--jaune);
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.slide-in {
    opacity: 0;
    transform: translateX(-20px);
    animation: slide-in 0.5s forwards;
}

@keyframes slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--jaune);
    animation: line-grow 0.8s forwards 0.5s;
}

@keyframes line-grow {
    to {
        width: 100%;
    }
}

.footer h3 i {
    margin-right: 8px;
    animation: bounce 2s infinite;
}

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

/* --- LIENS RAPIDES --- */
.footer ul {
    list-style: none;
    padding: 0;
}

.staggered-list li {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slide-in 0.5s forwards;
    animation-delay: calc(0.2s * var(--item) + 0.5s);
}

.footer ul li a {
    color: var(--blanc);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 5px;
}

.footer ul li a.hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 3px;
    height: 0;
    background: var(--jaune);
    transition: height 0.3s ease;
}

.footer ul li a.hover-effect:hover::before {
    height: 100%;
}

.footer ul li a i {
    margin-right: 8px;
    color: var(--jaune);
    transition: transform 0.3s ease;
}

.footer ul li a:hover {
    color: var(--jaune);
    transform: translateX(8px);
}

.footer ul li a:hover i {
    transform: rotate(20deg);
}

/* --- CONTACT --- */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    line-height: 1.6;
    font-size: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.5s forwards;
    animation-delay: calc(0.15s * var(--i, 1) + 0.7s);
}

.contact-item:nth-child(1) { --i: 1; }
.contact-item:nth-child(2) { --i: 2; }
.contact-item:nth-child(3) { --i: 3; }
.contact-item:nth-child(4) { --i: 4; }
.contact-item:nth-child(5) { --i: 5; }

.contact-item i {
    color: var(--jaune);
    margin-right: 5px;
}

.footer-col p a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--jaune);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

.footer-col a:hover {
    color: var(--jaune);
}

/* --- COPYRIGHT --- */
.footer-bottom {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.copyright-text {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fade-in 1s forwards 1.2s;
}

/* --- VAGUE ANIMÉE --- */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 40px;
    transform: translateY(-100%);
}

.footer-wave svg path {
    fill: rgba(255, 193, 7, 0.1);
    animation: wave-animation 8s ease-in-out infinite alternate;
}

@keyframes wave-animation {
    0% {
        d: path("M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z");
    }
    50% {
        d: path("M321.39,56.44c58-10.79,114.16-40.13,172-41.86,82.39-2.72,168.19-17.73,250.45-.39C823.78,31,906.67,52,985.66,72.83c70.05,18.48,146.53,36.09,214.34,13V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z");
    }
    100% {
        d: path("M321.39,56.44c58-20.79,114.16-30.13,172-31.86,82.39-16.72,168.19-27.73,250.45-10.39C823.78,21,906.67,62,985.66,82.83c70.05,8.48,146.53,16.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z");  
    }
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer ul li a {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .slide-in {
        animation: fade-in 0.5s forwards;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-wave svg {
        height: 30px;
    }
    
    .contact-item {
        text-align: center;
    }
}

/* Pour les petits mobiles */
@media (max-width: 480px) {
    .footer {
        padding: 40px 15px 0;
    }
    
    .footer h3 {
        font-size: 16px;
    }
    
    .particle {
        display: none;
    }
}
