/* --- 1. VARIABLES & CHARTE GRAPHIQUE --- */
:root {
    /* COULEURS - Extraites de la charte */
    --deep-void: #0F172A;
    --slate-surface: #1E293B;
    --cyber-cyan: #06B6D4;
    --predictive-purple: #8B5CF6;
    --pure-white: #F8FAFC;
    --muted-grey: #94A3B8;
    
    /* GRADIENTS */
    --signature-gradient: linear-gradient(90deg, #8B5CF6 0%, #06B6D4 100%);
    
    /* TYPOGRAPHIE */
    --font-heading: 'Space Grotesk', sans-serif; /* Titres */
    --font-body: 'Inter', sans-serif; /* Corps de texte */
}

/* --- 2. RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--deep-void);
    color: var(--pure-white);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* CORRECTION MAJEURE : Padding pour compenser le header fixe */
    /* Empêche le contenu de démarrer sous la barre de navigation */
    padding-top: 80px; 
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* --- 3. UI ELEMENTS (Boutons) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--signature-gradient);
    color: var(--pure-white);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    margin-left: 10px;
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

/* --- 4. NAVIGATION FIXE --- */
.navbar {
    background-color: rgba(15, 23, 42, 0.95); /* Fond sombre semi-transparent */
    padding: 0.5rem 0;
    
    /* POSITION FIXE : Reste en haut lors du scroll */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Priorité d'affichage élevée */
    
    border-bottom: 1px solid var(--slate-surface);
    backdrop-filter: blur(8px); /* Effet de flou moderne */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO IMAGE DANS LE HEADER */
.nav-logo-img {
    height: 55px; /* Ajusté pour la hauteur de barre */
    width: auto;
    display: block;
    /* Optionnel : fond blanc si le logo est un jpg sans transparence */
    /* background: white; padding: 2px; border-radius: 4px; */ 
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted-grey);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pure-white);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5); /* Lueur Cyan */
}

/* --- 5. HERO SECTION --- */
.hero {
    /* Hauteur minimale et padding ajusté */
    padding: 120px 0 100px 0;
    text-align: center;
    position: relative;
    flex: 1; /* Remplit l'espace vertical disponible */
    
    /* BACKGROUND IMAGE HERO */
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.9)), 
                url('Gemini_Generated_Image_cay2r4cay2r4cay2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--signature-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--muted-grey);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.subtitle {
    color: var(--cyber-cyan);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

/* --- 6. ELEMENTS DE CONTENU (TIMELINE, CARDS) --- */
.page-header {
    padding: 60px 0 40px 0;
    text-align: center;
    background: var(--slate-surface);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header h1 {
    font-size: 2.5rem;
}

.section {
    padding: 40px 0 80px 0;
}

/* Timeline Style */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--slate-surface);
    position: relative;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--cyber-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.timeline .time {
    font-family: var(--font-heading);
    color: var(--cyber-cyan);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline .content {
    background: var(--slate-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--predictive-purple);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.speaker-name {
    color: var(--muted-grey);
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

/* Speaker Cards */
.grid-speakers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--deep-void);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid var(--slate-surface);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--predictive-purple);
}

.card-header {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border-bottom: 1px solid var(--slate-surface);
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--signature-gradient);
}

.role {
    color: var(--cyber-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.card-body {
    padding: 2rem;
    color: var(--muted-grey);
}

/* Formulaire */
.mock-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--slate-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-field {
    width: 100%;
    padding: 12px;
    background: var(--deep-void);
    border: 1px solid #334155;
    border-radius: 8px;
    color: var(--pure-white);
    font-family: var(--font-body);
}

.input-field:focus {
    outline: none;
    border-color: var(--predictive-purple);
}

.rgpd-note {
    font-size: 0.75rem;
    color: var(--muted-grey);
    text-align: left;
    line-height: 1.4;
}

/* --- 7. FOOTER --- */
footer {
    border-top: 1px solid var(--slate-surface);
    padding: 3rem 0;
    margin-top: auto; /* Colle le footer en bas de page */
    text-align: center;
    
    /* BACKGROUND IMAGE FOOTER (footer.png) */
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), 
                url('../img/footer.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.partners {
    display: flex;
    justify-content: center;
    align-items: center; /* Ajout pour centrage vertical */
    flex-wrap: wrap;     /* IMPORTANT : Permet aux éléments de passer à la ligne si l'écran rétrécit */
    gap: 1.5rem;         /* Légère réduction du gap pour gagner de la place */
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--muted-grey);
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0 10px;     /* Sécurité pour que le texte ne touche pas les bords de l'écran */
    line-height: 1.5;    /* Aère le texte si ça passe sur deux lignes */
}

.copyright {
    color: #475569;
    font-size: 0.8rem;
}

/* --- STYLE DU HAMBURGER (Ajouter avant les Media Queries) --- */
.hamburger {
    display: none; /* Caché sur PC */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--pure-white);
    border-radius: 3px;
}

/* Optionnel : Cacher le bouton s'inscrire spécifique au desktop si vous voulez le gérer différemment */
.mobile-btn {
    display: inline-block;
}

/* RESPONSIVE */
/* --- RESPONSIVE & MENU MOBILE --- */
@media (max-width: 768px) {
    /* 1. Afficher le Hamburger */
    .hamburger {
        display: block;
        z-index: 1001; /* Doit être au-dessus du menu déroulant */
    }

    /* 2. Animation du Hamburger en croix quand actif */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--cyber-cyan); /* Petite touche couleur */
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--cyber-cyan);
    }

    /* 3. Le Menu Déroulant */
    .nav-links {
        position: fixed;
        left: -100%; /* Caché hors de l'écran à gauche par défaut */
        top: 70px; /* Juste en dessous de la barre de nav fixe */
        gap: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98); /* Fond très opaque */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid var(--slate-surface);
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        
        /* On réactive l'affichage flex qui était 'none' dans votre ancien code */
        display: flex !important; 
    }

    /* Classe ajoutée par JS pour faire glisser le menu */
    .nav-links.active {
        left: 0; 
    }

    .nav-links li {
        margin: 16px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem; /* Texte plus gros sur mobile */
    }

    /* Ajustements généraux mobile (Conservés de votre demande précédente) */
    .hero h1 { font-size: 2.5rem; }
    .form-row { flex-direction: column; }
    .partners { flex-direction: column; gap: 0.8rem; text-align: center; }
    .nav-logo-img { height: 40px; }
    footer { padding: 2rem 0; }
}