/* 1. VARIABLES */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #2fa36b;
    --text: #1f2937;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-icon: #9ca3af;
    --border-color: #e5e7eb;
    --facebook-blue: #1877F2;
}

/* 2. RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

/* 3. HEADER & NAVIGATION */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 10px 0;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
}

.logo-ei-sap {
    height: 75px;
    width: auto;
}

.menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    flex-wrap: wrap; 
}

.menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--primary);
}

.btn-menu {
    background: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transition: background 0.3s;
}
.btn-menu:hover {
    background: var(--primary-dark);
}

/* 4. HERO SECTION - IMAGE MODIFIÉE ICI */
.hero {
    min-height: 75vh;
    /* J'ai remplacé l'URL par une image plus chaleureuse et ajusté l'opacité à 0.80 pour mieux voir l'image */
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.80), rgba(47, 163, 107, 0.80)), url('https://images.unsplash.com/photo-1576765608535-5f04d1e3f289?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    margin: auto;
    padding: 40px 0;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background-color: #f0f0f0;
}

/* 5. SECTIONS GÉNÉRALES */
.section {
    padding: 80px 20px;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text);
    position: relative;
    width: 100%;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.gray {
    background: var(--light-bg);
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #4b5563;
}

/* 6. LOGOS DE CONFIANCE */
.trust-logos {
    background-color: #f3f4f6;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-text {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
    opacity: 0.8;
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* 7. GRILLES (AVEC NOUVEAUX STYLES D'ICÔNES) */
.cards, .values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--border-color);
}

/* Nouveau : Style des icônes dans les services */
.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1); /* Bleu très clair */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: #6b7280;
}

.values div {
    text-align: center;
    padding: 20px;
}

.values h3 {
    margin: 15px 0 10px;
    font-size: 1.2rem;
}

/* 8. BANDEAU FISCAL ET BOITE DE PRIX (NOUVEAU) */
.tax-banner {
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #2fa36b 100%);
    color: var(--white);
    padding: 60px 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

/* Mise en page pour avoir le texte à gauche et la boite à droite */
.tax-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap; /* Important pour mobile */
}

.tax-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    min-width: 300px;
}

.tax-icon i {
    font-size: 3.5rem;
    color: #ffffff;
    opacity: 0.9;
}

.tax-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.tax-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Style de la boite de prix */
.price-example-box {
    background: white;
    color: var(--text);
    padding: 25px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    transform: rotate(2deg); /* Petit effet design */
    transition: transform 0.3s;
}

.price-example-box:hover {
    transform: rotate(0deg) scale(1.02);
}

.price-tag {
    background: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.price-row.deduction {
    color: var(--secondary);
}

.price-row.final {
    border-bottom: none;
    font-size: 1.1rem;
    margin-top: 15px;
    background: #f0fdf4; /* Vert très clair */
    padding: 10px;
    border-radius: 8px;
    color: #166534; /* Vert foncé */
}

.price-note {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* 9. PROCESS */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-number {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.step h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.step p {
    font-size: 0.95rem;
    color: #6b7280;
}

/* 10. ZONES D'INTERVENTION */
.zones-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 12px; 
    max-width: 900px;
    margin: 0 auto;
}

.dept-title {
    text-align: center;
    color: var(--text);
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.zone-tag {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.zone-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}
.zone-tag:hover i {
    color: var(--white);
}
.zone-tag i {
    color: var(--secondary);
}

/* 11. FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: #4b5563;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* 12. SECTION CONTACT */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1100px;
    margin: auto;
    align-items: start;
}

.contact-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.contact-text h2::after {
    margin: 15px 0 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    width: 100%;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    align-self: flex-start;
    padding-left: 40px;
    padding-right: 40px;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: var(--primary-dark);
}

/* 13. BANDEAU CONTACT */
.contact-info-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06); 
    margin-top: 60px;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f0f0f0;
    flex-wrap: wrap; 
}

.contact-info-item {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    color: var(--text);
    word-break: break-word; 
    max-width: 100%;
}

.contact-info-item i {
    margin-right: 15px;
    color: var(--gray-icon);
    font-size: 1.4rem;
    flex-shrink: 0; 
}

.fb-link-banner {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    transition: color 0.3s;
    font-weight: 600;
}
.fb-link-banner i {
    color: var(--facebook-blue);
}
.fb-link-banner:hover {
    color: var(--facebook-blue);
}

.contact-info-separator {
    height: 50px;
    width: 2px;
    background-color: var(--border-color);
    margin: 0 50px;
}

/* 14. BOUTON FLOTTANT */
.floating-phone-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.floating-phone-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(47, 163, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); }
}

@media (min-width: 769px) {
    .floating-phone-btn {
        display: none;
    }
}

/* 15. FOOTER */
.footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-social {
    margin-bottom: 25px;
}
.footer-social p {
    margin-bottom: 10px;
    color: #d1d5db;
    font-weight: 600;
}
.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #374151;
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--facebook-blue);
    transform: translateY(-3px);
    color: #fff;
}

.legal-links {
    margin-top: 15px;
    font-size: 0.8rem;
}

.legal-links a {
    color: #6b7280;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--white);
}

/* 16. ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 17. MEDIA QUERIES */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-text h2, .contact-text p {
        text-align: center;
    }
    
    .contact-text h2::after {
        margin: 15px auto 0;
    }

    .contact-form button {
        align-self: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu {
        gap: 15px;
        justify-content: center;
    }

    .desktop-phone {
        display: none;
    }

    .section {
        padding: 50px 20px;
    }

    .hero {
        min-height: 60vh;
        background-attachment: scroll; 
    }

    /* Le bandeau de prix doit passer en colonne sur mobile */
    .tax-layout {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .tax-content {
        justify-content: center;
        text-align: center;
        flex-direction: column; /* Icone au dessus du texte */
    }
    .tax-text p {
        text-align: center;
    }

    .contact-info-banner {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
        align-items: center;
        text-align: center;
    }

    .contact-info-separator {
        display: none;
    }
    
    .contact-info-item {
        flex-direction: column;
        gap: 10px;
        font-size: 1rem;
    }

    .contact-info-item i {
        margin-right: 0;
        margin-bottom: 5px;
    }

    .steps-container {
        flex-direction: column;
    }
    .trust-badge {
        font-size: 1rem;
    }
}