/* ================= 1. SETUP & VARIABLES ================= */
:root {
    --color-yellow: #F8D786;
    --color-blue: #86A6F8;
    --color-purple: #9F86F8;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --color-white: #ffffff;

    --font-title: 'Montserrat', sans-serif;
    --font-subtitle: 'Overpass', sans-serif;
    --font-body: 'Fira Sans', sans-serif;

    --section-padding: 100px 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark);
    overflow-x: hidden;
}

.page-header {
    padding-top: 150px; /* Ajoute un espace interne supplémentaire si besoin */
    margin-top: 0;
}

/* ================= 2. TYPOGRAPHIE & UTILITAIRES ================= */
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; }
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.subtitle-text { font-family: var(--font-subtitle); color: var(--color-blue); font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 600; }
p { margin-bottom: 1.5rem; font-size: 1.05rem; }

.container { width: 90%; max-width: 1200px; margin: auto; }
.text-center { text-align: center; }
.section { padding: var(--section-padding); }

/* ================= 3. NAVIGATION (CORRECTIONS FAQ BLEU) ================= */
.navbar {
    padding-top: 100px; /* Ajustez cette valeur selon la hauteur de votre navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: var(--color-white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo img { height: 60px; width: auto; display: block; }

.nav-links { display: flex; list-style: none; }

.nav-links li a {
    text-decoration: none;
    color: var(--color-dark) !important; /* Force le noir pour éviter le bleu navigateur */
    margin-left: 2rem;
    font-family: var(--font-title);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.3s;
    padding-bottom: 5px;
}

/* État actif (la page où l'on se trouve) */
.nav-links li a.active {
    color: var(--color-blue) !important;
    border-bottom: 2px solid var(--color-yellow);
}

/* État au survol */
.nav-links li a:hover {
    color: var(--color-blue) !important;
}

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--color-dark); margin: 5px; transition: 0.3s; }

/* ================= 4. BOUTONS ================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s all ease;
    border: none;
    cursor: pointer;
}

.btn-primary { 
    background: linear-gradient(to right, var(--color-blue), var(--color-purple)); 
    color: var(--color-white); 
}

.btn-primary:hover { 
    box-shadow: 0 10px 20px -10px rgba(134, 166, 248, 0.5); 
    transform: translateY(-3px); 
}

/* ================= 5. SECTIONS GÉNÉRALES & CONTACT ================= */
.hero { height: 100vh; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; color: var(--color-white); }
.hero .subtitle { font-family: var(--font-subtitle); font-size: 1.5rem; margin-bottom: 2rem; color: var(--color-yellow); }

.split-layout { display: flex; align-items: center; gap: 4rem; }
.text-block, .image-block { flex: 1; }
.image-block img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Correction Spécifique Page Contact */
.contact-page-margin { margin-top: 150px; }

.contact-form-container { flex: 1; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.input-row {
    display: flex;
    gap: 15px;
}

.contact-form input, 
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
}

/* ================= 6. FAQ (ACCORDÉON) ================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-category-title {
    font-family: var(--font-title);
    color: var(--color-blue);
    margin: 40px 0 20px 0;
    font-size: 1.5rem;
    border-left: 5px solid var(--color-yellow);
    padding-left: 15px;
}
.faq-item { margin-bottom: 15px; border-bottom: 1px solid #ddd; }
.faq-question {
    width: 100%;
    padding: 20px;
    background: #f9f9f9;
    border: none;
    text-align: left;
    font-family: var(--font-title);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}
.faq-question:after { content: '+'; color: var(--color-yellow); font-size: 1.2rem; }
.faq-question.active:after { content: '-'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #fff; }
.faq-answer p { padding: 20px; line-height: 1.6; color: #444; }

/* ================= 7. FOOTER ================= */
.main-footer { background-color: var(--color-dark); color: var(--color-white); padding: 60px 0 20px 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-links ul { list-style: none; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--color-blue); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.6) !important; font-size: 0.85rem; }

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
}
.footer-legal-link:hover {
    color: var(--color-yellow) !important;
    text-decoration: underline !important;
}

/* ================= 8. RESPONSIVE ================= */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 92vh; top: 8vh;
        background: var(--color-white); width: 100%;
        flex-direction: column; align-items: center;
        transform: translateX(100%); transition: 0.5s;
    }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; }
    .split-layout { flex-direction: column; }
    .input-row { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* ================= PAGE PROJETS & RÉALISATIONS ================= */

/* En-tête de la page (déjà configuré avec votre padding de 150px) */
.page-header {
    background-color: var(--color-light);
    padding-top: 150px;
    padding-bottom: 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: var(--color-dark);
    margin-bottom: 15px;
}

/* Filtres de catégorie (Optionnel) */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--color-blue);
    background: transparent;
    color: var(--color-blue);
    font-family: var(--font-title);
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-blue);
    color: white;
}

/* Grille des Projets */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
    margin-top: 40px;
}

/* Carte de Projet Individuelle */
.project-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Effet de survol (Overlay) */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.9), rgba(134, 166, 248, 0.4));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: white;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
    color: var(--color-yellow);
}

.project-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* Specs Rapides (ex: 150m2 | Fréjus) */
.project-meta {
    display: flex;
    gap: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* ============================================================
   AJOUTS POUR LA PAGE SERVICES - MAISON FLEURANCE
   ============================================================ */

/* 1. Mise en page de la grille de services */
.services-container {
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* 2. Style des cartes de service */
.service-card {
    background: #ffffff;
    padding: 40px;
    border-top: 6px solid #F8D786; /* Couleur par défaut (jaune) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Variations de couleurs pour tes cartes */
.card-blue { border-color: #86A6F8; }
.card-purple { border-color: #9F86F8; }

/* 3. Typographie interne aux services */
.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #333;
}

.service-card p {
    font-family: 'Fira Sans', sans-serif;
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* 4. Section Spécifique Procédé Constructif (Le cœur de ton métier) */
.construction-process {
    background-color: #ffffff;
    padding: 5px 5%;
    border-radius: 15px;
    margin: 0;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.step-number {
    background: #333;
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RESET & STRUCTURE AGENCE (MAISON FLEURANCE)
   ============================================================ */

   .page-agence {
    background-color: #ffffff; /* Fond blanc forcé */
    color: #333;
    overflow-x: hidden;
}

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

/* --- SECTION INTRO --- */
.intro-agence {
    padding: 100px 0;
}

.intro-agence .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.col-texte { flex: 1.2; }
.col-image { flex: 1; display: flex; justify-content: centÒer; }

.col-texte h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.jaune { color: #F8D786; }
.bleu { color: #86A6F8}

.col-texte p {
    font-family: 'Fira Sans', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Domptage de l'image avec son ombre jaune signature */
.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px; /* Sécurité : l'image ne sera jamais trop grande */
}

.image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover; /* Recadre proprement sans déformer */
    border-radius: 4px;
    box-shadow: 20px 20px 0px 0px #86A6F8; /* Ton ombre bleu */
}

/* --- SECTION VALEURS --- */
.valeurs-agence {
    padding-bottom: 100px;
}

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

.carte-valeur {
    padding: 40px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
}

.carte-valeur:hover { transform: translateY(-10px); border-color: #86A6F8; }

.pastille {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.p-jaune { background: #F8D786; }
.p-bleu { background: #86A6F8; }
.p-violet { background: #9F86F8; }

.carte-valeur h3 { font-family: 'Montserrat'; margin-bottom: 15px; text-transform: uppercase; font-size: 1rem; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .intro-agence .container { flex-direction: column; text-align: center; }
    .col-texte h1 { font-size: 2.5rem; }
    .image-wrapper img { height: 350px; box-shadow: 10px 10px 0px 0px #86A6F8; }
}

/* --- ESPACEMENT GÉNÉRAL DES SECTIONS --- */

.section-container {
    padding: 100px 0; /* Crée 100px d'espace blanc en haut et en bas */
    background-color: #ffffff;
    width: 100%;
}

/* On s'assure que le titre ne touche pas le bord du haut */
.text-block h2 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    line-height: 1.2;
}

/* Optionnel : Ajouter un espace sous le Header Hero */
header.hero {
    margin-bottom: 40px; /* Espace entre l'image de fond et le contenu suivant */
}

/* Bannière Cookies - Style Maison Fleurance */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border-left: 6px solid var(--color-yellow);
    padding: 25px;
    z-index: 9999;
    border-radius: 4px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-icon { flex-shrink: 0; }

.cookie-text { flex: 1; min-width: 250px; }

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.cookie-text p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
    color: #666;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-refuse {
    background: transparent;
    border: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s;
}

.btn-refuse:hover { color: var(--color-dark); }

/* Version Mobile */
@media (max-width: 600px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
}

/* Style spécifique pour le bouton Contact dans la Nav */
.nav-links li a.nav-btn-contact {
    background-color: transparent;
    border: 2px solid var(--color-blue); /* Ton bleu #86A6F8 */
    color: var(--color-blue) !important;
    padding: 8px 20px !important;
    border-radius: 5px;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

/* Effet au survol : il se remplit avec ton dégradé ou une couleur pleine */
.nav-links li a.nav-btn-contact:hover {
    background: var(--color-blue);
    color: var(--color-white) !important;
    box-shadow: 0 4px 15px rgba(134, 166, 248, 0.3);
    transform: translateY(-2px);
}

/* Ajustement pour le responsive (mobile) */
@media screen and (max-width: 768px) {
    .nav-links li a.nav-btn-contact {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
}

/* Pour tes titres de section comme "Opportunité" */
.opportunity-highlight h2 {
    /* clamp(taille_min, taille_preférée, taille_max) */
    font-size: clamp(1.5rem, 6vw, 2.5rem); 
    line-height: 1.2;
    word-wrap: break-word; /* Force la coupure si un mot est trop long */
    margin-bottom: 20px;
}

/* Pour le titre principal dans le header */
.page-header h1 {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    line-height: 1.1;
}

/* Utilisation de clamp pour une taille qui s'adapte dynamiquement */
.text-block h2, .page-header h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem); /* Min: 24px, Variable: 8% écran, Max: 40px */
    line-height: 1.2;
    word-wrap: break-word; /* Force la coupure si un mot est trop long */
    hyphens: auto; /* Ajoute des tirets si nécessaire */
}

/* Correction du bloc opportunité qui déborde sur tes captures */
.text-block {
    padding: 20px !important; /* Réduit le padding sur petit écran */
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Empêche le contenu de pousser les murs */
}

/* Ajustement spécifique mobile */
@media screen and (max-width: 480px) {
    .text-block h2 {
        font-size: 1.3rem; /* Taille de sécurité pour les écrans de 300px */
    }
    .text-block h3 {
        font-size: 1.1rem;
    }
}

.project-specs-grid {
    text-align: center;
}

section container {
    margin-top: 40px;
}

/* Force l'alignement sur une seule ligne pour les écrans larges */
.project-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Divise l'espace en 4 colonnes égales */
    gap: 20px;
    text-align: center;
    padding: 40px 0;
}

/* Style des cartes pour une meilleure lisibilité en ligne */
.spec-card {
    padding: 15px;
    border-left: 1px solid #eee; /* Optionnel : ajoute une fine séparation */
}

.spec-card:first-child {
    border-left: none;
}

/* IMPORTANT : Empêcher le chevauchement sur mobile */
@media screen and (max-width: 768px) {
    .project-specs-grid {
        grid-template-columns: repeat(2, 1fr); /* Passe à 2 colonnes sur tablette */
    }
}

@media screen and (max-width: 480px) {
    .project-specs-grid {
        grid-template-columns: 1fr; /* Repasse en liste sur petit mobile */
    }
}