* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
    color: #fff;
    min-height: 100vh;
    background: #0d0715;
}

/* ==========================================
   NAVBAR
========================================== */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 6, 18, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 92, 246, .25);
}

.topnav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.topnav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.topnav-brand img {
    height: 34px;
    width: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.topnav-brand span {
    color: #a855f7;
}

.topnav-links {
    display: flex;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.topnav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: .2s;
}

.topnav-links a:hover {
    color: #c084fc;
}

.topnav-panel-btn {
    background: linear-gradient(135deg, #8B5CF6, #7c3aed);
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    white-space: nowrap;
    transition: .2s;
    box-shadow: 0 0 20px rgba(139, 92, 246, .35);
}

.topnav-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(139, 92, 246, .55);
}

/* ==========================================
   HERO
========================================== */

.hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(168, 85, 247, .25), transparent 50%),
        radial-gradient(circle at 85% 10%, rgba(126, 34, 206, .25), transparent 50%),
        linear-gradient(180deg, rgba(13,7,21,.55) 0%, rgba(13,7,21,.75) 60%, rgba(13,7,21,.95) 100%),
        url("/images/hero-banner.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .25);
}

.hero {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 20px 70px;
}

.hero-logo {
    width: 230px;
    filter: drop-shadow(0 0 35px rgba(168, 85, 247, .6));
    animation: float 4s ease-in-out infinite;
    margin-bottom: 25px;
}

.hero-tag {
    background: rgba(139, 92, 246, .18);
    border: 1px solid rgba(168, 85, 247, .5);
    color: #e9d5ff;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-subtitle {
    color: #94a3b8;
    letter-spacing: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 35px;
}

.online-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(139, 92, 246, .10);
    border: 1px solid rgba(168, 85, 247, .45);
    border-radius: 14px;
    padding: 16px 32px;
    margin-bottom: 35px;
}

.online-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
}

.online-count {
    font-size: 26px;
    font-weight: 800;
}

.online-label {
    color: #cbd5e1;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-join,
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 16px 38px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    transition: .2s;
}

.btn-join {
    background: linear-gradient(135deg, #8B5CF6, #7c3aed);
    color: #fff;
    box-shadow: 0 0 25px rgba(139, 92, 246, .4);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 32px rgba(139, 92, 246, .6);
}

.btn-discord {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .3);
}

.btn-discord:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, .1);
}

.access-denied-banner {
    background: rgba(239, 68, 68, .15);
    border: 1px solid #ef4444;
    color: #fecaca;
    padding: 14px 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* ==========================================
   CONTENU (présentation / règlement)
========================================== */

.page-content {
    position: relative;
    z-index: 5;
    background: #0d0715;
    padding: 70px 20px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.presentation {
    max-width: 760px;
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(168, 85, 247, .25);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 45px;
    text-align: left;
}

.presentation h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 18px;
    color: #f3e8ff;
}

.section-tag {
    display: block;
    width: fit-content;
    margin: 0 auto 14px;
    background: rgba(139,92,246,.18);
    border: 1px solid rgba(168,85,247,.4);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 20px;
}

.presentation h3 {
    font-size: 17px;
    color: #c084fc;
    margin: 22px 0 8px;
}

.presentation-cta {
    text-align: center;
    margin-top: 26px !important;
    font-size: 17px;
    font-weight: 700;
    color: #f3e8ff;
}

.presentation p {
    font-size: 16px;
    line-height: 1.6;
    opacity: .9;
    margin-bottom: 14px;
}

.presentation p:last-of-type {
    margin-bottom: 0;
}

.reglement-section .hero-buttons {
    margin-top: 25px;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {

    .topnav-links {
        display: none;
    }

    .hero-logo {
        width: 170px;
    }

    .hero-tag {
        font-size: 12px;
        padding: 8px 16px;
    }

    .presentation {
        padding: 30px 25px;
    }

}

/* ==========================================
   STREAMERS EN LIVE
========================================== */

.live-section{
    max-width: 900px;
    width: 100%;
    margin-bottom: 10px;
}

.live-heading{
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #fecaca;
}

.live-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.live-card{
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .4);
    border-radius: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: #fff;
    transition: .2s;
}

.live-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, .25);
}

.live-avatar{
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    flex-shrink: 0;
}

.live-info{
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.live-badge{
    font-size: 11px;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 1px;
}

.live-info strong{
    font-size: 15px;
}

.live-title{
    font-size: 13px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-game{
    font-size: 11px;
    color: #94a3b8;
}

/* ===========================
   MENU DÉROULANT "LÉGISLATION"
=========================== */

.nav-legislation {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f3e8ff;
    font-weight: 700;
}

.nav-legislation .chev {
    font-size: 10px;
    opacity: .8;
    transition: transform .15s ease;
}

.nav-legislation.open .chev {
    transform: rotate(180deg);
}

.nav-legislation.open,
.nav-legislation:hover {
    color: #c084fc;
}

.leg-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 260px;
    background: linear-gradient(180deg, #170c26, #0d0715 90%);
    border: 1px solid rgba(168, 85, 247, .3);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 30px rgba(168,85,247,.15);
    overflow: hidden;
    display: none;
    text-align: left;
    z-index: 50;
}

.leg-dropdown.show {
    display: block;
    animation: dropIn .16s ease-out;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.leg-dropdown .dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #f3e8ff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .12s ease, padding-left .12s ease;
}

.leg-dropdown .dd-item:last-child {
    border-bottom: none;
}

.leg-dropdown .dd-item:hover {
    background: rgba(168, 85, 247, .14);
    padding-left: 22px;
    color: #c084fc;
}

.leg-dropdown .dd-icon {
    flex-shrink: 0;
    font-size: 16px;
}
