/* --- VARIABLES ET BASES --- */
:root {
    --primary: #2c3e50;    /* Bleu foncé pro */
    --accent: #27ae60;     /* Vert confiance */
    --light: #f4f7f6;      /* Fond gris très clair */
    --dark: #1a252f;       /* Fond bleu sombre */
    --text: #333;
    --white: #ffffff;
}

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

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: var(--text); 
    line-height: 1.6; 
    scroll-behavior: smooth; 
}

.container { 
    max-width: 1100px; 
    margin: auto; 
    padding: 60px 20px; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: 2.2rem; 
    color: var(--primary); 
}

.section-title.white { color: var(--white) !important; }

/* --- NAVIGATION & LOGO --- */
header { 
    background: var(--white); 
    padding: 1rem; 
    position: sticky; 
    top: 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    z-index: 1000; 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; 
    margin: auto; 
}

/* Votre nom rendu plus élégant */
.logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--primary); 
    text-decoration: none;
    letter-spacing: -1px;
    transition: 0.3s ease;
    display: inline-block;
}

.logo:hover { 
    color: var(--accent); 
    transform: translateY(-1px);
}

nav ul { 
    display: flex; 
    list-style: none; 
    align-items: center;
}

nav ul li { margin-left: 20px; }

nav a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 600; 
    transition: 0.3s;
}

nav a:hover { color: var(--accent); }

.btn-nav {
    background: var(--accent);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 5px;
}

/* --- HERO SECTION --- */
.hero { 
    background: linear-gradient(rgba(44, 62, 80, 0.92), rgba(44, 62, 80, 0.92)); 
    color: var(--white); 
    padding: 100px 20px; 
    text-align: center; 
}

.hero h1 { 
    font-size: 2.8rem;
    line-height: 1.2; 
    margin-bottom: 20px;
}

.highlight { color: var(--accent); }

.btn-main { 
    background: var(--accent); 
    color: var(--white); 
    padding: 18px 35px; 
    border-radius: 5px; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 1.2rem; 
    font-weight: bold;
    transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-main:hover { 
    background: #219150; 
    transform: translateY(-2px);
}

/* --- SERVICES & CARTES --- */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px; 
}

.card { 
    padding: 30px; 
    background: var(--white); 
    border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    border-top: 5px solid var(--accent); 
}

/* --- SECTION QUI SUIS-JE (PRÉSENTATION) --- */
.bg-light { background: var(--light); }

.about-card { 
    display: flex; 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    align-items: center;
}

.about-image { flex: 1; padding: 40px; text-align: center; }

.profile-img { 
    width: 220px; 
    height: 220px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid var(--light); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.about-content { flex: 2; padding: 40px; }
.about-title { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary); }
.lead { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; color: var(--accent); }

.about-highlights { 
    margin-top: 25px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

.h-item { 
    background: var(--light); 
    padding: 10px 15px; 
    border-radius: 8px; 
    font-size: 0.9rem; 
}

/* --- ZONE D'INTERVENTION --- */
.bg-dark { 
    background: var(--primary); 
    color: var(--white); 
}

.zone-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.zone-info { flex: 1; min-width: 300px; }

.communes-grid {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.city {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- TARIFS --- */
.pricing-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.pricing-table { 
    max-width: 400px; 
    width: 100%; 
    background: var(--white); 
    padding: 40px; 
    border-radius: 15px; 
    border: 2px solid var(--accent); 
    text-align: center;
}

.price { font-size: 3rem; font-weight: bold; color: var(--accent); margin: 10px 0; }
.price small { display: block; font-size: 1rem; color: var(--text); font-weight: normal; }
.price-list { list-style: none; text-align: left; margin: 20px 0; }
.price-list li:before { content: "✓ "; color: var(--accent); font-weight: bold; }

/* --- FOOTER & BAS DE PAGE --- */
footer { 
    background: #1a252f; 
    color: var(--white); 
    padding: 50px 20px; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.badge-sap { 
    border: 2px dashed rgba(255,255,255,0.3); 
    padding: 20px; 
    border-radius: 10px; 
    max-width: 300px; 
}

.footer-bottom { 
    text-align: center; 
    margin-top: 30px; 
    font-size: 0.8rem; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
}

.footer-bottom a { 
    color: #bdc3c7; 
    margin: 0 10px; 
    text-decoration: none; 
    transition: 0.3s;
}

.footer-bottom a:hover { color: var(--white); }

/* --- ÉLÉMENTS CACHÉS (MODALES & COOKIES) --- */
.modal, .cookie-banner {
    display: none; /* TRÈS IMPORTANT : Doit être en minuscule */
    position: fixed;
    z-index: 9999;
}

.modal {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 85%;
    max-width: 600px;
    position: relative;
    color: var(--text);
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.cookie-banner {
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-cookie {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* --- MOBILE --- */
@media (max-width: 850px) {
    .about-card, .zone-wrapper { flex-direction: column; }
    .about-highlights { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .hero h1 { font-size: 2.1rem; }
}
