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

/* ==================== */
/* DESKTOP LARGE (>= 1200px) */
/* ==================== */
@media (min-width: 1200px) {
    .nav-wrapper {
        max-width: 1400px;
    }
    
    section {
        max-width: 1200px;
    }
}

/* ==================== */
/* DESKTOP (>= 900px) */
/* ==================== */
@media (min-width: 900px) {
    /* Navigation desktop */
    body {
        padding-top: 120px;
    }
    
    .burger {
        display: none !important;
    }
    
@media (min-width: 900px) {
    .nav-menu {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px 20px;
        justify-content: center;
        max-width: 1400px;
        margin: 0 auto;
        position: static !important;
        background: none !important;
        padding: 10px 0 !important;
        transform: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .nav-menu li {
        width: auto;
        flex: 0 0 auto;
    }
    
    /* BREAK après le 6ème : espace énorme qui force le retour */
    .nav-menu li:nth-child(6)::after {
        content: '';
        flex-basis: 100%;
        height: 0;
    }
    
    .nav-menu a {
        width: auto;
        padding: 12px 20px;
        font-size: 1rem;
        justify-content: center;
    }
}
    
    .nav-logo-right {
        display: flex;
    }
    
    /* Sections en colonnes */
    .release-block {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .release-cover {
        margin: 0;
        flex-shrink: 0;
    }
}

/* ==================== */
/* TABLETTE (768px - 899px) */
/* ==================== */
@media (min-width: 768px) and (max-width: 899px) {
    .nav-logo {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 25px;
    }
    
    .press-card {
        width: 350px;
    }
    
    .release-card {
        width: 280px;
    }
}

/* ==================== */
/* MOBILE & TABLETTE (<= 899px) */
/* ==================== */
@media (max-width: 899px) {
    /* Navigation mobile */
    body {
        padding-top: 100px;
    }
    
    nav {
        border-bottom: 3px solid #ff3c00;
    }
    
    .nav-wrapper {
        padding: 15px;
        gap: 20px;
    }
    
    .nav-logo {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .nav-logo-right {
        display: none;
    }
    
    .burger {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 95px;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        max-height: 0;
        overflow: hidden;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 2px solid #ff3c00;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    }
    
    .nav-menu.active {
        max-height: calc(100vh - 95px);
        overflow-y: auto;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 14px 20px;
        justify-content: flex-start;
        font-size: 1rem;
    }
    
    /* Hero */
    header {
        padding: 60px 20px 40px;
    }
    
    .metal-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        letter-spacing: 4px;
    }
    
    /* Sections */
    section {
        padding: 50px 20px;
    }
    
    section h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    /* Carousels */
    .press-card {
        width: 300px;
    }
    
    .release-card {
        width: 260px;
    }
    
    .collab-card {
        width: 180px;
    }
    
    .carousel-nav button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Modals */
    .modal-content-iframe {
        height: 95vh;
        border-radius: 0;
    }
    
    .modal-iframe {
        padding: 0;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    /* Boutons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    /* YouTube player */
    .playlist-badge {
        font-size: 0.75rem;
        padding: 8px 15px;
    }
    
    /* Merci */
    .merci-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .merci-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Bouton retour en haut */
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

/* ==================== */
/* MOBILE SMALL (<= 480px) */
/* ==================== */
@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .nav-menu a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    header {
        padding: 50px 15px 30px;
    }
    
    section {
        padding: 40px 15px;
    }
    
    .press-card {
        width: 250px;
    }
    
    .release-card {
        width: 220px;
    }
    
    .collab-card {
        width: 160px;
    }
    
    .shop-card,
    .instrus-card {
        width: 160px;
    }
    
    .reseau-card {
        width: 120px;
    }
    
    .carousel-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .carousel-indicators .dot {
        width: 8px;
        height: 8px;
    }
    
    .merci-logos {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-choice {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-toggle {
        width: 100%;
    }
}

/* ==================== */
/* LANDSCAPE MODE (MOBILE) */
/* ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: 80px;
    }
    
    nav {
        padding: 10px 15px;
    }
    
    .nav-logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        top: 75px;
        max-height: calc(100vh - 75px);
    }
    
    .nav-menu a {
        padding: 10px 15px;
    }
    
    header {
        padding: 40px 20px 30px;
    }
    
    section {
        padding: 30px 20px;
    }
}

/* ==================== */
/* PRINT */
/* ==================== */
@media print {
    nav,
    .burger,
    .carousel-nav,
    .carousel-indicators,
    #backToTop,
    .modal-iframe {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ==================== */
/* HIGH CONTRAST MODE */
/* ==================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #ff6600;
        --primary-hover: #ff8833;
    }
    
    .nav-menu a,
    .btn,
    .release-card,
    .press-card {
        border-width: 3px;
    }
}

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

/* ==================== */
/* UTILITAIRES DIVERS */
/* ==================== */

/* Masquer les compteurs de carousel */
.carousel-counter {
    display: none !important;
}

/* Overflow du nav et header */
nav,
header {
    height: auto !important;
    overflow: visible !important;
}

/* Scrollbar personnalisée pour browsers compatibles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}
