/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobiles (jusqu'à 768px) */
@media screen and (max-width: 768px) {
    /* Navigation mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        padding: 40px 20px;
        gap: 20px;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Hero section */
    .hero {
        height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Page header */
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* Cards */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .category-card {
        padding: 30px 15px;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Filters */
    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 80px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .sort-options {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-options select {
        flex: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        margin: 20px;
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Product specs */
    .product-specs {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-spec {
        text-align: left;
        display: flex;
        justify-content: space-between;
    }
}

/* Petits mobiles (jusqu'à 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .public-loading-shell {
        width: min(180px, 88vw);
        padding: 16px 18px;
        border-radius: 14px;
        gap: 10px;
    }

    .public-loading-label {
        font-size: 0.85rem;
    }

    .apple-spinner {
        width: 34px;
        height: 34px;
    }

    .apple-spinner span {
        height: 9px;
        margin-top: -13px;
        transform-origin: center 13px;
    }
}

/* Amélioration de l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode paysage sur mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 100px 20px 50px;
    }
}

/* Impression */
@media print {
    .navbar,
    .hamburger,
    .hero,
    .btn,
    .footer,
    .modal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .page-header {
        background: none;
        color: #000;
        padding: 20px 0;
    }
}

