/* Updated: 2025-11-15 18:02:44 - Admin Hamburger Menu v2.0 */
/* ZULOO - STYLES PRINCIPAUX */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #000000;
}

/* BOUTON HAMBURGER */
.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--theme-primary, #3498db) 0%, var(--theme-secondary, #2980b9) 100%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.hamburger-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* BOUTON HAMBURGER ADMIN - Style doré */
.admin-hamburger-btn {
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.admin-hamburger-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* LOGO FIXE */
.fixed-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.fixed-logo .logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.fixed-logo .logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px var(--theme-primary, #3498db);
}

/* LOGO ADMIN - Style doré */
.admin-fixed-logo .logo {
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.admin-fixed-logo .logo:hover {
    text-shadow: 0 4px 20px #ffd700;
}

/* SIDEBAR NAVIGATION */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}

.sidebar-nav.active {
    pointer-events: all;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-nav.active .sidebar-overlay {
    opacity: 1;
    pointer-events: all;
}

.sidebar-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 10000;
}

.sidebar-nav.active .sidebar-content {
    transform: translateX(0);
}

/* SIDEBAR ADMIN - Style doré */
.admin-sidebar-nav .sidebar-content {
    background: linear-gradient(180deg, #1a1a1a 0%, #2c2416 100%);
    border-right: 2px solid #ffd700;
    box-shadow: 4px 0 30px rgba(255, 215, 0, 0.3);
}

.sidebar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header-nav .logo {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.sidebar-close {
    background: rgba(231, 76, 60, 0.9);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.sidebar-close:hover {
    background: rgba(192, 57, 43, 1);
    transform: scale(1.1);
}

.sidebar-links {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-links li {
    margin: 0;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-links a:hover {
    background: rgba(52, 152, 219, 0.15);
    border-left-color: var(--theme-primary, #3498db);
    padding-left: 2rem;
}

.sidebar-links a span {
    font-size: 1.3rem;
}

.sidebar-links .admin-link {
    color: var(--theme-light, #2890FF);
}

.sidebar-links .login-link {
    opacity: 0.7;
    font-size: 1rem;
}

.language-selector-item {
    padding: 1rem 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

/* ANCIENNE NAVBAR PUBLIQUE - CACHÉE (pas l'admin) */
.navbar:not(.admin-navbar) { display: none; }

/* NAVBAR ADMIN - VISIBLE */
.admin-navbar {
    display: block !important;
    overflow: visible !important;
}

.admin-navbar .nav-links {
    overflow: visible !important;
}

.admin-navbar .nav-links li {
    position: relative;
}

.admin-navbar .container {
    overflow: visible !important;
}

/* Menu déroulant pour accéder au site - ADMIN */
.site-links-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    z-index: 10000;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #e0e0e0 !important;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: #2c2c2c;
    border-left-color: #3498db;
    padding-left: 1.5rem;
}

.site-links-dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-toggle::after {
    transition: transform 0.3s;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { color: white; text-decoration: none; font-size: 1.8rem; font-weight: bold; transition: color 0.3s; }
.logo:hover { color: #3498db; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: white; text-decoration: none; transition: color 0.3s; font-weight: 500; }
.nav-links a:hover { color: #3498db; }
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: white; padding: 5rem 0; text-align: center; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.section { padding: 3rem 0; }
.section h2 { color: #ffffff; margin-bottom: 2rem; font-size: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.photo-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.photo-grid-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollPhotos 60s linear infinite;
}

.photo-grid-track:hover {
    animation-play-state: paused;
}

@keyframes scrollPhotos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.photo-grid .photo-item {
    flex: 0 0 300px;
    position: relative;
}

/* Bande défilante de la galerie */
.galerie-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.banner-track {
    display: flex;
    gap: 0;
    height: 100%;
    animation: scrollPhotos 15s linear infinite;
}

.banner-track:hover {
    animation-play-state: paused;
}

.banner-photo {
    flex: 0 0 auto;
    height: 100%;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.banner-photo:hover {
    opacity: 0.8;
}

.banner-photo img {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
}

.banner-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    z-index: 10;
    pointer-events: none;
}

.banner-title-overlay h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.banner-title-overlay p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Bande défilante des événements (rouge) */
.evenements-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

@media (max-width: 768px) {
    .galerie-banner, .evenements-banner {
        height: 150px;
    }

    .banner-title-overlay h1 {
        font-size: 2rem;
    }

    .banner-title-overlay p {
        font-size: 1rem;
    }
}

.card { background: #1a1a1a; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 10px rgba(255,255,255,0.1); transition: transform 0.3s; border: 1px solid #333; }
.card:hover { transform: translateY(-5px); }
.card h3 { color: #3498db; margin-bottom: 0.5rem; }
.photo-grid img { width: 300px; height: 250px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.3s; }
.photo-grid img:hover { transform: scale(1.05); }
.btn { display: inline-block; background: #3498db; color: white; padding: 0.8rem 2rem; text-decoration: none; border-radius: 5px; transition: background 0.3s; }
.btn:hover { background: #2980b9; }
footer { background: #0a0a0a; color: white; text-align: center; padding: 2rem 0; margin-top: 3rem; border-top: 1px solid #333; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #e0e0e0; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #333; border-radius: 5px; font-family: inherit; background: #1a1a1a; color: #e0e0e0; }
.form-group textarea { min-height: 150px; }
.alert { padding: 1rem; border-radius: 5px; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
/* FORMULAIRE DE CONTACT - Labels noirs sur fond blanc */
.contact-form .form-group label { color: #000000 !important; }
.contact-form .form-group input,
.contact-form .form-group textarea {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #cccccc !important;
}
/* INTERFACE UPLOAD PHOTOS */
.feature-section { background: #1a1a1a; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 15px rgba(255,255,255,0.1); margin-bottom: 2rem; border: 1px solid #333; }

/* TABS */
.upload-tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid #333; }
.tab-btn { background: none; border: none; padding: 1rem 2rem; font-size: 1rem; cursor: pointer; color: #b0b0b0; transition: all 0.3s; border-bottom: 3px solid transparent; }
.tab-btn:hover { color: #3498db; }
.tab-btn.active { color: #3498db; border-bottom-color: #3498db; font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.upload-container { margin-top: 1rem; }
.upload-area { border: 3px dashed #444; border-radius: 10px; padding: 3rem; text-align: center; background: #0a0a0a; transition: all 0.3s; cursor: pointer; }
.upload-area:hover { border-color: #3498db; background: #1a1a1a; }
.upload-icon { font-size: 4rem; margin-bottom: 1rem; }
.preview-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.preview-item { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.preview-item img { width: 100%; height: 150px; object-fit: cover; }
.remove-btn { position: absolute; top: 5px; right: 5px; background: #e74c3c; color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 1.2rem; transition: background 0.3s; }
.remove-btn:hover { background: #c0392b; }
.btn-primary { background: #27ae60; }
.btn-primary:hover { background: #229954; }

/* INTERFACE VIDÉO EN DIRECT */
.live-video-container { margin-top: 1rem; }
.video-wrapper { position: relative; background: #000; border-radius: 10px; overflow: hidden; max-width: 800px; margin: 0 auto; }
#liveVideo { width: 100%; height: auto; display: block; max-height: 600px; object-fit: contain; }
.video-controls { display: flex; gap: 1rem; justify-content: center; margin-top: 1rem; flex-wrap: wrap; }
.btn-secondary { background: #95a5a6; }
.btn-secondary:hover { background: #7f8c8d; }
.captured-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 2rem; }
.captured-item { background: #1a1a1a; border-radius: 8px; padding: 1rem; box-shadow: 0 2px 10px rgba(255,255,255,0.1); border: 1px solid #333; }
.captured-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; margin-bottom: 0.5rem; }
.captured-actions { display: flex; gap: 0.5rem; justify-content: space-between; }
.btn-small { padding: 0.5rem 1rem; background: #3498db; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s; flex: 1; }
.btn-small:hover { background: #2980b9; }

/* INSTAGRAM IMPORT */
.instagram-import { margin-top: 1rem; }
.instagram-instructions { background: #1a1a2e; padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; border: 1px solid #333; }
.instagram-instructions h3 { color: #3498db; margin-bottom: 1rem; }
.instagram-instructions ol { margin-left: 1.5rem; color: #b0b0b0; line-height: 1.8; }
.instagram-note { margin-top: 1rem; color: #1976d2; font-weight: bold; }
.instagram-form { margin-top: 2rem; }
.instagram-input { width: 100%; padding: 0.8rem; border: 1px solid #333; border-radius: 5px; font-family: inherit; font-size: 1rem; background: #0a0a0a; color: #e0e0e0; }
.instagram-input-group { display: flex; gap: 0.5rem; align-items: center; }
.instagram-input-group .instagram-input { flex: 1; }
.instagram-preview { margin-top: 2rem; padding: 1.5rem; background: #1a1a1a; border-radius: 8px; border: 1px solid #333; }
.instagram-preview h4 { margin-bottom: 1rem; color: #ffffff; }
.instagram-embed { text-align: center; margin: 1rem 0; }
.instagram-actions { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.instagram-actions .btn { flex: 1; min-width: 200px; }
.instagram-direct-import { margin-top: 2rem; padding-top: 2rem; border-top: 2px solid #333; }
.instagram-direct-import h4 { margin-bottom: 1rem; color: #ffffff; }
.instagram-direct-import .form-group { display: flex; gap: 0.5rem; align-items: flex-start; }
.instagram-direct-import .instagram-input { flex: 1; }

/* NOTIFICATION ANIMATION */
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* SECTION PHOTOS RECENTES */
#recentUploads { background: #1a1a1a; padding: 2rem; border-radius: 10px; margin-bottom: 2rem; position: relative; border: 1px solid #333; }
#recentUploads h2 { color: #ffffff; margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.clear-photos-btn { background: #e74c3c; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; font-size: 0.9rem; transition: background 0.3s; }
.clear-photos-btn:hover { background: #c0392b; }

/* GALLERY LAYOUT WITH SIDEBAR */
.gallery-layout { display: flex; min-height: calc(100vh - 300px); background: #000000; }

/* SIDEBAR SOIRÉES */
.soirees-sidebar { width: 320px; background: #0a0a0a; border-right: 1px solid #333; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-header { padding: 1.5rem; border-bottom: 2px solid #333; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: white; }
.sidebar-header h2 { margin: 0; font-size: 1.3rem; }
.btn-new-soiree { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; font-weight: bold; cursor: pointer; transition: all 0.3s; }
.btn-new-soiree:hover { background: rgba(255,255,255,0.3); transform: scale(1.05); }

/* FORMULAIRE DANS SIDEBAR */
.soiree-form-container { padding: 1rem; background: #1a1a1a; border-bottom: 2px solid #333; }
.soiree-form-container h3 { margin: 0 0 1rem 0; font-size: 1.1rem; color: #ffffff; text-align: center; }
.form-field { margin-bottom: 0.75rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: bold; color: #e0e0e0; margin-bottom: 0.25rem; }
.form-field input, .form-field textarea { width: 100%; padding: 0.5rem; border: 2px solid #333; border-radius: 6px; font-size: 0.9rem; font-family: inherit; background: #0a0a0a; color: #e0e0e0; }
.form-field textarea { resize: vertical; }
.form-actions { display: flex; gap: 0.5rem; }
.btn-submit { flex: 1; padding: 0.6rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: transform 0.2s; }
.btn-submit:hover { transform: translateY(-2px); }
.btn-cancel { padding: 0.6rem 1rem; background: #95a5a6; color: white; border: none; border-radius: 6px; cursor: pointer; }
.form-message { margin-top: 0.5rem; padding: 0.5rem; border-radius: 6px; font-size: 0.85rem; text-align: center; }

/* LISTE DES SOIRÉES */
.soirees-list { padding: 0; }
.soiree-item { padding: 1rem 1.5rem; border-bottom: 1px solid #222; cursor: pointer; transition: all 0.3s; display: flex; gap: 1rem; align-items: start; }
.soiree-item:hover { background: #1a1a1a; }
.soiree-item.active { background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(52, 152, 219, 0.1) 100%); border-left: 4px solid #3498db; }
.soiree-icon { font-size: 2rem; line-height: 1; }
.soiree-info { flex: 1; }
.soiree-info h3 { margin: 0; font-size: 1rem; color: #ffffff; font-weight: 600; }
.soiree-date { margin: 0.25rem 0 0 0; font-size: 0.85rem; color: #7f8c8d; }
.soiree-lieu { margin: 0.25rem 0 0 0; font-size: 0.8rem; color: #95a5a6; }
.soiree-count { margin: 0.25rem 0 0 0; font-size: 0.85rem; color: #7f8c8d; font-weight: 500; }
.empty-state { padding: 2rem 1rem; text-align: center; color: #95a5a6; }
.empty-state p { margin: 0 0 0.5rem 0; font-weight: 600; }
.empty-state small { font-size: 0.85rem; }

/* CONTENU GALERIE */
.gallery-content { flex: 1; padding: 2rem; overflow-y: auto; }
.soiree-section { margin-bottom: 3rem; background: #1a1a1a; border-radius: 12px; padding: 2rem; box-shadow: 0 2px 10px rgba(255,255,255,0.05); border: 1px solid #333; }
.soiree-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid #333; }
.soiree-header-info { flex: 1; }
.soiree-header h2 { margin: 0 0 0.5rem 0; color: #ffffff; font-size: 1.8rem; }
.soiree-meta { margin: 0.5rem 0; color: #b0b0b0; font-size: 0.95rem; line-height: 1.6; }
.soiree-description { margin: 1rem 0 0 0; color: #d0d0d0; font-size: 0.95rem; line-height: 1.6; }
.btnAjouterPhotos { padding: 0.75rem 1.5rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 25px; font-weight: bold; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.btnAjouterPhotos:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
.empty-state-content { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state-content p { color: #b0b0b0; font-size: 1.2rem; margin-bottom: 1.5rem; }
.btn-back { display: inline-block; padding: 0.75rem 1.5rem; background: #3498db; color: white; text-decoration: none; border-radius: 25px; transition: background 0.3s; }
.btn-back:hover { background: #2980b9; }

/* BOUTONS DE SUPPRESSION */
.btn-delete-soiree { background: transparent; border: none; color: #e74c3c; font-size: 1.2rem; cursor: pointer; padding: 0.5rem; transition: all 0.3s; opacity: 0.6; }
.btn-delete-soiree:hover { opacity: 1; transform: scale(1.2); }
.photo-item { position: relative; overflow: hidden; border-radius: 8px; }
.photo-item img { width: 100%; height: 250px; object-fit: cover; display: block; transition: transform 0.3s, filter 0.3s; }
.photo-item:hover img { transform: scale(1.05); }
.btn-delete-photo { position: absolute; top: 8px; right: 8px; background: rgba(231, 76, 60, 0.9); color: white; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.photo-item:hover .btn-delete-photo { opacity: 1; }
.btn-delete-photo:hover { background: rgba(192, 57, 43, 1); transform: scale(1.1); }

/* ZOOM/LIGHTBOX MODAL */
.photo-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 9999; opacity: 0; transition: opacity 0.3s ease; touch-action: none; -webkit-user-select: none; user-select: none; overscroll-behavior: contain; }
.photo-lightbox.active { display: flex; opacity: 1; align-items: center; justify-content: center; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; touch-action: none; }
.lightbox-image { max-width: 100%; max-height: 90vh; object-fit: contain; user-select: none; -webkit-user-select: none; transition: transform 0.2s ease-out; box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1); touch-action: none; will-change: transform; }
.lightbox-image.zoomed { cursor: zoom-out; }
.lightbox-close { position: fixed; top: 20px; right: 20px; font-size: 2.5rem; color: white; background: rgba(231, 76, 60, 0.9); border: none; cursor: pointer; z-index: 10000; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; line-height: 1; -webkit-tap-highlight-color: transparent; }
.lightbox-close:hover, .lightbox-close:active { background: rgba(192, 57, 43, 1); transform: scale(1.1); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(52, 152, 219, 0.8); color: white; border: none; font-size: 2rem; cursor: pointer; padding: 1rem 1.5rem; z-index: 10000; transition: all 0.3s; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
.lightbox-nav:hover, .lightbox-nav:active { background: rgba(41, 128, 185, 1); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-info { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.8); color: white; padding: 0.8rem 1.5rem; border-radius: 20px; max-width: 80%; text-align: center; z-index: 10000; pointer-events: none; }
.lightbox-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 0.3rem; }
.lightbox-description { font-size: 0.85rem; color: #b0b0b0; }
.lightbox-counter { position: fixed; top: 20px; left: 20px; background: rgba(0, 0, 0, 0.8); color: white; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; z-index: 10000; pointer-events: none; }
.lightbox-zoom-controls { position: fixed; top: 90px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 10000; }
.zoom-btn { background: rgba(52, 152, 219, 0.9); color: white; border: none; font-size: 1.4rem; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; -webkit-tap-highlight-color: transparent; }
.zoom-btn:hover, .zoom-btn:active { background: rgba(41, 128, 185, 1); transform: scale(1.1); }

/* SHARE CONTROLS */
.lightbox-share-controls { position: fixed; bottom: 80px; right: 20px; z-index: 10000; }
.share-btn { background: rgba(46, 204, 113, 0.9); color: white; border: none; cursor: pointer; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; -webkit-tap-highlight-color: transparent; }
.share-btn:hover, .share-btn:active { background: rgba(39, 174, 96, 1); transform: scale(1.1); }
.share-btn svg { width: 24px; height: 24px; }
.share-menu { position: absolute; bottom: 60px; right: 0; background: rgba(0, 0, 0, 0.95); border-radius: 12px; padding: 8px; min-width: 200px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.share-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.share-option { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; color: white; border: none; padding: 12px 15px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; transition: all 0.2s; text-align: left; }
.share-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); }
.share-option span { font-size: 1.2rem; }

/* NOTIFICATION DE PARTAGE */
.share-notification { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px); background: rgba(0, 0, 0, 0.9); color: white; padding: 15px 30px; border-radius: 30px; font-size: 1rem; z-index: 100000; opacity: 0; transition: all 0.3s; pointer-events: none; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.share-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* STYLES TACTILES SPÉCIFIQUES MOBILE */
@media (max-width: 768px) {
    .lightbox-close { top: 10px; right: 10px; width: 55px; height: 55px; font-size: 2rem; }
    .lightbox-nav { font-size: 2.5rem; padding: 1.2rem 1.2rem; min-width: 60px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
    .lightbox-counter { top: 10px; left: 10px; font-size: 0.85rem; padding: 0.4rem 0.8rem; }
    .lightbox-zoom-controls { top: 80px; right: 10px; gap: 8px; }
    .zoom-btn { width: 55px; height: 55px; font-size: 1.6rem; }
    .lightbox-share-controls { bottom: 70px; right: 10px; }
    .share-btn { width: 55px; height: 55px; }
    .share-menu { min-width: 180px; font-size: 0.9rem; }
    .lightbox-info { bottom: 10px; padding: 0.6rem 1.2rem; font-size: 0.9rem; max-width: 90%; }
    .lightbox-title { font-size: 1rem; }
    .lightbox-description { font-size: 0.8rem; }
    .lightbox-image { max-height: 85vh; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-links { gap: 1rem; }
    .grid, .photo-grid { grid-template-columns: 1fr; }
    .video-controls { flex-direction: column; }
    .video-controls .btn { width: 100%; }
    .upload-tabs { overflow-x: auto; }
    .tab-btn { white-space: nowrap; }
    .instagram-actions { flex-direction: column; }
    .instagram-actions .btn { width: 100%; }
    #recentUploads h2 { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .gallery-layout { flex-direction: column; }
    .soirees-sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 2px solid #e0e0e0; }
    .gallery-content { padding: 1rem; }
    .soiree-header { flex-direction: column; gap: 1rem; }
    .btnAjouterPhotos { width: 100%; }

    /* MENU MOBILE */
    .hamburger-btn {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }

    .hamburger-btn span {
        width: 22px;
    }

    .fixed-logo {
        top: 15px;
        right: 15px;
    }

    .fixed-logo .logo {
        font-size: 1.5rem;
    }

    .sidebar-content {
        width: 85%;
        max-width: 300px;
    }

    .sidebar-header-nav {
        padding: 1.5rem 1rem;
    }

    .sidebar-header-nav .logo {
        font-size: 1.5rem;
    }

    .sidebar-close {
        width: 35px;
        height: 35px;
        font-size: 1.7rem;
    }

    .sidebar-links a {
        padding: 1rem 1rem;
        font-size: 1rem;
    }

    .sidebar-links a:hover {
        padding-left: 1.5rem;
    }
}
