/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --primary: #be1717;      /* Orange vif */
    --primary-dark: #8a0202; /* Orange foncé */
    --dark: #2d3436;         /* Gris très foncé */
    --grey: #636e72;         /* Gris moyen */
    --light: #f5f6fa;        /* Fond très clair */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--light);
    display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }

/* =========================================
   2. TYPOGRAPHIE & UTILS
   ========================================= */
h1, h2, h3, h4 { color: var(--dark); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
h1 { font-size: 2.5rem; } 
h2 { font-size: 2rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f8f9fa; }
.text-center { text-align: center; }
.highlight { color: var(--primary); }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Remplace l'ancien style .logo par ceci */
.nav-logo {
    height: 50px; /* Ajuste la hauteur selon tes préférences */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .nav-logo {
    transform: scale(1.05); /* Petit effet de zoom au survol */
}

/* Boutons */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 50px;
    font-weight: 600; text-transform: uppercase; font-size: 0.9rem;
    cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: 10px; }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-group { margin-top: 25px; }

/* =========================================
   3. HEADER & NAV (Fond Blanc Forcé)
   ========================================= */
header {
    background-color: var(--white); /* IMPORTANT */
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 1000;
}

.top-bar { background: #222; color: #ccc; font-size: 0.85rem; padding: 8px 0; }
.top-bar i { color: var(--primary); margin-right: 5px; }
.top-bar span { margin-right: 20px; }

.nav-container { height: 70px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: var(--dark); }
.logo span { color: var(--primary); font-size: 2rem; }

.nav-menu { display: flex; gap: 25px; align-items: center; }
.nav-menu a { font-weight: 600; color: #555; position: relative; font-size: 0.95rem; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.btn-cta { background: var(--dark); color: var(--white) !important; padding: 8px 20px; border-radius: 4px; }
.btn-cta:hover { background: var(--primary) !important; }

.burger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--dark); }

/* =========================================
   4. HERO (Overlay sombre pour lisibilité)
   ========================================= */
.hero {
    height: 600px;
    /* Overlay plus sombre (0.7) pour que le texte blanc ressorte bien */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1920');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white);
    margin-top: 0; /* Fix overlap */
}
.hero h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Page Header (Autres pages) */
.page-header {
    background: linear-gradient(rgba(45, 52, 54, 0.9), rgba(45, 52, 54, 0.8)), url('https://images.unsplash.com/photo-1503602642458-2321114453ad?auto=format&fit=crop&w=1920');
    background-size: cover; background-position: center;
    color: var(--white); padding: 80px 0; text-align: center;
}
.page-header h1 { color: var(--white); margin: 0; }

/* =========================================
   5. PARTENAIRES & GRILLES
   ========================================= */
.partners { background: var(--white); padding: 30px 0; border-bottom: 1px solid #eee; }
.partner-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; opacity: 0.6; }
.partner-logos span { font-size: 1.2rem; font-weight: bold; color: #555; display: flex; align-items: center; gap: 10px; }

/* Grilles */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 50px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
    background: var(--white); padding: 40px 30px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-align: center; border-bottom: 4px solid transparent; transition: var(--transition);
}
.card:hover { transform: translateY(-5px); border-bottom-color: var(--primary); box-shadow: var(--shadow-lg); }
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* =========================================
   6. TÉMOIGNAGES (Style Manquant Ajouté)
   ========================================= */
.testimonial-card {
    background: var(--white); padding: 30px; border-radius: 8px;
    box-shadow: var(--shadow); position: relative;
    display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-card p { font-style: italic; color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.client-info { display: flex; align-items: center; gap: 15px; margin-top: auto; }
.client-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ddd; object-fit: cover; }
.stars { color: #f1c40f; margin-bottom: 15px; font-size: 0.9rem; }

/* =========================================
   7. FORMULAIRE & FOOTER
   ========================================= */
/* Formulaire (Style Apple/Clean) */
.contact-container { max-width: 800px; margin: 0 auto; }
.contact-card {
    background: var(--white); padding: 50px; border-radius: 12px;
    box-shadow: var(--shadow-lg); border-top: 5px solid var(--primary);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.form-control {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px;
    font-size: 1rem; background-color: #fafafa; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); background-color: #fff; outline: none; }
.contact-info-bar { display: flex; justify-content: space-around; margin-bottom: 40px; text-align: center; }
.info-item i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }

/* Footer */
footer { background: #1e272e; color: #b2bec3; padding-top: 60px; margin-top: auto; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { background: #000; padding: 20px 0; margin-top: 40px; font-size: 0.85rem; }

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .burger { display: block; }
    .nav-menu {
        position: absolute; top: 70px; left: 0; width: 100%; background: var(--white);
        flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); display: none;
    }
    .nav-menu.show { display: flex; }
    .hero h1 { font-size: 2.2rem; }
    .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
    .contact-info-bar { flex-direction: column; gap: 30px; }
}

/* =========================================
   9. SLIDER (CSS Manquant)
   ========================================= */
.comparison-section { background: var(--white); }
.container-slider {
    position: relative; width: 100%; max-width: 900px; margin: 0 auto;
    aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.image-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.image-after { z-index: 2; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 50; }
.slider-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 10; pointer-events: none; }
.slider-button {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: var(--primary); border: 2px solid #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; z-index: 11; pointer-events: none;
}
.portfolio-filter { margin-bottom: 40px; }
.filter-btn { background: transparent; border: 2px solid #ddd; padding: 8px 20px; margin: 0 5px; border-radius: 50px; cursor: pointer; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item img { height: 250px; border-radius: 6px; }