/* =========================================
   SETUP & VARIABLES
   ========================================= */
:root {
    --bg-color: #FAFAFA;      /* Blanc cassé papier */
    --text-color: #222222;    /* Noir doux */
    --accent: #666666;        /* Gris texte secondaire */
    --line: #E0E0E0;          /* Lignes fines */
    
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    --nav-width: 250px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    font-weight: 300;
}

/* =========================================
   LAYOUT GÉNÉRAL
   ========================================= */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--nav-width);
    padding: 40px;
    border-right: 1px solid var(--line);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    z-index: 10;
}

.brand h1 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 5px;
}
.subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    line-height: 1.3;
    margin-bottom: 40px;
}

.menu { list-style: none; flex-grow: 1; }
.menu li { margin-bottom: 12px; }

.nav-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--accent);
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
    padding: 0;
}

.nav-btn:hover { color: black; }
.nav-btn.active { 
    color: black; 
    font-weight: 500; 
    border-bottom: 1px solid black; 
}

.footer-nav {
    font-size: 0.7rem;
    color: #999;
}

/* Main Content Area */
.content {
    margin-left: var(--nav-width);
    flex: 1;
    padding: 60px 80px;
    max-width: 1000px; /* Empêche le contenu d'être trop large sur grands écrans */
}

/* Système d'onglets (Pages) */
.page {
    display: none;
    animation: fadeIn 0.6s ease;
}
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   TYPOGRAPHIE & ÉLÉMENTS
   ========================================= */
h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #111;
}

h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

p { margin-bottom: 15px; }
a { color: inherit; transition: 0.3s; }

/* Boite "Initiative" */
.initiative-box {
    background: #f0f0f0;
    padding: 30px;
    border-left: 3px solid #333;
    margin-bottom: 50px;
}
.initiative-box p { font-family: var(--font-serif); font-size: 1.2rem; font-style: italic; }

/* =========================================
   ACCUEIL
   ========================================= */
.highlight-block {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.label { 
    display: inline-block; 
    background: black; 
    color: white; 
    padding: 4px 8px; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    margin-bottom: 15px;
}

.latest-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.label-full { width: 100%; display: block; font-size: 0.8rem; color: #999; margin-bottom: 10px;}

.mini-thumb {
    width: 100px;
    height: 140px;
    background: #eee;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.3s;
}
.mini-thumb:hover { opacity: 0.7; }
.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   PROCHAIN ÉVÉNEMENT
   ========================================= */
.event-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* LE POINT CRUCIAL : GESTION DES AFFICHES */
.poster-container-large {
    width: 100%;
    background: #eee;
    border: 1px solid #ddd;
}

.poster-container-large img {
    display: block;
    width: 100%;
    height: auto; 
    /* L'image prend toute la largeur de sa colonne mais garde son ratio */
}

.event-details .tag {
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.meta-date { font-size: 1.3rem; font-weight: 500; margin-top: -20px; margin-bottom: 5px; }
.meta-place { color: var(--accent); margin-bottom: 30px; }

.infos-pratiques {
    list-style: none;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.infos-pratiques li { margin-bottom: 5px; font-size: 0.9rem; }

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: 1px solid black;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}
.btn-primary:hover { background: black; color: white; }
.btn-secondary { border-color: #ccc; color: #666; }
.btn-secondary:hover { border-color: black; color: black; }

/* =========================================
   ARCHIVES (LISTE TIMELINE)
   ========================================= */
.intro-sentence { margin-bottom: 50px; font-family: var(--font-serif); font-style: italic; color: var(--accent); }

.archive-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.archive-poster {
    width: 200px; /* Largeur fixe pour la colonne affiche */
    flex-shrink: 0;
}

.archive-poster img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    display: block;
}

.archive-info h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 5px; }
.archive-info .date { font-size: 0.9rem; color: #888; display: block; margin-bottom: 15px; }
.video-link { text-decoration: underline; font-weight: 500; }

/* =========================================
   RESSOURCES & BABILLARD
   ========================================= */
.babillard, .book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.note {
    background: white;
    padding: 20px;
    border: 1px solid #eee;
}
.note h4 { font-size: 1.1rem; margin-bottom: 5px; }
.note .city { font-size: 0.7rem; text-transform: uppercase; color: #999; margin-bottom: 10px; }

.book { display: flex; gap: 20px; }
.book-cover-placeholder {
    width: 60px; height: 90px;
    background: #ddd;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.8rem;
    flex-shrink: 0;
}
.book-details h4 { font-size: 1rem; margin-bottom: 0; }
.book-details .author { font-size: 0.85rem; color: #666; font-style: italic; }
.buy-link { font-size: 0.8rem; text-decoration: underline; display: block; margin-top: 10px; }

/* =========================================
   MOBILE
   ========================================= */
@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .sidebar { 
        width: 100%; 
        height: auto; 
        position: relative; 
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .content { margin-left: 0; padding: 40px 20px; }
    
    .event-layout { grid-template-columns: 1fr; }
    .archive-item { flex-direction: column; gap: 20px; }
    .archive-poster { width: 150px; }
    
    .menu { display: flex; flex-wrap: wrap; gap: 15px; }
    .menu li { margin-bottom: 0; }
}