:root {
    --neon-blue: #00d4ff; --neon-green: #39ff14; --neon-purple: #bc13fe;
    --neon-orange: #ff8c00; --neon-yellow: #f4ea10; --gold-color: #bf953f;
    --gold-metallic: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --primary-neon: var(--neon-blue);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 10px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #030713; }
body { margin: 0; padding: 0; width: 100%; min-height: 100vh; display: flex; flex-direction: column; font-family: 'Oxanium', sans-serif; color: white; overflow-x: hidden; }
p, textarea { font-family: 'Inter', sans-serif; }

/* Backgrounds */
.site-bg { position: fixed; top: -5%; left: -5%; right: -5%; bottom: -5%; z-index: -3; pointer-events: none; overflow: hidden; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url("../assets/fond.jpg") center/cover no-repeat; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .15; z-index: -2; background-size: 42px 42px; background-image: linear-gradient(rgba(0,217,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(0,217,255,.06) 1px,transparent 1px);}

#toast-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: rgba(15, 15, 15, 0.9); backdrop-filter: blur(10px); border: 1px solid var(--neon-blue); color: white; padding: 12px 25px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 12px; transition: all 0.5s ease; animation: slideUp 0.5s forwards; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; background: rgba(0,212,255,0.1); border: 1px solid var(--neon-blue); color: var(--neon-blue); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; transition: 0.3s; }
#back-to-top:hover { background: var(--neon-blue); color: black; box-shadow: 0 0 20px var(--neon-blue); transform: translateY(-5px); }

/* MENU BUBBLE */
.nav-bubble { position: fixed; left: 20px; top: 0; width: 140px; height: 110px; background: rgba(15, 15, 15, 0.8); backdrop-filter: blur(20px); border-radius: 0 0 70px 70px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; transition: 0.3s; cursor: pointer; z-index: 1000; border: 1px solid rgba(255,255,255,0.1); border-top: none; }
.nav-bubble:hover { background: rgba(20, 20, 20, 0.95); box-shadow: 0 15px 40px rgba(0,217,255,0.4); transform: translateY(3px); }
.nav-logo { width: 90px; filter: drop-shadow(0 0 15px var(--neon-blue)); transition: 0.4s ease; margin-bottom: 5px; }

.glass-nav-capsules { position: fixed; top: 20px; right: 20px; z-index: 950; display: flex; gap: 15px; }
.nav-capsule { background: rgba(15, 15, 15, 0.7); backdrop-filter: blur(25px); padding: 0 25px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; height: 50px; }

.datetime-widget { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-left: 15px; border-left: 1px solid rgba(255,255,255,0.1); }
#current-date { font-size: 0.55rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
#current-time { font-size: 0.9rem; font-weight: 800; color: white; text-shadow: 0 0 10px var(--neon-blue); }

.main-layout { width: 100%; max-width: 1400px; margin: 140px auto 40px; padding: 0 20px; flex-grow: 1; display: flex; flex-direction: column; gap: 40px; }

/* HERO PANEL */
.hero-panel-capsule { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; padding: 50px 30px; text-align: center; position: relative; overflow: hidden; }
.hero-panel-capsule::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, transparent, var(--neon-blue), transparent); }
.icon-badge { width: 70px; height: 70px; background: rgba(0,212,255,0.1); border: 1px solid var(--neon-blue); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--neon-blue); margin: 0 auto 20px; box-shadow: inset 0 0 15px rgba(0,212,255,0.2); }
.title-glow { text-transform: uppercase; letter-spacing: 4px; font-weight: 800; color: white; text-shadow: 0 0 20px rgba(255,255,255,0.3); }

/* LIVRE D'OR TICKER */
.guestbook-ticker-container { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 50px; padding: 12px 30px; overflow: hidden; white-space: nowrap; position: relative; }
.guestbook-ticker-content { display: inline-block; animation: tickerScroll 30s linear infinite; }
.ticker-msg { margin-right: 60px; font-size: 0.9rem; color: #eee; font-weight: 500; font-family: 'Inter'; }
.ticker-msg strong { color: var(--neon-yellow); margin-right: 8px; }
@keyframes tickerScroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* FILTRES & ALBUMS */
.controls-capsules-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.content-capsule { background: rgba(15,15,15,0.6); backdrop-filter: blur(15px); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 15px 30px; display: flex; align-items: center; gap: 20px; }
.filter-bar { display: flex; gap: 10px; }
.filter-tag { padding: 8px 20px; border-radius: 50px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; font-weight: 800; cursor: pointer; transition: 0.3s; color: #aaa; text-transform: uppercase; }
.filter-tag:hover { background: rgba(255,255,255,0.1); color: white; }
.filter-tag.active { background: var(--neon-blue); color: black; border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }

.editions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

/* CARTES ET EFFETS DE PROFONDEUR */
.edition-card { height: 400px; border-radius: 25px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; justify-content: flex-end; transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.edition-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 7, 19, 0.85) 0%, rgba(3, 7, 19, 0.3) 40%, rgba(3, 7, 19, 0.85) 100%); z-index: 1; transition: all 0.5s ease; }
.edition-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.3); box-shadow: 0 25px 50px rgba(0,0,0,0.85), 0 0 25px rgba(0, 212, 255, 0.15); }
.edition-card:hover::before { background: linear-gradient(180deg, rgba(3, 7, 19, 0.9) 0%, rgba(3, 7, 19, 0.1) 50%, rgba(3, 7, 19, 0.9) 100%); }

.card-25 { background-image: url('../assets/preview-2025.jpg'); }
.card-24 { background-image: url('../assets/preview-2024.jpg'); }
.card-23 { background-image: url('../assets/preview-2023.jpg'); }
.card-22 { background-image: url('../assets/preview-2022.jpg'); }
.card-21 { background-image: url('../assets/preview-2021.jpg'); }

.year-label { position: absolute; top: 25px; left: 25px; font-size: 3.2rem; font-weight: 900; opacity: 0.95; font-family: 'Oxanium'; z-index: 2; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8); transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.edition-card:hover .year-label { transform: scale(1.05) translateY(-2px); opacity: 1; text-shadow: 0 6px 16px rgba(0, 0, 0, 1), 0 0 25px rgba(0, 0, 0, 0.9); }

.card-glass-footer { background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(15px); padding: 25px; border-top: 1px solid rgba(255,255,255,0.1); transform: translateY(0); transition: 0.4s; z-index: 2; }
.links-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.links-grid.two-cols { grid-template-columns: 1fr 1fr; }

/* BOUTONS */
.btn { border-radius: 12px; padding: 12px 20px; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; border: 1px solid; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Oxanium'; text-decoration: none; color: white; }
.btn-blue { background: rgba(0,212,255,0.1); border-color: var(--neon-blue); } .btn-blue:hover { background: var(--neon-blue); color: black; box-shadow: 0 0 15px var(--neon-blue); }
.btn-orange { background: rgba(255,140,0,0.1); border-color: var(--neon-orange); } .btn-orange:hover { background: var(--neon-orange); color: black; box-shadow: 0 0 15px var(--neon-orange); }
.btn-yellow { background: rgba(244,234,16,0.1); border-color: var(--neon-yellow); } .btn-yellow:hover { background: var(--neon-yellow); color: black; box-shadow: 0 0 15px var(--neon-yellow); }
.btn-green { background: rgba(57,255,20,0.1); border-color: var(--neon-green); } .btn-green:hover { background: var(--neon-green); color: black; box-shadow: 0 0 15px var(--neon-green); }
.btn-gold { background: var(--gold-metallic); color: black; border: none; box-shadow: 0 0 10px rgba(191, 149, 63, 0.4); } .btn-gold:hover { transform: translateY(-3px); box-shadow: 0 5px 20px rgba(191, 149, 63, 0.6); }

/* BOTTOM SECTION */
.bottom-section { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 20px; }
.glass-panel { background: rgba(15, 15, 15, 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1); border-radius: 25px; padding: 35px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#guest-msg { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; color: white; padding: 20px; font-size: 1rem; resize: none; height: 120px; margin-bottom: 20px; transition: 0.3s; }
#guest-msg:focus { outline: none; border-color: var(--neon-yellow); box-shadow: 0 0 15px rgba(244,234,16,0.1); }

.upload-zone { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; border: 2px dashed rgba(255,255,255,0.15); }
.upload-zone:hover { border-color: var(--neon-green); background: rgba(57,255,20,0.03); }
.upload-icon-wrapper { width: 80px; height: 80px; border-radius: 50%; background: rgba(57,255,20,0.1); border: 1px solid var(--neon-green); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: var(--neon-green); margin-bottom: 10px; transition: 0.4s; }
.upload-zone:hover .upload-icon-wrapper { transform: scale(1.1) rotate(10deg); box-shadow: 0 0 30px rgba(57,255,20,0.3); }

/* FOOTER */
.footer-capsule { 
    width: calc(100% - 40px); 
    max-width: 1360px; 
    margin: 0 auto 40px auto; 
    background: rgba(15, 15, 15, 0.7); 
    backdrop-filter: blur(20px); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 25px; /* Arrondi ajusté pour correspondre aux panels larges */
    padding: 15px 40px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}
.footer-content { display: flex; align-items: center; justify-content: center; gap: 20px; font-size: 0.75rem; text-transform: uppercase; font-weight: 800; color: #aaa; letter-spacing: 1px; }
.footer-content img { height: 60px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;}
.footer-content img:hover { transform: scale(1.05); border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); }

@media (max-width: 900px) {
    .glass-nav-capsules { flex-direction: column; top: 10px; left: 180px; height: auto; gap: 10px; align-items: flex-end; }
    .nav-capsule { height: 60px; }
    .controls-capsules-row { flex-direction: column; align-items: stretch; }
    .content-capsule { justify-content: center; }
}
@media (max-width: 768px) {
    .nav-bubble { position: relative; left: auto; margin: 0 auto; width: 120px; height: 100px; border-radius: 0 0 60px 60px; }
    .glass-nav-capsules { position: relative; left: auto; right: auto; margin: 20px auto; align-items: center; }
    .main-layout { margin-top: 30px; }
    .bottom-section { grid-template-columns: 1fr; }
}