* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    /* IMPORTANT : Maintient le scrolling vertical et cache le débordement horizontal */
    overflow-x: hidden; 
    background-color: #f9fbfc;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------------------------------------------- */
/* Header */
/* ---------------------------------------------------- */
header {
    background: linear-gradient(135deg, #A7D9ED 0%, #76A6BF 100%); 
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    transition: background 0.4s ease, padding 0.4s ease; 
}

/* Changement au défilement */
header.scrolled-header {
    background: #354859; 
    padding: 10px 0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header.scrolled-header .nav-links a {
    color: white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white; 
    display: flex;
    align-items: center;
    /* IMPORTANT : Ajout d'une limite de taille relative */
    max-width: 80%; 
}

.header-logo {
    height: 40px; 
    width: auto;
    vertical-align: middle;
    /* CRUCIAL pour que l'image ne déborde pas */
    max-width: 100%; 
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #f97316; 
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f97316;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------------------------------------------------- */
/* Menu Hamburger (Bureau) */
/* ---------------------------------------------------- */

/* Masque le bouton hamburger par défaut sur les grands écrans */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    /* Assure la bonne position dans le header */
    z-index: 1001; 
}

/* ---------------------------------------------------- */
/* Hero Section */
/* ---------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #A7D9ED 0%, #76A6BF 100%);
    color: white;
    /* Augmente le padding top pour compenser le header fixé */
    padding: 150px 0 100px; 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: #f97316;    
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid white;
    animation: slideInUp 1s ease-out 0.4s both;
}
.cta-button:hover {
    background: white;
    color: #f97316;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Styles pour le Logo dans la section HERO --- */
.hero-logo-img {
    /* Laisse le navigateur choisir la largeur, mais ne dépasse jamais sa taille originale */
    max-width: 100%; 
    
    /* Assure que l'image est proportionnelle */
    height: auto; 
    
    /* Hauteur maximale pour les grands écrans (environ la taille que vous vouliez) */
    max-height: 400px; 
    
    margin-bottom: 20px;
    
    /* S'assurer que le logo est centré dans le flex ou le bloc parent */
    display: block; 
    margin-left: auto;
    margin-right: auto;
}

/* ---------------------------------------------------- */
/* Sections */
/* ---------------------------------------------------- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f97316 0%, #354859 100%);
    border-radius: 2px;
}

/* ---------------------------------------------------- */
/* Services Grid */
/* ---------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f97316 0%, #354859 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f97316;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ---------------------------------------------------- */
/* About Section */
/* ---------------------------------------------------- */
.about {
    background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f97316;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* ---------------------------------------------------- */
/* Testimonials Section */
/* ---------------------------------------------------- */
.testimonials {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.testimonial-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.testimonial-item::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: #f97316;
    opacity: 0.3;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    color: #333;
    display: block;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.add-testimonial {
    text-align: center;
}

.add-testimonial-btn {
    background: linear-gradient(135deg, #f97316 0%, #354859 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.add-testimonial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.testimonial-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
    display: none;
}

.testimonial-form.active {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

/* ---------------------------------------------------- */
/* Contact Section */
/* ---------------------------------------------------- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #354859; 
}

.submit-btn {
    background: linear-gradient(135deg, #f97316 0%, #354859 100%); 
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
        
/* ---------------------------------------------------- */
/* Footer */
/* ---------------------------------------------------- */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #f97316;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #f97316;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    color: #999;
}

/* --- Styles pour les liens sociaux dans le pied de page --- */
.social-links a {
    color: white; /* ou la couleur de votre texte de footer */
    font-size: 24px; /* Taille de l'icône */
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3b5998; /* Couleur de la marque Facebook au survol */
}

/* ---------------------------------------------------- */
/* Responsive */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    
    /* 1. Afficher le bouton menu et masquer les liens normaux */
    .menu-toggle {
        display: block; /* Le bouton hamburger apparaît */
    }

        .nav-links {
        display: none; 
        /* ... autres styles pour le cacher (ex: position, transformation) */
    }

    /* Affiche les liens quand la classe 'active' est ajoutée par JS */
    .nav-links.active {
        display: flex; /* ou block, selon votre mise en page souhaitée */
        flex-direction: column; 
        /* Positionne le menu en plein écran ou juste sous le header */
        position: absolute; 
        top: 60px; /* Ajustez cette valeur à la hauteur de votre header */
        left: 0;
        width: 100%;
        background-color: #1f2937; /* Couleur de fond pour le menu ouvert */
        z-index: 999;
        /* ... assurez-vous que les liens sont empilés verticalement ... */
    }
    
    /* Le bouton hamburger doit être visible sur mobile */
    .menu-toggle {
        display: block; 
    }

    /* 2. S'assurer que le header maintient un espacement logique */
    header .container {
        /* Garde le logo et l'icône de menu bien espacés */
        justify-content: space-between;
        /* Empêche les éléments de s'enrouler si la place est très limitée */
        flex-wrap: nowrap; 
    }
    
    /* 3. Ajustements de contenu (OK) */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
	
	.hero-logo-img {
    /* Réduire la taille maximale sur mobile pour qu'il ne prenne pas tout l'écran */
        max-height: 250px; 
        
        /* Assure que l'image ne dépasse pas la largeur du conteneur parent */
        width: 80%; 
    }
}

/* ---------------------------------------------------- */
/* Animations */
/* ---------------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}