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

/* Large screens (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium screens (tablets, 768px and up) */
@media (max-width: 1199px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Next concert card tablet */
    .next-concert-card {
        grid-template-columns: 1fr;
    }

    .concert-image {
        height: 300px;
        order: -1;
    }

    /* Gallery preview tablet */
    .gallery-preview-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }

    .gallery-preview-item.large {
        grid-row: span 1;
        grid-column: span 2;
    }

    /* About preview tablet */
    .about-preview-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text {
        padding-right: 0;
    }

    .about-image::before {
        display: none;
    }

    /* Footer tablet */
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (phones, 768px and down) */
@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        padding: 80px 2rem 2rem;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 99999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Scrollbar styling pour le menu mobile */
    .nav-menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .nav-menu::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-menu::-webkit-scrollbar-thumb {
        background: rgba(231, 76, 60, 0.3);
        border-radius: 3px;
    }
    
    .nav-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(231, 76, 60, 0.5);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 100000;
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }
    
    /* Dropdown mobile */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
        transition: all 0.3s ease;
    }
    
    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        display: block;
        padding: 0.75rem 2rem;
        font-size: 1rem;
        color: var(--gray);
        text-align: center;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a.active {
        background: rgba(231, 76, 60, 0.1);
        border-left-color: var(--secondary-color);
        color: var(--secondary-color);
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    /* Animation du chevron dropdown */
    .dropdown.active .fa-chevron-down {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }
    
    .dropdown .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    /* Style amélioré pour les liens de navigation mobile */
    .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dropdown-toggle {
        width: 100%;
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 80vh;
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections mobile */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
        margin: 0 auto;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .program-card {
        padding: 2rem;
    }
    
    /* CTA section mobile */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* Stats section mobile */
    .stats-row {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-number-lg {
        font-size: 2.2rem;
    }

    .stat-text {
        font-size: 0.8rem;
    }

    /* Next concert mobile */
    .concert-info {
        padding: 2rem;
    }

    .concert-info h2 {
        font-size: 1.8rem;
    }

    .concert-details .detail {
        font-size: 1rem;
    }

    /* Gallery preview mobile */
    .gallery-preview-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .gallery-preview-item.large {
        grid-column: span 1;
    }

    /* About preview mobile */
    .about-text .section-title {
        text-align: center !important;
    }

    /* Footer new layout mobile */
    .footer-brand {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-column h4 {
        justify-content: center;
    }
}

/* Very small screens (320px and down) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 2rem;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .cta-section,
    .footer-social {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-title,
    .hero-title {
        color: #000;
        page-break-after: avoid;
    }
    
    .program-card,
    .stat-card {
        border: 1px solid #ddd;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --accent-color: #000000;
        --gray: #666666;
        --light-gray: #f0f0f0;
        --bg-secondary: #ffffff;
    }
    
    .btn-primary,
    .program-icon,
    .timeline-year {
        background: #000000;
        color: #ffffff;
    }
    
    .btn-outline {
        border-color: #000000;
        color: #000000;
    }
    
    .btn-outline:hover {
        background-color: #000000;
        color: #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-content,
    .hero-image {
        animation: none;
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.footer-social a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Touch targets for mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn,
    .footer-social a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
