/* Couleurs principales */
:root {
    --bleu-roi: #141a99;
    --bleu-fonce: #1E1F57;
    --jaune: #FFC107;
    --jaune-fonce: #E0A800;
    --blanc: #ffffff;
    --gris-clair: #f4f4f4;
    --gris-moyen: #cccccc;
    --gris-foncé: #333333;
    --ombre: rgba(0, 0, 0, 0.2);
}

/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, sans-serif;
    background-color: var(--gris-clair);
    color: var(--gris-foncé);
}

/* --- Navigation --- */
.header {
    background-color: var(--bleu-roi);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* --- Menu principal --- */
.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li {
    position: relative;
}

.menu li a {
    text-decoration: none;
    color: var(--blanc);
    font-size: 16px;
    padding: 10px 15px;
    transition: background 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.menu li a:hover,
.menu li a.active {
    background-color: var(--jaune-fonce);
    transform: translateY(-3px);
}

/* --- Sous-menu déroulant --- */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background-color: var(--bleu-roi);
    border-radius: 5px;
    box-shadow: 0 4px 6px var(--ombre);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
    z-index: 10;
}

.submenu li {
    width: 100%;
}

.submenu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--blanc);
    border-bottom: 1px solid var(--jaune-fonce);
    transition: background 0.3s ease;
}

.submenu a:last-child {
    border-bottom: none;
}

.submenu a:hover {
    background-color: var(--jaune-fonce);
}

/* Affichage du sous-menu au survol */
.dropdown:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* --- Menu Burger (Mobile) --- */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--blanc);
    cursor: pointer;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .menu {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: relative;
    }

    .menu {
        flex-direction: column;
        background: var(--bleu-roi);
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        display: none;
        padding: 10px 0;
    }

    .menu li {
        text-align: center;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .menu.show {
        display: flex;
        flex-direction: column;
    }

    .submenu {
        position: relative;
        width: 100%;
        text-align: center;
        display: none;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .dropdown.active .submenu {
        display: block;
    }
    
}

/* Petits mobiles (max-width: 480px) */
@media screen and (max-width: 480px) {
     .nav {
        position: relative;
    }

    .menu {
        flex-direction: column;
        background: var(--bleu-roi);
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        display: none;
        padding: 10px 0;
    }

    .menu li {
        text-align: center;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .menu.show {
        display: flex;
        flex-direction: column;
    }

    .submenu {
        position: relative;
        width: 100%;
        text-align: center;
        display: none;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .dropdown.active .submenu {
        display: block;
    }
}



/* --- Page Title Section --- */
.page-title {
    background-color: var(--bleu-fonce);
    color: var(--jaune);
    text-align: center;
    padding-top: 60px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;

}

.page-title h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 18px;
}



/* --- Section Modules Futuriste --- */
.modules-section {
    background: linear-gradient(135deg, var(--blanc), var(--blanc));
    padding: 80px 20px;
    color: var(--blanc);
}

.modules-section h2 {
    font-size: 32px;
    color: var(--jaune);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 0 10px var(--ombre);
    text-align: center;
}

.modules-section h2::after {
    content: "";
    width: 100px;
    height: 5px;
    background: var(--jaune-fonce);
    display: block;
    margin: 10px auto 0;
    border-radius: 3px;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.module-list li {
    background: var(--bleu-fonce);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--ombre);
    width: 300px;
    font-size: 16px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Effet de survol avec lumière futuriste */
.module-list li::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 10%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-list li:hover::before {
    opacity: 1;
}

.module-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--ombre);
}

.cta-postuler {
    text-align: center;
    margin-top: 40px;
}

.cta-postuler a {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: var(--bleu-fonce);
    background: var(--jaune);
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--ombre);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-postuler a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--jaune-fonce);
    z-index: -1;
    transition: left 0.3s ease;
}

.cta-postuler a:hover::before {
    left: 0;
}

.cta-postuler a:hover {
    color: var(--blanc);
    transform: translateY(-3px);
}


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