/* ========================================
   KAMCO - Feuille de Style CSS
   ======================================== */

/* Variables CSS */
:root {
    --primary-green: #188701;
    --secondary-green: #66BB6A;
    --accent-orange: #FF6F00;
    --accent-light-bg: #FFFFFF;
    --accent-light-green: #67d36a;
    --accent-turquoise: #1de9b6;
    --light-bg: #F5F5F5;
    --text-dark: #212121;
    --text-light: #757575;
    --whatsapp-green: #25D366;
}

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

/* Styles Globaux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    z-index: 1001;
    margin-right: 3rem;
}

.logo span {
    color: var(--primary-green);
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 225, 233, 0.829);
}


/* ========================================
   Language Dropdown (Menu déroulant)
   ======================================== */
.language-dropdown {
    position: relative;
    margin-left: 1rem;
    z-index: 1002;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--primary-green);
    min-width: 100px;
}

.language-toggle:hover {
    background: var(--primary-green);
    color: white;
}

.language-toggle:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}

.dropdown-arrow {
    transition: transform 0.3s;
    margin-left: auto;
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 0.5rem 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.language-option:hover {
    background: var(--light-bg);
}

.language-option.active {
    background: rgba(24, 135, 1, 0.1);
    color: var(--primary-green);
    font-weight: 600;
}

.language-option img {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}



/* ========================================
   Responsive Design
   ======================================== */

/* Tablette */
@media (max-width: 1024px) {
    .products-carousel .product-card {
        min-width: calc(50% - 1rem);
    }
    
    .gallery-carousel .gallery-item {
        min-width: calc(100% - 0);
    }
}

/* Mobile */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }
    
    .language-dropdown {
        position: absolute;
        right: 60px;
        top: 1rem;
    }
    
    .language-toggle {
        min-width: auto;
        padding: 0.5rem 0.8rem;
    }
    
    .language-toggle span {
        display: none;
    }
}




/* ========================================
   View Controls
   ======================================== */
.view-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: white;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.view-btn.active {
    background: var(--primary-green);
    color: white;
}



/* ========================================
   Hero Section
   ======================================== */
.hero {
    z-index: 1;
    position: relative;
    margin-top: 80px;
    background: linear-gradient(135deg, rgba(24, 135, 1, 0.7), rgba(13, 76, 0, 0.8)); 
                
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 5%;
    text-align: center;

    /* Disposition verticale : image en haut, texte en dessous */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s 0.6s both;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--primary-green);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-green);
}

/* Image Hero — centrée en haut, 60% de la largeur de la section */
.hero-image {
    width: 60%;
    max-width: 100%;
    margin: 0 auto 2rem;   /* centrée horizontalement + espace sous l'image */
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
}

/* ========================================
   Container & Section Title
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 80px 5%;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(13, 199, 199, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}




/* ========================================
   CARROUSELS - CODE UNIQUE ET DÉFINITIF
   ======================================== */

/* Sections */
.products, .gallery {
    padding: 80px 5%;
}

.products { background: white; }
.gallery { background: var(--light-bg); }

/* Conteneur principal */
.carousel-section {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Viewport (masque l'excès) */
.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
}

/* La piste qui bouge */
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Items - Taille fixe */
.carousel-item {
    flex: 0 0 300px; /* Largeur fixe */
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* === SPÉCIFIQUE PRODUITS === */
.products-carousel .product-card {
    background: #f9f9f9;
    min-height: 380px;
}

.products-carousel .product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-carousel .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.products-carousel .product-info {
    padding: 1.5rem;
}

.products-carousel .product-info h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.products-carousel .product-info ul {
    list-style: none;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.products-carousel .product-info li:before {
    content: "✓ ";
    color: var(--secondary-green);
    font-weight: bold;
}

/* === SPÉCIFIQUE GALLERY === */
.gallery-carousel .gallery-item {
    height: 250px;
    position: relative;
    cursor: pointer;
}

.gallery-carousel .gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
}

.gallery-carousel .gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-carousel .gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-carousel .gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-carousel .gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* === BOUTONS DE NAVIGATION === */
.carousel-nav {
    background: var(--primary-green);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    flex-shrink: 0; /* Empêche le rétrécissement */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--secondary-green);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-section {
        gap: 0.5rem;
    }
    
    .carousel-item {
        flex: 0 0 280px;
        min-width: 280px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 85vw;
        min-width: 280px;
    }
    
    .carousel-nav {
        display: none; /* Swipe uniquement sur mobile */
    }
    
    .carousel-viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .carousel-track {
        scroll-snap-align: start;
    }
}





/* ========================================
   Partners Section
   ======================================== */
.partners {
    padding: 80px 5%;
    background: white;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.partner-logo {
    width: 155px;
    height: 155px;
    background: var(--light-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}







/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
    padding: 80px 5%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
}






/* ========================================
   Blog Section
   ======================================== */
.blog {
    padding: 80px 5%;
    background: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-title {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--accent-turquoise);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--primary-green);
}





/* ========================================
   PARTNERS / TESTIMONIALS / BLOG CAROUSELS
   ======================================== */

/* PARTNERS */
.partners-carousel .carousel-track {
    align-items: center;
}

.partners-carousel .partner-logo {
    flex: 0 0 220px;
    min-width: 220px;
    height: 170px;
    background: var(--light-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.partners-carousel .partner-logo img {
    max-width: 100px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

/* TESTIMONIALS */
.testimonials-carousel .testimonial-card {
    flex: 0 0 360px;
    min-width: 360px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonials-carousel .testimonial-card .author-avatar {
    background: white;
    color: var(--primary-green);
    font-weight: bold;
}

/* BLOG */
.blog-carousel .blog-card {
    flex: 0 0 340px;
    min-width: 340px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-carousel .blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* responsive */
@media (max-width: 768px) {
    .partners-carousel .partner-logo {
        flex: 0 0 200px;
        min-width: 200px;
        height: 150px;
    }

    .testimonials-carousel .testimonial-card {
        flex: 0 0 85vw;
        min-width: 85vw;
    }

    .blog-carousel .blog-card {
        flex: 0 0 85vw;
        min-width: 85vw;
    }
}






/* ========================================
   Quote System
   ======================================== */
.quote-system {
    padding: 80px 5%;
    background: white;
}

.quote-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quote-form h3 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.product-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-checkbox {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.product-checkbox:hover {
    background: var(--secondary-green);
    color: white;
}

.product-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

.submit-btn {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
}






/* ========================================
   Stats Section
   ======================================== */
.stats {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    padding: 60px 5%;
    color: white;
}

.stats .container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 2rem;
    align-items: stretch;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem 1rem;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.stat-item p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
    color: white;
}


/* Tablette */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 576px) {
    .stats {
        padding: 50px 5%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-item h3 {
        font-size: 2.4rem;
    }

    .stat-item p {
        font-size: 1rem;
    }
}





/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 80px 5%;
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-turquoise);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateX(10px);
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}




/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 80px 5%;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item span {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--accent-turquoise);
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-turquoise);
    transform: scale(1.1);
}




/* Animation pour le changement de langue */
[data-translate] {
    transition: opacity 0.3s;
}

.translating [data-translate] {
    opacity: 0.5;
}



/* ========================================
   WhatsApp Float Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--accent-turquoise);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}






/* ========================================
   BLOG DETAIL PRO
   ======================================== */
.blog-detail-page {
    background: var(--light-bg);
    min-height: 100vh;
}

.blog-hero {
    margin-top: 90px;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: end;
}

.blog-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.25));
    padding: 80px 5% 50px;
}

.blog-hero-content {
    max-width: 850px;
    color: white;
}

.blog-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.blog-hero-content p {
    font-size: 1.15rem;
    max-width: 700px;
    line-height: 1.7;
}

.blog-detail-main {
    padding: 70px 5%;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.blog-article-card {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.blog-article-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.blog-article-body {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.95;
}

.blog-article-footer {
    margin-top: 2rem;
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-share-card,
.blog-nav-card {
    background: white;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.blog-share-card h3,
.blog-nav-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.share-btn {
    display: inline-block;
    text-align: center;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.linkedIn {
    background: #166114;
}

.prev-next-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prev-article,
.next-article {
    display: block;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light-bg);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, background 0.3s ease;
}

.prev-article:hover,
.next-article:hover {
    transform: translateY(-2px);
    background: #eef8ee;
}

.prev-article small,
.next-article small {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.prev-article strong,
.next-article strong {
    color: var(--primary-green);
    line-height: 1.4;
}

.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.related-articles {
    padding: 20px 5% 80px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.related-content {
    padding: 1.4rem;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.related-content h3 {
    color: var(--primary-green);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.related-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.back-btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 0.9rem 1.4rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.back-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 320px;
    }

    .blog-hero-overlay {
        padding: 60px 5% 35px;
    }

    .blog-hero-content h1 {
        font-size: 1.9rem;
    }

    .blog-hero-content p {
        font-size: 1rem;
    }

    .blog-article-card,
    .blog-share-card,
    .blog-nav-card {
        padding: 1.25rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}







/* ========================================
   Responsive Design
   ======================================== */

/* Tablette */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: start;
        padding-top: 100px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
    
    .cta-button {
        margin-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    /* Sur mobile, l'image occupe plus de place pour rester visible */
    .hero-image {
        width: 75%;
        margin-bottom: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .partners-container {
        gap: 1.5rem;
    }

    .partner-logo {
        width: 120px;
        height: 80px;
    }

    .quote-form {
        padding: 2rem 1.5rem;
    }
}



/* =============================================
   WHATSAPP CHATBOX WIDGET
   ============================================= */

#wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99990;
}

/* Bouton flottant */
#wa-bouton {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    position: relative;
    transition: transform 0.3s;
}

#wa-bouton:hover {
    transform: scale(1.1);
}

.wa-bouton-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-pulse {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.wa-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fenêtre de chat */
.wa-chat {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #e5ddd5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
}

.wa-chat.show {
    display: flex;
    animation: waChatOpen 0.3s ease;
}

@keyframes waChatOpen {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.wa-chat-header {
    background: #075E54;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-statut {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

.wa-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

/* Corps */
.wa-chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-height: 320px;
    background: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h400v400H0z' fill='%23e5ddd5'/%3E%3C/svg%3E");
}

/* Messages */
.wa-message {
    display: flex;
    margin-bottom: 8px;
}

.wa-message-envoye {
    justify-content: flex-end;
}

.wa-message-bulle {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.4;
    position: relative;
}

.wa-message-recu .wa-message-bulle {
    background: white;
    border-top-left-radius: 0;
}

.wa-message-envoye .wa-message-bulle {
    background: #DCF8C6;
    border-top-right-radius: 0;
}

.wa-message-bulle strong {
    display: block;
    color: #075E54;
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.wa-message-bulle p {
    margin: 0;
}

.wa-message-heure {
    display: block;
    text-align: right;
    font-size: 0.6rem;
    color: #999;
    margin-top: 3px;
}

/* Agents */
.wa-agents {
    margin: 10px 0;
}

.wa-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.wa-agent:hover {
    background: #f0f0f0;
}

.wa-agent-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #075E54;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.wa-agent-info {
    flex: 1;
}

.wa-agent-info strong {
    display: block;
    font-size: 0.8rem;
}

.wa-agent-info small {
    color: #999;
    font-size: 0.7rem;
}

.wa-agent-statut {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.wa-agent-statut.online { background: #4CAF50; }
.wa-agent-statut.offline { background: #999; }

/* Messages rapides */
.wa-rapides {
    margin: 10px 0;
}

.wa-rapide-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: white;
    border: 1px solid #eee;
    padding: 8px 10px;
    border-radius: 18px;
    margin-bottom: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wa-rapide-btn:hover {
    background: #DCF8C6;
    border-color: #25D366;
}

/* Footer */
.wa-chat-footer {
    background: #f0f0f0;
    padding: 8px 10px;
}

.wa-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wa-input-wrapper input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
}

.wa-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #075E54;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wa-send-btn:hover {
    background: #25D366;
}

.wa-powered {
    text-align: center;
    font-size: 0.6rem;
    color: #999;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 480px) {
    .wa-chat {
        width: calc(100vw - 30px);
        right: -5px;
        bottom: 70px;
        max-height: 70vh;
    }

    #wa-bouton {
        width: 50px;
        height: 50px;
    }
}