:root {
    /* Palette de couleurs Duval DVL */
    --primary-color: #009966;      /* Vert principal */
    --primary-dark: #007a52;       /* Vert foncé */
    --primary-gradient: linear-gradient(135deg, #2ecf93 0%, #009966 100%);
    --accent-color: #111111;       /* Noir titres */
    --text-body: #4a5568;          /* Gris texte */
    --bg-light: #f8fcf9;           /* Fond très clair */
    --white: #ffffff;
    
    /* Dimensions & Effets */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-card: 16px;
    --radius-btn: 50px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 153, 102, 0.15);
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- RESET & BASES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--white);
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--accent-color); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }

/* Utilitaires SVG */
.icon-svg { width: 24px; height: 24px; fill: currentColor; }
.icon-lg { width: 48px; height: 48px; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 5rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-highlight { color: var(--primary-color); }

/* --- BOUTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-color);
    color: white !important; /* Force le blanc pour contrer les liens noirs */
    padding: 14px 32px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 153, 102, 0.3);
    cursor: pointer;
}
.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 102, 0.4);
}
.btn-secondary { background: transparent; color: var(--primary-color) !important; box-shadow: none; }
.btn-secondary:hover { background: var(--primary-color); color: white !important; }
.btn-white { background: white; color: var(--primary-color) !important; border-color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-white:hover { background: #f0f0f0; color: var(--primary-dark) !important; border-color: #f0f0f0; }

/* --- HEADER --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center;
}
.navbar { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.6rem; font-weight: 900; color: var(--accent-color); letter-spacing: -0.05em; }
.logo span { color: var(--primary-color); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--accent-color); }
.nav-links a:hover { color: var(--primary-color); }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--accent-color); }

@media (max-width: 900px) {
    .nav-links {
        position: absolute; top: var(--header-height); left: 0; right: 0;
        background: white; flex-direction: column; padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%); transition: transform 0.3s ease;
    }
    .nav-links.active { transform: translateY(0); }
    .menu-toggle { display: block; }
    .btn { width: 100%; }
}

/* --- HERO --- */
.hero-wrapper { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; min-height: 80vh; }
.hero-image { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
@media (max-width: 768px) { .hero-wrapper { grid-template-columns: 1fr; text-align: center; gap: 2rem; } }

/* --- BADGE GOOGLE --- */
.google-badge-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; padding: 6px 16px 6px 12px;
    border-radius: 100px; border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-weight: 600; font-size: 0.9rem; color: var(--text-body);
    margin-bottom: 1.5rem; text-decoration: none;
}
.google-badge-link:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- SECTION STATS (CORRECTION AFFICHAGE) --- */
.stats-section { padding: 4rem 0; background: white; border-bottom: 1px solid #f0f0f0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 colonnes */
    gap: 30px;
    text-align: center;
    align-items: center;
}
.stat-item h3 {
    font-size: 3rem; color: var(--primary-color);
    margin-bottom: 0.5rem; font-weight: 900;
}
.stat-item p { font-size: 1rem; font-weight: 600; color: var(--accent-color); }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } /* 2 colonnes sur mobile */
}

/* --- SERVICES (Cards) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 3rem; }
.card {
    background: white; padding: 2.5rem; border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.03);
    transition: 0.3s; height: 100%; display: flex; flex-direction: column; align-items: flex-start;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-color); }
.card-icon-wrapper {
    background: #e6f5ee; width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-bottom: 1.5rem; color: var(--primary-color);
}
.card-link { margin-top: auto; color: var(--primary-color); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.card-link:hover { gap: 10px; }

/* --- TARIFS (Animés) --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-top: 3rem; }
.pricing-card {
    background: var(--primary-gradient);
    color: white; padding: 3rem; border-radius: 24px;
    box-shadow: var(--shadow-md); position: relative; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.pricing-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0, 153, 102, 0.4); }
.pricing-card h3 { color: white; font-size: 1.8rem; margin-bottom: 0.5rem; }
.price-tag { font-size: 3.5rem; font-weight: 800; line-height: 1; margin: 1.5rem 0; }
.price-tag span { font-size: 1rem; font-weight: 500; opacity: 0.9; display: block; margin-bottom: 5px; }
.pricing-features { margin: 2rem 0; text-align: left; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; }
.check-icon { min-width: 20px; color: #adf0d1; }

/* --- AVIS CLIENTS (Animés) --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 3rem; }
.review-card {
    background: var(--primary-gradient);
    color: white; padding: 2.5rem; border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); position: relative;
    transition: all 0.3s ease; cursor: default;
}
.review-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(0, 153, 102, 0.25); z-index: 1; }
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.review-avatar {
    width: 50px; height: 50px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: white; font-size: 1.2rem;
}
.review-stars { color: #FFD700; font-size: 0.9rem; margin-top: 2px; }
.review-text { font-style: italic; opacity: 0.95; font-size: 1rem; line-height: 1.6; }
.quote-icon { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; fill: rgba(255,255,255,0.1); }

/* --- FAQ (Accordion) --- */
.faq-container { max-width: 800px; margin: 3rem auto 0; }
details {
    background: white; margin-bottom: 1rem; border-radius: 12px;
    border: 1px solid #eee; overflow: hidden; transition: 0.3s;
}
details[open] { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
summary {
    padding: 1.5rem; cursor: pointer; font-weight: 700; color: var(--accent-color);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--primary-color); transition: 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
.faq-content { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-body); border-top: 1px solid #f0f0f0; margin-top: 0; padding-top: 1rem;}

/* --- FOOTER --- */
.site-footer { background: #0a0a0a; color: white; padding: 4rem 0 2rem 0; }
.site-footer .logo { color: white; } /* CORRECTION : Logo en blanc */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-title { color: white; font-size: 1.1rem; margin-bottom: 1rem; }
.site-footer a { color: #888; }
.site-footer a:hover { color: white; }
/* CORRECTION : Icones alignées horizontalement */
.social-icons { display: flex; flex-direction: row; gap: 15px; margin-top: 15px; } 
.social-icons a { background: #222; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.social-icons a:hover { background: var(--primary-color); color: white; }

/* --- PAGE CONTACT --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info-box { background: var(--bg-light); padding: 2.5rem; border-radius: var(--radius-card); }
.contact-method { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 2rem; }
.contact-method h4 { margin-bottom: 0.2rem; font-size: 1.1rem; }
.contact-method p, .contact-method a { color: var(--text-body); font-size: 0.95rem; }
.contact-method a:hover { color: var(--primary-color); text-decoration: underline; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--accent-color); font-size: 0.9rem; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 14px 16px; border: 1px solid #e0e0e0; border-radius: 10px; font-family: var(--font-main); font-size: 1rem; color: var(--accent-color); transition: all 0.3s ease; background: white; }
.form-textarea { resize: vertical; min-height: 150px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 4px rgba(0, 153, 102, 0.1); }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-top: 3rem; }
.project-card { background: white; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-image-wrapper { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #f0f0f0; }
.project-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
.project-card:hover .project-image-wrapper img { transform: scale(1.05); }
.project-info { padding: 1.5rem; border-top: 1px solid #f0f0f0; }
.project-category { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-color); font-weight: 700; margin-bottom: 0.5rem; display: block; }
.project-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--accent-color); }

/* --- BANNIÈRE COOKIES (GDPR) --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    border: 1px solid #f0f0f0;
    font-family: var(--font-main);
    display: none; /* Caché par défaut, activé par JS */
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-color);
    display: flex; align-items: center; gap: 8px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-body);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    transition: 0.3s;
}

.btn-cookie-accept:hover { background: var(--primary-dark); }

.btn-cookie-refuse {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-refuse:hover { background: #f5f5f5; color: #333; border-color: #ccc; }

/* Mobile : Bandeau en bas toute largeur */
@media (max-width: 480px) {
    .cookie-banner {
        width: 100%;
        left: 0;
        bottom: 0;
        border-radius: 16px 16px 0 0;
        padding: 20px;
    }
}
