/**
 * Styles Responsive
 */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .creator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .product-detail-layout {
        gap: 2rem;
    }
    
    .creator-detail-layout {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* === RÉDUCTION HAUTEUR HEADER MOBILE === */
    .navbar {
        min-height: 60px !important;
    }
    
    .navbar .container {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        min-height: 60px !important;
    }
    
    .navbar-brand .logo {
        font-size: 1.5rem !important;
    }
    
    .navbar-brand .logo img {
        height: 32px !important;
        width: auto !important;
    }
    
    /* === BOUTON HAMBURGER AMÉLIORÉ === */
    .navbar-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar-toggle:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.05);
    }
    
    .navbar-toggle:active {
        transform: scale(0.95);
    }
    
    .navbar-toggle span {
        width: 20px;
        height: 2.5px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .navbar-toggle span:nth-child(1) {
        transform: translateY(-6px);
    }
    
    .navbar-toggle span:nth-child(3) {
        transform: translateY(6px);
    }
    
    /* Animation hamburger -> X quand actif */
    .navbar-toggle.active span:nth-child(1) {
        transform: translateY(0) rotate(45deg);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: translateY(0) rotate(-45deg);
    }
    
    /* Formulaire de recherche - bouton en dessous sur mobile */
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form .search-input {
        width: 100%;
        margin-bottom: 0;
    }
    
    .search-form .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .search-close {
        top: -35px;
        font-size: 1.75rem;
    }
    
    /* === MENU DÉROULANT MOBILE - STYLE SOMBRE PERMANENT === */
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
        border-radius: 0 0 24px 24px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        gap: 0.5rem;
    }
    
    .navbar-nav li {
        width: 100%;
    }
    
    .navbar-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        border: 1px solid transparent;
    }
    
    .navbar-menu .nav-link:hover {
        background: linear-gradient(135deg, #f4d03f, #d4af37);
        color: #0f172a;
        transform: translateX(4px);
        box-shadow: 0 4px 15px rgba(244, 208, 63, 0.3);
    }
    
    .navbar-menu .nav-link.active {
        background: linear-gradient(135deg, #f4d03f, #d4af37);
        color: #0f172a;
        font-weight: 600;
        box-shadow: 0 4px 20px rgba(244, 208, 63, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Actions navbar sur mobile - style sombre */
    .navbar-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .creator-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .creator-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .creator-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .preferences-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .form-radio-group,
    .form-checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .preferences-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .attributes-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
