/* --- VARIABLES & RESET --- */
:root {
    --primary: #004aad;
    --accent: #ffcc00;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    font-size: 16px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }

/* --- HEADER & NAV --- */
header {
    background: rgba(255, 255, 255, 0.98);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px; /* Hauteur fixe pour éviter les sauts */
}

/* LOGO DESKTOP */
.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    background: url("/static/logo.svg") no-repeat left center;
    background-size: contain;
    padding-left: 50px; 
    height: 50px;
    display: flex;
    align-items: center;
}

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

.nav-links a { font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }

.btn-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: inline-block;
    white-space: normal; /* Autorise le texte à passer à la ligne si besoin */
    text-align: center;
    line-height: 1.2; /* Pour que le texte sur 2 lignes soit joli */
    max-width: 100%;
}

/* --- BURGER MENU --- */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Au dessus du menu déroulant */
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/static/logo_original.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Fixed bug souvent sur mobile, scroll est plus sûr */
    min-height: 60vh; /* On assure une hauteur mini */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 100px 20px 80px 20px; /* Gros padding pour laisser de la place au texte */
}
.hero h1 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.8); 
    margin-bottom: 20px;
}
.hero p { 
    font-size: 1.3rem; 
    font-weight: 400; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* --- CONTENT --- */
.overlap-container {
    max-width: 1100px;
    margin: -60px auto 60px auto; /* Marge négative Desktop */
    position: relative;
    z-index: 10;
    padding: 0 20px;
    flex: 1; 
}

.intro-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.grid-3, .press-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card, .press-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
}
footer strong { color: var(--white); font-size: 1.2rem; display: block; margin-bottom: 10px; }
footer a:hover { color: var(--accent); text-decoration: underline; }

/* --- RESPONSIVE MOBILE & TABLETTE --- */
@media screen and (max-width: 900px) {
    /* Menu Mobile */
    .nav-links {
        position: fixed; /* Mieux que absolute pour le scroll */
        right: 0px;
        height: 100vh;
        top: 0; /* On prend tout l'écran */
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centre les liens verticalement */
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999; /* Sous le burger */
    }
    .nav-links a { font-size: 1.5rem; margin-bottom: 30px; }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    /* CORRECTION LOGO MOBILE */
    .logo { 
        padding-left: 0; 
        font-size: 1rem; 
        width: 100%;
        justify-content: center; /* Centre le texte */
        background-position: center bottom; /* Image en bas du texte si besoin ou masquée */
        background-image: none; /* On cache l'image de fond sur mobile si elle gêne */
        /* Si tu veux garder le logo, il faut ruser, mais souvent le texte suffit sur mobile */
    }
    /* On ajoute une petite icône SVG avant le texte via CSS pour le mobile */
    .logo::before {
        content: '';
        display: inline-block;
        width: 30px;
        height: 30px;
        background: url("/static/logo.svg") no-repeat center center;
        background-size: contain;
        margin-right: 10px;
        vertical-align: middle;
    }
    
    /* CORRECTION HERO & OVERLAP */
    .hero {
        min-height: 50vh;
        padding-top: 120px; /* Plus d'espace en haut */
        padding-bottom: 60px; /* Espace pour ne pas chevaucher */
        align-items: flex-end; /* Pousse le texte vers le bas, ou center */
        background-attachment: scroll; /* Important pour iPhone */
    }
    .hero h1 { font-size: 2rem; line-height: 1.2; }
    
    /* On supprime ou réduit fortement la marge négative sur mobile */
    .overlap-container { 
        margin-top: 0px; /* Fini le chevauchement qui cache le texte ! */
        padding-top: 20px;
    }

    .split-section { flex-direction: column; }
    .intro-card { padding: 30px 20px; }
    
    /* Correction bouton qui déborde */
    .btn-cta {
        width: 100%; /* Prend toute la largeur dispo */
        padding: 15px;
        margin-top: 10px;
    }

    .seo-zone {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    }
}

/* --- ZONE SEO DISCRETE (TECHNIQUE SMART) --- */
.seo-zone {
    font-size: 11px; /* Très petit */
    color: #95a5a6; /* Gris clair */
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #34495e; /* Une petite ligne de séparation pour faire propre */
    opacity: 0.5; /* À moitié transparent */
    line-height: 1.4;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.seo-zone span {
    display: inline-block;
    margin: 0 5px;
}
