/* Styles pour les appareils mobiles et tablettes */
@media (max-width: 768px) {
    /* Empêcher le scroll horizontal sur toute la page */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Header */
    .header {
        padding: 8px 15px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(10, 10, 10, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav {
        padding: 8px 0;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        min-height: 60px;
        max-height: 60px;
        position: relative;
        display: flex;
    }

    /* Logo */
    .logo {
        font-size: 0;
        width: auto;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .logo-icon {
        font-size: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
    }

    .logo-icon img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #007bbf;
        box-shadow: 0 2px 4px rgba(0, 123, 191, 0.2);
        transition: all 0.3s ease;
    }

    .logo-icon img:hover {
        transform: scale(1.05);
        box-shadow: 0 3px 8px rgba(0, 123, 191, 0.3);
    }

    /* Cacher le menu de navigation */
    .nav-menu {
        display: none;
    }

    /* Bouton d'appel */
    .call-button {
        padding: 0;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        background: #25d366;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
        min-width: unset;
        position: relative;
        text-decoration: none;
        border: none;
        flex-shrink: 0;
        box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
        transition: all 0.3s ease;
    }

    .call-button i {
        font-size: 1.3rem;
        color: white;
        display: block;
        line-height: 1;
    }

    .call-button:hover {
        background: #20b358;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    /* SECTION HERO MOBILE - SLIDESHOW UNIQUEMENT */
    .hero {
        margin-top: 76px;
        padding: 0;
        height: 60vh; /* Hauteur augmentée pour mobile */
        min-height: 400px;
        position: relative;
        overflow: hidden;
    }

    /* Cacher complètement le contenu texte sur mobile */
    .hero-content {
        display: none !important;
    }

    /* Slideshow mobile */
    .hero-slideshow {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 80px;
        /* Retirer tous les filtres qui pourraient causer du flou */
    }

    .hero-slide.active {
        opacity: 1;
    }
    .hero-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(0, 0, 0, 0.05) !important;
    }
    
    .hero-slide-info {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Overlay très léger pour mobile - PAS DE FLOU */
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.1); /* Très léger, presque transparent */
        z-index: 2;
        /* backdrop-filter: RETIRÉ pour mobile */
    }

    /* Bouton Commander sur chaque slide */
    .hero-slide-button {
        position: absolute;
        bottom: 120px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #007bbf, #00a8e6);
        color: white;
        padding: 15px 30px;
        border: none;
        border-radius: 25px;
        font-weight: bold;
        font-size: 1rem;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 123, 191, 0.4);
        z-index: 3;
        white-space: nowrap;
    }

    .hero-slide-button:hover {
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 191, 0.5);
        color: white;
        text-decoration: none;
    }

    /* Indicateurs de progression (points) */
    .hero-indicators {
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
        z-index: 3;
        padding: 10px 20px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 20px;
        backdrop-filter: blur(5px);
    }

    .hero-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }

    .hero-indicator.active {
        background: #007bbf;
        border-color: white;
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(0, 123, 191, 0.5);
    }

    .hero-indicator:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.1);
    }

    /* Informations produit sur slide - Sans effet de flou en arrière-plan */
    .hero-slide-info {
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(0, 0, 0, 0.85); /* Background solide sans flou */
        color: white;
        padding: 12px 18px;
        border-radius: 12px;
        /* backdrop-filter: RETIRÉ pour mobile */
        z-index: 3;
        max-width: 280px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .hero-slide-title {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 6px;
        color: #ffffff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .hero-slide-price {
        font-size: 1.4rem;
        font-weight: bold;
        color: #00a8e6;
        margin-bottom: 6px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .hero-slide-description {
        font-size: 0.9rem;
        color: #e0e0e0;
        line-height: 1.3;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Titres de sections */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Grille des produits */
    .products-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .products-grid::-webkit-scrollbar {
        display: none;
    }

    /* Cartes de produits - État par défaut (pliée) */
    .product-card {
        min-width: 320px;
        flex-shrink: 0;
        margin-bottom: 0;
        height: 360px;
        overflow: hidden;
        position: relative;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        display: flex;
        flex-direction: column;
        transition: all 0.4s ease;
    }

    /* Image produit - Toujours visible avec plus de hauteur */
    .product-image {
        height: 190px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
        flex-shrink: 0;
    }

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

    /* Contenu produit - État plié */
    .product-info {
        padding: 1rem;
        flex-grow: 1;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: 170px;
    }

    /* Titre - Toujours visible */
    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        font-weight: bold;
        color: #ffffff;
        line-height: 1.3;
        flex-shrink: 0;
        display: block;
    }

    /* Prix - Toujours visible */
    .product-price {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        color: #007bbf;
        font-weight: bold;
        flex-shrink: 0;
        display: block;
    }

    /* Description - Cachée par défaut */
    .product-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        line-height: 1.4;
        color: #cccccc;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }

    /* Caractéristiques - Cachées par défaut */
    .product-features {
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 0.85rem;
        color: #cccccc;
        line-height: 1.4;
        font-weight: 500;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .product-features li {
        margin-bottom: 0.4rem;
        padding-left: 1rem;
        color: #cccccc;
        font-weight: 500;
        position: relative;
    }

    .product-features li::before {
        content: '✓';
        color: #007bbf;
        font-weight: bold;
        position: absolute;
        left: 0;
    }

    /* État étendu des cartes de produits */
    .product-card.expanded {
        height: auto;
        min-height: 500px;
        z-index: 10;
        transform: scale(1.02);
    }

    /* Image reste la même taille quand étendu */
    .product-card.expanded .product-image {
        height: 180px;
    }

    /* Contenu étendu */
    .product-card.expanded .product-info {
        min-height: 360px;
        padding: 1.2rem;
        padding-bottom: 70px;
    }

    /* Afficher la description quand étendu */
    .product-card.expanded .product-description {
        max-height: 100px;
        opacity: 1;
        margin-bottom: 1rem;
    }

    /* Afficher les caractéristiques quand étendu */
    .product-card.expanded .product-features {
        max-height: 200px;
        opacity: 1;
        margin-bottom: 1rem;
        padding-left: 0.5rem;
    }

    /* Indicateur "Voir plus/moins" */
    .product-info::after {
        content: "👇 Voir plus";
        position: absolute;
        bottom: 45px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 123, 191, 0.1);
        color: #007bbf;
        padding: 6px 16px;
        text-align: center;
        font-size: 0.8rem;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 123, 191, 0.3);
        font-weight: 500;
        white-space: nowrap;
        z-index: 2;
    }

    .product-card.expanded .product-info::after {
        content: "👆 Voir moins";
        bottom: 45px;
    }

    /* Bouton de commande */
    .product-button {
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 0.9rem;
        padding: 12px 24px;
        background: linear-gradient(135deg, #007bbf, #00a8e6);
        color: white;
        border: none;
        border-radius: 20px;
        text-decoration: none;
        text-align: center;
        font-weight: 600;
        transition: all 0.3s ease;
        z-index: 5;
        width: 85%;
        max-width: 220px;
        min-width: 160px;
    }

    .product-button:hover {
        background: #005a8a;
        color: white;
        transform: translateX(-50%) translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 123, 191, 0.3);
    }

    /* SERVICES SECTION - SCROLL HORIZONTAL SUR MOBILE */
    .services {
        padding: 50px 0;
    }

    .services .container {
        padding: 0; /* Retirer le padding pour le scroll */
    }

    .services-grid {
        display: flex; /* Changer en flex pour scroll horizontal */
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1.5rem;
        padding: 0 15px; /* Padding sur les côtés */
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        min-width: 280px; /* Largeur minimale pour chaque carte */
        flex-shrink: 0; /* Empêche la réduction */
        padding: 1.5rem;
        background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
        border-radius: 15px;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        height: auto;
    }

    .service-card:hover {
        transform: translateY(-5px);
        border-color: #007bbf;
        box-shadow: 0 10px 25px rgba(0, 123, 191, 0.2);
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-stats {
        justify-content: center;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        padding: 0.5rem 0;
    }

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

    .services::after {
        content: "← Balayez pour voir tous nos services →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: #007bbf;
        margin-top: 1rem;
        font-style: italic;
        font-weight: 500;
        padding: 0 15px;
    }

    .services,
    .products,
    .about,
    .contact {
        padding: 50px 0;
    }

    .products::after {
        content: "← Balayez pour voir plus de produits →";
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: #007bbf;
        margin-top: 1rem;
        font-style: italic;
        font-weight: 500;
    }
}

/* Très petits écrans */
@media (max-width: 360px) {
    .nav {
        height: 55px;
        min-height: 55px;
        max-height: 55px;
        padding: 5px 0;
    }

    .logo {
        height: 45px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon img {
        width: 42px;
        height: 42px;
    }

    .call-button {
        width: 45px;
        height: 45px;
    }

    .call-button i {
        font-size: 1.1rem;
    }

    .hero {
        margin-top: 70px;
        height: 55vh;
        min-height: 350px;
    }

    /* Ajustements pour très petits écrans */
    .hero-slide-info {
        top: 15px;
        left: 15px;
        padding: 10px 15px;
        max-width: 220px;
        background: rgba(0, 0, 0, 0.85);
    }

    .hero-slide-title {
        font-size: 1.1rem;
    }

    .hero-slide-price {
        font-size: 1.3rem;
    }

    .hero-slide-description {
        font-size: 0.85rem;
    }

    .hero-slide-button {
        bottom: 110px;
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .hero-indicators {
        bottom: 55px;
        gap: 10px;
        padding: 8px 16px;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }

    .product-card {
        min-width: 300px;
        max-width: 300px;
        height: 330px;
    }

    .product-card.expanded {
        min-height: 480px;
    }

    .product-card.expanded .product-info {
        min-height: 340px;
        padding-bottom: 70px;
    }

    .product-image {
        height: 160px;
    }

    .product-card.expanded .product-image {
        height: 160px;
    }

    .product-info {
        min-height: 170px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 10px;
    }
}