/* --- VARIABLES ET BASES --- */
:root {
    --bg-color: #0d0d0d;
    --text-color: #f4f4f4;
    --accent: #d4af37;
    --accent-dark: #aa8c2c;
    --card-bg: #1a1a1a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* --- NAVIGATION --- */
nav {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

nav a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 10px;
}

nav a:hover, nav a.active { color: var(--accent); }

/* --- CONTENEUR PRINCIPAL --- */
.container {
    text-align: center;
    width: 95%;
    max-width: 1200px;
    padding: 20px 0 60px 0;
}

h1 {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 30px;
    font-weight: 400;
}

/* --- STYLE DE L'INDEX (L'image du jour) --- */
.image-wrapper {
    display: inline-block;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.15);
    max-width: 100%;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 65vh;
    border-radius: 10px;
    display: block;
    object-fit: contain;
}

/* --- SECTION PANTHÉON --- */
.pantheon-section {
    margin-bottom: 50px;
    padding: 20px 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    background: rgba(212, 175, 55, 0.03);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.05);
}

.pantheon-title { color: var(--accent); font-size: 1.5rem; margin-bottom: 25px; }

.pantheon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-content: center;
}

.pantheon-item { position: relative; border: 1px solid rgba(212, 175, 55, 0.4); }

.crown {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    z-index: 10;
}

/* --- GRILLE D'ARCHIVES --- */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.grid-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.date-label {
    padding: 10px;
    text-align: center;
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* --- BOUTONS --- */
.btn-gold {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    margin-bottom: 30px;
    font-family: inherit;
}

.btn-flame {
    background: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 10px 25px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    margin: 15px 0;
}

.btn-flame.liked { color: #ff5e00; border-color: #ff5e00; }

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content { max-width: 95%; max-height: 80vh; }

.close-lightbox { position: absolute; top: 20px; right: 25px; color: white; font-size: 40px; cursor: pointer; }

/* --- TIMER --- */
.countdown-timer { margin-top: 20px; font-size: 0.9rem; color: #666; font-style: italic; }

/* --- SYSTÈME DE STREAK (BADGES) --- */
.streak-badge { 
    padding: 8px 20px; 
    border-radius: 25px; 
    font-weight: bold; 
    font-size: 0.85rem; 
    display: inline-block; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-family: sans-serif;
}

.streak-bronze { background: #cd7f32; color: #fff; }

.streak-silver { 
    background: linear-gradient(45deg, #bdc3c7, #ecf0f1); 
    color: #2c3e50; 
    box-shadow: 0 0 10px rgba(255,255,255,0.2); 
}

.streak-gold { 
    background: linear-gradient(45deg, #d4af37, #f4cf6a); 
    color: #000; 
    animation: shine 2s infinite; 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); 
}

.streak-diamond { 
    background: linear-gradient(45deg, #00d2ff, #92fe9d); 
    color: #000; 
    animation: pulse 1.5s infinite; 
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6); 
}

.streak-god { 
    background: linear-gradient(270deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff); 
    background-size: 400% 400%; 
    color: #fff; 
    animation: rainbow 3s ease infinite, pulse 1s infinite; 
    border: 2px solid #fff; 
}

@keyframes shine { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes rainbow { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* --- RESPONSIVE PC (Dès 768px) --- */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    nav a { font-size: 1.1rem; }
    
    .pantheon-grid {
        grid-template-columns: repeat(3, 250px);
        gap: 30px;
        justify-content: center;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }

    .grid-item img { height: 350px; }

    .lightbox-content { max-width: 85%; max-height: 90vh; }
    
    .date-label { font-size: 1rem; }
}