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

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container-wide {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Desktop (1200px and below) */
@media (max-width: 1200px) {

    /* Navigation */
    nav {
        padding: 20px 40px;
    }

    nav.scrolled {
        padding: 15px 40px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 72px;
    }

    .hero-description {
        font-size: 17px;
        max-width: 900px;
    }

    /* Section Padding */
    .about-section,
    .groups-section,
    .testimonials-section,
    .romantic-section {
        padding: 120px 40px;
    }

    /* Grid Systems */
    .features-grid,
    .testimonials-grid,
    .romantic-features {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .groups-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

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

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    /* About Section */
    .about-content {
        gap: 60px;
    }

    .image-wrapper {
        height: 500px;
    }

    /* Services */
    .services-container {
        padding: 80px 40px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 35px;
    }

    .feature-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .feature-section:nth-child(even) {
        direction: ltr;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-info-section {
        position: relative;
        top: 0;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    /* Menu */
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .menu-formulas-grid {
        grid-template-columns: 1fr;
    }

    .menu-info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .menu-items-elegant {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-list-elegant {
        grid-template-columns: 1fr;
    }

    /* CTA Section */
    .cta-box {
        padding: 100px 40px;
    }

    .cta-final-title {
        font-size: 48px;
    }
}

/* Tablet Landscape (968px and below) */
@media (max-width: 968px) {

    /* Navigation */
    nav {
        padding: 15px 30px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 60px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.9;
        max-width: 800px;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    /* Section Headers */
    .section-title,
    .romantic-title,
    .menu-hero-title {
        font-size: 48px;
    }

    .section-text,
    .romantic-text {
        font-size: 18px;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .about-section .section-header {
        text-align: center;
    }

    .about-section .section-label,
    .about-section .section-title,
    .about-section .section-text {
        text-align: center;
    }

    .image-wrapper {
        height: 400px;
    }

    /* Romantic Section */
    .romantic-section {
        padding: 100px 40px;
    }

    .romantic-title {
        font-size: 52px;
    }

    .romantic-text {
        font-size: 20px;
    }

    .music-visual {
        flex-direction: column;
        gap: 30px;
    }

    .instrument {
        width: 150px;
        height: 120px;
    }

    .piano,
    .accordion {
        transform: none;
    }

    .music-feature:hover .piano,
    .music-feature:hover .accordion {
        transform: scale(1.05);
    }

    .romantic-item-icon {
        font-size: 60px;
    }

    /* Gallery */
    .gallery-container {
        padding: 80px 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .gallery-item:nth-child(6n+1),
    .gallery-item:nth-child(6n+3) {
        grid-row: span 1;
    }

    .lightbox-nav {
        display: none;
    }

    .instagram-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    /* Services */
    .services-container {
        padding: 60px 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card-image {
        height: 250px;
    }

    /* Process Section */
    .process-section {
        padding: 80px 40px;
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
    }

    /* Menu Categories */
    .menu-categories-nav {
        padding: 20px 30px;
    }

    .menu-categories-list {
        gap: 30px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .menu-categories-list li a {
        white-space: nowrap;
    }

    /* Contact */
    .contact-main {
        padding: 120px 40px;
    }

    .contact-form-section {
        padding: 50px 40px;
    }

    /* Footer */
    .footer-content {
        gap: 40px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        padding: 12px 20px;
    }

    nav.scrolled {
        padding: 10px 20px;
    }

    .logo {
        font-size: 28px;
    }

    .nav-links {
        display: none;
    }

    .btn-reserve {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Mobile Menu Button (à ajouter en HTML) */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--accent);
        font-size: 24px;
        cursor: pointer;
        z-index: 1001;
    }

    /* Hero Section */
    .hero {
        height: 100%;
        min-height: 100vh;
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.8;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 16px 35px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }

    /* Floating Badges */
    .floating-badge {
        display: none;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 60px;
    }

    .section-label {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 16px;
        line-height: 1.8;
        text-align: center;
    }

    /* Section Padding */
    .about-section,
    .groups-section,
    .testimonials-section,
    .romantic-section,
    .cta-final,
    .services-container,
    .process-section,
    .pricing-section,
    .faqs-section,
    .instagram-section,
    .stats-section {
        padding: 80px 20px;
    }

    /* Feature Cards */
    .feature-card {
        padding: 40px 30px;
    }

    .feature-icon {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .feature-title {
        font-size: 22px;
    }

    /* Romantic Section */
    .romantic-section {
        padding: 80px 20px;
    }

    .romantic-title {
        font-size: 42px;
    }

    .romantic-text {
        font-size: 18px;
    }

    .romantic-buttons {
        flex-direction: column;
        align-items: center;
    }

    .music-feature {
        padding: 40px 30px;
    }

    .instrument {
        width: 120px;
        height: 100px;
    }

    .romantic-item-title {
        font-size: 28px;
    }

    .romantic-item-text {
        font-size: 16px;
    }

    .music-schedule {
        flex-direction: column;
        gap: 15px;
    }

    /* Groups Section */
    .group-card {
        height: 400px;
    }

    .group-card-content {
        padding: 30px;
    }

    .group-card-title {
        font-size: 32px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 30px;
    }

    /* CTA Section */
    .cta-box {
        padding: 80px 30px;
    }

    .cta-final-title {
        font-size: 42px;
    }

    .cta-final-text {
        font-size: 18px;
    }

    .cta-final-button {
        padding: 18px 40px;
        font-size: 15px;
    }

    /* About Section */
    .about-content {
        gap: 40px;
    }

    .image-wrapper {
        height: 350px;
    }

    .image-overlay {
        padding: 30px;
    }

    .overlay-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .slider-dots {
        bottom: 20px;
    }

    /* Services */
    .service-card-content {
        padding: 30px;
    }

    .service-card-title {
        font-size: 24px;
    }

    .feature-content {
        padding: 30px;
    }

    .feature-title {
        font-size: 36px;
    }

    /* Process Section */
    .process-title {
        font-size: 42px;
    }

    .process-step-number {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    /* Pricing */
    .pricing-card {
        padding: 40px 30px;
    }

    .pricing-name {
        font-size: 24px;
    }

    .pricing-price {
        font-size: 46px;
    }

    /* FAQ */
    .faqs-question {
        padding: 20px 25px;
        font-size: 18px;
    }

    /* Menu Sections */
    .menu-hero {
        height: 60vh;
    }

    .menu-hero-title {
        font-size: 50px;
    }

    .menu-hero-text {
        font-size: 18px;
    }

    .menu-categories-nav {
        padding: 15px 20px;
        top: 70px;
    }

    .menu-section-container {
        padding: 60px 20px;
    }

    .menu-category {
        margin-bottom: 80px;
    }

    .menu-category-header {
        margin-bottom: 50px;
    }

    .menu-category-title {
        font-size: 38px;
    }

    .menu-category-description {
        font-size: 16px;
    }

    .menu-item-elegant {
        padding: 2rem;
    }

    .menu-item-elegant-title {
        font-size: 1.3rem;
    }

    .menu-item-elegant-price {
        font-size: 1.2rem;
    }

    .menu-list-item-elegant {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .menu-list-item-name {
        font-size: 1.2rem;
    }

    .menu-formulas {
        margin-bottom: 80px;
    }

    .menu-formulas-title {
        font-size: 38px;
    }

    .menu-formula-card {
        padding: 30px 20px;
    }

    .menu-formula-name {
        font-size: 28px;
    }

    .menu-formula-price {
        font-size: 38px;
    }

    .menu-suggestions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-suggestion-section {
        padding: 1.5rem;
    }

    .menu-suggestion-section-title {
        font-size: 1.2rem;
    }

    /* Contact */
    .contact-hero {
        height: 60vh;
        min-height: 500px;
    }

    .contact-hero-title {
        font-size: 50px;
    }

    .contact-main {
        padding: 100px 20px;
    }

    .contact-form-section {
        padding: 40px 30px;
    }

    .contact-form-title {
        font-size: 38px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 16px 18px;
    }

    .locations-section,
    .social-section,
    .faq-section {
        padding: 80px 20px;
    }

    .locations-title,
    .social-title,
    .faq-title {
        font-size: 38px;
    }

    .location-actions {
        flex-direction: column;
    }

    .location-btn {
        padding: 14px 20px;
    }

    /* Gallery */
    .gallery-container {
        padding: 60px 20px;
    }

    .gallery-filters {
        gap: 10px;
        margin-bottom: 60px;
    }

    .filter-btn {
        padding: 12px 25px;
        font-size: 13px;
    }

    .gallery-grid {
        gap: 20px;
        margin-bottom: 60px;
    }

    /* Footer */
    footer {
        padding: 60px 20px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-logo {
        font-size: 32px;
    }
}

/* Mobile Landscape (576px and below) */
@media (max-width: 576px) {

    /* Navigation */
    nav {
        padding: 10px 15px;
    }

    .logo {
        font-size: 24px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 14px;
    }

    /* Section Headers */
    .section-title {
        font-size: 32px;
    }

    .section-label {
        font-size: 11px;
    }

    /* Cards & Grids */
    .feature-card {
        padding: 30px 20px;
    }

    .group-card {
        height: 350px;
    }

    .group-card-content {
        padding: 25px;
    }

    .group-card-title {
        font-size: 28px;
    }

    .testimonial-card {
        padding: 25px;
    }

    /* Romantic Section */
    .romantic-title {
        font-size: 36px;
    }

    .music-feature {
        padding: 30px 20px;
    }

    .instrument {
        width: 100px;
        height: 80px;
    }

    /* CTA */
    .cta-final-title {
        font-size: 36px;
    }

    .cta-final-button {
        padding: 16px 35px;
    }

    /* About Section */
    .image-wrapper {
        height: 300px;
    }

    /* Services */
    .service-card-content {
        padding: 25px;
    }

    .feature-content {
        padding: 25px;
    }

    .feature-title {
        font-size: 32px;
    }

    /* Process */
    .process-title {
        font-size: 36px;
    }

    .process-step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    /* Pricing */
    .pricing-card {
        padding: 30px 20px;
    }

    .pricing-price {
        font-size: 42px;
    }

    /* Menu */
    .menu-hero-title {
        font-size: 42px;
    }

    .menu-category-title {
        font-size: 32px;
    }

    .menu-item-elegant {
        padding: 1.5rem;
    }

    .menu-formula-card {
        padding: 25px 15px;
    }

    .menu-formula-name {
        font-size: 24px;
    }

    .menu-formula-price {
        font-size: 36px;
    }

    /* Contact */
    .contact-hero-title {
        font-size: 42px;
    }

    .contact-form-section {
        padding: 30px 20px;
    }

    .contact-form-title {
        font-size: 32px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-btn {
        flex-shrink: 0;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {

    /* Ultra-compact adjustments */
    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 30px;
        font-size: 13px;
    }

    /* Menu adjustments */
    .menu-suggestions-grid {
        grid-template-columns: 1fr;
    }

    .menu-suggestion-section {
        padding: 1rem;
    }

    .menu-suggestion-list-elegant {
        gap: 1rem;
    }

    /* Contact form */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 14px 16px;
        font-size: 15px;
    }

    /* Footer */
    .footer-social {
        justify-content: center;
    }

    /* Stats */
    .stat-number {
        font-size: 52px;
    }

    .stat-label {
        font-size: 14px;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .menu-hero-title {
        font-size: 36px;
    }

    .menu-category-title {
        font-size: 28px;
    }

    .contact-hero-title {
        font-size: 36px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 25px;
        font-size: 12px;
    }
}

/* ==================== TOUCH DEVICE OPTIMIZATIONS ==================== */
@media (hover: none) and (pointer: coarse) {

    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .group-card:hover,
    .testimonial-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .menu-item-elegant:hover,
    .menu-list-item-elegant:hover,
    .menu-formula-card:hover,
    .contact-info-card:hover,
    .location-card:hover {
        transform: none;
    }

    /* Adjust animations for better performance */
    .hero-bg {
        animation: none;
    }

    .floating-badge {
        animation: none;
    }

    /* Increase tap target sizes */
    .nav-links a,
    .btn-primary,
    .btn-secondary,
    .filter-btn,
    .menu-categories-list li a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==================== HIGH DPI DISPLAYS ==================== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .hero-bg,
    .romantic-section,
    .cta-box,
    .menu-hero,
    .contact-hero,
    .services-hero,
    .gallery-hero {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    nav,
    .hero-buttons,
    .floating-badge,
    .footer,
    .btn-reserve {
        display: none !important;
    }

    .hero {
        height: auto;
        position: static;
    }

    .hero-content {
        position: static;
    }

    .section-title,
    .hero-title {
        color: black !important;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==================== 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;
    }

    .hero-bg {
        animation: none !important;
    }

    .floating-badge {
        animation: none !important;
    }
}

/* ==================== DARK MODE SUPPORT ==================== */
@media (prefers-color-scheme: dark) {

    /* Votre thème est déjà sombre, ces règles assurent la compatibilité */
    .modal-content {
        background: var(--dark-secondary);
        color: var(--text-dark);
    }

    .modal-title {
        color: var(--light);
    }

    .close-modal {
        color: var(--text-light);
    }

    .close-modal:hover {
        color: var(--accent);
    }
}

/* ==================== LANDSCAPE ORIENTATION ==================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        margin-bottom: 30px;
    }

    .menu-hero,
    .contact-hero,
    .services-hero,
    .gallery-hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0;
    }
}

/* ==================== FOLDABLE DEVICES ==================== */
@media (max-width: 320px) {

    /* Adjustments for very small screens */
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 11px;
    }

    .menu-categories-list {
        gap: 15px;
    }

    .menu-categories-list li a {
        font-size: 13px;
    }
}

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

@media (max-width: 968px) {
    .nav-container {
        gap: 30px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Ajustements pour la navigation mobile */
    .mobile-nav-links li a {
        font-size: 16px;
        padding: 15px 0;
    }
    
    .mobile-nav {
        width: 280px;
        padding: 90px 30px 30px;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        width: 100%;
        border-left: none;
        border-right: 2px solid var(--accent);
    }
    
    .mobile-nav-links li a {
        font-size: 18px;
        text-align: center;
        padding: 18px 0;
    }
    
    .mobile-nav-close {
        top: 20px;
        right: 50px;
        font-size: 50px;
    }
}

/* Animation de transition pour le body quand le menu mobile est ouvert */
body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 6, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Transition douce pour la navigation */
nav {
    transition: all 0.4s var(--ease);
}

/* Ajustement du z-index pour la navigation scrollée */
nav.scrolled {
    z-index: 1002;
}