/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #6E6E6E;
    background-color: #CCCCCC;
    font-size: 16px;
}

/* Page Container - A4 Style Layout */
.page-container {
    max-width: 900px;
    margin: 15px auto;
    background: white;
    box-shadow: 0 8px 32px rgba(110, 110, 110, 0.2);
    min-height: calc(100vh - 30px);
    position: relative;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(110, 110, 110, 0.1);
    position: fixed;
    top: 15px;
    /* Limitée à la largeur du page-container sur desktop */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #D1D2D7;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #6E6E6E;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #6E6E6E;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #8C9099;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #8C9099;
    bottom: -5px;
    left: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #6E6E6E;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
    background: white;
}

/* Content Sections */
.hero,
.latest-work,
.page-header,
.exhibitions,
.contact-section {
    background: white;
    position: relative;
}

.hero {
    padding: 80px 0;
    border-bottom: 1px solid #D1D2D7;
}

.latest-work,
.exhibitions,
.contact-section {
    padding: 80px 0;
    border-bottom: 1px solid #D1D2D7;
}

.page-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid #D1D2D7;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #6E6E6E;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #8C9099;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ABAFB8;
    max-width: 500px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #8C9099;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(140, 144, 153, 0.3);
}

.cta-button:hover {
    background: #6E6E6E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(140, 144, 153, 0.4);
}

.hero-image {
    position: relative;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-image:hover {
    transform: translateY(-5px);
}

.image-caption {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: -30px;
    margin-left: 30px;
    margin-right: 30px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-caption h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #6E6E6E;
}

.image-caption p {
    color: #ABAFB8;
    margin: 0;
}

/* Latest Work Section */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #6E6E6E;
    font-weight: 600;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.work-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.work-item:hover .work-image {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.work-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #6E6E6E;
}

.work-item p {
    color: #ABAFB8;
    font-size: 1rem;
}

/* Page Header */
.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #6E6E6E;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #ABAFB8;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Exhibitions Page */
.exhibitions-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid #8C9099;
    background: transparent;
    color: #8C9099;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #8C9099;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(140, 144, 153, 0.3);
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.exhibition-card {
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
    border: 1px solid #D1D2D7;
}

.exhibition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.exhibition-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.exhibition-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exhibition-card:hover .exhibition-image img {
    transform: scale(1.05);
}

.exhibition-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-status {
    background: #8C9099;
    color: white;
}

.upcoming-status {
    background: #ABAFB8;
    color: white;
}

.past-status {
    background: #C2C4CA;
    color: white;
}

.exhibition-info {
    padding: 30px;
    background: white;
}

.exhibition-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #6E6E6E;
}

.exhibition-venue {
    color: #8C9099;
    font-weight: 500;
    margin-bottom: 8px;
}

.exhibition-date {
    color: #ABAFB8;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.exhibition-description {
    color: #ABAFB8;
    line-height: 1.6;
}

/* Contact Page */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-card {
    background: #fafafa;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(110, 110, 110, 0.1);
    position: sticky;
    top: 100px;
    border: 1px solid #D1D2D7;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #6E6E6E;
}

.contact-title {
    color: #8C9099;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #6E6E6E;
}

.contact-item p {
    color: #ABAFB8;
    line-height: 1.6;
}

.contact-item a {
    color: #8C9099;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #6E6E6E;
}

/* Contact Form */
.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #6E6E6E;
}

.contact-form-container > p {
    color: #ABAFB8;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #6E6E6E;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 2px solid #D1D2D7;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8C9099;
    box-shadow: 0 0 0 3px rgba(140, 144, 153, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ABAFB8;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D2D7;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8C9099;
    border-color: #8C9099;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-btn {
    background: #8C9099;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #6E6E6E;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(140, 144, 153, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: block;
}

.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    display: none;
}

.form-success.show {
    display: block;
}

.form-success h3 {
    color: #155724;
    margin-bottom: 10px;
}

.form-success p {
    color: #155724;
    margin: 0;
}

/* Footer */
.footer {
    background: white;
    color: #6E6E6E;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #D1D2D7;
    /* Footer limité à la largeur du container sur desktop */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .page-container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    
    body {
        background-color: #CCCCCC;
    }
    
    /* Navigation redevient full-width sur tablette */
    .navbar {
        left: 0;
        top: 0;
        transform: none;
        max-width: 100%;
    }
    
    .nav-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Footer redevient normal sur tablette */
    .footer {
        max-width: 100%;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .contact-content {
        gap: 60px;
    }
}

@media screen and (max-width: 768px) {
    .page-container {
        max-width: 100%;
        margin: 0;
        box-shadow: none;
    }
    
    /* Navigation full-width sur mobile */
    .navbar {
        left: 0;
        top: 0;
        transform: none;
        max-width: 100%;
    }
    
    .nav-container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Footer normal sur mobile */
    .footer {
        max-width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .exhibitions-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

    .contact-card {
        position: static;
    }

    .hero,
    .latest-work,
    .exhibitions,
    .contact-section {
        padding: 50px 0;
    }

    .page-header {
        padding: 40px 0 30px;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .exhibitions-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 200px;
    }

    .contact-card,
    .contact-form-container {
        padding: 20px;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.work-item,
.exhibition-card {
    animation: fadeInUp 0.6s ease-out;
}

.work-item:nth-child(2) {
    animation-delay: 0.1s;
}

.work-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}