/* =====================================
   RESPONSIVE DESIGN
===================================== */

/* Large Desktops */
@media screen and (max-width: 1600px) {
    .container {
        padding: 0 60px;
    }
}

/* Desktop */
@media screen and (max-width: 1400px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 50px;
    }
    
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

/* Tablets Landscape */
@media screen and (max-width: 1200px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 100px 0;
    }
    
    .container {
        padding: 0 40px;
    }
    
    .nav-list {
        gap: 2rem;
    }
    
    .apropos-content,
    .contact-wrapper {
        gap: 4rem;
    }
    
    .footer-content {
        gap: 3rem;
    }
    
    .expositions-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Tablets Portrait */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .container {
        padding: 0 30px;
    }
    
    /* Header */
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-white);
        padding: 100px 40px 40px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
    }
    
    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Gallery */
    .galerie-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 0 30px 2rem 30px;
        margin: 0;
        scrollbar-width: none;
        width: 100%;
    }
    
    .galerie-grid::-webkit-scrollbar {
        display: none;
    }
    
    .galerie-item {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .galerie-filters {
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }
    
    .galerie-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* About */
    .apropos-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .image-decoration {
        width: 150px;
        height: 150px;
        top: -20px;
        right: -20px;
    }
    
    .apropos-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Expositions */
    .expositions-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 2rem;
        padding: 0 30px 2rem 30px;
        margin: 0;
        scrollbar-width: none;
        width: 100%;
    }
    
    .expositions-grid::-webkit-scrollbar {
        display: none;
    }
    
    .exposition-card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 25px;
    }
    
    /* Carousel Mobile - Galerie */
    .galerie-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 0 25px 2rem 25px;
        margin: 0;
        scrollbar-width: none; /* Firefox */
        width: 100%;
    }
    
    .galerie-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
    .galerie-item {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Carousel Mobile - Expositions */
    .expositions-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
        padding: 0 25px 2rem 25px;
        margin: 0;
        scrollbar-width: none;
        width: 100%;
    }
    
    .expositions-grid::-webkit-scrollbar {
        display: none;
    }
    
    .exposition-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.875rem;
    }
    
    /* Header */
    .logo a {
        font-size: 1.5rem;
    }
    
    .nav {
        max-width: 320px;
        padding: 80px 30px 30px;
    }
    
    /* Hero */
    .hero {
        height: 80vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
    }
    
    /* Gallery */
    .galerie-grid {
        grid-template-columns: 1fr;
    }
    
    .galerie-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    /* About */
    .text-intro {
        font-size: 1.1rem;
    }
    
    .apropos-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Expositions */
    .exposition-content {
        padding: 2rem;
    }
    
    .exposition-title {
        font-size: 1.5rem;
    }
    
    .exposition-date {
        top: 15px;
        right: 15px;
        padding: 0.75rem;
    }
    
    .date-day {
        font-size: 1.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 2rem;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.35rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.8rem;
    }
    
    /* Header */
    .header {
        padding: 1rem 0;
    }
    
    .header.scrolled {
        padding: 0.75rem 0;
    }
    
    .logo a {
        font-size: 1.35rem;
    }
    
    .menu-toggle {
        gap: 5px;
    }
    
    .menu-toggle span {
        width: 25px;
    }
    
    .nav {
        width: 100%;
        padding: 70px 20px 20px;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .scroll-indicator {
        bottom: 25px;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .title-underline {
        width: 60px;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .galerie-overlay {
        padding: 1.5rem;
    }
    
    .galerie-info h3 {
        font-size: 1.25rem;
    }
    
    .btn-view {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
    
    /* About */
    .text-intro {
        font-size: 1rem;
    }
    
    .apropos-stats {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .stat-item {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 0;
    }
    
    /* Expositions */
    .exposition-content {
        padding: 1.5rem;
    }
    
    .exposition-title {
        font-size: 1.35rem;
    }
    
    .exposition-description {
        font-size: 0.95rem;
    }
    
    .exposition-date {
        top: 10px;
        right: 10px;
        padding: 0.65rem;
    }
    
    .date-day {
        font-size: 1.35rem;
    }
    
    .date-month {
        font-size: 0.75rem;
    }
    
    .exposition-details {
        gap: 0.4rem;
        font-size: 0.875rem;
    }
    
    /* Contact */
    .contact-intro {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .contact-item {
        gap: 1rem;
    }
    
    .contact-item h4 {
        font-size: 0.95rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-logo {
        font-size: 1.35rem;
    }
    
    .footer-desc {
        font-size: 0.95rem;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
    
    .footer-links {
        gap: 0.6rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }

    /* Modal */
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .modal-artist {
        font-size: 0.95rem;
    }

    .detail-item {
        font-size: 0.85rem;
    }

    .detail-item.detail-price {
        font-size: 1.1rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 375px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.65rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
}

/* Landscape Orientation */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* High DPI Screens */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
