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

html {
    overflow-x: hidden;
    /* Empêche le défilement horizontal */
    width: 100%;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(circle at top, #151525, #0b0b14);
    color: #ffffff;
    overflow-x: hidden;
    /* Empêche le défilement horizontal */
    width: 100%;
    position: relative;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, #000428 0%, #1a0b4d 30%, #5714a3 60%, #b81eab 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Étoiles animées */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    cursor: pointer;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
    cursor: pointer;
}

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

/* Contenu principal */
.content {
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
    z-index: 5;
}

h1 {
    color: white;
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}

.subtitle {
    color: #00d9ff;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: transparent;
    border: 3px solid #00d9ff;
    color: #00d9ff;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    animation: pulse 2s infinite;
    cursor: pointer;
}

.cta-button:hover {
    background: #00d9ff;
    color: #000428;
    box-shadow: 0 0 50px rgba(0, 217, 255, 0.8);
    transform: scale(1.05);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 217, 255, 0.7);
    }
}

/* Pages */
.page {
    display: none;
    min-height: 100vh;
    background: linear-gradient(180deg, #000428 0%, #1a0b4d 30%, #4a0e78 60%, #7b2ea8 100%);
    padding: 6rem 5% 4rem;
    color: white;
}

.page.active {
    display: block;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #00d9ff;
    color: #00d9ff;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
    z-index: 100;
}

.back-button:hover {
    background: #00d9ff;
    color: #000428;
}

/* Clips */
.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.clip-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 2px solid rgba(138, 43, 226, 0.3);
    pointer-events: none;
}

.clip-item:hover {
    transform: scale(1.05);
    border-color: #00d9ff;
}

.clip-item iframe {
    width: 100%;
    height: 250px;
}

.clip-info {
    padding: 1rem;
}

.clip-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Tournois */
.tournament-list {
    max-width: 1000px;
    margin: 0 auto;
}

.tournament-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s;
}

.tournament-item:hover {
    border-color: #00d9ff;
    transform: translateX(10px);
}

.tournament-name {
    font-size: 1.8rem;
    color: #00d9ff;
    margin-bottom: 1rem;
}

.tournament-date {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.tournament-prize {
    font-size: 1.3rem;
    color: #ffa500;
}

/* Équipes */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    border-color: #00d9ff;
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.team-info-hidden {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 2rem;
}

.team-card:hover .team-info-hidden {
    opacity: 1;
}

.team-name {
    font-size: 2rem;
    color: #00d9ff;
    margin-bottom: 1rem;
}

.team-members {
    font-size: 1rem;
    line-height: 1.8;
}

/* Joueurs */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.player-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-card:hover {
    border-color: #00d9ff;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.player-info-hidden {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 2rem;
}

.player-card:hover .player-info-hidden {
    opacity: 1;
}

.info-text {
    color: #00d9ff;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.click-hint {
    color: #ffa500;
    font-size: 0.85rem;
    font-weight: bold;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0.5;
    }
}

.player-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d9ff, #8b2da8);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.player-name {
    font-size: 1.5rem;
    color: #00d9ff;
    margin-bottom: 0.5rem;
}

.player-role {
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.player-stats {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Page Conseils Pro */
.tips-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tip-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.tip-section h3 {
    color: #00d9ff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tip-section ul {
    list-style: none;
    padding-left: 0;
}

.tip-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
}

.tip-section li:before {
    content: "▸ ";
    color: #00d9ff;
    font-weight: bold;
    margin-right: 0.5rem;
}

.video-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.video-section h3 {
    color: #00d9ff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.video-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.video-item iframe {
    width: 100%;
    height: 250px;
}

.video-item p {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: #00d9ff;
}

/* Style pour la page À propos */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 3rem;
    border: 2px solid rgba(138, 43, 226, 0.3);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-content h2 {
    color: #00d9ff;
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* ======================================== FOOTER STYLES ======================================== */
/* Footer principal (Desktop & Mobile) */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    z-index: 900;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00d9ff;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ======================================== NAVIGATION MOBILE (Bottom Bar) ======================================== */
:root {
  --safe-area-bottom: 0px;
}
:root {
  --safe-area-bottom: env(safe-area-inset-bottom);
}
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 20, 0.98);
  backdrop-filter: blur(20px);
  padding: 0.5rem 0;
  padding-bottom: calc(0.5rem + var(--safe-area-bottom));
  border-top: 1px solid rgba(0, 217, 255, 0.3);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 217, 255, 0.1);
}

.mobile-nav-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #00d9ff;
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.mobile-nav-item:active .mobile-nav-icon {
    transform: scale(1.1);
}

.mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========== PANEL ADMIN LATÉRAL ========== */
.admin-panel-side {
    position: fixed;
    right: -350px;
    top: 0;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #000428, #1a0b4d);
    border-left: 2px solid #00d9ff;
    box-shadow: -5px 0 30px rgba(0, 217, 255, 0.3);
    z-index: 10000;
    transition: right 0.4s ease;
    overflow-y: auto;
    padding: 2rem;
}

.admin-panel-side.active {
    right: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.admin-header h3 {
    color: #00d9ff;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.admin-close {
    background: transparent;
    border: 2px solid #ff5c5c;
    color: #ff5c5c;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.admin-close:hover {
    background: #ff5c5c;
    color: white;
    transform: rotate(90deg);
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h4 {
    color: #00d9ff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.admin-button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: transparent;
    border: 2px solid rgba(0, 217, 255, 0.6);
    color: #00d9ff;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-button:hover {
    background: #00d9ff;
    color: #000428;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    transform: translateX(5px);
}

.admin-badge {
    position: fixed;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #00d9ff, #8b2da8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
    z-index: 9999;
    animation: pulseAdmin 2s infinite;
    cursor: pointer;
}

@keyframes pulseAdmin {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 217, 255, 1);
    }
}

/* ======================================== RESPONSIVE - MOBILE ======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .site-footer {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .page,
    .hero {
        padding-bottom: 80px;
    }

    .admin-panel-side {
        width: 100%;
        right: -100%;
    }

    .admin-badge {
        top: auto;
        bottom: 80px;
        right: 10px;
    }

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

/* ======================================== RESPONSIVE - DESKTOP ======================================== */
@media (min-width: 769px) {
    .site-footer {
        display: block;
    }

    .mobile-nav {
        display: none;
    }

    .page,
    .hero {
        padding-bottom: 80px;
    }
}

/* ======================================== ANIMATIONS ======================================== */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-nav {
    animation: slideUp 0.3s ease-out;
}

.site-footer {
    animation: slideUp 0.3s ease-out;
}