/* =======================================================
   KOUMÉ WATER — CSS MOBILE & TABLETTE
   Cible : max-width 1024px et moins
   Fichier : style-mobile.css
   Version  : 1.1 — Ajout section Témoignages
======================================================= */


/* =======================================================
   TABLETTE — max-width: 1024px
======================================================= */
@media (max-width: 1024px) {

    :root {
        --section-padding: 85px 0;
        --container-width: 100%;
    }

    .container { padding: 0 1.8rem; }

    .section-header { margin-bottom: 3.5rem; }
    .section-title  { font-size: 2.4rem; }

    .hero { grid-template-columns: 1fr 1fr; }
    .hero-content { padding: 7rem 2rem 5rem 2.5rem; }
    .hero-title  { font-size: 3.2rem; }
    .hero-slogan { font-size: 1.1rem; }

    .navbar { padding: 1rem 0; }
    .nav-link { padding: 0.45rem 0.65rem; font-size: 0.85rem; }
    .logo-main { font-size: 1.25rem; }
    .burger { display: none; }

    .stat-item { padding: 0.7rem 1.5rem; font-size: 0.88rem; }

    .about-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .about-img-wrapper  { height: 420px; }
    .about-badge-float  { left: -1rem; }
    .about-years-float  { right: -1rem; }
    .about-text         { font-size: 0.97rem; }

    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
    .product-card    { border-radius: 20px; }
    .product-img-wrap { height: 190px; }
    .product-info    { padding: 1.5rem; }
    .product-volume  { font-size: 1.8rem; }
    .product-featured { transform: none; }
    .product-featured:hover { transform: translateY(-8px); }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
    .service-card  { padding: 2rem 1.8rem; }

    .quality-inner   { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .quality-visual  { height: 380px; }
    .quality-rings   { width: 260px; height: 260px; }
    .ring-1          { width: 260px; height: 260px; }
    .ring-2          { width: 190px; height: 190px; }
    .ring-3          { width: 130px; height: 130px; }

    .social-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }

    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .counter-num   { font-size: 2.6rem; }

    .gallery-grid  { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0.9rem; }
    .gallery-large { grid-row: auto; grid-column: span 2; height: 280px; }
    .gallery-item  { border-radius: 14px; }
    .gallery-item:not(.gallery-large) { height: 200px; }

    /* ---- Témoignages tablette : 2 cartes visibles ---- */
    .testimonials-carousel { padding-bottom: 3.5rem; }

    .testimonial-card {
        flex: 0 0 calc((100% - 1.8rem) / 2);
    }

    .testimonials-controls { gap: 1rem; }

    .contact-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-card-info  { padding: 2.2rem; }
    .contact-form-wrap  { padding: 2.2rem; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
    .footer-top  { padding: 4rem 0 2.5rem; }

    .back-to-top { bottom: 1.8rem; right: 1.8rem; width: 48px; height: 48px; font-size: 1.2rem; }
}


/* =======================================================
   MOBILE — max-width: 768px
======================================================= */
@media (max-width: 768px) {

    :root { --section-padding: 70px 0; }

    .container { padding: 0 1.2rem; }

    /* Anti-débordement global */
    html, body { overflow-x: hidden; width: 100%; }
    * { max-width: 100%; }

    .section-header  { margin-bottom: 2.8rem; }
    .section-title   { font-size: 2rem; }
    .section-subtitle { font-size: 0.95rem; }

    /* ============================================
       NAVBAR MOBILE — Hamburger activé
    ============================================ */
    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        z-index: 1001;
    }

    .burger span {
        display: block;
        width: 26px;
        height: 2px;
        background: var(--white);
        border-radius: 2px;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #header.scrolled .burger span { background: var(--dark); }

    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { opacity: 0; width: 0; }
    .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: min(300px, 85vw);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5.5rem 1.8rem 2rem;
        gap: 0.4rem;
        z-index: 1000;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -12px 0 50px rgba(0,0,0,0.18);
        overflow-y: auto;
        list-style: none;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        color: var(--dark) !important;
        font-size: 1rem;
        padding: 0.8rem 1rem;
        width: 100%;
        border-radius: 12px;
        font-weight: 500;
    }

    .nav-link:hover { background: var(--light); }
    .nav-link::after { display: none !important; }

    .nav-cta {
        width: 100%;
        justify-content: center;
        margin-top: 0.8rem;
        text-align: center;
        border-radius: 12px !important;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,0.55);
        z-index: 999;
        backdrop-filter: blur(4px);
    }

    .menu-overlay.active { display: block; }

    /* ============================================
       HERO MOBILE — Slideshow en fond plein écran
    ============================================ */
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        grid-template-columns: unset;
        min-height: 100svh;
        position: relative;
    }

    /* Slideshow : fond plein écran */
    .hero-slideshow {
        position: absolute !important;
        inset: 0 !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: unset !important;
        z-index: 0;
        /* Annuler le mask-image desktop pour mobile */
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* Overlay sombre visible sur mobile */
    .hero-slide-overlay {
        display: block;
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
            rgba(7,89,133,0.75) 0%,
            rgba(3,60,100,0.88) 60%,
            rgba(3,40,80,0.95) 100%);
        z-index: 2;
        pointer-events: none;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
    }

    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slide-dots {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-particles { width: 100%; }

    .hero-content {
        position: relative;
        z-index: 3;
        text-align: center;
        padding: 110px 1.5rem 5rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-badge  { font-size: 0.75rem; padding: 0.4rem 1rem; }
    .hero-title  { font-size: 2.5rem; margin-bottom: 0.9rem; }
    .hero-slogan { font-size: 1.1rem; }
    .hero-desc   { font-size: 0.92rem; margin-bottom: 2rem; max-width: 100%; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        padding: 0.85rem 1.8rem;
    }

    /* ============================================
       QUICK STATS MOBILE
    ============================================ */
    .stats-row { flex-direction: column; gap: 0; align-items: stretch; }
    .stat-item { padding: 0.75rem 1.5rem; justify-content: center; font-size: 0.88rem; }
    .stat-divider { width: 70%; height: 1px; margin: 0 auto; background: rgba(255,255,255,0.15); }

    /* ============================================
       À PROPOS MOBILE
    ============================================ */
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-img-wrapper  { height: 280px; }
    .about-badge-float  { left: 0.8rem; bottom: 0.8rem; padding: 0.8rem 1.1rem; }
    .about-years-float  { right: 0.8rem; top: 0.8rem; padding: 0.8rem 1.1rem; }
    .about-text     { font-size: 0.95rem; }
    .feature-icon   { width: 42px; height: 42px; min-width: 42px; }
    .about-features { gap: 1rem; margin-top: 1.5rem; }

    /* ============================================
       PRODUITS MOBILE
    ============================================ */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }

    .product-featured { transform: none; }
    .product-featured:hover { transform: translateY(-8px); }
    .product-img-wrap  { height: 200px; }
    .product-info      { padding: 1.5rem; gap: 0.65rem; }
    .product-info h3   { font-size: 1.2rem; }
    .product-volume    { font-size: 1.8rem; }
    .product-desc      { font-size: 0.88rem; }

    /* ============================================
       SERVICES MOBILE
    ============================================ */
    .services-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .service-card { padding: 1.8rem 1.6rem; border-radius: 18px; }
    .service-icon-wrap { width: 56px; height: 56px; border-radius: 14px; font-size: 1.4rem; margin-bottom: 1.1rem; }
    .service-card h3 { font-size: 1.05rem; }

    /* ============================================
       QUALITÉ MOBILE
    ============================================ */
    .quality-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .quality-visual { height: 260px; }
    .quality-rings  { width: 220px; height: 220px; }
    .ring-1 { width: 220px; height: 220px; }
    .ring-2 { width: 160px; height: 160px; }
    .ring-3 { width: 110px; height: 110px; }
    .quality-center-icon { width: 95px; height: 95px; }
    .quality-center-icon i { font-size: 1.8rem; }
    .quality-stats-float { gap: 0.8rem; bottom: 0.5rem; }
    .qstat { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
    .quality-badge { padding: 0.9rem 1.1rem; border-radius: 12px; }
    .qbadge-icon   { width: 40px; height: 40px; min-width: 40px; font-size: 1.1rem; }
    .qbadge-text strong { font-size: 0.9rem; }

    /* ============================================
       ENGAGEMENT SOCIAL MOBILE
    ============================================ */
    .social-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
    .social-card { padding: 1.6rem 1.3rem; border-radius: 18px; }
    .social-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 1rem; }
    .social-card h3 { font-size: 0.98rem; }
    .social-card p  { font-size: 0.82rem; }

    /* ============================================
       COMPTEURS MOBILE
    ============================================ */
    .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
    .counter-card  { padding: 2rem 1.3rem; border-radius: 20px; }
    .counter-icon  { font-size: 1.7rem; margin-bottom: 0.75rem; }
    .counter-num   { font-size: 2.2rem; }
    .counter-card p { font-size: 0.78rem; }

    /* ============================================
       GALERIE MOBILE
    ============================================ */
    .gallery-grid  { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
    .gallery-large { grid-column: span 2; height: 220px; }
    .gallery-item:not(.gallery-large) { height: 170px; }
    .gallery-item  { border-radius: 12px; }

    /* ============================================
       TÉMOIGNAGES MOBILE — 1 carte visible, swipe
    ============================================ */
    .testimonials { overflow: hidden; }

    .testimonials-carousel {
        padding-bottom: 4rem;
        overflow: hidden;
    }

    /* 1 carte pleine largeur */
    .testimonial-card {
        flex: 0 0 100%;
        border-radius: 18px;
        padding: 1.8rem 1.5rem;
        gap: 1rem;
    }

    .testimonial-quote-icon { font-size: 2.2rem; }
    .testimonial-text       { font-size: 0.92rem; }
    .testimonial-stars      { font-size: 0.82rem; }

    .testimonial-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 0.78rem;
    }

    .testimonial-info strong { font-size: 0.88rem; }
    .testimonial-info span   { font-size: 0.75rem; }

    /* Contrôles */
    .testimonials-controls { gap: 0.8rem; }

    .testi-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .testi-dot { width: 7px; height: 7px; }

    /* ============================================
       CONTACT MOBILE
    ============================================ */
    .contact-grid      { grid-template-columns: 1fr; gap: 2rem; }
    .contact-card-info { padding: 1.8rem; border-radius: 20px; }
    .contact-card-info h3 { font-size: 1.25rem; margin-bottom: 1.5rem; }
    .contact-item       { gap: 0.85rem; margin-bottom: 1.2rem; padding-bottom: 1.2rem; }
    .contact-icon       { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; }
    .contact-item strong { font-size: 0.75rem; }
    .contact-item p,
    .contact-item a     { font-size: 0.9rem; }
    .social-link { width: 38px; height: 38px; font-size: 1rem; }
    .contact-form-wrap  { padding: 1.8rem; border-radius: 20px; }
    .contact-form h3    { font-size: 1.25rem; margin-bottom: 1.6rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 0.8rem 1rem; border-radius: 11px; font-size: 0.9rem; }

    /* ============================================
       FOOTER MOBILE
    ============================================ */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-top  { padding: 3.5rem 0 2rem; }
    .footer-col h4 { margin-bottom: 1rem; }
    .footer-col ul li { margin-bottom: 0.5rem; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 0.4rem; }
    .footer-bottom p { font-size: 0.78rem; }

    .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 44px; height: 44px; font-size: 1.1rem; }
}


/* =======================================================
   TRÈS PETIT MOBILE — max-width: 480px
======================================================= */
@media (max-width: 480px) {

    .container { padding: 0 1rem; }

    .section-title  { font-size: 1.75rem; }

    .hero-title  { font-size: 2.1rem; line-height: 1.15; }
    .hero-slogan { font-size: 1rem; }
    .hero-desc   { font-size: 0.88rem; }
    .hero-badge  { font-size: 0.7rem; display: none; }

    .btn { font-size: 0.88rem; padding: 0.8rem 1.5rem; }

    .about-img-wrapper { height: 230px; }
    .about-badge-float,
    .about-years-float { display: none; }

    .products-grid { max-width: 100%; }

    .service-card { padding: 1.5rem 1.3rem; }

    .social-grid { grid-template-columns: 1fr; }
    .social-card { padding: 1.5rem 1.2rem; }

    .counters-grid { grid-template-columns: 1fr 1fr; }
    .counter-num   { font-size: 1.9rem; }
    .counter-card  { padding: 1.6rem 1rem; }

    .gallery-grid  { grid-template-columns: 1fr; }
    .gallery-large { grid-column: auto; height: 220px; }
    .gallery-item:not(.gallery-large) { height: 200px; }

    /* Témoignages tiny */
    .testimonial-card { padding: 1.5rem 1.2rem; }
    .testi-btn { width: 36px; height: 36px; font-size: 0.9rem; }

    .contact-card-info { padding: 1.5rem; }
    .contact-form-wrap { padding: 1.5rem; }

    .footer-social a { width: 36px; height: 36px; }
    .footer-top { padding: 3rem 0 1.8rem; }

    .stat-item { font-size: 0.82rem; }
    .stat-item i { font-size: 1rem; }

    .quality-stats-float { flex-direction: column; align-items: center; gap: 0.6rem; bottom: 0; }
}


/* =======================================================
   PAYSAGE MOBILE — max-height: 500px + landscape
======================================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
        padding: 80px 0 40px;
    }

    .hero-title  { font-size: 2rem; }
    .hero-slogan { display: none; }
    .hero-desc   { display: none; }
    .hero-content { padding-top: 70px; }

    .testimonial-card { padding: 1.2rem 1rem; gap: 0.7rem; }
    .testimonial-text { font-size: 0.85rem; }
}