:root {
    --bg-color: #171717;
    --text-main: #f0f0f0;
    --red-accent: #d30000;
    --red-hover: #ff1a1a;
    --dark-grey: #262626;
    --light-grey: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
.nav-brand,
.btn-primary {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--red-accent);
}

/* --- Fuse Animation (Mission Impossible style) --- */
#fuse-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    pointer-events: none;
}

#fuse {
    height: 100%;
    background-color: var(--red-accent);
    width: 0;
}

#spark {
    position: absolute;
    top: -5px;
    width: 12px;
    height: 12px;
    background: #ffaa00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffaa00, 0 0 20px #ff0000;
    opacity: 0;
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red-accent);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--red-accent);
    letter-spacing: 2px;
}

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

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--red-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red-accent);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- Sections --- */
.section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 3px;
    border-bottom: 4px solid var(--red-accent);
    display: inline-block;
    padding-bottom: 10px;
}

.text-red {
    color: var(--red-accent);
    border-bottom-color: var(--text-main);
}

.dark-section {
    background: radial-gradient(circle at center, #2a0000 0%, var(--bg-color) 70%);
}

/* --- Hero Section --- */
.hero {
    background: radial-gradient(circle, rgba(20, 0, 0, 1) 0%, rgba(5, 5, 5, 1) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.logo {
    width: 250px;
    max-width: 100%;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(211, 0, 0, 0.5));
    animation: pulse 3s infinite;
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(211, 0, 0, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(211, 0, 0, 0.8));
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(211, 0, 0, 0.3));
    }
}

.glitch-text {
    font-size: 4rem;
    color: var(--text-main);
    position: relative;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px var(--red-accent), -2px -2px 0px #000;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--light-grey);
    margin-bottom: 40px;
    min-height: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    color: var(--bg-color);
    background-color: var(--red-accent);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
    font-weight: bold;
}

.btn-primary:hover {
    background-color: var(--red-hover);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--red-accent);
}

/* --- Equipe Section --- */
.group-section {
    text-align: center;
    margin-bottom: 60px;
}

.group-title {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.group-photo {
    max-width: 100%;
    height: auto;
    border: 4px solid #333;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.pole-title {
    font-size: 1.8rem;
    color: var(--red-accent);
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 2px solid var(--dark-grey);
    padding-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: transparent;
    height: 320px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid var(--glass-border);
    background: var(--dark-grey);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.card-front {
    border-top: 4px solid var(--red-accent);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #333;
    margin-bottom: 20px;
    border: 3px solid var(--red-accent);
    background-image: repeating-linear-gradient(45deg, #111 0, #111 10px, #222 10px, #222 20px);
    background-size: cover;
    background-position: center;
}

.card-back {
    background: var(--red-accent);
    color: var(--bg-color);
    transform: rotateY(180deg);
}

.card-back h3 {
    margin-bottom: 15px;
}

.card-back p {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- Arcade Section --- */
.crypto-text {
    text-align: center;
    color: var(--light-grey);
    font-family: monospace;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.arcade-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.arcade-game {
    display: block;
    width: 280px;
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    transition: transform 0.3s ease;
}

.arcade-game:hover {
    transform: translateY(-10px);
}

.game-screen {
    height: 180px;
    background-color: #000;
    border: 4px solid #333;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2) inset;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.arcade-game:hover .game-thumbnail {
    transform: scale(1.1);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(150, 150, 150, 0.02), rgba(200, 0, 0, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.arcade-game h3 {
    letter-spacing: 1px;
}

/* --- Commander Section --- */
.form-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
    border-top: 4px solid var(--red-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    color: var(--light-grey);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--red-accent);
    box-shadow: 0 0 10px rgba(211, 0, 0, 0.5);
}

.btn-submit {
    width: 100%;
    clip-path: none;
    border-radius: 3px;
    text-transform: uppercase;
}

#form-status {
    margin-top: 20px;
    color: var(--red-accent);
    font-family: monospace;
    text-align: center;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: #000;
    border-top: 1px solid #222;
    font-family: monospace;
    color: #666;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 80px;
        background-color: rgba(5, 5, 5, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-links li {
        margin: 20px 0;
    }

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

    .burger {
        display: block;
    }

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

    .glitch-text {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .form-container {
        padding: 20px;
    }
}

/* Burger animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}