/* --- Variables et Reset --- */
:root {
    --primary-color: #0F2942; /* Bleu nuit industriel */
    --accent-color: #2b8af8;  /* Or/Ocre pour l'aspect premium/afrique */
    --light-bg: #F4F6F8;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #081422;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    color: var(--primary-color);
}

.nav a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    /* On remplace l'URL Unsplash par votre fichier local */
    background: linear-gradient(rgba(15, 41, 66, 0.85), rgba(15, 41, 66, 0.75)), 
                url('img/accueil.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optionnel : effet parallaxe élégant */
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* Style pour ajuster la taille de votre nouveau logo */
.logo-img {
    height: 50px; /* Ajustez la hauteur selon votre logo */
    width: auto;
    display: block;
}
/* Style pour ajuster la taille de votre nouveau logo */
.logo-img {
    height: 50px; /* Ajustez la hauteur selon votre logo */
    width: auto;
    display: block;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-content .lead {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-content p {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* --- À propos --- */
.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

/* --- Services (Grille) --- */
.services-bg {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    min-height: 50px; /* Pour aligner les titres */
    display: flex;
    align-items: center;
}

.service-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Aligne les éléments au centre */
    gap: 20px;
}

.service-card {
    flex: 1 1 300px; /* Permet aux cartes de s'adapter (300px min) */
    max-width: 400px; /* Évite qu'elles ne deviennent trop larges */
}
/* --- Contact --- */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 20px;
}

/* Formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.full-width {
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: #0a1c2e; /* Plus foncé que le primary */
    color: #aaaaaa;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.credits {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .nav {
        display: none; /* Menu simplifié pour l'exemple */
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}
.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Menu Mobile --- */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .nav {
        display: none; /* Cache le menu par défaut sur mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        padding: 20px 0;
        text-align: center;
        z-index: 100;
    }

    .nav.active {
        display: block; /* Affiche le menu quand on clique */
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav a {
        color: white !important;
        font-size: 1.2rem;
    }

    /* Le bouton Hamburger */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary-color);
        transition: all 0.3s ease-in-out;
    }
}

/* Cacher le bouton sur ordinateur */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Classes pour l'animation au défilement */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Style du header quand on scrolle */
.header.scrolled {
    padding: 5px 0;
    background-color: rgba(15, 41, 66, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.header.scrolled .logo, .header.scrolled .nav a {
    color: white;
}
const menu = document.querySelector('#mobile-menu');
const menuLinks = document.querySelector('.nav');

menu.addEventListener('click', function() {
    menu.classList.toggle('is-active');
    menuLinks.classList.toggle('active');
});

// Fermer le menu quand on clique sur un lien (pour mobile)
document.querySelectorAll('.nav a').forEach(n => n.addEventListener('click', () => {
    menu.classList.remove('is-active');
    menuLinks.classList.remove('active');
}));