/* --- Variables & Reset --- */
:root {
    --primary-green: #37b34a; 
    --vivid-green: #32CD32;   
    --dark-green: #1e5e28;    
    --wood-color: #8B4513;    
    --text-color: #2c3e50;
    --light-bg: #f0f7f0;      
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.15); 
    --radius: 15px; 
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

/* Décorations de section (Vagues) */
.wave-top { position: absolute; top: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }
.wave-bottom { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-fill { fill: var(--light-bg); }

.bg-gradient {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    position: relative;
}
.bg-white { background-color: var(--white); position: relative; }

/* --- Navigation --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: px; background: var(--white); position: sticky; top: 0;
    z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-green); text-transform: uppercase; letter-spacing: 1px; display:flex; align-items:center; }
.logo img { height: 80px; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 60px; }
.nav-links a { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; position: relative; }
.nav-links a::after { content: ''; width: 0; height: 3px; background: var(--vivid-green); position: absolute; bottom: -5px; left: 0; transition: 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--dark-green); margin: 5px; transition: 0.3s; }

/* --- Hero Section --- */
.hero {
    height: 90vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
}
.hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; filter: brightness(0.6); }
.hero-content {
    background: rgba(0,0,0,0.4); padding: 40px; border-radius: var(--radius);
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2);
}
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.btn {
    display: inline-block; padding: 15px 35px; background: var(--vivid-green); color: var(--white);
    border-radius: 50px; font-weight: 700; box-shadow: 0 5px 15px rgba(50, 205, 50, 0.4); transition: 0.3s;
}
.btn:hover { background: var(--dark-green); transform: translateY(-3px); }

/* --- Sections Accueil --- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.feature-box {
    background: var(--white); padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center; transition: 0.3s; border-bottom: 5px solid var(--vivid-green);
}
.feature-box:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.history-section { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.history-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Services Slider (Optimisé pour les images 16/9) --- */
.sliders-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
}

.comparison-wrapper {
    flex: 1; 
    min-width: 300px;
    max-width: 800px; /* Plus large pour que le 16/9 rende vraiment bien */
    margin: 0 auto;
}

.comparison-slider {
    position: relative; 
    width: 100%; 
    aspect-ratio: 16 / 9; /* C'est ça qui force le format parfait TV/Paysage ! */
    margin: 20px auto; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow); 
    overflow: hidden; 
    border: 5px solid var(--white);
}

.comparison-slider > figure { 
    margin: 0; 
    width: 100%; 
    height: 100%; 
}

.comparison-slider img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
}

.divisor {
    position: absolute; top: 0; left: 0; bottom: 0; width: 50%; overflow: hidden;
    border-right: 4px solid var(--vivid-green); 
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

.divisor figure { 
    margin: 0; 
    height: 100%; 
}

.slider-range {
    position: absolute; top: 50%; left: 0; width: 100%; margin: -15px 0 0 0; 
    opacity: 0; cursor: ew-resize; height: 50px; z-index: 20;
}

.slider-handle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: var(--vivid-green); border-radius: 50%; 
    z-index: 10; display: flex; align-items: center; justify-content: center; 
    color: white; pointer-events: none;
    font-size: 14px; font-weight: bold;
}

/* --- Bois & Calculateur --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.card:hover { transform: scale(1.02); }
.card-content { padding: 25px; }
.price-tag { background: var(--vivid-green); color: var(--white); padding: 5px 15px; border-radius: 20px; font-weight: bold; }

.calculator-box {
    background: var(--white); padding: 40px; border-radius: var(--radius);
    box-shadow: var(--shadow); max-width: 800px; margin: 0 auto; border-top: 10px solid var(--wood-color);
}
.calc-row { margin-bottom: 20px; text-align: left; }
.calc-row label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--dark-green); }

.input-number-styled {
    width: 100%; padding: 15px; font-size: 1.2rem; border: 2px solid #ddd;
    border-radius: 10px; font-family: inherit; color: var(--dark-green); font-weight: bold; outline: none;
}
.input-number-styled:focus { border-color: var(--vivid-green); background: #f9fff9; }

.calc-row select { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #ccc; font-size: 1rem; }
.checkbox-group { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; cursor: pointer; }
.checkbox-group input { width: 20px; height: 20px; accent-color: var(--vivid-green); }
.total-price { font-size: 2.5rem; color: var(--vivid-green); font-weight: bold; margin-top: 20px; }

/* --- Avis & Footer --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.review-box { background: var(--light-bg); padding: 20px; border-radius: var(--radius); border: 1px solid #ddd; }
.map-container iframe { width: 100%; height: 400px; border-radius: var(--radius); box-shadow: var(--shadow); border: none; }

footer { background: #1a1a1a; color: #ccc; padding-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-section h3 { color: var(--vivid-green); margin-bottom: 20px; }

/* --- Mobile --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; height: 100vh; top: 0;
        background: var(--white); display: flex; flex-direction: column;
        align-items: center; justify-content: center; width: 70%;
        transform: translateX(100%); transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; z-index: 1001; }
    .hero-content h1 { font-size: 2rem; }
    .history-section { grid-template-columns: 1fr; }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }