/* --- CONFIGURATION GLOBALE --- */
:root {
    --bg-dark: #020c1b;
    --primary: #0077ff; /* Bleu électrique */
    --secondary: #00d2ff; /* Cyan */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 10px rgba(0, 119, 255, 0.5), 0 0 20px rgba(0, 119, 255, 0.3);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* --- BACKGROUND ANIMÉ --- */
canvas#background-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

/* --- NAVIGATION GLASS --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(2, 12, 27, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.highlight { color: var(--secondary); }

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 0.9rem;
}
.nav-links a:hover { color: var(--secondary); text-shadow: 0 0 10px var(--secondary); }

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--white), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 3s infinite;
}

.typing-effect {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 40px;
    border-right: 2px solid var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(30, end), blink .75s step-end infinite;
    max-width: 100%;
    display: inline-block;
}

.hero-buttons button {
    padding: 15px 40px;
    margin: 10px;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.hero-buttons button:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: var(--neon-shadow);
}

/* --- SECTIONS GÉNÉRALES --- */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(0, 119, 255, 0.4);
}

/* --- ISRAEL CARDS (3D) --- */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tilt-card {
    width: 300px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.1s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.tilt-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--secondary);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content { padding: 20px; text-align: center; }
.card-content h3 { color: var(--secondary); margin-bottom: 10px; }

/* --- MRBEAST VIDEOS --- */
.video-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    transition: 0.3s;
}

.video-container:hover {
    border-color: var(--primary);
    box-shadow: var(--neon-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

/* --- ARCADE GRID --- */
.arcade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.game-cartridge {
    background: linear-gradient(145deg, #051830, #020c1b);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.game-cartridge:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(2deg);
    z-index: 10;
    box-shadow: var(--neon-shadow);
}

.game-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.game-title { font-family: 'Orbitron', sans-serif; font-size: 0.9rem; }

/* --- GAME OVERLAY --- */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hidden { display: none !important; }

.game-console {
    width: 90%; max-width: 600px;
    background: #111;
    border: 4px solid var(--primary);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 0 50px var(--primary);
}

.console-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary);
}

.close-btn {
    background: #ff3333; color: white; border: none;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; font-weight: bold;
}

.console-screen {
    height: 350px;
    background: #000;
    border: 2px solid #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- CHATBOT --- */
.ai-orb {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 30px;
    cursor: pointer;
    animation: float 4s infinite ease-in-out;
    box-shadow: var(--neon-shadow);
    z-index: 3000;
}

.chat-interface {
    position: fixed;
    bottom: 100px; right: 30px;
    width: 350px; height: 450px;
    background: rgba(2, 12, 27, 0.95);
    border: 1px solid var(--secondary);
    border-radius: 20px;
    display: flex; flex-direction: column;
    z-index: 2999;
    overflow: hidden;
}

.chat-header {
    background: var(--primary);
    padding: 15px;
    font-weight: bold;
    display: flex; justify-content: space-between;
}

.chat-logs {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.msg { margin-bottom: 10px; padding: 8px 12px; border-radius: 10px; max-width: 80%; }
.msg.bot { background: #333; border-left: 3px solid var(--secondary); }
.msg.user { background: var(--primary); align-self: flex-end; margin-left: auto; text-align: right; }

.chat-input-zone {
    display: flex; border-top: 1px solid #333;
}
.chat-input-zone input {
    flex: 1; padding: 15px; background: transparent; border: none; color: white; outline: none;
}
.chat-input-zone button {
    padding: 0 20px; background: var(--secondary); border: none; cursor: pointer; color: #000; font-weight: bold;
}

/* --- ANIMATIONS --- */
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { 50% { border-color: transparent } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }