:root {
    --primary-cyan: #00c3e3;
    --primary-cyan-dark: #0098b3;
    --accent-red: #e63946;
    --accent-gold: #b38b59;
    --base-black: #1a1a1a;
    --base-dark: #121212;
    --base-white: #ffffff;
    --bg-light: #f4f4f9;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--base-black);
    line-height: 1.6;
    padding-top: 80px; /* Space for fixed navbar */
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* ---------------- Navbar (Tabs) ---------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--base-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--primary-cyan);
    overflow: visible !important;
}

.navbar-logo {
    color: var(--base-white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo span {
    color: var(--primary-cyan);
}

.navbar-logo .dot {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    height: 100%;
    overflow: visible !important;
}

.nav-links li {
    height: 100%;
    position: relative;
    overflow: visible !important;
}

.nav-links a {
    color: var(--base-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-cyan);
    border-bottom: 4px solid var(--accent-red);
}

.admin-link {
    color: var(--accent-gold) !important;
}

.dropdown-content {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    min-width: 250px;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 10000;
    list-style: none;
    border-top: 3px solid var(--accent-red);
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* Prevent accidental triggers when moving mouse around */
}

.nav-links li:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Zone tampon invisible pour garder le menu ouvert */
.nav-links li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

#inscription-form-container {
    display: none; /* Forçage de base */
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    padding: 14px 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    height: auto;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 195, 227, 0.1);
    color: var(--primary-cyan);
    padding-left: 30px; /* Subtle slide effect */
}

/* Arrow indicator for dropdowns */
.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s;
}

.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

/* ---------------- Mobile Menu ---------------- */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--base-white);
    font-size: 2rem;
}

/* ---------------- Hero Section ---------------- */
.hero {
    height: 180px;
    background: linear-gradient(135deg, var(--base-black) 0%, var(--base-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--base-white);
    overflow: hidden;
    border-bottom: 5px solid var(--accent-red);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: var(--primary-cyan);
    transform: rotate(25deg);
    opacity: 0.1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: var(--accent-gold);
    transform: rotate(-35deg);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--base-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--primary-cyan);
    margin-bottom: 0;
}

/* ---------------- Main Content ---------------- */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 50vh;
}

.card {
    background: var(--base-white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-cyan);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: var(--base-black);
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--accent-red);
}

.card h3 {
    color: var(--primary-cyan-dark);
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 15px;
    color: #444;
}

.card ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: #444;
}

.card ul li {
    margin-bottom: 8px;
}

.card a {
    color: var(--primary-cyan-dark);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card a:hover {
    color: var(--accent-red);
}

/* ---------------- Admin Form ---------------- */
.admin-login {
    max-width: 400px;
    margin: 80px auto;
    background: var(--base-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--accent-gold);
}

.admin-login h2 {
    text-align: center;
    color: var(--base-black);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--base-black);
    color: var(--base-white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--primary-cyan);
}

.error-msg {
    color: var(--accent-red);
    text-align: center;
    margin-top: 15px;
    display: none;
}

#admin-dashboard {
    display: none;
}

/* ---------------- Footer ---------------- */
footer {
    background-color: var(--base-black);
    color: var(--base-white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 3px solid var(--primary-cyan);
}

/* ---------------- Animations & Utilities ---------------- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--base-black);
        height: auto;
        padding-bottom: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        height: auto;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 15px;
        justify-content: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background-color: rgba(255,255,255,0.05);
        box-shadow: none;
    }

    .nav-links li.active-dropdown .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        padding-left: 40px;
        font-size: 0.85rem;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
/* ---------------- Music Player ---------------- */
.music-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    background: var(--base-black);
    border-top: 3px solid var(--primary-cyan);
}

.music-player-container.active {
    transform: translateY(0);
}

.music-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.music-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--primary-cyan);
}

.music-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0,0,0,0.5);
    color: var(--base-white);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.close-player {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-player:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .music-player-container iframe {
        height: 120px !important;
    }
}

/* ---------------- Lightbox ---------------- */
.puvb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.puvb-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.puvb-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.puvb-lightbox-iframe-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.puvb-lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

#puvb-lightbox-iframe {
    position: relative;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
}

.puvb-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10002;
}

.puvb-lightbox-prev,
.puvb-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 3rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10002;
    transition: background 0.3s;
    border-radius: 5px;
}

.puvb-lightbox-prev:hover,
.puvb-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.puvb-lightbox-prev {
    left: -80px;
}

.puvb-lightbox-next {
    right: -80px;
}

@media (max-width: 900px) {
    .puvb-lightbox-prev { left: 10px; }
    .puvb-lightbox-next { right: 10px; }
    .puvb-lightbox-content { width: 100%; height: 60%; }
    .puvb-lightbox-close { top: -50px; right: 20px; }
}

/* Partenaires Grid */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.partenaire-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.partenaire-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.partenaire-logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partenaire-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}

.partenaire-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.partenaire-contact {
    font-size: 0.85rem;
    color: var(--accent-red);
    font-weight: 500;
}
