/* Définition des couleurs */
:root {
    --rouge: #e53935;
    --bordeaux: #a90329;
    --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;
    --gris-foncé: #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;
    --transition-standard: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


* {
    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;
}
}


/* Animations globales */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

 .ripple-effect {
    position: absolute;
   border-radius: 50%;
     background-color: rgba(255, 255, 255, 0.7);
    width: 100px;
     height: 100px;
     margin-top: -50px;
     margin-left: -50px;
     animation: ripple-animation 0.6s linear;
    transform: scale(0);
    opacity: 1;
   pointer-events: none;
 }
 
 @keyframes ripple-animation {
    to {
         transform: scale(4);
         opacity: 0;
     }
 }

 /* Effet de vague sur les boutons */
.cta, .module-btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple-animation 0.6s linear;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animation de chargement pour la page */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bleu-roi);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--jaune);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation du défilement doux */
html {
    scroll-behavior: smooth;
}

/* Curseur personnalisé sur éléments interactifs */
.specialization,
.box,
.tarif-box,
.item,
.testimonial,
.cta,
.module-btn {
    cursor: pointer;
}

/* Animation subtile de l'arrière-plan */
.specializations-certificat,
.profil,
.programme,
.conclusion {
    position: relative;
    overflow: hidden;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 25%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
    animation: move-bg 15s linear infinite;
}

@keyframes move-bg {
    0% {
        transform: translateY(-30%) translateX(-10%);
    }
    50% {
        transform: translateY(30%) translateX(10%);
    }
    100% {
        transform: translateY(-30%) translateX(-10%);
    }
}

/* Animation des liens de navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Animation pour le bouton de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--jaune);
    color: var(--gris-foncé);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--jaune-fonce);
    transform: translateY(-5px);
}

/* Pour les écrans tactiles - désactiver certains effets */
@media (hover: none) {
    .specialization:hover,
    .box:hover,
    .tarif-box:hover,
    .item:hover,
    .testimonial:hover {
        transform: none !important;
    }
    
    /* Améliorer la visibilité des hover sur mobiles */
    .specialization:active,
    .box:active,
    .tarif-box:active,
    .item:active,
    .testimonial:active {
        background-color: rgba(255, 193, 7, 0.2);
    }
    
    .cta:active,
    .module-btn:active {
        transform: scale(0.97);
    }
}

/* Bannière avec parallax et animation */
.banner-certificat {
    background: url('https://images.wakelet.com/resize?id=0ViuFIqOSjSRKFduhdfgT&w=1600&h=actual&q=85') center/cover no-repeat fixed;
    text-align: center;
    padding: 200px 20px;
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner-certificat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
    z-index: 1;
}

.banner-certificat::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bleu-roi), transparent);
    z-index: 2;
}

.banner-content {
    background: rgba(7, 12, 154, 0.85);
    padding: 40px 60px;
    display: inline-block;
    border-radius: 15px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform-origin: center;
    transition: var(--transition-standard);
}

.banner-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: rgba(7, 12, 154, 0.9);
}

.banner-content h1 {
    font-size: 42px;
    color: var(--blanc);
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    color: var(--blanc);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}



/* Section Spécialisations avec animations */
.specializations-certificat {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #1e2a5a, #141a99);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.specializations-certificat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1" x="0" y="0" width="100" height="100"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.specializations-certificat h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
}

.specializations-certificat h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--jaune);
    margin: 15px auto 0;
    border-radius: 2px;
}

.specializations-intro {
    font-size: 18px;
    color: #f4f4f4;
    margin-bottom: 60px;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    animation: fadeIn 1s ease-out 0.3s backwards;
    position: relative;
    z-index: 1;
}

.specialization-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.specialization {
    width: 300px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    transition: var(--transition-standard);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background-image: linear-gradient(to bottom, #ffffff, #f9f9f9);
    position: relative;
    animation: fadeIn 0.8s ease-out backwards;
    transform-style: preserve-3d;
}

.specialization:nth-child(odd) {
    animation-delay: 0.2s;
    animation-name: slideInLeft;
}

.specialization:nth-child(even) {
    animation-delay: 0.4s;
    animation-name: slideInRight;
}

.specialization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--jaune);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.specialization:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.specialization:hover::before {
    transform: scaleX(1);
}

.specialization img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.specialization:hover img {
    transform: scale(1.05);
}

.specialization h3 {
    font-size: 18px;
    color: var(--jaune);
    margin: 10px 0;
    font-weight: bold;
    transition: color 0.3s ease;
}

.specialization:hover h3 {
    color: var(--jaune-fonce);
}

.specialization h4 {
    font-size: 16px;
    color: var(--bleu-roi);
    margin: 15px 0;
    font-weight: bold;
    transition: color 0.3s ease;
}

.specialization p {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.specialization p strong {
    color: var(--bleu-roi);
    font-weight: 600;
}

.specialization .module-btn {
    display: inline-block;
    background: var(--jaune);
    color: var(--gris-foncé);
    padding: 12px 24px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    margin: 10px 5px 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.specialization .module-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gris-moyen);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.specialization .module-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.5);
    color: var(--blanc);
}

.specialization .module-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.specialization .module-btn:active {
    transform: translateY(-2px);
}

.specialization .module-btn a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0px;
}



/* Section Tarif */
.tarif {
    background: var(--blanc);
    padding: 100px 20px;
    position: relative;
    text-align: center;
}

.tarif h2 {
    font-size: 36px;
    color: var(--bleu-roi);
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.tarif h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--jaune);
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.tarif-box {
    background: var(--gris-clair);
    padding: 40px 30px;
    width: 30%;
    text-align: center;
    box-shadow: 0 10px 30px var(--ombre);
    transition: var(--transition-standard);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out backwards;
}

.tarif-box:nth-child(1) { animation-delay: 0.2s; }
.tarif-box:nth-child(2) { animation-delay: 0.4s; }
.tarif-box:nth-child(3) { animation-delay: 0.6s; }

.tarif-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--bleu-roi);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.tarif-box:hover {
    background: linear-gradient(to bottom, var(--jaune), #ffe082);
    color: var(--gris-foncé);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
}

.tarif-box:hover::before {
    transform: scaleX(1);
    background: var(--bleu-roi);
}

.tarif-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.tarif-box:hover h3 {
    color: var(--bleu-roi);
}

/* Section Programme */
.programme {
    background: linear-gradient(135deg, var(--bleu-roi), var(--bleu-fonce));
    color: var(--blanc);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.programme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.2;
}

.programme h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.programme h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--jaune);
    margin: 15px auto 0;
    border-radius: 2px;
}

.programme-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

.item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    font-weight: bold;
    width: 280px;
    text-align: center;
    transition: var(--transition-standard);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.8s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.item:nth-child(odd) { animation-delay: 0.2s; animation-name: slideInLeft; }
.item:nth-child(even) { animation-delay: 0.4s; animation-name: slideInRight; }

.item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--jaune);
    opacity: 0.2;
    z-index: 0;
    transition: width 0.6s ease;
}

.item:hover {
    transform: translateY(-15px) rotateZ(2deg);
    background: var(--jaune);
    color: var(--gris-foncé);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4);
}

.item:hover::before {
    width: 100%;
}

/* Section Réseau professionnel */
.networking {
    background: var(--blanc);
    padding: 100px 20px;
    position: relative;
    text-align: center;
}

.networking h2 {
    font-size: 36px;
    color: var(--bleu-roi);
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease-out;
}

.networking h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--jaune);
    margin: 15px auto 0;
    border-radius: 2px;
}

.testimonials {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    background: var(--gris-clair);
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 10px 30px var(--ombre);
    font-style: italic;
    transition: var(--transition-standard);
    border-radius: 15px;
    position: relative;
    animation: fadeIn 0.8s ease-out backwards;
}

.testimonial:nth-child(1) { animation-delay: 0.2s; }
.testimonial:nth-child(2) { animation-delay: 0.4s; }

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
}

.testimonial:hover {
    background: linear-gradient(to bottom, var(--jaune), #ffe082);
    color: var(--gris-foncé);
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
}

/* Section Conclusion */
.conclusion {
    background: linear-gradient(135deg, var(--bleu-fonce), var(--bleu-roi));
    color: var(--blanc);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="50,15 85,85 15,85" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.2;
}

.conclusion h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

.conclusion h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--jaune);
    margin: 15px auto 0;
    border-radius: 2px;
}

.cta {
    display: inline-block;
    background: var(--jaune);
    color: var(--gris-foncé);
    padding: 18px 36px;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition-standard);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
    margin: 30px 10px;
    border-radius: 50px;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse 2s infinite;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--jaune-fonce);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.6);
    animation: none;
}

.cta:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta:active {
    transform: translateY(-2px);
}

/* Animation d'apparition au scroll */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animation.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive amélioré */
@media (max-width: 1200px) {
    .banner-content {
        padding: 30px 40px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .specialization {
        width: 280px;
    }
    
    .tarif-box {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .banner-certificat {
        padding: 150px 15px;
        height: 70vh;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .specializations-certificat,
    .profil,
    .tarif,
    .programme,
    .networking,
    .conclusion {
        padding: 80px 15px;
    }
    
    .specializations-certificat h2,
    .profil h2,
    .tarif h2,
    .programme h2,
    .networking h2,
    .conclusion h2 {
        font-size: 32px;
    }
    
    .tarif-box {
        width: 80%;
        max-width: 400px;
    }
    
    .stat {
        gap: 30px;
    }
    
    .circle {
        width: 140px;
        height: 140px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .banner-certificat {
        padding: 120px 10px;
        height: auto;
        min-height: 60vh;
        background-attachment: scroll;
    }
    
    .banner-content {
        padding: 25px 30px;
        width: 90%;
        max-width: 450px;
    }
    
    .banner-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .specializations-certificat h2,
    .profil h2,
    .tarif h2,
    .programme h2,
    .networking h2,
    .conclusion h2 {
        font-size: 28px;
    }
    
    .specializations-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .specialization {
        width: 100%;
        max-width: 350px;
    }
    
    .grid {
        flex-direction: column;
        align-items: center;
    }
    
    .tarif-box {
        width: 90%;
    }
    
    .criteria,
    .programme-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .box,
    .item {
        width: 90%;
        max-width: 320px;
    }
    
    .testimonial {
        max-width: 90%;
    }
    
    .cta {
        padding: 15px 30px;
        font-size: 16px;
        display: block;
        max-width: 80%;
        margin: 20px auto;
    }
    
    .circle {
        width: 120px;
        height: 120px;
        font-size: 22px;
    }
    
    .circle p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner-certificat {
        padding: 80px 10px;
        min-height: 50vh;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-content h1 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .specializations-certificat,
    .profil,
    .tarif,
    .programme,
    .networking,
    .conclusion {
        padding: 60px 15px;
    }
    
    .specializations-certificat h2,
    .profil h2,
    .tarif h2,
    .programme h2,
    .networking h2,
    .conclusion h2 {
        font-size: 24px;
    }
    
    .specializations-intro {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .specialization {
        padding: 20px;
    }
    
    .specialization h3 {
        font-size: 16px;
    }
    
    .specialization h4 {
        font-size: 14px;
    }
    
    .specialization p {
        font-size: 13px;
    }
    
    .specialization .module-btn {
        padding: 10px 20px;
        font-size: 14px;
        display: block;
        margin: 10px auto;
    }
    
    .circle {
        width: 100px;
        height: 100px;
        font-size: 20px;
    }
    
    .circle p {
        font-size: 12px;
    }
    
    .tarif-box,
    .box,
    .item {
        padding: 20px 15px;
    }
    
    .tarif-box h3 {
        font-size: 20px;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
    
    .cta {
        padding: 12px 24px;
        font-size: 14px;
    }
}


/* --- 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;
    }
}
