:root {
    --bg-primary: #fcfcfc;
    --bg-secondary: #f4f4f5;
    --text-main: #1a1a1a;
    --text-muted: #737373;
    --accent: #000000;
    --border-light: rgba(0, 0, 0, 0.08);
    --font-display: 'Montserrat', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--bg-primary); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
img { display: block; width: 100%; height: auto; object-fit: cover; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

header { position: fixed; top: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(252, 252, 252, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid var(--border-light); transition: transform 0.4s ease; }
header.hide { transform: translateY(-100%); }
.logo a { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: 2px; }
nav ul { display: flex; gap: 40px; }
nav a { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; position: relative; }
nav a::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -4px; left: 0; background-color: var(--accent); transition: var(--transition-smooth); }
nav a:hover::after { width: 100%; }

.burger-menu { display: none; cursor: pointer; z-index: 1001; width: 30px; height: 20px; position: relative; }
.burger-menu .bar { position: absolute; width: 100%; height: 2px; background: var(--text-main); transition: var(--transition-smooth); }
.burger-menu .bar:nth-child(1) { top: 0; }
.burger-menu .bar:nth-child(2) { bottom: 0; }
.burger-menu.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-menu.active .bar:nth-child(2) { transform: translateY(-9px) rotate(-45deg); }

.hero { min-height: 100vh; padding: 120px 5% 60px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-left { flex: 1; z-index: 10; }
.hero-name { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 800; line-height: 1; margin-bottom: 40px; }
.hero-details { border-left: 2px solid var(--accent); padding-left: 30px; }
.hero-details p { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 10px; }
.hero-details p.highlight { color: var(--text-main); font-weight: 600; margin-top: 20px; }
.hero-right { flex: 1.2; height: 70vh; position: relative; display: flex; justify-content: flex-end; }
.hero-slides-container { position: relative; width: 100%; max-width: 600px; height: 100%; }
.hero-slide-figure { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; display: flex; flex-direction: column; }
.hero-slide-figure.active { opacity: 1; z-index: 2; }
.hero-slide-figure img { height: 100%; object-fit: contain; object-position: right bottom; }
.hero-legend { display: flex; justify-content: space-between; padding-top: 15px; margin-top: auto; border-top: 1px solid var(--border-light); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.about-section { background-color: var(--bg-secondary); padding: 120px 0; }
.section-title { font-family: var(--font-display); font-size: 3rem; font-weight: 600; text-align: center; margin-bottom: 100px; text-transform: uppercase; letter-spacing: 2px; }
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.about-row:last-child { margin-bottom: 0; }
.about-row.reverse .about-img-container { order: 2; }
.about-row.reverse .about-text { order: 1; }
.img-wrapper { overflow: hidden; background: #ebebeb; }
.about-img { transition: transform 0.8s ease; }
.img-wrapper:hover .about-img { transform: scale(1.03); }
.about-caption { display: block; margin-top: 15px; font-size: 0.8rem; color: var(--text-muted); text-align: center; font-style: italic; }
.about-text p { font-size: 1.1rem; color: #444; margin-bottom: 25px; line-height: 1.8; }

.exhibitions-section { padding: 120px 0; }
.exhibition-controls { display: flex; flex-direction: column; align-items: center; margin-bottom: 60px; }
.exhibition-type-links { display: flex; gap: 30px; margin-bottom: 40px; }
.ex-type-link { background: none; border: none; font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; color: var(--text-muted); cursor: pointer; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: var(--transition-smooth); }
.ex-type-link.active, .ex-type-link:hover { color: var(--text-main); border-color: var(--accent); }
.decade-filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.decade-btn { background: var(--bg-secondary); border: 1px solid transparent; padding: 8px 20px; border-radius: 30px; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); cursor: pointer; transition: var(--transition-smooth); }
.decade-btn.active, .decade-btn:hover { background: var(--text-main); color: white; }
.ex-tab-content { display: none; animation: fadeIn 0.5s ease; }
.ex-tab-content.active { display: block; }
.ex-year { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; }
.ex-info { font-weight: 500; font-size: 1.1rem; }
.ex-location { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; text-align: right; }
.ex-row { 
    display: grid; 
    grid-template-columns: 100px 1fr auto; 
    padding: 30px 0; 
    border-bottom: 1px solid var(--border-light); 
    align-items: center; 
    transition: background 0.3s ease, padding-left 0.3s ease; 
}

.ex-row:hover { 
    background: #f9f9f9; 
    padding-left: 15px; 
}

.ex-description { 
    grid-column: 1 / -1; /* Permet au texte de prendre toute la largeur de la grille */
    margin-top: 8px; /* Un peu d'espace pour séparer du titre */
    font-size: 0.9em; 
    color: #666; 
    font-style: italic; 
    line-height: 1.5;
}

footer { background-color: var(--text-main); color: white; padding: 80px 0 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-brand h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; letter-spacing: 2px; }
.footer-brand p { font-size: 0.8rem; color: #999; }
.footer-links { display: flex; align-items: center; gap: 30px; }
.btn-contact { border: 1px solid white; padding: 10px 25px; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.btn-contact:hover { background: white; color: var(--text-main); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; visibility: hidden; }
.reveal.visible { opacity: 1; visibility: visible; }
.slide-up { transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-up.visible { transform: translateY(0); }
.fade-in { transition: opacity 1s ease-out; }
.delay-1 { transition-delay: 0.2s; }

@media (max-width: 900px) {
    .burger-menu { display: block; }
    nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-primary); display: flex; justify-content: center; align-items: center; transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1); z-index: 1000; }
    nav.nav-active { transform: translateY(0); }
    nav ul { flex-direction: column; text-align: center; gap: 30px; }
    nav a { font-size: 1.5rem; }
    .hero { flex-direction: column; padding-top: 100px; }
    .hero-left, .hero-right { width: 100%; flex: none; }
    .hero-right { height: 50vh; justify-content: center; }
    .hero-slide-figure img { object-position: center; }
    .about-row { grid-template-columns: 1fr; gap: 40px; }
    .about-row.reverse .about-img-container, .about-row.reverse .about-text { order: unset; }
}

@media (max-width: 600px) {
    .ex-row { grid-template-columns: 1fr; gap: 5px; padding: 20px 0; }
    .ex-row:hover { padding-left: 0; }
    .ex-location { text-align: left; font-size: 0.8rem; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; gap: 40px; }
}

/* Style pour le lien de fin de section (PDF) */
.section-footer-link {
    display: inline-block;
    border: 1px solid var(--text-main);
    padding: 12px 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.section-footer-link:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
}

/* =========================================
   PAGE COLLECTIONS (Externe)
========================================= */

.page-header {
    padding: 180px 5% 80px; /* Espace pour le header sticky */
    text-align: center;
    background-color: var(--bg-secondary);
}

.text-center {
    text-align: center;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.collections-list-section {
    padding: 80px 5% 120px;
    max-width: 1000px; /* Plus étroit pour la lisibilité */
}

.col-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.col-item:last-child {
    border-bottom: none;
}

.col-item:hover {
    background-color: #f9f9f9;
    padding-left: 15px;
    padding-right: 15px;
}

.col-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.col-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
    max-width: 40%;
}

/* Responsive pour la liste des collections */
@media (max-width: 768px) {
    .col-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }
    .col-item:hover {
        padding-left: 0;
        padding-right: 0;
    }
    .col-detail {
        text-align: left;
        max-width: 100%;
        font-size: 0.85rem;
    }
}

/* Style pour le conteneur des boutons d'action */
.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espace entre les deux boutons */
    margin-top: 60px;
    flex-wrap: wrap; /* Permet aux boutons de passer l'un sous l'autre sur petit écran */
}

@media (max-width: 600px) {
    .action-buttons-container {
        gap: 20px;
        flex-direction: column; /* Force les boutons en colonne sur mobile */
        align-items: center;
    }
}