/* ================================================================
   🌟 GLOW BY KAWTAR - RESPONSIVE DESIGN UNIVERSEL
   ================================================================ */

/* === RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === TABLETTES (max-width: 992px) === */
@media (max-width: 992px) {
    /* Navigation */
    nav {
        padding: 15px 20px !important;
    }

    .logo {
        font-size: 24px !important;
    }

    /* Container */
    .container, .products-container {
        width: 90%;
        padding: 15px;
    }

    /* Grilles */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

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

    /* Hero */
    .hero {
        padding: 60px 30px !important;
    }

    .hero h1 {
        font-size: 42px !important;
    }

    .section-title {
        font-size: 36px !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

/* === SMARTPHONES (max-width: 768px) === */
@media (max-width: 768px) {
    /* Typography */
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 28px !important;
    }

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

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

    /* Navigation mobile */
    nav {
        flex-wrap: wrap;
        padding: 15px !important;
    }

    .logo {
        font-size: 22px !important;
        letter-spacing: 1px !important;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
        margin-top: 15px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px !important;
        width: 100%;
    }

    /* Container & Sections */
    .container, .products-container {
        width: 95%;
        padding: 15px;
    }

    .products {
        padding: 40px 15px !important;
    }

    /* Grilles - 1 colonne sur mobile */
    .products-grid, 
    .values-grid,
    .grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Hero */
    .hero {
        padding: 40px 20px !important;
    }

    .hero h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px !important;
    }

    .cta-button {
        padding: 12px 30px !important;
        font-size: 16px !important;
        width: 100%;
        max-width: 300px;
    }

    /* Product Cards */
    .product-card {
        max-width: 100%;
    }

    .product-image {
        height: 250px !important;
    }

    .product-name {
        font-size: 18px !important;
    }

    .product-price {
        font-size: 18px !important;
    }

    .product-info {
        padding: 20px !important;
    }

    /* Sidebar & Filters */
    .sidebar {
        position: static !important;
        width: 100%;
        padding: 20px;
        margin-bottom: 30px;
    }

    .products-main {
        width: 100%;
    }

    .filter-section {
        margin-bottom: 20px;
    }

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

    /* Forms */
    .form-row {
        flex-direction: column !important;
    }

    .form-group {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    input, select, textarea {
        width: 100% !important;
        font-size: 16px !important; /* Évite le zoom sur iOS */
        padding: 12px !important;
    }

    /* Buttons */
    .btn, 
    .filter-button, 
    .submit-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center;
    }

    .footer-section {
        padding: 20px 0;
    }

    .footer-links {
        padding: 0;
    }

    footer {
        padding: 40px 20px 20px !important;
    }

    /* Philosophy Section */
    .philosophy-container {
        grid-template-columns: 1fr !important;
    }

    .philosophy-image-wrapper {
        height: 300px;
    }

    .philosophy-text {
        padding: 25px 20px !important;
    }

    /* Quote Section */
    .quote-section {
        padding: 40px 25px !important;
        margin-top: 50px !important;
    }

    .quote-text {
        font-size: 1.2rem !important;
    }

    /* FAQ */
    .faq-question {
        padding: 18px 15px !important;
        font-size: 1rem !important;
    }

    .faq-answer {
        padding: 0 15px 18px 15px !important;
    }

    .faq-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 1.2rem !important;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Stats Grid (Admin) */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Actions */
    .actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .actions .btn {
        width: 100%;
    }

    /* Panier flottant */
    .floating-cart {
        bottom: 15px !important;
        right: 15px !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
    }

    /* Page Header */
    .page-header {
        padding: 40px 20px !important;
    }

    .page-header h1 {
        font-size: 28px !important;
    }

    .page-header p {
        font-size: 16px !important;
    }

    .products-header {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .sort-select {
        width: 100%;
    }

    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 5px !important;
        justify-content: center;
    }

    .page-btn {
        padding: 8px 12px !important;
        font-size: 14px !important;
        min-width: 40px;
    }

    /* Value Cards */
    .value-card {
        padding: 30px 20px !important;
    }

    .value-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }

    /* Brands Hero */
    .brands-hero {
        padding: 50px 20px !important;
    }

    .brands-hero h1 {
        font-size: 32px !important;
    }

    /* Brands Grid */
    .brands-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Contact Form */
    .contact-container {
        max-width: 100%;
        padding: 30px 20px !important;
    }

    /* Image overlays & decorative elements */
    .decorative-element {
        width: 80px !important;
        height: 80px !important;
    }
}

/* === PETITS SMARTPHONES (max-width: 480px) === */
@media (max-width: 480px) {
    /* Typography ultra compact */
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 24px !important;
    }

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

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

    p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Logo */
    .logo {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }

    .logo::before {
        display: none; /* Cache l'étoile sur très petits écrans */
    }

    /* Container */
    .container {
        width: 100%;
        padding: 10px;
    }

    /* Hero ultra compact */
    .hero {
        padding: 30px 15px !important;
    }

    .hero h1 {
        font-size: 24px !important;
    }

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

    /* Product Card */
    .product-image {
        height: 200px !important;
    }

    .product-name {
        font-size: 16px !important;
    }

    .product-price {
        font-size: 16px !important;
    }

    .product-info {
        padding: 15px !important;
    }

    /* Buttons */
    .btn, 
    .cta-button {
        padding: 12px 20px !important;
        font-size: 15px !important;
    }

    /* Sections */
    .products {
        padding: 30px 10px !important;
    }

    .section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    /* Footer */
    .footer-logo {
        font-size: 24px !important;
    }

    .footer-title {
        font-size: 16px !important;
    }

    .footer-links a {
        font-size: 13px !important;
    }

    .footer-bottom {
        font-size: 12px !important;
        padding: 15px !important;
    }

    /* Panier */
    .floating-cart {
        bottom: 10px !important;
        right: 10px !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }

    /* Philosophy & Quote */
    .philosophy-text {
        padding: 20px 15px !important;
        font-size: 14px !important;
    }

    .quote-section {
        padding: 30px 20px !important;
    }

    .quote-text {
        font-size: 1.1rem !important;
    }

    /* FAQ */
    .faq-section {
        padding: 40px 10px !important;
    }

    .faq-question {
        padding: 15px 12px !important;
        font-size: 0.95rem !important;
    }

    .faq-answer-content {
        font-size: 0.9rem !important;
    }

    /* Value Cards */
    .value-card {
        padding: 25px 15px !important;
    }

    .value-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }

    .value-card h3 {
        font-size: 1.2rem !important;
    }

    .value-card p {
        font-size: 0.95rem !important;
    }

    /* Sidebar */
    .sidebar {
        padding: 15px;
    }

    .filter-section h3 {
        font-size: 15px !important;
    }

    .filter-option {
        font-size: 14px;
    }

    /* Inputs */
    input, select, textarea {
        padding: 10px !important;
        font-size: 16px !important;
    }

    .price-input {
        width: 100%;
    }

    /* Page Header */
    .page-header {
        padding: 30px 15px !important;
    }

    .page-header h1 {
        font-size: 24px !important;
    }

    .page-header p {
        font-size: 14px !important;
    }

    /* Products Header */
    .products-count {
        font-size: 14px !important;
    }

    /* Pagination */
    .page-btn {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    /* Brands */
    .brands-hero h1 {
        font-size: 26px !important;
    }

    .brand-card {
        padding: 20px !important;
    }

    /* Contact */
    .contact-container {
        padding: 25px 15px !important;
    }
}

/* === ORIENTATION PAYSAGE SUR MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto !important;
        padding: 20px !important;
    }

    .navbar {
        height: 60px !important;
    }

    .mobile-menu-toggle {
        padding: 8px;
    }

    .nav-links {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
}

/* === TRÈS GRANDS ÉCRANS (min-width: 1600px) === */
@media (min-width: 1600px) {
    .container,
    .products-container {
        max-width: 1500px;
    }

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

    .hero h1 {
        font-size: 64px !important;
    }

    .section-title {
        font-size: 52px !important;
    }
}

/* === FIX OVERFLOW === */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    * {
        max-width: 100vw;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .product-card img,
    .card img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* === ACCESSIBILITÉ === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === TOUCH DEVICES === */
@media (hover: none) and (pointer: coarse) {
    /* Désactive les effets hover sur touch */
    .product-card:hover,
    .btn:hover,
    .value-card:hover {
        transform: none !important;
    }

    /* Active au tap */
    .product-card:active {
        transform: translateY(-5px) !important;
        transition: transform 0.1s;
    }

    .btn:active {
        transform: scale(0.98) !important;
    }

    /* Augmente les zones de tap */
    button,
    a,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* === DARK MODE (optionnel) === */
@media (prefers-color-scheme: dark) {
    /* Vous pouvez ajouter un support dark mode ici si besoin */
}
