/* ============================================
   Gala de Danse — Styles
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
    background: #0a0a0a;
    line-height: 1.6;
}

/* --- Login Screen --- */
#login-screen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a0a2e 0%, #0a0a0a 50%, #1a1005 100%);
}

#login-screen.hidden {
    display: none;
}

.login-box {
    text-align: center;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 170, 100, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    color: #b0a080;
    font-size: 0.95rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#login-password {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(200, 170, 100, 0.3);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#login-password:focus {
    border-color: #c8aa64;
}

#login-password::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#login-form .btn {
    width: 100%;
    cursor: pointer;
    border-radius: 6px;
}

.login-error {
    color: #e06060;
    font-size: 0.85rem;
    min-height: 1.2em;
}

/* --- Hidden utility --- */
.hidden {
    display: none !important;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 170, 100, 0.2);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #c8aa64;
    text-decoration: none;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #c8aa64;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a0a2e 0%, #0a0a0a 50%, #1a1005 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(200, 170, 100, 0.08) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #b0a080;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.08em;
}

.hero-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 2px solid;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-classique {
    border-color: #c8aa64;
    color: #c8aa64;
}

.btn-classique:hover {
    background: #c8aa64;
    color: #0a0a0a;
}

.btn-jazz {
    border-color: #e06090;
    color: #e06090;
}

.btn-jazz:hover {
    background: #e06090;
    color: #0a0a0a;
}

/* --- Sections --- */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: #b0b0b0;
}

/* Section Classique — tons dorés */
.section-classique .section-header h2 {
    color: #c8aa64;
}

.section-classique .section-header h3 {
    color: #d4b87a;
}

.section-classique h4 {
    color: #c8aa64;
}

/* Section Jazz — tons rosés/vifs */
.section-jazz .section-header h2 {
    color: #e06090;
}

.section-jazz h4 {
    color: #e06090;
}

/* --- Media Block --- */
.media-block {
    margin-bottom: 4rem;
}

.media-block h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Rubriques --- */
.rubrique {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.rubrique h4 {
    margin-bottom: 1.2rem;
}

.rubrique .video-grid {
    margin-top: 1.2rem;
}

.section-classique .rubrique {
    border-color: rgba(200, 170, 100, 0.1);
    background: rgba(200, 170, 100, 0.03);
}

.section-jazz .rubrique {
    border-color: rgba(224, 96, 144, 0.1);
    background: rgba(224, 96, 144, 0.03);
}

/* --- Gallery Grid --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Video Grid --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.video-item {
    border-radius: 4px;
    overflow: hidden;
}

.video-item video {
    width: 100%;
    display: block;
    border-radius: 4px;
}

/* --- Placeholder Styles --- */
.placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.placeholder:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.3);
}

.section-classique .placeholder {
    background: linear-gradient(135deg, #1a1508 0%, #2a1f0a 100%);
    border-color: rgba(200, 170, 100, 0.2);
}

.section-jazz .placeholder {
    background: linear-gradient(135deg, #1a0818 0%, #2a0a20 100%);
    border-color: rgba(224, 96, 144, 0.2);
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.placeholder-icon {
    font-size: 2rem;
    opacity: 0.5;
}

.placeholder-hint {
    font-size: 0.7rem;
    opacity: 0.5;
    text-align: center;
    padding: 0 1rem;
}

.video-item.placeholder {
    aspect-ratio: 16 / 9;
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    color: #c8aa64;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #c8aa64;
}

/* --- Footer --- */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}

.footer-sub {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #444;
}

/* --- Responsive --- */

/* Tablette */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        max-width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(200, 170, 100, 0.2);
    }

    .nav-links.open {
        right: 0;
    }

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

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .lightbox-close {
        font-size: 2rem;
        top: 1rem;
        right: 1rem;
    }

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

/* Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2rem;
    }

    .hero-nav {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .section {
        padding: 3rem 0.8rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header h3 {
        font-size: 1rem;
    }

    .section-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .media-block h4 {
        font-size: 1rem;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .media-block {
        margin-bottom: 2.5rem;
    }

    .lightbox-prev {
        left: 0.3rem;
        font-size: 1.5rem;
    }

    .lightbox-next {
        right: 0.3rem;
        font-size: 1.5rem;
    }
}

/* Tres petit ecran */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
