/* responsive.css - Styles responsive pour mobile et tablette */

/* ========== Tablette (768px) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* ===== Header & Menu Mobile ===== */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        border-bottom: 1px solid var(--border-color);
        gap: 0;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* CORRECTION MENU BURGER — s'affiche quand JS ajoute .is-open */
    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a {
        padding: 15px;
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* ===== Hero ===== */
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* ===== Grilles ===== */
    .avantages-grid,
    .products-grid,
    .reviews-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* ===== Product Detail ===== */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-gallery {
        position: static;
    }

    /* ===== Thumbnails ===== */
    .thumbnails {
        justify-content: center;
        grid-template-columns: repeat(4, 1fr);
        max-height: none;
    }

    /* ===== Formulaires ===== */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* ===== Footer ===== */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* ===== Reviews ===== */
    .big-rating {
        font-size: 48px;
    }

    .reviews-summary {
        padding: 20px;
    }

    .review-item {
        padding: 15px;
    }

    .product-reviews h2 {
        font-size: 24px;
    }
}

/* ========== Mobile (480px) ========== */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* ===== Logo & Navbar ===== */
    .logo h1 {
        font-size: 18px;
    }

    .navbar {
        padding: 12px 0;
    }

    /* ===== Hero ===== */
    .hero-section {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    /* ===== Sections padding ===== */
    .avantages-section,
    .products-preview,
    .faq-section,
    .reviews-section,
    .products-section,
    .similar-products,
    .prefooter {
        padding: 30px 0;
    }

    /* ===== Headings ===== */
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    /* ===== Cards ===== */
    .advantage-card,
    .review-card,
    .faq-item {
        padding: 15px;
    }

    .product-card {
        border-radius: 8px;
    }

    /* ===== Buttons ===== */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* ===== Formulaires ===== */
    .order-form {
        padding: 15px;
    }

    .form-group input,
    .form-group select {
        padding: 10px;
        font-size: 14px;
    }

    /* ===== Thumbnails ===== */
    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ===== WhatsApp ===== */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }

    /* ===== Tables ===== */
    table {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    /* ===== Prefooter ===== */
    .prefooter h2 {
        font-size: 20px;
    }

    .prefooter p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* ===== Footer ===== */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-col h3,
    .footer-col h4 {
        font-size: 14px;
    }

    .footer-col a,
    .footer-col li {
        font-size: 12px;
    }

    /* ===== Breadcrumb ===== */
    .breadcrumb {
        font-size: 12px;
    }

    /* ===== Prix ===== */
    .price {
        font-size: 16px;
    }

    .price-display {
        font-size: 22px;
    }

    /* ===== Product Detail ===== */
    .product-details h1 {
        font-size: 24px;
    }

    /* ===== Grilles ===== */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .avantages-grid,
    .reviews-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* ===== Reviews ===== */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== Très petit écran (320px) ========== */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .advantage-card,
    .review-card {
        padding: 10px;
    }

    .advantage-card i {
        font-size: 28px;
    }

    .order-form {
        padding: 10px;
    }

    h2 {
        font-size: 18px !important;
    }
}

/* ========== Desktop (1024px+) ========== */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }

    /* Sur desktop, forcer l'affichage du menu même si .is-open est absent */
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        border-bottom: none;
        box-shadow: none;
        gap: 30px;
    }

    .nav-links li {
        border-bottom: none;
    }

    .nav-links a {
        padding: 0;
    }

    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .avantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== iPhone X/11 Pro (375px) ========== */
@media (max-width: 375px) {
    .hero-cta {
        gap: 8px;
    }

    .btn {
        font-size: 12px;
        padding: 10px 18px;
    }
}

/* ========== Orientation Portrait ========== */
@media (orientation: portrait) and (max-width: 768px) {
    .hero-section {
        height: 350px;
    }

    .hero-content h1 {
        font-size: 20px;
    }
}

/* ========== Orientation Landscape ========== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .avantages-section,
    .faq-section {
        padding: 20px 0;
    }
}

/* ========== Haute résolution ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .product-card:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
}

/* ========== Appareils tactiles ========== */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .product-card:active {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}