﻿/* Global Variables */
:root {
    --primary-color: #1E88E5;
    --secondary-color: #0A1F44;
    --tertiary-color: #f4f4f4;
    --text-color: #333;
    --white: #fff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Header & Navigation - Modern Glassmorphism */
header {
    background: rgba(255, 255, 255, 0.15);
    /* Translucide */
    backdrop-filter: blur(12px);
    /* Effet de flou "verre" */
    -webkit-backdrop-filter: blur(12px);
    /* Pour Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Bordure légère */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    /* Ombre douce */
    position: fixed;
    top: 15px;
    /* Moins décollé du haut */
    left: 50%;
    transform: translateX(-50%);
    /* Centrage */
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    height: 45px;
    /* Taille réduite de moitié environ */
    border-radius: 50px;
    /* Format "Pillule" arrondie */
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* Animation fluide */
}

header.header-hidden {
    transform: translate(-50%, -150%);
    /* Disparaît vers le haut tout en restant centré */
    opacity: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    /* Marges internes réduites */
}

/* Modification du Logo pour le fond sombre/verre */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Écart réduit */
}

.logo img {
    height: 22px;
    /* Image plus petite */
    width: auto;
    /* Le filtre brightness(0) invert(1) transforme une image non-blanche en blanc */
    filter: brightness(0) invert(1) drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));
}

.logo a {
    font-size: 1rem;
    /* Texte plus petit */
    font-weight: 700;
    color: var(--white);
    /* Blanc pour contraster */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Lisibilité sur fond clair */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
    /* Écart réduit */
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    /* Blanc légèrement transparent */
    font-size: 0.85rem;
    /* Texte plus petit */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 3px 0;
    /* Padding réduit */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Animation de soulignement moderne au survol */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* WhatsApp Button */
#whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 50px;
    /* Adjusted for 50px header */
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background: url('data/AlegEXM_page-0001.webp') no-repeat center center/cover;
    z-index: 0;
    transition: transform 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin: 10px;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        /* Sous la pilule */
        left: 50%;
        transform: translate(-50%, -20px) scale(0.95);
        /* Animation de départ */
        width: calc(100% - 40px);
        max-width: 300px;
        background: rgba(255, 255, 255, 0.15);
        /* Translucide */
        backdrop-filter: blur(15px);
        /* Flou */
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        /* Bords arrondis comme une carte */
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        /* Effet de rebond fluide */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        transform: translate(-50%, 0) scale(1);
        /* Position d'arrivée */
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px 20px;
        font-size: 1.1rem;
        color: var(--white);
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .nav-links a::after {
        display: none;
        /* Désactive le soulignement sur mobile */
    }

    .hamburger {
        display: block;
    }

    h1 {
        font-size: 2.2rem;
    }
}