/* --- Reset & Variables --- */
:root {
    --primary: #0066cc;
    --secondary: #0055aa;
    --accent: #00ccee;
    --dark: #1a1a1a;
    --light: #f4f7f6;
    --white: #ffffff;
    --text-gray: #666;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; scroll-margin-top: 100px; } 
.bg-light { background-color: var(--light); }
.bg-dark { background-color: var(--primary); color: white; }

/* --- Reveal Animation --- */
.reveal {
    position: relative;
    transform: translateY(60px);
    opacity: 0;
    transition: all 0.8s ease-out;
}
.reveal.active { transform: translateY(0); opacity: 1; }

/* --- Header --- */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 100px; 
    display: flex;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; width: 100%; }
.logo { display: flex; align-items: center; }
.logo img { height: 80px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-weight: 500; color: var(--dark); transition: 0.3s; font-size: 1rem; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { background: var(--accent); color: var(--white) !important; padding: 10px 25px; border-radius: 50px; font-weight: 600; }
.btn-nav:hover { background: var(--secondary); }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--primary); margin: 5px; transition: all 0.3s ease; }

/* --- Hero --- */
.hero {
    height: 100vh;
    background: url('https://images.cdn-files-a.com/ready_uploads/media/3601210/2000_5e2959130994c.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 100px;
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(0, 102, 204, 0.6), rgba(0, 85, 170, 0.4)); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; width: 100%; }
.hero-content h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 20px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.95; }
.btn-main { padding: 12px 30px; border-radius: 5px; font-weight: 600; transition: 0.3s; background: var(--accent); color: var(--white); display: inline-block; }
.btn-main:hover { background: var(--secondary); transform: translateY(-2px); }

/* --- ELEMENTS GLOBAUX (Titres) --- */
/* Défini ici pour être écrasé si besoin */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); }
.separator { width: 60px; height: 4px; background: var(--accent); margin: 15px auto; }

/* --- About Section (Correction PC) --- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0px var(--light);
    object-fit: cover;
}

/* CORRECTION ALIGNEMENT TITRE À PROPOS */
.about-text .section-header {
    text-align: left !important; /* Force l'alignement gauche sur PC */
    margin-bottom: 20px;
}
.about-text .separator-left {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0; /* Pas de marge auto pour rester à gauche */
    margin-bottom: 20px;
}

.about-text h5 { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.about-text h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary); }
.about-text p { margin-bottom: 15px; color: var(--text-gray); }
.stats-grid { display: flex; gap: 30px; margin-top: 30px; }
.stat-item h3 { font-size: 2rem; color: var(--primary); }

/* --- Services & Grids --- */
.services-grid, .team-grid, .testimonials-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}
.service-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; height: 100%; }
.service-card:hover { transform: translateY(-10px); }
.card-img { height: 180px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .card-img img { transform: scale(1.1); }
.card-content { padding: 30px 20px; text-align: center; }
.icon-circle { width: 60px; height: 60px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: -60px auto 15px; position: relative; border: 4px solid var(--white); }
.card-content h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); }

/* --- Partenaires & Clients --- */
.partners-grid, .clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; }
.partner-logo, .client-item { width: 180px; height: 100px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); padding: 10px; border: 1px solid #f0f0f0; transition: 0.3s; overflow: hidden; }
.partner-logo img, .client-item img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.8; transition: 0.4s; }
.partner-logo:hover, .client-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.partner-logo:hover img, .client-item:hover img { filter: grayscale(0%); opacity: 1; }

/* --- Team --- */
.team-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.img-box { height: 250px; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.team-card:hover .img-box img { transform: scale(1.1); }
.team-info { padding: 20px; }
.team-info h3 { color: var(--primary); }
.team-info .role { color: var(--accent); }

/* --- TÉMOIGNAGES --- */
.testimonial-card { background: rgba(255,255,255,0.1); padding: 30px; border-radius: 10px; border-left: 5px solid var(--accent); color: white; backdrop-filter: blur(5px); }
.quote-icon { font-size: 2rem; color: var(--accent); margin-bottom: 15px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.7; opacity: 0.9; }

/* --- Galerie --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.gallery-item { height: 250px; overflow: hidden; border-radius: 5px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* --- Contact & Footer --- */
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.contact-left-col { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 30px; }
.info-line { display: flex; align-items: flex-start; margin-bottom: 20px; }
.info-line i { font-size: 1.4rem; color: var(--accent); margin-right: 15px; width: 25px; text-align: center; margin-top: 5px; }
.info-line a { color: inherit; text-decoration: none; transition: 0.3s; }
.info-line a:hover { color: var(--accent); }
.whatsapp-link { color: #25D366 !important; margin-left: 10px; font-size: 1.3rem; vertical-align: middle; }
.whatsapp-link:hover { transform: scale(1.1); display: inline-block; }
.map-container, .form-container { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.form-container { flex: 1.5; min-width: 300px; }
iframe { width: 100%; display: block; }
footer { background: #002244; color: #aaa; padding: 30px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.social-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 10px; }
.social-links a { color: white; font-size: 1.5rem; transition: 0.3s; background: rgba(255,255,255,0.1); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-links a:hover { background: var(--accent); color: white; transform: translateY(-3px); }

/* ========================================= */
/* MOBILE RESPONSIVE                         */
/* ========================================= */
@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 100px; 
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%; 
        transform: translateX(100%); 
        transition: transform 0.3s ease-in;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding-top: 50px;
    }
    .nav-links li { opacity: 0; margin-bottom: 30px; }
    .nav-links.nav-active { transform: translateX(0%); }
    .nav-active li { opacity: 1; transition: opacity 0.5s ease 0.2s; }

    .burger { display: block; }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero { margin-top: 0; }
    .hero-content h1 { font-size: 2.2rem; }
    
    /* Correction About sur Mobile */
    .about-wrapper, .contact-wrapper {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .contact-left-col, .form-container, .about-img, .about-text { width: 100%; }
    .about-img { display: block; margin-bottom: 20px; }
    
    /* On force le centrage UNIQUEMENT sur mobile */
    .about-text .section-header { text-align: center !important; }
    .about-text .separator-left { margin: 0 auto 20px auto; }
}