/* =======================
   VARIABLES CSS
======================= */
:root {
    --green: #2F8F3D;
    --brown: #CBAF8C;
    --light: #FAF8F5;
    --wite:  #ffffff;
    --dark: #333;
}

/* =======================
   GLOBAL
======================= */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
}

/* =======================
   HEADER
======================= */
/* --- HEADER GLOBAL --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px; /* Base height */
    padding-inline: 20px; /* Utilisation de padding-inline pour la directionnalité */
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
}

/* --- LOGO À GAUCHE --- */
.logo-link {
    display: flex;
    align-items: center;
    z-index: 1100;
    /* Caché par défaut sur mobile petit écran selon votre code original */
    /* display: none; */
}

.logo {
    height: 45px; /* Base height */
}

/* --- TITRE CENTRÉ --- */
.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light);
    font-weight: bold;
    font-size: 1.2rem; /* Base font size (mobile) */
    white-space: nowrap;
    pointer-events: none; /* Empêche de bloquer les clics sur les éléments derrière */
    z-index: 1000;

    /* Centrage intelligent avec flexbox */
    flex-grow: 1; /* Permet au titre de prendre l'espace restant */
    text-align: center; /* Centre le texte dans l'espace flexible */
    min-width: 0; /* Important: Permet au titre de rétrécir si l'espace est limité */
    overflow: hidden; /* Cache le texte s'il déborde */
    text-overflow: ellipsis; /* Ajoute des points de suspension si ça déborde */
}

/* --- BURGER TOGGLE --- */
.menu-toggle {
    display: block; /* Visible par défaut sur mobile/tablette */
    font-size: 1.8rem;
    color: var(--light);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

/* =======================================================================
   NAVIGATION (Menu Burger) - Mobile First
   Stylisation unique pour le menu vertical (par défaut)
   ======================================================================= */
nav {
    position: fixed;
    top: 70px; /* Sous le header */
    right: 20px;
    width: fit-content;
    min-width: 180px;
    max-width: 260px;
    padding: 10px 15px; /* Ajout d'un padding global au nav */
    display: flex;
    flex-direction: column;

    /* Styles d'animation et transparence */
    opacity: 0;
    transform: translateX(20px); /* Légère translation */
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Inactif si non visible */
    background-color: rgba(203, 175, 140, 0.25); /* Utilisation de RGBA direct */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.20);
}

/* Menu visible via JS (classe active) */
nav.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* --- UL et LI (Styles de base) --- */
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column; /* Vertical par défaut */
    gap: 5px; /* Espace entre les liens */
    align-items: flex-start;
    width: 100%; /* S'assure que la liste prend toute la largeur du nav */
}

/* --- Animation des LI (optionnel, basé sur votre code) --- */
nav ul li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%; /* Pour que le hover prenne toute la largeur */
}

nav.active ul li {
    opacity: 1;
    transform: translateX(0);
}

/* --- LI Links --- */
nav ul li a {
    color: var(--light);
    font-weight: bold;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-radius: 10px;
    transition: background 0.3s ease, opacity 0.3s ease;
    width: 100%; /* Pour que le lien remplisse le LI */
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* =======================================================================
   MEDIA QUERIES (Écrans plus larges)
   ======================================================================= */

/* --- ÉCRAN LARGE (>= 1280px) --- */
@media (min-width: 1280px) {
    header {
        height: 90px;
        padding-inline: 60px;
    }

    .logo {
        height: 50px;
    }

    .site-title {
        font-size: 2rem;
        /* Attention: le titre centré avec absolute/transform peut chevaucher le logo/menu sur grand écran s'ils ont de grands padding */
        padding-inline: 40px;
    }

    /* Passer en navigation "Desktop" (inline) */
    .menu-toggle {
        display: none; /* Cacher le burger */
    }

    nav {
        /* Annuler tous les styles du menu burger */
        position: static;
        width: auto;
        min-width: auto;
        max-width: none;
        padding: 0;
        background: none;
        box-shadow: none;
        opacity: 1;
        transform: none !important; /* Important pour écraser les styles JS/Active */
        pointer-events: auto;
        right: auto; /* Supprimer la contrainte right: 20px */
    }

    nav ul {
        flex-direction: row; /* Horizontal */
        gap: 40px; /* Espace entre les liens */
        align-items: center;
    }

    nav ul li,
    nav.active ul li {
        opacity: 1 !important; /* Rendre visible */
        transform: none !important; /* Annuler la translation */
        width: auto; /* Revenir à la largeur normale */
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 0; /* Pas de padding spécifique, juste le gap */
        border-radius: 0;
    }

    nav ul li a:hover {
        background-color: transparent; /* Pas de fond survol sur desktop */
        /* Ajouter un style de survol différent ici (ex: border-bottom) */
    }
}

/* =======================
   SECTIONS PLEIN ÉCRAN
======================= */
.section {
    /* CORRECTION CRITIQUE : min-height au lieu de height */
    /* Cela permet à la section de s'agrandir si le texte est plus long que l'écran */
    min-height: 100vh; 
    min-height: 100dvh; 
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    
    padding: 80px 15px; /* Ajout de padding haut/bas pour que le texte ne touche jamais les bords verticaux */
    box-sizing: border-box;
}

/* Hero Slider Container */
.hero {
    overflow: hidden;
    color: var(--light);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    /* CORRECTION : Empêche le débordement horizontal des longs mots */
    overflow-wrap: break-word; 
    word-wrap: break-word;
}

.hero-content h1 {
    font-size: 1 rem;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Slider Images (Reste inchangé) */
.hero-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; /* Assure que c'est bien derrière */
}

.hero-slider .slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Style du bouton */
.btn {
    background-color: var(--green); /* Le fond vert */
    color: var(--wite);             /* Texte en blanc */
    padding: 12px 25px;             /* Espace intérieur (Haut/Bas Gauche/Droite) */
    text-decoration: none;          /* Enlève le soulignement du lien */
    border-radius: 5px;             /* Coins arrondis */
    font-weight: bold;              /* Texte en gras */
    display: inline-block;          /* Important pour que le padding fonctionne bien */
    transition: background 0.3s ease, transform 0.2s; /* Animation douce */
    border: 1px solid var(--green); /* Bordure propre */
    border-radius: 30px
}

/* Effet au survol de la souris */
.btn:hover {
    background-color: white;        /* Le fond devient blanc */
    color: var(--green);            /* Le texte devient vert */
    border: 1px solid var(--green); /* On garde la bordure verte */
    transform: translateY(-2px);    /* Le bouton remonte légèrement */
}

.hero-slider .slide.active {
    opacity: 1;
}

/* =========================================================
   TABLETTE & GRAND MOBILE (Min-width: 481px)
   ========================================================= */
@media (min-width: 481px) {
    .section {
        padding: 0 30px; /* Plus de marge sur les côtés */
    }

    .hero-content h1 {
        font-size: 1.6rem; /* Le titre grossit */
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.1rem;
        max-width: 80%; /* On limite la largeur du paragraphe pour la lecture */
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================================================
   ORDINATEUR / LAPTOP (Min-width: 768px)
   ========================================================= */
@media (min-width: 768px) {
    .hero-content {
        max-width: 800px; /* On contraint la largeur du bloc */
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Grand titre impactant */
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* =========================================================
   GRAND ÉCRAN (Min-width: 1280px)
   ========================================================= */
@media (min-width: 1280px) {
    .hero-content {
        max-width: 1000px; /* On laisse plus d'espace */
    }

    .hero-content h1 {
        font-size: 1.5 rem; /* Très grand titre */
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 1.4rem;
        max-width: 700px; /* On garde le texte compact au centre */
    }
}

/* =======================
   ABOUT-US
======================= */
.about-us {
    background-color: var(--wite);
    color: var(--dark);
    padding: 60px 20px; /* Padding confortable */
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    /* CORRECTION : Si le contenu dépasse, on le cache proprement (sécurité) */
    overflow: hidden; 
}

.container {
    width: 100%;
    margin: 0 auto; /* Centre le bloc */
    max-width: 100%;
}

.about-us h2 {
    font-size: 1.8rem; 
    color: var(--green);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.2;
    /* Sécurité mot long */
    overflow-wrap: break-word;
}

.about-us h3 {
    font-size: 1.4rem; 
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--green);
    font-weight: 600;
}

.about-us p {
    font-size: 1rem; 
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
    /* CORRECTION : Indispensable pour éviter le débordement horizontal sur mobile */
    overflow-wrap: break-word; 
    hyphens: auto; /* Coupe les mots avec un tiret si nécessaire */
}

.about-us strong {
    color: var(--dark);
    font-weight: 700;
}

.about-us-image {
    margin-top: 30px;
    width: 100%;
    text-align: center;
}

.about-us-image img {
    max-width: 100%; /* L'image ne dépassera jamais la largeur de l'écran */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================================================
   TABLETTE & GRAND MOBILE (Min-width: 481px)
   ========================================================= */
@media (min-width: 481px) {
    /* Hero */
    .section {
        padding: 80px 30px; 
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    .hero-content p {
        font-size: 1.1rem;
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    /* About Us */
    .about-us {
        padding: 60px 30px;
    }
    .about-us h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    .about-us h3 {
        font-size: 1.6rem;
    }
    .about-us p {
        font-size: 1.05rem;
    }
}

/* =========================================================
   ORDINATEUR / LAPTOP (Min-width: 768px)
   ========================================================= */
@media (min-width: 768px) {
    /* Hero */
    .hero-content {
        max-width: 800px;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    /* About Us */
    .container {
        max-width: 700px;
    }
    .about-us p {
        font-size: 1.1rem;
        line-height: 1.7;
        text-align: justify; 
    }
}

/* =========================================================
   GRAND ÉCRAN (Min-width: 1280px)
   ========================================================= */
@media (min-width: 1280px) {
    /* Hero */
    .hero-content {
        max-width: 1000px;
    }
    .hero-content h1 {
        /* CORRECTION TYPO : c'était '2 rem', corrigé en '4.5rem' pour être logique */
        font-size: 4.5rem; 
        letter-spacing: 2px;
    }
    .hero-content p {
        font-size: 1.4rem;
        max-width: 700px;
    }

    /* About Us */
    .about-us {
        padding: 80px 0; 
    }
    .container {
        max-width: 900px; 
    }
    .about-us h2 {
        font-size: 2.8rem;
    }
    .about-us h3 {
        font-size: 2rem;
        margin-top: 50px;
    }
    .about-us p {
        font-size: 1.15rem;
    }
}

/* =======================
   Section "Ils nous font confiance" pleine page
======================= */
.trusted-section {
    background: var(--light);
    min-height: 100vh; /* remplace height fixe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.trusted-section h2 {
    color: var(--green);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.trusted-section .trusted-intro {
    color: var(--dark);
    font-size: 1.2rem;
    margin: 0 auto 40px auto;
    max-width: 800px;
    text-align: center;
}

/* Grille des logos */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* ajustable */
    align-items: center;
    justify-items: center;
    width: 100%;
    max-width: 1200px;
} 

.logo-item {
    background: var(--wite);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- MEDIA QUERY PETITS MOBILES <481px --- */
@media (max-width: 480px) {
    .trusted-section h2 {
        font-size: 1.8rem;
    }
    .trusted-section .trusted-intro {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .logo-item img {
        max-height: 40px;
    }
}

/* --- MEDIA QUERY 481px – 767px --- */
@media (min-width: 481px) and (max-width: 767px) {
    .trusted-section h2 {
        font-size: 2rem;
    }
    .trusted-section .trusted-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 30px;
    }
    .logo-item img {
        max-height: 50px;
    }
}

/* --- MEDIA QUERY 768px – 1279px --- */
@media (min-width: 768px) and (max-width: 1279px) {
    .trusted-section h2 {
        font-size: 2.2rem;
    }
    .trusted-section .trusted-intro {
        font-size: 1.15rem;
        margin-bottom: 35px;
    }
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 40px;
    }
    .logo-item img {
        max-height: 60px;
    }
}

/* --- MEDIA QUERY 1280px+ --- */
@media (min-width: 1280px) {
    .trusted-section h2 {
        font-size: 2.5rem;
    }
    .trusted-section .trusted-intro {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    .logo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 50px;
    }
    .logo-item img {
        max-height: 60px;
    }
}
/* =======================
   Section Services
======================= */
.services {
    background: var(--wite);
    height: 100vh;
    padding: 80px 20px;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 15px;
}

.services-intro {
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--wite);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--green);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.5;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Responsive petits écrans */
@media (max-width: 768px) {
    .services {
        padding: 60px 15px;
    }

    .services h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 25px 15px;
    }
}


/* =======================
   PRODUCTS SECTION
======================= */
.products {
    background-color: var(--light);
    padding: 40px 15px; /* Padding réduit sur mobile */
    text-align: center;
    overflow: hidden;
}

.products h2 {
    font-size: 1.8rem; /* Titre pas trop gros sur petit écran */
    color: var(--green);
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Carousel Container */
.carousel {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Transition plus fluide */
    gap: 0; 
}

/* --- CARTE PRODUIT (Structure) --- */
.product-card {
    /* 1 produit par vue sur mobile */
    flex: 0 0 100%; 
    box-sizing: border-box;
    padding: 10px; /* Espace entre les slides réduit sur mobile */
}
.card-content {
    background: var(--wite); /* Correction typo: var(--white) ? */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Ombre plus douce */
    padding: 20px 15px;
    height: 100%; 
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Interaction tactile : on évite le hover complexe sur mobile */
.product-card:active .card-content {
    transform: scale(0.98);
}
.product-card img {
    width: 100%;
    max-width: 240px; /* Image contenue */
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    display: block;
}
.product-card h3 {
    color: var(--green);
    font-size: 1.2rem; /* Titre carte lisible */
    margin: 10px 0 10px;
    /* Astuce : min-height évite le saut si un titre fait 1 ligne et l'autre 2 */
    min-height: 2.8rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.product-card p {
    margin: 0 0 15px;
    line-height: 1.4;
    font-size: 0.9rem;
    color: var(--dark);
    flex-grow: 1; 
}
.product-card ul {
    text-align: left;
    padding-left: 15px;
    font-size: 0.85rem;
    color: var(--dark);
    margin-top: auto; 
}
.product-card ul li {
    margin-bottom: 5px;
}
/* =======================
   1. BREAKPOINT 481px (Grand Mobile / Paysage)
   On garde 1 carte, mais on l'élargit et on aère le texte
======================= */
@media (min-width: 481px) {
    .products {
        padding: 50px 20px;
    }

    .products h2 {
        font-size: 2.2rem; /* Le titre principal grossit */
    }

    .product-card {
        padding: 15px; /* On remet un espacement standard */
    }

    /* Optionnel : Si vous voulez 2 cartes dès 481px, décommentez ci-dessous.
       Mais attention, ça fait des cartes très étroites (~220px). 
       Je recommande de rester à 100% jusqu'à 600px+ ou 768px. */
    /* .product-card {
        flex: 0 0 50%;
    } 
    */

    .product-card img {
        max-width: 280px; /* L'image peut prendre sa taille max */
    }

    .product-card h3 {
        font-size: 1.3rem;
    }
}


/* =======================
   2. BREAKPOINT 768px (Tablette)
   Passage à 2 colonnes
======================= */
@media (min-width: 768px) {
    .products h2 { 
        font-size: 2.8rem; 
        margin-bottom: 50px;
    }
    
    /* On passe à 2 produits */
    .product-card {
        flex: 0 0 50%; 
    }

    /* On active les effets de survol (souris) */
    .product-card:hover .card-content {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }
    
    .card-content {
        padding: 30px 20px; /* Plus d'espace interne */
    }

    .product-card h3 {
        font-size: 1.4rem;
        min-height: 3.2rem; /* Ajustement hauteur ligne */
    }

    .product-card p {
        font-size: 1rem;
    }
    
    .product-card ul {
        font-size: 0.95rem;
    }
}


/* =======================
   3. BREAKPOINT 1280px (Desktop)
   Passage à 3 colonnes
======================= */
@media (min-width: 1280px) {
    .products {
        padding: 80px 20px;
    }

    .products h2 { 
        font-size: 3.5rem; /* Titre impactant */
    }

    /* On passe à 3 produits */
    .product-card {
        flex: 0 0 33.3333%; 
    }

    .card-content {
        padding: 35px 25px;
    }
}
/* =======================
   Section Testimonials
======================= */
.testimonials {
    background: var(--wite);
    height: 100vh;
    padding: 80px 20px;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    color: var(--green);
    margin-bottom: 15px;
}

.testimonials-intro {
    font-size: 1.1rem;
    color: var(--dark);
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 10px;
}

.testimonial {
    background: var(--wite);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    flex: 0 0 300px;
    scroll-snap-align: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.testimonial p {
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.testimonial h4 {
    font-size: 1.2rem;
    color: var(--green);
    margin-bottom: 5px;
}

.testimonial span {
    font-size: 0.9rem;
    color: var(--brown);
}

/* Masquer la barre de scroll pour plus de style */
.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive petits écrans */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 15px;
    }

    .testimonials h2 {
        font-size: 2rem;
    }

    .testimonial {
        flex: 0 0 80%;
        padding: 25px 15px;
    }
}

/* =======================
   CONTAINER & GRID
======================= */
/* Container général */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bloc contact avec grille */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: var(--wite);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    align-items: start;
}

.info-text h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.info-text p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--dark);
}

.info-text a {
    color: var(--green);
    text-decoration: none;
}

.info-text a:hover {
    text-decoration: underline;
}

/* Mettre en valeur l'adresse avec style spécifique */
.highlight-address {
    display: inline-block;
    background-color: var(--light);
    padding: 6px 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.highlight-address:hover {
    background-color: var(--light);
    color: var(--green);
}

/* Style pour la carte Google Maps */
.map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 10px;
}

/* Responsive : passer en une seule colonne sur mobile */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}
/* =======================
   FAQ
======================= */
.faq {
    min-height: 100vh; 
    padding: 60px 20px;
    background-color: var(--light);
}

.faq .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--green);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light);
}

.faq-question {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    text-align: left;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--dark);
    transition: background 0.3s;
}

.faq-question:hover {
    background-color: var(--light);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 15px;
    color: var(--brown);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 10px 15px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* --- MEDIA QUERY PETITS MOBILES <481px --- */
@media (max-width: 480px) {
    .faq h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    .faq-question {
        font-size: 1rem;
        padding: 12px;
    }
    .faq-answer {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
}

/* --- MEDIA QUERY 481px – 767px --- */
@media (min-width: 481px) and (max-width: 767px) {
    .faq h2 {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    .faq-question {
        font-size: 1.05rem;
        padding: 13px;
    }
    .faq-answer {
        padding: 8px 13px;
        font-size: 1rem;
    }
}

/* --- MEDIA QUERY 768px – 1279px --- */
@media (min-width: 768px) and (max-width: 1279px) {
    .faq h2 {
        font-size: 1.9rem;
        margin-bottom: 35px;
    }
    .faq-question {
        font-size: 1.1rem;
        padding: 14px;
    }
    .faq-answer {
        padding: 9px 14px;
        font-size: 1.05rem;
    }
}

/* --- MEDIA QUERY 1280px+ --- */
@media (min-width: 1280px) {
    .faq h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    .faq-answer {
        padding: 10px 15px;
        font-size: 1.1rem;
    }
}

/* =======================
   FORMULAIRE CONTACT
======================= */
#contact {
    background-color: var(--wite); 
    padding: 40px 20px; /* Padding réduit sur mobile */
    text-align: center;
}

#contact h2 {
    color: var(--green);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.intro-text {
    margin-bottom: 30px;
    color: var(--dark);
    font-size: 1rem;
}

/* Conteneur Flex pour le Formulaire et les Infos */
.contact-wrapper {
    display: flex;
    flex-direction: column; /* Empilé verticalement sur mobile */
    gap: 40px;
    margin-top: 20px;
}
/* --- FORMULAIRE --- */
#contact {
    background-color: var(--wite); 
    padding: 40px 20px;
    text-align: center;
}

#contact h2 {
    color: var(--green);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.intro-text {
    margin-bottom: 30px;
    color: var(--dark);
    font-size: 1rem;
}

/* Conteneur Flex pour Formulaire + Infos */
.contact-wrapper {
    display: flex;
    flex-direction: column; /* mobile par défaut */
    gap: 40px;
    margin-top: 20px;
}

/* --- FORMULAIRE --- */
#contactForm {
    background-color: var(--wite);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background: var(--wite);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 5px rgba(47, 143, 61, 0.3);
}

button {
    padding: 12px;
    border: none;
    background: var(--green);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--green);
}

/* --- INFOS CONTACT --- */
.contact-info {
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-text h3 {
    color: var(--green);
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-align: center;
}

.info-text p {
    margin-bottom: 10px;
    color: var(--dark);
    text-align: center;
}

.contact-info a {
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--green);
    text-decoration: underline;
}

/* --- CARTE --- */
.map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    margin-top: 20px;
}

/* --- MEDIA QUERY PETITS MOBILES --- */
@media (max-width: 480px) {
    #contact h2 { font-size: 1.5rem; }
    #contactForm { padding: 20px; }
    .map { height: 250px; }
}

/* --- MEDIA QUERY TABLETTES --- */
@media (min-width: 481px) and (max-width: 767px) {
    .contact-wrapper {
        flex-direction: column;
    }
    #contactForm { padding: 25px; }
    .map { height: 300px; }
}

/* --- MEDIA QUERY DESKTOP 768px à 1279px --- */
@media (min-width: 768px) and (max-width: 1279px) {
    .contact-wrapper {
        flex-direction: row;
        gap: 30px;
        align-items: flex-start;
    }
    #contactForm {
        flex: 2;
        padding: 30px;
    }
    .contact-info {
        flex: 1;
        padding-left: 20px;
    }
    .map { height: 400px; }
}

/* --- MEDIA QUERY GRAND DESKTOP 1280px et + --- */
@media (min-width: 1280px) {
    .contact-wrapper {
        flex-direction: row;
        gap: 50px;
        align-items: flex-start;
    }
    #contactForm { flex: 3; padding: 40px; }
    .contact-info { flex: 1.2; padding-left: 30px; }
    .map { height: 500px; }
}



/* =========================================================
   TABLETTE & GRAND MOBILE (Min-width: 481px)
   ========================================================= */
@media (min-width: 481px) {
    #contact {
        padding: 60px 30px;
    }

    #contact h2 {
        font-size: 2.2rem;
    }

    /* On commence à aligner le texte à gauche pour les infos */
    .info-text h3, 
    .info-text p {
        text-align: left;
    }
}


/* =========================================================
   ORDINATEUR / LAPTOP (Min-width: 768px)
   ========================================================= */
@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row; /* Passage à l'horizontale */
        align-items: flex-start; /* Aligné en haut */
        justify-content: center;
        gap: 30px;
    }

    /* Répartition de l'espace : 50% chacun environ */
    #contactForm {
        flex: 1;
        max-width: 500px; /* On évite qu'il devienne trop large */
    }

    .contact-info {
        flex: 1;
        max-width: 500px;
    }
    
    /* La carte s'agrandit un peu en hauteur */
    .map {
        height: 300px; 
    }
}


/* =========================================================
   GRAND ÉCRAN (Min-width: 1280px)
   ========================================================= */
@media (min-width: 1280px) {
    #contact {
        padding: 80px 20px;
    }

    #contact h2 {
        font-size: 2.8rem;
        margin-bottom: 30px;
    }

    .contact-wrapper {
        gap: 60px; /* Plus d'espace entre le formulaire et la carte */
        max-width: 1200px; /* Largeur max du contenu */
        margin-left: auto;
        margin-right: auto;
    }
    
    input, textarea {
        padding: 15px; /* Champs un peu plus grands */
    }
}

/* =======================
   FOOTER
======================= */
footer {
    background: var(--brown);
    color: var(--dark);
    padding: 40px 20px 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    gap: 30px;
}

.footer-about, .footer-nav, .footer-contact {
    flex: 1 1 250px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 10px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--dark);
    text-decoration: none;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

.footer-contact .social a {
    margin-right: 10px;
    display: inline-block;
}

.footer-contact .social img {
    height: 24px;
    width: 24px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 10px;
}

/* --- MEDIA QUERY PETITS MOBILES <481px --- */
@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-about, .footer-nav, .footer-contact {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    .footer-nav ul li {
        margin-bottom: 8px;
    }
    .footer-contact .social a {
        margin-right: 8px;
    }
}

/* --- MEDIA QUERY 481px – 767px --- */
@media (min-width: 481px) and (max-width: 767px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-about, .footer-nav, .footer-contact {
        flex: 1 1 100%;
        margin-bottom: 25px;
    }
}

/* --- MEDIA QUERY 768px – 1279px --- */
@media (min-width: 768px) and (max-width: 1279px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-about {
        flex: 2;
    }
    .footer-nav, .footer-contact {
        flex: 1;
    }
}

/* --- MEDIA QUERY 1280px+ --- */
@media (min-width: 1280px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-about {
        flex: 2.5;
    }
    .footer-nav, .footer-contact {
        flex: 1.2;
    }
}
