/* --- CONFIGURATION & THEME --- */
:root {
    --gold: #d4af37;
    --gold-light: #f4e8c1;
    --navy: #0a1931;
    --navy-light: #162a4d;
    --white: #ffffff;
    --bg-light: #f4f7fa;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --shadow-premium: 0 20px 40px rgba(0,0,0,0.06);
    --radius: 30px;
}

.dark-theme {
    --bg-light: #050a14;
    --white: #0d1626;
    --text-dark: #f7fafc;
    --text-gray: #a0aec0;
    --navy: #d4af37; /* En mode sombre, certains titres virent à l'or */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    transition: all 0.4s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HERO SECTION --- */
.event-hero {
    height: 550px;
    /* On garde les réglages d'affichage sans l'image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Ce dégradé permet de s'assurer que le texte reste lisible peu importe l'image */
    background: linear-gradient(to bottom, rgba(10,25,49,0.3), rgba(10,25,49,0.8));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2; /* Pour passer au-dessus de l'overlay sombre */
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,25,49,0.4), rgba(10,25,49,0.9));
}

.hero-container { position: relative; z-index: 2; }

.back-btn {
    text-decoration: none; color: white; background: rgba(255,255,255,0.1);
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem;
    backdrop-filter: blur(5px); transition: 0.3s;
}
.back-btn:hover { background: var(--gold); color: var(--navy); }

.badge-group { display: flex; gap: 10px; margin: 25px 0; align-items: center; }
.badge-gold { background: var(--gold); color: var(--navy); padding: 5px 15px; border-radius: 50px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; }
.event-status { font-size: 0.8rem; color: #2ecc71; font-weight: 600; }
.event-status i { font-size: 0.6rem; margin-right: 5px; }

.event-hero h1 { font-size: 3.5rem; font-weight: 800; margin: 0; line-height: 1.1; max-width: 800px; }
.hero-meta { display: flex; gap: 30px; margin-top: 25px; font-weight: 500; opacity: 0.9; }
.hero-meta i { color: var(--gold); }

/* --- CONTENT STRUCTURE --- */
.main-content { margin-top: -100px; padding-bottom: 80px; position: relative; z-index: 5; }
.content-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; }

.card { background: var(--white); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.03); }

/* Main Article */
.main-card { padding: 50px; box-shadow: var(--shadow-premium); }
.section-title { font-size: 2rem; color: var(--navy); margin-bottom: 20px; }
.lead { font-size: 1.2rem; color: var(--text-gray); font-weight: 500; margin-bottom: 40px; }

.image-gallery { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-bottom: 40px; }
.image-gallery img { width: 100%; border-radius: 20px; transition: 0.3s; }
.image-gallery img:hover { transform: scale(1.02); }

.quote-card {
    background: var(--bg-light); border-left: 6px solid var(--gold);
    padding: 30px; margin: 40px 0; position: relative;
}
.quote-card i { position: absolute; top: -15px; left: 20px; font-size: 2rem; color: var(--gold); opacity: 0.3; }
.quote-card p { font-style: italic; font-size: 1.2rem; color: var(--navy); margin: 0; }

/* Sidebar */
.sidebar-card { padding: 40px; box-shadow: var(--shadow-premium); position: sticky; top: 40px; }
.price-tag { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 30px; border-bottom: 2px solid var(--gold); display: inline-block; }

.details-list { margin-bottom: 35px; }
.detail-item { display: flex; gap: 15px; margin-bottom: 25px; }
.icon-box { 
    width: 45px; height: 45px; background: rgba(212, 175, 55, 0.1); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 1.2rem; flex-shrink: 0;
}
.detail-item strong { display: block; font-size: 0.85rem; color: var(--text-gray); }
.detail-item p { margin: 0; font-weight: 700; color: var(--navy); }

.action-buttons { display: flex; flex-direction: column; gap: 15px; }
.btn-primary { 
    background: var(--navy); color: white; border: none; padding: 20px; 
    border-radius: 18px; font-weight: 800; cursor: pointer; transition: 0.3s;
}
.btn-primary:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.btn-outline {
    background: transparent; border: 2px solid var(--navy); color: var(--navy);
    padding: 18px; border-radius: 18px; font-weight: 700; cursor: pointer;
}

.share-area { margin-top: 30px; text-align: center; border-top: 1px solid #eee; padding-top: 25px; }
.social-icons { display: flex; justify-content: center; gap: 15px; margin-top: 10px; }
.social-icons a { width: 40px; height: 40px; border-radius: 50%; background: #f0f2f5; display: flex; align-items: center; justify-content: center; color: var(--navy); text-decoration: none; transition: 0.3s; }
.social-icons a:hover { background: var(--gold); color: white; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .content-grid { grid-template-columns: 1fr; }
    .event-hero h1 { font-size: 2.5rem; }
    .main-card { padding: 30px; }
    .sidebar-card { position: relative; top: 0; }
}

.dark-theme .card { 
    background: var(--white); 
    border-color: rgba(255,255,255,0.05); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.dark-theme .section-title, .dark-theme .detail-item p, .dark-theme .price-tag {
    color: white;
}

.dark-theme .btn-outline {
    border-color: var(--gold);
    color: var(--gold);
}

.dark-theme .social-icons a { background: #1a2639; color: var(--gold); }

.dark-theme .quote-card { background: #0a1931; }
.dark-theme .quote-card p { color: white; }