/* ========== Styles Généraux ========== */
:root {
    --primary-color: #25a2f0; /* Vert naturel */
    --secondary-color: #25a2f0; /* Vert plus clair */
    --accent-color: #FF9800; /* Orange doux pour les accents */
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #555;
    --heading-font: 'Lora', serif;
    --body-font: 'Open Sans', sans-serif;
    --container-width: 1100px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Défilement doux natif */
    font-size: 16px; /* Base pour rem */
}

body {
    font-family: var(--body-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.5rem; color: var(--primary-color); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--light-color);
}
.bg-dark {
    background-color: var(--dark-color);
    color: var(--light-color);
}
.bg-dark p, .bg-dark a {
    color: var(--light-color);
}
.bg-dark a:hover {
    color: var(--secondary-color);
}

/* ========== Boutons ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: #e68a00; /* Un peu plus foncé au survol */
    color: #fff;
    transform: translateY(-2px);
}


/* ========== Header / Navigation ========== */
#header {
    position: fixed; /* Rendre le header fixe */
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95); /* Fond blanc légèrement transparent */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* Style additionnel quand on scroll */
#header.scrolled {
     background-color: rgba(255, 255, 255, 1); /* Entièrement opaque */
     box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo:hover {
     color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem; /* Espace entre les liens */
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
    padding: 0.5rem 0; /* Ajoute une zone cliquable */
    position: relative;
}

.nav-links a::after { /* Soulignement au survol */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { /* Pour le lien actif */
    width: 100%;
}

/* Burger Menu (pour mobile) */
.burger {
    display: none; /* Caché par défaut */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* ========== Section Accueil (Hero) ========== */
.hero {
    /* Remplace par une belle image de fond naturelle/saine */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/img1.jpg') no-repeat center center/cover;
    height: 100vh; /* Prend toute la hauteur de l'écran */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: var(--header-height); /* Pour ne pas être caché par le header */
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px; /* Limiter la largeur du texte */
    margin-left: auto;
    margin-right: auto;
}

/* ========== Section À Propos ========== */
#a-propos .about-content {
    display: flex;
    flex-wrap: wrap; /* Permet de passer en colonne sur mobile */
    gap: 3rem;
    align-items: center;
}

#a-propos .about-text {
    flex: 1; /* Prend l'espace disponible */
    min-width: 300px; /* Largeur minimale avant de passer en colonne */
}

#a-propos .about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

#a-propos .about-image img {
    max-width: 400px; /* Taille max de l'image */
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* ========== Section Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grille responsive */
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.service-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-services {
    text-align: center;
    margin-top: 2rem;
}

/* ========== Section Contact ========== */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}
.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 25px; /* Alignement */
    text-align: center;
}
.contact-info a {
    word-break: break-word; /* Éviter les débordements d'emails longs */
}

.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.contact-form {
    flex: 1.5; /* Le formulaire prend un peu plus de place */
    min-width: 300px;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical; /* Permet de redimensionner verticalement */
}
.contact-form button {
    width: 100%;
}
.contact-form small {
     display: block;
     margin-top: 1rem;
     color: var(--text-color);
     font-style: italic;
}

/* ========== Footer ========== */
.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer p {
    margin-bottom: 0.5rem;
}

/* ========== Responsive Design (Media Queries) ========== */

/* Tablettes et petits écrans */
@media (max-width: 992px) {
    .container {
        max-width: 90%;
    }
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.1rem; }
}

/* Mobiles */
@media (max-width: 768px) {
    html { font-size: 15px; } /* Légère réduction de la taille de base */
    .section { padding: 3rem 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; margin-bottom: 2rem; }
    .hero { height: auto; min-height: 80vh; padding: 6rem 0 4rem 0; } /* Ajuster hauteur hero */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; }

    /* Navigation Mobile */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%; /* Caché à gauche */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.4s ease-in-out;
        padding-top: 2rem; /* Espace en haut */
    }
    .nav-links.active {
        left: 0; /* Montrer le menu */
    }
    .nav-links a {
        font-size: 1.3rem;
    }
     .nav-links a::after {
        display: none; /* Pas de soulignement sur mobile */
    }

    .burger {
        display: block; /* Afficher le bouton burger */
    }
    .burger.active .fa-bars { display: none; } /* Cacher burger si actif */
    .burger.active .fa-times { display: block !important; } /* Afficher croix si actif */
    .burger .fa-times { display: none; } /* Cacher croix par défaut */


    /* Ajustements Sections */
     #a-propos .about-content,
     .contact-content {
        flex-direction: column; /* Mettre en colonne */
        gap: 2rem;
     }
     #a-propos .about-image {
        order: -1; /* Mettre l'image en premier sur mobile si souhaité */
        margin-bottom: 1rem;
     }
      #a-propos .about-image img {
        max-width: 300px;
    }

     .services-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
        gap: 1.5rem;
     }

     .contact-info { text-align: center;}
     .contact-info p { justify-content: center;}
     .social-links { text-align: center; }
     .social-links a { margin: 0 0.5rem;}

}