/* ============================================
   JUKEBOX-CAB - RESPONSIVE DESIGN
   ============================================ */

/* Tablettes - 1024px et moins */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .title-sub {
        font-size: 1.25rem;
    }
    
    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Présentation */
    .presentation-highlights {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* Fonctionnalités */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Téléchargement */
    .download-content {
        grid-template-columns: 1fr;
    }
    
    /* Soutien */
    .support-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablettes petites - 768px et moins */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 25, 34, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--spacing-lg);
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .hero-info {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .screen-frame {
        transform: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.125rem;
    }
    
    /* Fonctionnalités */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    /* Galerie */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile - 480px et moins */
@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    /* Hero */
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Album grid dans mockup */
    .album-grid {
        grid-template-columns: 1fr;
    }
    
    .screen-content {
        padding: 1rem;
        min-height: 300px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Cards */
    .feature-card,
    .download-card,
    .paypal-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    /* Download */
    .download-icon {
        font-size: 3rem;
    }
    
    .download-header h3 {
        font-size: 1.5rem;
    }
    
    .requirements-list li {
        font-size: 0.875rem;
    }

    /* Stats de téléchargement responsive */
    .download-stats-box {
        padding: var(--spacing-sm);
    }

    .download-stats {
        gap: var(--spacing-sm);
    }

    .download-stat-item {
        padding: 0.5rem 0.75rem;
    }

    .download-stat-item .stat-value {
        font-size: 1.5rem;
    }

    .download-stat-item .stat-label {
        font-size: 0.75rem;
    }

    .download-stat-item .stat-version {
        font-size: 0.6rem;
    }
    
    /* Support */
    .support-list li {
        font-size: 1rem;
    }
    
    .paypal-icon {
        font-size: 3rem;
    }
    
    .paypal-card h3 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-section h4 {
        font-size: 1.125rem;
    }
    
    /* Bouton scroll top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }

    .hero-visual {
        display: none;
    }
}

/* Mobile très petit - 360px et moins */
@media (max-width: 360px) {
    :root {
        --font-size-base: 13px;
    }
    
    .title-main {
        font-size: 1.75rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-logo {
        width: 35px;
        height: 35px;
    }
    
    .hero-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-separator {
        display: none;
    }
}

/* Orientations spécifiques */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: 80px 0 var(--spacing-md);
    }
    
    .hero-visual {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-particles,
    .scroll-indicator,
    .scroll-top,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Préférences utilisateur */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mode sombre natif (si supporté par le navigateur) */
@media (prefers-color-scheme: dark) {
    /* Déjà en mode sombre par défaut */
}

/* Écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimisations pour écrans Retina si nécessaire */
    .nav-logo,
    .download-icon,
    .feature-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}