  /* * ============================================================
 * © 2026 Entretien Parcs et Jardins Valentin
 * Design et Code réalisés par Conte Yoann
 * Tous droits de reproduction réservés.
 * ============================================================
 */
  /* --- NOUVELLE PALETTE DE COULEURS --- */
html {
    scroll-behavior: smooth;
}
a{
    text-decoration: none;
    color: inherit;        /* Prend la même couleur que le texte du span */
    transition: transform 0.3s ease;
    cursor: pointer;
    display: inline-block;
}
a:hover{
    transform: scale(1.1);
}
a:visited {
    color: inherit;
}

  :root {
            --primary-green: #2E5D32; /* Vert forêt profond */
            --earth-brown: #8D6E63;   /* Marron terre chaud */
            --light-beige: #F7F7F2;   /* Fond doux */
            --text-dark: #333;
            --white: #ffffff;
        }

        body {
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 0;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--light-beige);
        }
/* --- CORRECTIF POUR LES PHOTOS  --- */
        img {
            max-width: 100%;
            display: block;
        }

        /* Force l'image à rester DANS le cadre gris */
        /* Placeholder pour images avant/après */
       
        /* --- EN-TETE AVEC LOGO --- */
        header {
            background-color: var(--white);
            padding: 1rem 0;
            text-align: center;
            border-bottom: 0px solid var(--primary-green);
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .logo-placeholder {
            width: 150px;
            height: 150px;
            background-color: #ddd;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
            border: 2px solid var(--primary-green);
            color: #666;
            font-weight: bold;
        }

        header h1 { margin: 0; font-size: 2rem; color: var(--primary-green); }
        header p { margin: 5px 0 0; color: var(--earth-brown); font-weight: 500; }

        /* --- NAVIGATION --- */
        nav {
            background-color: var(--primary-green);
            padding: 15px;
            text-align: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        nav a {
            color: var(--light-beige);
            text-decoration: none;
            margin: 0 20px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: color 0.3s;
        }
        nav a:hover { color: var(--earth-brown); }

        /* --- BANNIERE HERO --- */
        .hero {
            background-color: var(--white);
            padding: 50px 20px;
            text-align: center;
            background-image: linear-gradient(to bottom, #ffffff, var(--light-beige));
        }
        .hero h1 { color: var(--primary-green); font-size: 2.2rem; }
     .badge-impot {
    /* Le style du bouton (Marron) */
    background-color: var(--earth-brown);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* LA CORRECTION (On force le blanc et on enlève le trait) */
    color: white !important;           /* Force la couleur blanche */
    text-decoration: none !important;  /* Force la suppression du soulignement */
    
    /* L'animation */
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}

/* Au survol de la souris */
.badge-impot:hover {
    background-color: #6d4c41; /* Marron un peu plus foncé */
    color: white !important;   /* On garde le blanc même au survol */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
        /* --- SECTIONS GÉNÉRALES --- */
        .container {
            max-width: 1100px;
            margin: 30px auto;
            padding: 0 20px;
        }

        section {
            padding: 30px;
            background: var(--white);
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            border-top: 4px solid var(--earth-brown);
        }

       h1, h2 { 
            color: var(--primary-green); 
            text-align: center; 
            text-transform: uppercase; 
            margin-bottom: 30px;
            position: relative;
        }
        h2::after {
            content: '';
            display: block;
            width: 50px;
            height: 3px;
            background: var(--earth-brown);
            margin: 10px auto 0;
        }

        /* ---  SECTION AVANT/APRÈS --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .gallery-item { text-align: center; }
        
        .gallery-caption {
            margin-top: 10px;
            font-weight: bold;
            color: var(--primary-green);
            text-align: center;
            width: 100%;
            display: block;
        }

        /* --- LISTE SERVICES --- */
        .services-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }
        .service-item {
            background: var(--light-beige);
            padding: 20px;
            border-radius: 8px;
            border-left: 5px solid var(--primary-green);
            font-size: 1.1rem;
            transition: transform 0.2s;
        }
        .service-item:hover { transform: translateY(-3px); }
        .service-icon { font-size: 1.5rem; margin-right: 10px; }

        /* --- TABLEAU TARIFS --- */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
            background: white;
        }
        th, td {
            border: 1px solid #e0e0e0;
            padding: 15px;
            text-align: left;
        }
        th { background-color: var(--primary-green); color: white; text-transform: uppercase; }
        tr:nth-child(even) { background-color: var(--light-beige); }

        /* --- CONTACT & FOOTER --- */
        .contact-info {
            background-color: white;
            color: #2e7d32;
            padding: 40px;
            text-align: center;
        }
        .contact-info h2 { color: #2e7d32 ;border: none; }
        .contact-info h2::after { background: white; }
        .contact-info a { color: #2e7d32; text-decoration: underline; }
        
        .footer-legal {
            font-size: 0.9rem;
            text-align: center;
            padding: 25px;
            background: #222;
            color: #bbb;
        }

        /* --- MOBILE --- */
        @media (max-width: 768px) {
            nav a { display: block; margin: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 5px;}
            table, thead, tbody, th, td, tr { display: block; }
            thead tr { position: absolute; top: -9999px; left: -9999px; }
            tr { border: 1px solid #ccc; margin-bottom: 15px; background: white !important;}
            td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; text-align: right; }
            td:before { position: absolute; top: 15px; left: 15px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; color: var(--primary-green); content: attr(data-label); }
        }
        /* --- CARROUSEL (GALERIE) - MODIFIÉ --- */
.carousel-container {
    position: relative;
    width: 85%;         /* On laisse 15% de place pour les flèches */
    margin: auto;       /* On centre le bloc */
    overflow: visible;  /* TRES IMPORTANT : permet aux flèches de dépasser */
    user-select: none;  /* Empêche la sélection de texte/image pendant le swipe */
    -webkit-user-select: none; /* Pour Safari/Chrome mobile */
    touch-action: pan-y; /* Indique au navigateur que les mouvements horizontaux sont gérés par nous */
}

.slide {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    animation: fade 0.5s;
}

.slide.active {
    display: grid;
}

/* Boutons Suivant / Précédent - STYLE ROND ET VERT */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrage vertical parfait */
    
    width: 45px;            /* Largeur du rond */
    height: 45px;           /* Hauteur du rond */
    background-color: var(--primary-green); /* Fond vert */
    color: white;           /* Flèche blanche */
    border-radius: 50%;     /* On fait un cercle */
    
    display: flex;          /* Pour centrer la flèche dans le rond */
    align-items: center;
    justify-content: center;
    
    font-weight: bold;
    font-size: 20px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Petite ombre pour le relief */
}

/* On pousse les flèches EN DEHORS du cadre image */
.next {
    right: -60px; 
}

.prev {
    left: -60px;
}

.prev:hover, .next:hover {
    background-color: var(--earth-brown); /* Change de couleur au survol */
    transform: translateY(-50%) scale(1.1); /* Petit effet de grossissement */
}

/* Animation de transition */
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Indicateurs (points bas) */
.dots-container {
    text-align: center;
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 4px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
.dot.active, .dot:hover {
    background-color: var(--primary-green);
}

/* --- MOBILE : Réglage spécial téléphone (CORRECTION FINALE V2) --- */
@media (max-width: 768px) {
    
    /* 1. Le conteneur principal */
    .carousel-container {
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    
    .slide {
        display: none; /* On cache tout le monde ! */
        width: 100%;
    }

    .slide.active {
        display: flex !important;      /* On affiche celle-ci */
        flex-direction: column;        /* En colonne */
        align-items: center;           /* Tout centré */
    }

    .gallery-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    /* 3. Le texte Avant/Après */
    .gallery-caption {
        text-align: center;
        width: 100%;
        display: block;
        margin-top: 8px;
    }

    /* 4. Les Flèches  */
    .prev, .next {
        position: absolute;
        top: auto;        
        transform: none;   
        bottom: 20px;      
        
        background-color: var(--primary-green);
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin: 0;
        
        /* Centrage de l'icône dans le rond */
        display: flex !important;
        align-items: center;
        justify-content: center;
        display: none !important; /* Cache les flèches sur mobile car on a le swipe */
    }
    .prev { left: 25%; }
    .next { right: 25%; }

    /* 5. Stop l'animation au clic */
    .prev:hover, .next:hover {
        transform: none !important;
        background-color: var(--primary-green);
    }
}
        /* --- LIGHTBOX--- */
        .lightbox {
            display: none; /* Caché par défaut */
            position: fixed;
            z-index: 1000;
            padding-top: 50px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.9); /* Fond noir transparent */
        }
        .lightbox-content {
            margin: auto;
            display: block;
            width: 80%;
            max-width: 900px;
            max-height: 80vh;
            object-fit: contain;
        }
        .close-lightbox {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
        }
        .close-lightbox:hover { color: #bbb; }
        
.logo-header {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-green);
    margin-bottom: 15px;
}

/* Menu Actif (montre sur quelle page on est) */
nav a.active {
    color: var(--earth-brown);
    border-bottom: 2px solid var(--earth-brown);
    padding-bottom: 5px;
}

/* Bloc Contact Design */
.contact-block {
    text-align: center;
}
.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.contact-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.contact-item:hover {
    transform: translateY(-5px);
    border-top: 5px solid var(--primary-green);
}
.contact-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}
.contact-btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}
.contact-btn:hover {
    background-color: var(--earth-brown);
}
.map-link {
    color: var(--primary-green);
    text-decoration: underline;
    font-size: 0.9rem;
}
/* --- MENU MOBILE --- */


.navbar {
    background-color: var(--primary-green);
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.navbar #myLinks {
    display: flex;
    justify-content: center; /* Centrés sur PC */
}

.navbar a {
    float: left;
    display: block;
    color: var(--light-beige);
    text-align: center;
    padding: 16px 20px; /* Un peu plus grand pour bien cliquer */
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s; /* Transition douce */
}

/* 3. LE SURVOL (HOVER)  */
.navbar a:hover {
    /* Le FOND devient BLANC */
    color: var(--earth-brown); /* Le TEXTE devient VERT (pour être lisible sur le blanc) */
}

/* 4. Le bouton Hamburger (Caché sur PC) */
.navbar .icon {
    display: none;
}

/* --- VERSION MOBILE --- */
@media screen and (max-width: 768px) {
    
    .navbar #myLinks {
        display: none;
        flex-direction: column;
        width: 100%; /* Prend toute la largeur */
    }

  .navbar a.icon {
        float: left;
        display: block;
        background: var(--primary-green);
        color: white;
        
        /* Taille de l'icône */
        font-size: 24px; 
        
        /* Force une hauteur minimale */
        line-height: 1; 
        
        /* Marge ultra-réduite pour affiner la barre */
        padding: 5px 15px; 
        
        /* Prend toute la largeur */
        width: 100%;
        text-align: left;
        
        /* SUPPRIME LE TRAIT BIZARRE EN BAS */
        border: none !important;
        outline: none !important;
    }
    /* Les liens quand le menu est ouvert */
    .navbar a {
        float: none;
        display: block;
        text-align: left;
        padding-left: 20px; /* Décalage du texte */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    header img {
        width: 200px !important; /* On force une taille plus généreuse */
        border-radius: 10px !important; /* Un arrondi plus doux sur mobile */
    }
}
/* === BOUTON AVIS GOOGLE === */

.btn-avis-google {
    display: inline-block;
    background-color: #ffffff; /* Fond très clair par défaut */
    color: #2e7d32;            /* Texte vert foncé */
    border: 2px solid #2e7d32; /* Bordure */
    padding: 10px 25px;
    text-decoration: none;     /* Pas de soulignement */
    border-radius: 30px;       /* Bords arrondis */
    font-weight: bold;
    transition: all 0.3s ease; /* Animation fluide */
    cursor: pointer;
}

/* L'effet quand on passe la souris dessus */
.btn-avis-google:hover {
    background-color: #2e7d32; /* Le fond devient vert */
    color: #ffffff;            /* Le texte devient blanc */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Petite ombre sympa */
}

/* === NOUVEAU DESIGN TARIFS (STYLE MENU RESTAURANT) === */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Ombre douce */
    border-top: 5px solid var(--primary-green); /* Touche de couleur en haut */
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px); /* Monte un peu au survol */
}

.card-header h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--primary-green);
    text-align: left; /* Titres alignés à gauche */
}

.card-header p {
    color: #888;
    margin-bottom: 25px;
    font-size: 0.9rem;
    font-style: italic;
    text-align: left;
}

/* La liste des prix */
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Aligne le texte sur la ligne d'écriture */
    margin-bottom: 15px;
}

.price-list li.detail {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-top: -12px; /* On le colle sous l'élément précédent */
    margin-bottom: 15px;
}

.service-name {
    font-weight: bold;
    color: #333;
    position: relative;
    z-index: 1;
    padding-right: 10px;
    background: white; /* Pour cacher les pointillés derrière le texte */
}

.price {
    font-weight: bold;
    color: var(--primary-green);
    position: relative;
    z-index: 1;
    padding-left: 10px;
    background: white;
    white-space: nowrap; /* Empêche le prix de se couper en deux */
}

/* Les fameux pointillés */
.dots {
    flex-grow: 1; /* Prend toute la place disponible */
    border-bottom: 2px dotted #e0e0e0;
    position: relative;
    top: -5px; /* Remonte un peu les points */
}

/* Bloc Détail Haies (Tags) */
.details-haie {
    text-align: center;
    background-color: var(--light-beige);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.price-tag {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease; /* Animation fluide */
    background-color: #ffffff; /* Fond très clair par défaut */
    color: #2e7d32;            /* Texte vert foncé */
    border: 2px solid #2e7d32; /* Bordure */
}
.price-tag:hover {
    background-color: #2e7d32; /* Le fond devient vert */
    color: #ffffff;            /* Le texte devient blanc */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Petite ombre sympa */
}


/* === PAGE CONTACT DESIGN PRO === */

/* Mise en page : 2 colonnes (Infos à gauche, Formulaire à droite) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* La colonne formulaire est plus large */
    gap: 40px;
    align-items: start;
}

/* Style des cartes d'infos (Téléphone, Email...) */
.info-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.info-card:hover {
    transform: translateX(5px); /* Petit mouvement au survol */
}
.info-card .icon {
    font-size: 2rem;
    background: #e8f5e9; /* Fond vert très clair */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-card h4 {
    margin: 0;
    color: var(--primary-green);
}
.info-card p {
    margin: 2px 0;
    font-size: 0.85rem;
    color: #888;
}
.link-item {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
.link-item:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* La carte Google Maps */
.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Le Formulaire (Cadre Blanc) */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-green);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-green);
    outline: none;
    background-color: white;
}

/* Bouton Envoyer */
.btn-submit {
    width: 100%;
    background-color: var(--primary-green);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover {
    background-color: var(--earth-brown);
}

/* MOBILE : Tout mettre en une seule colonne */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Une seule colonne */
    }
    .contact-form-wrapper {
        padding: 20px; /* Moins de marge sur mobile */
        order: -1; /* ASTUCE : On fait remonter le formulaire EN PREMIER sur mobile ! */
    }
}
/* === CONTACT SANS FORMULAIRE (PROCESSUS) === */

/* Le bloc de droite (Fond blanc) */
.contact-actions-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-green);
}

/* Le style des étapes (1, 2, 3) */
.process-steps {
    margin-bottom: 40px;
}
.step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}
.step-number {
    background-color: var(--light-beige);
    color: var(--primary-green);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--primary-green);
    flex-shrink: 0; /* Empêche le rond de s'écraser */
}
.step-content strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}
.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Les Gros Boutons d'Action */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn-big {
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Couleurs spécifiques des boutons */
.btn-big.call {
    background-color: var(--primary-green);
    color: white;
}
.btn-big.email {
    background-color: #fff;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

/* Mobile : On garde l'ordre logique */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-actions-wrapper {
        padding: 25px;
        order: -1; /* On affiche les actions EN PREMIER sur mobile */
    }
}
/* === CORRECTIF MOBILE TARIFS (V2 - MODE BLOC) === */
@media (max-width: 768px) {
    
    /* 1. On désactive la grille pour passer en mode colonne simple */
    .pricing-grid {
        display: block !important; /* Adieu la grille, bonjour les blocs */
        width: 100%;
        padding: 0;
    }

    /* 2. On force la carte à être centrée et à bonne largeur */
    .pricing-card {
        width: auto;       /* Prend la largeur dispo */
        max-width: 100%;   /* Ne dépasse jamais */
        margin: 0 0 30px 0; /* Marge en bas pour séparer les cartes */
        display: block;    /* S'assure qu'elle se comporte comme un pavé */
    }

    /* 3. Petit ajustement de sécurité pour le contenu */
    .container {
        padding-left: 15px;  /* On s'assure qu'il y a un peu d'air sur les bords */
        padding-right: 15px;
    }
}
@media screen and (max-width: 768px) {
   
    .dots-container {
        margin-top: 15px; 
        position: relative;
        z-index: 10;
    }
}
#contact-direct {
    border-top: none !important;
}

/* Conteneur de la slide (on cache par défaut) */
/* On cache toutes les slides par défaut */
/* Cache TOUTES les slides par défaut */
.mySlides {
    display: none; 
    width: 100%;
}

/* Optionnel : ajoute une animation pour que ce soit fluide */
.fade {
    animation-name: fade;
    animation-duration: 0.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
/* Encadré qui contient les deux images */
.comparison-container {
    display: flex;
    flex-direction: row; /* Force l'alignement horizontal */
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* Force les deux cadres à avoir la même hauteur */
    max-width: 900px;
    margin: 0 auto;
}

/* Chaque bloc (Image + Texte) */
.comparison-item {
    flex: 1;
    background: #fff;
    padding: 0px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

/* Forcer les images à avoir un ratio paysage propre */
.comparison-item img {
    width: 100%;
    height: 250px; /* Tu peux ajuster cette hauteur selon tes envies */
    object-fit: cover; /* Coupe l'image pour qu'elle remplisse le cadre sans se déformer */
    border-radius: 8px;
}
.comparison-item:hover img {
    transform: scale(1.01); /* Zoom de 10% */
    filter: brightness(0.5) grayscale(10%); /* Un peu plus clair et légèrement désaturé */
}

.caption {
    margin-top: 10px;
    font-weight: bold;
    color: #2E5D32; /* Ton vert */
    text-align: center;
}
#carousel-dynamic {
    min-height: 300px; /* Donne une taille minimum pour voir si quelque chose apparaît */
    position: relative;
}

/* Adaptation Mobile */
@media screen and (max-width: 768px) {
    .comparison-container {
        flex-direction: column; /* On passe l'un sous l'autre */
        gap: 15px;
    }
}

/* La boîte noire en arrière-plan */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
    
    /* Ajoute ces lignes pour le centrage parfait */
    display: none; /* Sera changé en 'flex' par le JS */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* L'image zoomée */
.modal-content {
    margin: auto;
    display: block;
    max-width: 95%; /* On laisse une petite marge sur les côtés */
    max-height: 70vh; /* On limite la hauteur à 70% de l'écran pour laisser de la place aux flèches en dessous */
    object-fit: contain; /* L'image garde ses proportions sans être coupée */
    border-radius: 5px;
}

/* Le bouton fermer (la croix) */
.close {
    position: absolute;
    top: 15px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* L'animation elle-même */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); } /* Part d'un peu plus petit */
    to { opacity: 1; transform: scale(1); }    /* Arrive à taille normale */
}

/* On applique l'animation à l'image et au fond noir */
.modal-content {
    animation: fadeIn 0.4s ease-out; /* 0.4 seconde pour apparaître */
}

#photo-modal {
    transition: opacity 0.4s ease-in-out;
}
.modal-prev, .modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centre parfaitement la flèche verticalement */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4); /* Le petit rond gris de mon image */
    color: white;
    font-size: 24px;
    border-radius: 50%; /* Transforme le carré en cercle */
    text-decoration: none;
    transition: 0.3s;
    z-index: 1010; /* Pour être sûr de passer devant l'image */
}

.modal-prev { left: 10px; }
.modal-next { right: 10px; }

/* Effet quand on passe la souris ou le doigt dessus */
.modal-prev:hover, .modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1); /* Grossit légèrement */
}
a.logoentete, 
a.logoentete:hover, 
a.logoentete img {
    transform: none !important;
    transition: none !important;
}