/* ============================================================
   COMMON.CSS - Styles partagés multi-pages
   ============================================================ */

/* --- ANIMATION GLOBALE (utilisée par .container et .erreur-quantique-box) --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- 1. MENU ICON (burger) --- */
.menu-icon { position: fixed; top: 20px; right: 20px; z-index: 10000; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 5px; padding: 10px; cursor: pointer; width: 50px; height: 50px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; transition: background 0.3s ease; backdrop-filter: blur(5px); }
.menu-icon:hover { background: rgba(0, 0, 0, 0.9); border-color: #fff; }
.menu-icon span { display: block; width: 25px; height: 3px; background-color: #fff; border-radius: 2px; transition: all 0.3s ease; }
.menu-icon.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-icon.open span:nth-child(2) { opacity: 0; }
.menu-icon.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* --- MENU OVERLAY (panneau latéral) --- */
.menu-overlay { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); z-index: 9999; transition: right 0.4s ease; display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.menu-overlay.active { right: 0; }
.menu-overlay a { color: #fff; text-decoration: none; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 2px; margin: 20px 0; padding: 10px 20px; border: 2px solid transparent; border-radius: 5px; transition: all 0.3s ease; }
.menu-overlay a:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* --- 2 & 3. BOUTONS DE CONFIRMATION / ANNULATION (barre mobile) --- */
.mobile-confirm-bar { position: fixed; bottom: -100%; left: 0; width: 100%; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px); padding: 20px; display: flex; justify-content: center; gap: 20px; z-index: 10001; transition: bottom 0.3s ease; border-top: 1px solid rgba(255,255,255,0.2); box-shadow: 0 -5px 20px rgba(0,0,0,0.5); }
.mobile-confirm-bar.active { bottom: 0; }
.btn-confirm, .btn-cancel { padding: 12px 25px; border-radius: 5px; font-weight: bold; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: none; min-width: 140px; transition: transform 0.2s; }
.btn-confirm { background: #28a745; color: white; box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); }
.btn-confirm:active { transform: scale(0.95); }
.btn-cancel { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.5); }
.btn-cancel:active { transform: scale(0.95); background: rgba(255,255,255,0.3); }
@media (min-width: 901px) { .mobile-confirm-bar { display: none !important; } }

/* --- 4. BLOC CONTAINER (uniquement le conteneur) --- */
.container { position: relative; z-index: 2; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); padding: 3rem; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 15px 35px rgba(0,0,0,0.5); max-width: 1200px; width: 100%; text-align: center; animation: fadeInUp 0.8s ease-out; margin-bottom: 2rem; }
@media (max-width: 900px) { .container { padding: 1.5rem; } }