/* =================================================================== */
/* --- 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 {
    --primary-color: #3d8b3d; /* VERT (recyclage) - Couleur principale */
    --accent-color: #005A9C;  /* BLEU (professionnel) - Couleur d'accentuation */
    --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(--primary-color); /* MODIFIÉ */
    padding-bottom: 0.5rem;
    color: var(--dark-text);
}

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

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: 100px; }
.header-contact { text-align: right; }
.header-contact .phone-link {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color); /* MODIFIÉ */
    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(--primary-color); } /* MODIFIÉ */

/* --- 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(--primary-color); } /* MODIFIÉ */
.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(--primary-color); /* MODIFIÉ */
    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(--accent-color); /* MODIFIÉ */
    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/webp/Home2.webp) center/cover;
    background-color: var(--background);
    color: white; /* ← Forcer le texte en blanc */
    text-align: center;
    padding: 80px 20px;
}
#hero h1 {
    font-size: 1.1em;
    color: white; /* ← Forcer le texte en blanc */
    border: none;
    margin-bottom: 15px;
}

.slogan {
    font-family: "Dancing Script", cursive;
    font-style: italic;
    color: white; /* ← Forcer le texte en blanc */
    margin-top: 120px;
    margin-bottom: 50px;
    font-size: 3em;
    font-weight: 600;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 1.5em;
    }
    .slogan {
        font-size: 1.3em;
    }
}
.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(--primary-color); 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(--primary-color); }

/* --- 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(--primary-color); 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(--primary-color); 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(--primary-color); }
.faq-item[open] > summary { color: var(--primary-color); 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(--primary-color); }
.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(--primary-color); 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) --- */
/* =================================================================== */

@media (max-width: 991px) {
    .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; }
}

@media (max-width: 768px) {
    body { font-size: 95%; }
    h2 { font-size: 1.8em; }
    .container { padding: 0 15px; }

    .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; }

    .services-grid { flex-direction: column; }
    .commitments-grid { grid-template-columns: 1fr; }

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

@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); }
}

/* --- Page Réalisations --- */
.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(--primary-color);
}

.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;
}

img-comparison-slider {
    width: 100%;
    --divider-width: 3px;
    --divider-color: var(--accent-color); /* MODIFIÉ */
    --handle-size: 50px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
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(--primary-color);
    font-weight: bold;
}

.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);
}

@media (max-width: 768px) {
    .case-study-grid {
        grid-template-columns: 1fr;
    }
    .case-study-grid.layout-image-right .case-study-media {
        order: initial;
    }
    .key-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* --- Pages Légales & Zone d'Intervention --- */
.legal-content {
    padding: 2rem 0;
}
.legal-content h1 {
    text-align: center;
    border-bottom: 2px solid var(--accent-color); /* MODIFIÉ */
    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;
}

.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;
    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(--primary-color);
}

@media (max-width: 500px) {
    .zone-block ul {
        column-count: 1;
    }
}

/* --- Menu Déroulant --- */
.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(--primary-color); /* MODIFIÉ */
}

@media (max-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: none;
    }
}

/* --- CTA dans les cartes --- */
.service-card-footer {
    padding: 1rem;
    margin-top: auto;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}
.cta-button-small {
    background-color: var(--primary-color);
    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;
    transform: translateY(-2px);
}
.certif-grid img {
  width: 150px;
  height: auto;
}
/* --- SECTION PARTENAIRES --- */
.partners-section {
    padding: 3rem 0;
    background-color: var(--background); /* Utilise la même couleur de fond que les témoignages pour une belle transition */
}

.partners-section h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem; /* Espace entre les logos */
}

.logos-grid img {
    max-height: 60px; /* Ajustez la hauteur maximale de vos logos */
    max-width: 150px; /* Ajustez la largeur maximale */
    filter: grayscale(100%); /* Met les logos en noir et blanc pour un look uniforme */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logos-grid img:hover {
    filter: grayscale(0%); /* Affiche les couleurs au survol */
    opacity: 1;
    transform: scale(1.1);
}

/* --- STYLE POUR L'INTRODUCTION "À PROPOS" --- */

.about-intro {
    display: flex; /* <-- CETTE LIGNE EST ESSENTIELLE pour activer l'alignement */
    
    align-items: center; /* Centre verticalement la photo et le texte */
    gap: 2.5rem; /* Espace entre la photo et le texte */
    margin: 3rem 0; /* Marge en haut et en bas de la section */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur les petits écrans */
}

.founder-photo {
    flex-shrink: 0; /* Empêche l'image de se compresser */
    
    text-align: center; /* Centre l'image si elle passe à la ligne */
    flex-basis: 150px; /* Taille de base pour la photo */
}

.founder-photo img {
    width: 150px; /* Largeur du cercle */
    height: 150px; /* Hauteur du cercle */
    border-radius: 50%; /* Crée la forme circulaire */
    object-fit: cover; /* Assure que l'image remplit le cercle sans être déformée */
    border: 4px solid var(--primary-color); /* Ajoute une bordure de couleur verte */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.founder-quote {
    flex-grow: 1; /* Permet au bloc de texte de prendre l'espace restant */
}

.founder-quote h1 {
    margin-top: 0;
}

/* --- Responsive pour les petits écrans --- */
@media (max-width: 768px) {
    .about-intro {
        flex-direction: column; /* Place la photo au-dessus du texte */
        text-align: center;
        gap: 1.5rem;
    }
}
/* =================================================================== */
/* STYLES POUR LA PAGE TARIFS (VERSION AUTO-ENTREPRENEUR) */
/* =================================================================== */

.tva-notice {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1rem;
    font-style: italic;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Aligne les cartes sur la même hauteur */
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-subtitle {
    color: #6b7280;
    margin-bottom: 1rem;
    min-height: 40px; /* Assure que les titres sont alignés */
}

.pricing-price-box {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 3rem; /* Prix plus grand */
    font-weight: 700;
    color: #1d4ed8; /* Couleur plus vive */
    line-height: 1;
}

.pricing-card ul {
    list-style-type: '✔️ ';
    text-align: left;
    margin: 0 auto 2rem;
    padding-left: 20px;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
    padding-left: 10px;
}

.pricing-card.popular {
    border: 2px solid #1d4ed8;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1d4ed8;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Grille des options */
.addons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .addons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.addon-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.addon-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.addon-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
    min-height: 50px;
}

.addon-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
}