/* ==========================================================================
   Base styles
   ========================================================================== */

:root {
    /* Couleurs principales */
    --primary-color: #41a468;
    --secondary-color: #338a54;
    --dark-color: #333;
    --light-color: #f4f7f9;
    --white: #ffffff;
    --light-gray: #e9ecef;
    --text-color: #333;
    
    /* Ombres */
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Empêche le whitespace sous les images */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: color var(--transition-fast);
}

.text-link:hover {
    color: var(--secondary-color);
}

.text-link i {
    font-size: 0.9rem;
    margin-left: 5px;
}

.info-box {
    background-color: rgba(65, 164, 104, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 0;
}

.info-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-box h4 i {
    margin-right: 8px;
}

.centered-button {
    text-align: center;
    margin-top: 15px;
    display: block;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* ==========================================================================
   Mobile Call Button
   ========================================================================== */

.mobile-call-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s;
}

.mobile-call-button:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
}

.mobile-call-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .mobile-call-button {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
}

/* ==========================================================================
   Header styles
   ========================================================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--header-shadow);
    z-index: 1000;
    transition: all var(--transition-fast);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: 25px;
}

.main-menu li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.main-menu li a:hover {
    color: var(--primary-color);
}

.main-menu li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width var(--transition-fast);
}

.main-menu li a:hover::after {
    width: 100%;
}

.phone-number {
    margin-left: 30px;
}

.phone-number a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.phone-number a i {
    margin-right: 5px;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    margin-left: 20px;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   Hero Section & Callback Form
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-content {
    position: relative;
    color: var(--white);
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.callback-form-container {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.callback-form-container h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.callback-form .form-group {
    margin-bottom: 15px;
}

.callback-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.callback-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.callback-form button {
    width: 100%;
    margin-top: 10px;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   Formalités Section
   ========================================================================== */

.formalities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.formality-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-fast);
    height: 100%;
}

.formality-card:hover {
    transform: translateY(-10px);
}

.formality-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.formality-icon i {
    font-size: 2.2rem;
    color: var(--primary-color);
}

.formality-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   Normes Écologiques Section
   ========================================================================== */

.eco-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.eco-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    height: auto;
}

.eco-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.eco-item {
    display: flex;
    gap: 20px;
}

.eco-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.eco-text h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

/* ==========================================================================
   Zone d'intervention Section
   ========================================================================== */

.zones-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.zones-map img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
    height: auto;
}

.zones-content {
    display: flex;
    flex-direction: column;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.zone-group h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.zone-group h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

.zone-group ul {
    margin-left: 35px;
}

.zone-group ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.zone-group ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.zone-info {
    margin-top: 20px;
}

/* ==========================================================================
   Services (VHU) Section
   ========================================================================== */

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-fast);
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 3px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.author-location {
    color: #777;
    font-size: 0.9rem;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease-out;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    padding: 15px 0;
    display: none;
}

.form-message.success {
    display: block;
    color: #28a745;
}

.form-message.error {
    display: block;
    color: #dc3545;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-column ul li span {
    color: #ccc;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-media a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credit {
    font-size: 0.9rem;
}

.credit a {
    color: var(--primary-color);
}

.credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
        max-width: 800px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .callback-form-container {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 1024px) {
    .eco-container,
    .zones-container {
        grid-template-columns: 1fr;
    }
    
    .eco-image,
    .zones-map {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .main-menu li {
        margin-left: 15px;
    }
    
    .main-menu li a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    #header .container {
        height: 70px;
    }

    .main-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        transition: left var(--transition-fast);
        align-items: center;
        justify-content: flex-start;
        padding: 30px 0;
        z-index: 999;
        overflow-y: auto;
    }

    .main-menu.active {
        left: 0;
    }

    .main-menu li {
        margin: 15px 0;
    }

    .burger-menu {
        display: flex;
    }
    
    .phone-number {
        margin-right: 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .eco-item {
        align-items: flex-start;
    }
    
    .hero-section {
        min-height: 800px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .phone-number span {
        display: none;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .btn {
        width: 100%;
    }
    
    .callback-form-container {
        padding: 20px 15px;
    }
}