/* =========================================
   VARIABLES & RESET
========================================= */
: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 & NAVIGATION (Premium & Minimaliste)
========================================= */
header { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 30px 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; 
    transition: transform 0.4s ease; 
}
header.hide { transform: translateY(-100%); }

.logo a { 
    font-family: var(--font-display); 
    font-weight: 700; 
    font-size: 1.5rem; 
    letter-spacing: 3px; 
}

/* --- Navigation de base --- */
nav ul { list-style: none; display: flex; gap: 50px; align-items: center; }
nav a { 
    font-size: 0.9rem; font-weight: 500; text-transform: uppercase; 
    letter-spacing: 2px; color: var(--text-muted); position: relative; transition: color 0.4s ease; 
}
nav a:hover { color: var(--text-main); }

/* --- Dropdown Desktop --- */
.dropdown { position: relative; }
.dropdown-toggle i { font-size: 0.8em; margin-left: 6px; transition: transform 0.3s ease; }
.dropdown-menu { 
    position: absolute; top: 100%; left: -20px; background-color: #fff; min-width: 280px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid var(--border-light); border-radius: 4px; 
    opacity: 0; visibility: hidden; transform: translateY(10px); 
    transition: var(--transition-smooth); padding: 10px 0; z-index: 100; 
    display: flex; flex-direction: column; gap: 0;
}
.dropdown-menu li { width: 100%; }
.dropdown-menu li a { 
    display: block; padding: 12px 30px; font-size: 0.85rem; font-family: var(--font-display); 
    text-transform: none; letter-spacing: 1px; color: var(--text-main); 
}
.dropdown-menu li a:hover { background-color: var(--bg-secondary); color: var(--accent); }

@media screen and (min-width: 901px) {
    .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* --- Burger Menu Icon --- */
.burger-menu { display: none; cursor: pointer; background: none; border: none; 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 SECTION (Éditorial)
========================================= */
.hero { 
    min-height: 100vh; 
    padding: 150px 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(3.5rem, 8vw, 7rem); 
    font-weight: 800; 
    line-height: 0.95; 
    letter-spacing: -0.03em; 
    margin-bottom: 50px; 
}

.hero-details { 
    border-left: none; 
    padding-left: 0; 
}

.hero-details p { 
    font-family: var(--font-body);
    font-size: 0.8rem; 
    font-weight: 400; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    color: var(--text-muted); 
    margin-bottom: 12px; 
}

.hero-details p.highlight { 
    color: var(--text-main); 
    font-weight: 600; 
    margin-top: 25px; 
    position: relative;
}

.hero-details p.highlight::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 20px;
    height: 1px;
    background-color: var(--accent);
}

.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; }

/* =========================================
   CITATION ÉDITORIALE (Gérard Durozoi)
========================================= */
.itineraire-quote {
    max-width: 750px; /* Un peu plus étroit pour faire "bloc de texte" */
    margin: 0 auto 100px auto; /* Moins de marge en bas */
    padding: 0 0 0 30px; /* Retrait gauche plus discret */
    background-color: transparent; 
    border-left: 2px solid var(--accent); 
    box-shadow: none; 
}

.itineraire-quote::before {
    display: none; 
}

.itineraire-quote p {
    font-size: 1rem; /* Taille beaucoup plus classique et lisible */
    font-weight: 400; /* Typographie un peu plus ancrée */
    line-height: 1.7;
    color: var(--text-main);
    font-style: italic;
    letter-spacing: normal; /* On retire le resserrement des lettres */
    margin-bottom: 1rem;
}

.itineraire-quote p:last-child {
    margin-bottom: 2rem;
}

.itineraire-quote footer {
    background-color: transparent !important;
    border-top: none;
    padding-top: 15px;
    margin-top: 30px;
}

.itineraire-quote cite {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 20px;
    border-left: 1px solid var(--border-light); 
    font-family: var(--font-body);
}

.itineraire-quote cite strong {
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.itineraire-quote .cite-title, 
.itineraire-quote .cite-source {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.4;
}

/* =========================================
   ABOUT SECTION & TEXTES (Style Éditorial)
========================================= */
.about-section { 
    background-color: var(--bg-secondary); /* Ramène le contraste entre les sections */
    padding: 120px 0; /* On réduit légèrement le padding pour encadrer le fond */
    border-top: 1px solid var(--border-light); /* Ligne subtile de démarcation */
    border-bottom: 1px solid var(--border-light);
}

.section-title { 
    font-family: var(--font-display); 
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700; 
    text-align: center; 
    margin-bottom: 120px; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
}

.about-row { 
    display: grid; 
    grid-template-columns: 5fr 7fr; 
    gap: 100px; 
    align-items: flex-start; 
    margin-bottom: 160px; 
}

.about-row:last-child { 
    margin-bottom: 0; 
}

.about-row.reverse { 
    grid-template-columns: 7fr 5fr; 
}

.about-row.reverse .about-img-container { order: 2; }
.about-row.reverse .about-text { order: 1; }

.about-text {
    padding-top: 10px; 
}

.about-text p { 
    font-weight: 300; 
    line-height: 2.1; 
    color: #333; 
    font-size: 1.1rem; 
    margin-bottom: 30px; 
    max-width: 65ch; 
}

/* Lettrine (Drop Cap) pour le premier paragraphe */
.about-row:nth-of-type(1) .about-text p:nth-of-type(1)::first-letter {
    font-family: var(--font-display);
    float: left;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 15px;
    padding-left: 3px;
    color: var(--text-main);
}

/* Images style Galerie */
.img-wrapper { 
    overflow: hidden; 
    background: transparent; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06); 
}

.about-img { 
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease; 
    filter: saturate(0.9); 
}

.img-wrapper:hover .about-img { 
    transform: scale(1.04); 
    filter: saturate(1.1); 
}

/* Légendes style "Cartel de musée" */
.about-caption { 
    display: block; 
    text-align: left; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 25px;
    padding-left: 15px;
    border-left: 2px solid var(--accent); 
    border-bottom: none;
}

/* =========================================
   EXPOSITIONS (Style Catalogue)
========================================= */
.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-row { 
    display: grid; 
    grid-template-columns: 100px 1fr auto; 
    padding: 40px 10px; 
    border-bottom: 1px solid var(--border-light); 
    align-items: baseline; 
    transition: background 0.4s ease, transform 0.4s ease; 
}

.ex-row:hover { 
    background-color: transparent;
    padding-left: 10px; 
    transform: translateY(-2px); 
}

.ex-year { font-family: var(--font-display); font-weight: 300; font-size: 1.2rem; color: var(--text-muted); }
.ex-info { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.5px; }
.ex-location { font-weight: 500; font-size: 0.8rem; letter-spacing: 2px; color: var(--text-main); text-transform: uppercase; text-align: right; }

.ex-description { 
    grid-column: 1 / -1; 
    font-style: normal; 
    color: #888; 
    margin-top: 12px; 
    font-size: 0.95rem; 
    line-height: 1.6;
}

/* =========================================
   BOUTONS D'ACTION (Épurés)
========================================= */
.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px; 
    margin-top: 60px;
    flex-wrap: wrap; 
}

.section-footer-link {
    display: inline-block;
    border: none;
    border-bottom: 1px solid var(--text-main); 
    padding: 5px 0;
    border-radius: 0;
    margin: 0 15px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.section-footer-link:hover {
    background-color: transparent;
    color: var(--text-muted);
    border-bottom-color: var(--text-muted);
}

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

/* =========================================
   ANIMATIONS
========================================= */
@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 QUERIES (RESPONSIVE)
========================================= */
@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; color: var(--text-main); } 
    .hero { flex-direction: column; padding-top: 120px; }
    .hero-left, .hero-right { width: 100%; flex: none; }
    .hero-right { height: 50vh; justify-content: center; }
    .hero-slide-figure img { object-position: center; }
    
    /* Retour à 1 colonne sur mobile */
    .about-row { grid-template-columns: 1fr; gap: 50px; margin-bottom: 100px; }
    .about-row.reverse { grid-template-columns: 1fr; }
    .about-row.reverse .about-img-container, .about-row.reverse .about-text { order: unset; }
}

@media (max-width: 768px) {
    .itineraire-quote {
        padding: 0 0 0 20px;
        margin-bottom: 70px;
    }
    .itineraire-quote p {
        font-size: 1.15rem;
    }
    .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;
    }
}

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

/* =========================================
   PAGE COLLECTIONS (Externe)
========================================= */
.page-header { padding: 180px 5% 80px; 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; margin: 0 auto; }
.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%; }


/* =========================================
   SECTION ARCHIVES (Aperçu Chronologique)
========================================= */
.archives-preview-section {
    background-color: var(--bg-primary); 
    padding: 120px 0;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 60px;
    margin-bottom: 60px;
}

.archive-item {
    display: flex;
    flex-direction: column;
}

.archive-item .img-wrapper {
    aspect-ratio: 4 / 5; /* Uniformise la hauteur des documents pour l'esthétique */
    margin-bottom: 25px;
    background-color: var(--bg-secondary);
}

.archive-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
    filter: saturate(0.85);
}

.archive-item:hover .archive-img {
    transform: scale(1.05);
    filter: saturate(1.1);
}

.archive-caption {
    padding-right: 10px;
}

.archive-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.archive-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.archive-year {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.archive-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    color: #666;
}

/* Responsive pour la grille des archives */
@media (max-width: 900px) {
    .archives-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .archives-grid {
        grid-template-columns: 1fr; 
        gap: 50px;
    }
    .archive-item .img-wrapper {
        aspect-ratio: auto; 
    }
}



/* =========================================
   PAGE ARCHIVES (Timeline Chronologique)
========================================= */
.page-header-spacing {
    padding-top: 150px; 
}

.timeline-section {
    background-color: var(--bg-primary);
    padding-bottom: 120px;
    overflow: hidden; /* Empêche les débordements de la ligne */
}

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

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

/* La Grille globale de la timeline avec sa LIGNE CENTRALE */
.timeline-grid {
    position: relative; /* Nécessaire pour positionner la ligne */
    display: flex;
    flex-direction: column;
    gap: 160px; /* Respiration majestueuse entre chaque œuvre */
    padding: 60px 0;
}

/* Le trait vertical fin de la timeline */
.timeline-grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: var(--border-light);
    transform: translateX(-50%);
    z-index: 0;
}

/* Chaque Bloc (Ligne 1fr 1fr parfait pour encadrer la ligne) */
.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 120px;
    align-items: center; 
    z-index: 1;
}

/* Le Point (Marqueur temporel) au centre */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 15px var(--bg-primary); /* Astuce : crée un espace blanc autour du point pour couper la ligne verticalement */
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover::after {
    transform: translate(-50%, -50%) scale(1.4); /* Petit effet visuel luxueux au survol */
}

/* 
  Inversion et alignement des textes vers la ligne centrale 
*/

/* IMPAIRS : Image à gauche, Texte à droite */
.timeline-item:nth-child(odd) .timeline-content {
    padding-left: 20px;
}

/* PAIRS : Texte à gauche, Image à droite */
.timeline-item:nth-child(even) .timeline-image {
    order: 2;
}

.timeline-item:nth-child(even) .timeline-content {
    order: 1;
    text-align: right; /* Le texte regarde vers la timeline */
    padding-right: 20px;
}

.timeline-item:nth-child(even) .timeline-desc {
    margin-left: auto; /* Force le paragraphe à se coller à droite */
}

/* Images de la timeline */
.timeline-image {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05); 
    display: flex;
    justify-content: center; /* Centre l'image verticalement dans la grille si besoin */
    align-items: center;
}

.timeline-image img {
    max-width: 100%; /* L'image ne débordera jamais de sa colonne */
    max-height: 85vh; /* Empêche l'image de dépasser la hauteur de l'écran */
    width: auto;
    height: auto;
    object-fit: contain; /* Assure que l'image est visible à 100% sans aucun rognage */
}

/* Typographie de la Timeline */
.timeline-year {
    font-family: var(--font-display);
    font-size: 3.5rem; 
    font-weight: 300; 
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 20px;
}

.timeline-desc {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    font-weight: 300;
    max-width: 45ch; /* Longueur de ligne courte pour l'esthétique */
}

/* =========================================
   RESPONSIVE (Tablettes & Mobiles)
========================================= */
@media (max-width: 900px) {
    .burger-menu { display: block; }
    
    /* Menu plein écran */
    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; width: 100%; padding: 0 20px; }
    nav a { font-size: 1.5rem; color: var(--text-main); } 
    
    /* Accordéon Mobile pour le Dropdown */
    .dropdown-menu { 
        position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; 
        transform: none; display: none; padding: 20px 0 0 0; background: transparent; 
    }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown.active .dropdown-toggle i { transform: rotate(180deg); }
    .dropdown-menu li { margin-bottom: 15px; }
    .dropdown-menu li:last-child { margin-bottom: 0; }
    .dropdown-menu li a { font-size: 1.1rem; color: var(--text-muted); padding: 0; }

    /* Reste du responsive 900px existant */
    .hero { flex-direction: column; padding-top: 120px; }
    .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: 50px; margin-bottom: 100px; }
    .about-row.reverse { grid-template-columns: 1fr; }
    .about-row.reverse .about-img-container, .about-row.reverse .about-text { order: unset; }
    .section-title { margin-bottom: 50px; letter-spacing: 2px; }
    
    /* Ajustement de la ligne de timeline */
    .timeline-grid::before { left: 0; transform: none; }
    .timeline-grid { gap: 100px; padding-left: 10px; }
    .timeline-item, .timeline-item:nth-child(even) { grid-template-columns: 1fr; gap: 30px; padding-left: 50px; text-align: left; }
    .timeline-item::after { left: 0; top: 40px; transform: translateX(-4px); box-shadow: 0 0 0 10px var(--bg-primary); }
    .timeline-item:hover::after { transform: translateX(-4px) scale(1.4); }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content { padding: 0; text-align: left; }
    .timeline-item:nth-child(even) .timeline-desc { margin-left: 0; }
    .timeline-item:nth-child(even) .timeline-image, .timeline-item:nth-child(even) .timeline-content { order: unset; }
}

/* Inside your @media (max-width: 900px) */
@media (max-width: 900px) {
    .section-title {
        margin-bottom: 50px;
        letter-spacing: 2px; /* Tighten tracking on small screens */
    }
}

/* Inside your @media (max-width: 600px) */
@media (max-width: 600px) {
    .section-title {
        font-size: 1.8rem; /* Hard fallback for very small screens if clamp is too big */
        margin-bottom: 40px;
    }
    
    /* Also target the Page Titles (Collections/Archives) */
    .page-title {
        font-size: 2.2rem !important;
        margin-bottom: 15px;
    }
}