/* =================================================================== */
/* --- 1. CONFIGURATION GLOBALE & VARIABLES --- */
/* =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

:root {
    --orange: #F28F3B;
    --green: #3d8b3d; /* MISE À JOUR : Le bon vert utilisé partout */
    --light-green: #e8f5e9;
    --dark-text: #333333;
    --light-text: #ffffff;
    --background: #f9f9f9;
    --border-color: #ccc;
    --nav-bg: #3c3c3c;
}

/* RECOMMANDATION : Reset global du box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =================================================================== */
/* --- 2. STYLES GLOBAUX & ÉLÉMENTS DE BASE --- */
/* =================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--dark-text);
    background-color: white;
    line-height: 1.7;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 0.5rem;
    color: var(--dark-text);
}

h3 {
    font-size: 1.5em;
    color: var(--green);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Évite les espaces indésirables sous les images */
}

/* =================================================================== */
/* --- 3. COMPOSANTS RÉUTILISABLES (HEADER, NAV, FOOTER, BOUTONS) --- */
/* =================================================================== */

/* --- Header --- */
header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
header .logo { max-height: 70px; }
.header-contact { text-align: right; }
.header-contact .phone-link {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-contact span { font-size: 0.9em; color: #666; display: block; }

/* --- Navigation --- */
nav {
    background-color: var(--nav-bg);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav ul { display: flex; justify-content: center; gap: 40px; margin: 0; padding: 0; list-style: none; }
nav a { color: white; text-decoration: none; font-weight: 600; }
nav a.active, nav a:hover { color: var(--orange); }

/* --- Footer --- */
footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 50px 0 20px 0;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 40px; text-align: left; }
.footer-grid h4 { color: white; margin-top: 0; margin-bottom: 15px; }
.footer-grid p, .footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: #ccc; text-decoration: none; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9em; }

/* --- Boutons et CTA --- */
.cta-button {
    background-color: var(--orange);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.final-cta {
    background-color: var(--green);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 40px;
}
.final-cta h2, .final-cta p { color: white; border: none; }

/* =================================================================== */
/* --- 4. STYLES SPÉCIFIQUES AUX SECTIONS ET PAGES --- */
/* =================================================================== */

/* --- Page d'accueil --- */
#hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(../images/home2.png) center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
}
#hero h1 {
    font-size: 1.1em; /* ANCIEN : 2.2em - Réduit la taille du H1 */
    color: white;
    border: none;
    margin-bottom: 15px;
}


.slogan {
    font-family: "Dancing Script", cursive;
    font-style: italic;
    color: #FFF;
    margin-top: 120px;
    margin-bottom: 50px;
    font-size: 3em; /* ANCIEN : 2em - Diminue la taille du slogan */
    font-weight: 600;
    /* text-shadow: 1px 1px 2px rgba(0,0,0,0.7); */
}


/* RESPONSIVE pour H1 et Slogan sur mobile si besoin d'ajustement supplémentaire */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 1.5em; /* Encore plus petit sur mobile pour H1 */
    }
    .slogan {
        font-size: 1.3em; /* Encore plus petit sur mobile pour le slogan */
    }
}
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.icon-grid svg { width: 50px; height: 50px; fill: var(--green); margin-bottom: 10px; }
.icon-grid h3 { font-size: 1.2em; color: var(--dark-text); margin: 0; }
.testimonial-section { background: var(--background); padding: 50px 0; }
.testimonial blockquote { font-size: 1.2em; font-style: italic; border: none; margin: 0 0 1rem 0; padding: 0;}
.testimonial-author { font-weight: 700; color: var(--green); }

/* --- Grille des Services --- */
.services-grid { display: flex; gap: 2rem; }
.service-card { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); overflow: hidden; display: flex; flex-direction: column; }
.service-image { width: 100%; height: 200px; object-fit: cover; }
.service-card h3 { padding: 1rem 1rem 0.5rem 1rem; margin: 0; }
.service-card ul { padding: 0 1rem 1rem 2.5rem; margin: 0; flex-grow: 1; }
.service-card li { margin-bottom: 0.5rem; }

/* --- Chronologie du Processus --- */
.process-section { padding: 3rem 0; background-color: #f8f9fa; margin-top: 3rem; }
.process-timeline { display: flex; justify-content: space-between; position: relative; margin-top: 2rem; }
.process-timeline::before { content: ''; position: absolute; top: 29px; left: 5%; right: 5%; height: 4px; background-color: #e0e0e0; z-index: 0; border-radius: 2px; }
.process-step { width: 23%; text-align: center; position: relative; padding: 0 1rem; }
.step-number { width: 60px; height: 60px; margin: 0 auto 1.5rem auto; border-radius: 50%; background-color: var(--green); color: white; font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 4px solid #f8f9fa; z-index: 1; position: relative; }
.process-step h3 { font-size: 1.2em; margin-bottom: 0.5rem; color: #333; }
.process-step p { font-size: 0.95em; color: #666; line-height: 1.6; }

/* --- FAQ (Accordéon) --- */
.faq-item { background-color: #fff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); overflow: hidden; transition: box-shadow 0.2s ease-in-out; }
.faq-item:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.faq-item summary { font-size: 1.1rem; font-weight: 600; padding: 1rem 3.5rem 1rem 1.5rem; cursor: pointer; position: relative; list-style: none; transition: background-color 0.2s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background-color: #f7f7f7; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--green); transition: transform 0.3s ease; }
.faq-item p { padding: 0 1.5rem 1.5rem 1.5rem; margin: 0; line-height: 1.7; color: #555; background-color: #fcfcfc; border-top: 1px solid #e9e9e9; }
.faq-item[open] { border-color: var(--green); }
.faq-item[open] > summary { color: var(--green); background-color: var(--light-green); }
.faq-item[open] > summary::after { content: '−'; transform: translateY(-50%) rotate(180deg); }

/* --- Grille des Engagements --- */
.commitments-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.commitment-card { background-color: #fff; border: 1px solid #e9e9e9; border-radius: 10px; padding: 2rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.commitment-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.commitment-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem auto; border-radius: 50%; background-color: var(--light-green); display: flex; align-items: center; justify-content: center; }
.commitment-icon svg { width: 44px; height: 44px; fill: var(--green); }
.commitment-card h3 { margin-bottom: 1rem; font-size: 1.4rem; color: var(--dark-text); }
.commitment-card ul { list-style: none; padding: 0; text-align: left; flex-grow: 1; }
.commitment-card li { margin-bottom: 0.8rem; position: relative; padding-left: 1.5rem; color: #555; line-height: 1.6; hyphens: auto; }
.commitment-card li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: var(--green); font-weight: bold; }

/* --- Formulaire de Contact --- */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.contact-form label { margin-bottom: 8px; font-weight: 600; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 1em; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-submit-group { grid-column: 1 / -1; text-align: right; }

/* --- Autres sections de page --- */
.map-container { margin-top: 1rem; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }

/* =================================================================== */
/* --- 5. RESPONSIVE DESIGN (Media Queries) --- */
/* =================================================================== */

/* --- Tablettes (et grands mobiles en paysage) --- */
@media (max-width: 991px) {
    /* Processus Chronologique */
    .process-timeline { flex-direction: column; align-items: center; }
    .process-timeline::before { display: none; }
    .process-step { width: 80%; max-width: 400px; margin-bottom: 2rem; padding: 0; }
    .process-step:last-child { margin-bottom: 0; }
    .process-step:not(:last-child)::after { content: ''; position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%); height: 2rem; width: 4px; background-color: #e0e0e0; }
    .step-number { margin-bottom: 1rem; }
}

/* --- Mobiles --- */
@media (max-width: 768px) {
    body { font-size: 95%; } /* Réduit légèrement la taille de base sur mobile */
    h2 { font-size: 1.8em; }
    .container { padding: 0 15px; }

    /* Header & Nav */
    .header-content { flex-direction: column; gap: 15px; }
    .header-contact { text-align: center; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px 25px; font-size: 0.9em; }

    /* Grille des Services */
    .services-grid { flex-direction: column; }

    /* Grille des Engagements */
    .commitments-grid { grid-template-columns: 1fr; }

    /* Formulaire de Contact */
    .contact-form { grid-template-columns: 1fr; }
    .form-submit-group { text-align: center; }
    .form-submit-group .cta-button { width: 100%; }
}

/* --- Pour grilles spécifiques sur écrans moyens et larges --- */
@media (min-width: 600px) {
    .services-grid { flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
    .service-card { width: calc(50% - 0.75rem); }
}
@media (min-width: 768px) {
    .commitments-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 992px) {
    .services-grid { flex-wrap: nowrap; }
    .service-card { width: calc(25% - 1.125rem); }
}
/* --- STYLES POUR LA PAGE RÉALISATIONS (AVEC CORRECTION SLIDER) --- */

/* Style pour les chiffres clés */
.key-metrics {
    display: flex;
    justify-content: space-around;
    background-color: var(--background);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    margin: 2.5rem 0 3.5rem 0;
    text-align: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.metric-item {
    font-weight: 600;
    color: #555;
}
.metric-item span {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: var(--green);
}

/* Style des sections d'étude de cas */
.case-study-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
.case-study-section:last-of-type {
    border-bottom: none;
}
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.case-study-grid.layout-image-right .case-study-media {
    order: 2;
}

/* Style pour le curseur avant/après */
img-comparison-slider {
    width: 100%;
    --divider-width: 3px;
    --divider-color: var(--orange);
    --handle-size: 50px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===== LA CORRECTION EST ICI ===== */
img-comparison-slider img {
    display: initial;
}
/* ================================= */

.case-study-content h3 {
    margin-top: 0;
    font-size: 1.4rem;
}
.case-study-content ul {
    list-style: none;
    padding-left: 0;
}
.case-study-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}
.case-study-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
}

/* Style pour la galerie finale */
.realisations-gallery h2 {
    text-align: center;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-grid img {
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* --- RESPONSIVE POUR LA PAGE RÉALISATIONS --- */
@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .case-study-grid.layout-image-right .case-study-media {
        order: initial; /* Rétablit l'ordre par défaut */
    }
    .key-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* =================================================================== */
/* --- STYLES POUR LES PAGES LÉGALES ET ZONE D'INTERVENTION --- */
/* =================================================================== */

/* --- Page Mentions Légales --- */
.legal-content {
    padding: 2rem 0;
}
.legal-content h1 {
    text-align: center;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.legal-content h2 {
    border-bottom: none;
    font-size: 1.6em;
    color: var(--dark-text);
    margin-top: 2.5rem;
}
.legal-content h3 {
    font-size: 1.2em;
    color: var(--dark-text);
    font-weight: 600;
}
.legal-content p, .legal-content ul {
    color: #555;
}
.legal-content ul {
    padding-left: 20px;
}

/* --- Page Zone d'Intervention --- */
.map-container {
    margin: 2.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
}

.zone-grid-container h2 {
    text-align: center;
}
.zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.zone-block {
    background: var(--background);
    padding: 1.5rem 2rem;
    border-radius: 8px;
}
.zone-block h3 {
    margin-top: 0;
}
.zone-block ul {
    list-style: none;
    padding: 0;
    column-count: 2; /* Met la liste sur 2 colonnes si elle est longue */
    column-gap: 2rem;
}
.zone-block li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}
.zone-block li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
}

/* --- RESPONSIVE pour ces nouvelles pages --- */
@media (max-width: 500px) {
    .zone-block ul {
        column-count: 1; /* Une seule colonne sur petit écran */
    }
}
/* =================================================================== */
/* --- STYLE POUR LE MENU DÉROULANT DE LA NAVIGATION --- */
/* =================================================================== */

/* Positionnement de l'élément parent */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--nav-bg);
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  min-width: 200px;
  z-index: 1001;
  flex-direction: column;
  gap: 0;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: flex;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.dropdown-menu a:hover {
  background-color: #555;
  color: var(--orange);
}

/* Sur mobile, on ne veut pas de menu déroulant au survol */
@media (max-width: 768px) {
    /* Le menu déroulant ne s'affichera pas, les utilisateurs navigueront via la page "Notre Entreprise"
       ou les liens dans le footer, ce qui est une pratique standard et simple. */
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}
/* --- STYLES POUR LES CTA DANS LES CARTES DE SERVICE --- */

.service-card-footer {
    padding: 1rem;
    margin-top: auto; /* Pousse le footer en bas de la carte */
    text-align: center;
    border-top: 1px solid #f0f0f0; /* Ligne de séparation subtile */
}

/* Style pour un bouton plus petit, adapté aux cartes */
.cta-button-small {
    background-color: var(--green);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s, transform 0.2s;
    font-weight: 600;
    font-size: 0.9em;
}

.cta-button-small:hover {
    background-color: #2e6436; /* Un vert légèrement plus foncé */
    transform: translateY(-2px);
}

.certif-grid img {
  width: 150px;
  height: auto;
}

