:root {
--primary: #2c3e50;
--accent: #a89078;
--light: #f9f9f9;
--text: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
font-family: 'Montserrat', sans-serif;
line-height: 1.6;
color: var(--text);
scroll-behavior: smooth;
font-weight: 400;
}

h1, h2, h3 {
font-family: 'Playfair Display', serif;
font-weight: 400;
color: var(--primary);
}

.container { padding: 80px 10%; }

/* Navigation */
header {
background: #fff;
padding: 20px 10%;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container { display: flex; flex-direction: column; align-items: center; gap: 15px; }

@media (min-width: 900px) { .nav-container { flex-direction: row; justify-content: space-between; } }

.logo img { height: 60px; width: auto; display: block; transition: transform 0.3s ease; }
.logo img:hover { transform: scale(1.05); }

.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 30px; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.9rem; text-transform: uppercase; font-family: 'Montserrat', sans-serif; }

/* Hero Section */
#hero-new {
position: relative;
height: 60vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--primary);
overflow: hidden;
}

.hero-gallery {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: grid;
grid-template-columns: repeat(4, 1fr);
z-index: 1;
}

.hero-gallery img {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.5);
transition: 0.5s ease;
}

.hero-gallery img:hover { filter: brightness(0.8); }

.hero-overlay-content { position: relative; z-index: 5; color: white; text-align: center; padding: 20px; }

#hero-new h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); color: white; }

/* Grille Projets */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin-top: 40px;
}

.card { background: var(--light); transition: 0.3s; }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-body { padding: 20px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Formulaire & Contact */
.contact-flex { display: flex; gap: 50px; flex-wrap: wrap; }
.contact-form { flex: 1; display: flex; flex-direction: column; gap: 15px; min-width: 300px; }
input, select, textarea { padding: 12px; border: 1px solid #ddd; font-family: inherit; }
.btn { background: var(--accent); color: white; padding: 15px 30px; border: none; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.3s; text-align: center; font-family: 'Montserrat', sans-serif;}
.btn:hover { background: var(--primary);  color: white;}

/* Responsive & Footer */
@media (max-width: 768px) {
.nav-links { display: none; }
.hero-gallery { grid-template-columns: repeat(2, 1fr); }
#hero-new h1 { font-size: 2.2rem; }
.container { padding: 50px 5%; }
}

footer { text-align: center; padding: 40px; background: var(--light); font-size: 0.8rem; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Assurer que le contenu du Hero est bien au-dessus de tout */
.hero-overlay-content { 
    position: relative; 
    z-index: 10; /* Augmenté de 5 à 10 pour être sûr */
    color: white; 
    text-align: center; 
    padding: 20px; 
}

.btn { 
    /* Couleur fixe pour être sûr (un ton terre/ocre élégant) */
    background-color: #a89078 !important; 
    color: #ffffff !important;           /* Texte blanc */
    padding: 15px 30px; 
    border: 2px solid #a89078;          /* Bordure de la même couleur */
    cursor: pointer; 
    text-decoration: none; 
    display: inline-block; 
    transition: 0.3s ease;
    font-weight: 600; 
    font-family: 'Montserrat', sans-serif;
    border-radius: 4px;                 /* Légers bords arrondis pour le confort */
}

/* Au survol : le bouton devient transparent avec une bordure */
.btn:hover { 
    background-color: transparent !important; 
    color: #ffffff !important; 
    border: 2px solid #ffffff;          /* Bordure blanche au survol */
}
#agence .agence-content {
    max-width: 800px; /* Limite la largeur pour ne pas fatiguer l'œil */
    margin: 0 auto;   /* Centre le bloc sur la page */
    text-align: justify; /* Justifie le texte pour un aspect plus propre */
}

#agence p {
    margin-bottom: 25px; /* Ajoute de l'air entre chaque paragraphe */
    font-size: 1.1rem;   /* Légère augmentation pour la lisibilité */
    line-height: 1.8;    /* Aère les lignes entre elles */
}

#agence ul {
    margin-bottom: 25px;
    padding-left: 20px;
    line-height: 1.8;
}

#agence ul li {
    margin-bottom: 10px; /* Sépare chaque puce de liste */
}
/* Style spécifique pour la page Mentions Légales */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;

}

.legal-section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.legal-section p, .legal-section ul {
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section ul li {
    margin-bottom: 8px;
}
/* Style du bouton */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px 0; transition: 0.3s; }

@media (max-width: 950px) {
    .hamburger { 
        display: block; 
    }
    
    /* On force l'affichage en colonne quand il n'est pas actif */
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 999; /* S'assure que le menu passe par-dessus le contenu */
    }

    .nav-links.active { 
        display: flex !important; 
    }
    
    .nav-links li { margin: 15px 0; }
}
section {
    /* Ajustez la valeur selon la hauteur de votre menu (ex: 80px ou 100px) */
    scroll-margin-top: 140px; 
}