@font-face {
    font-family: 'PixelMax-Regular';
    src: url('Ressource/Pixelmax-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Orbitron';
    src: url('Ressource/Orbitron-VariableFont_wght.ttf') format('truetype');
}

body {
    margin:0;
    font-family:Arial, sans-serif;
    background: #0d0d0d url('Ressource/wallpaper.png') no-repeat center center fixed;
    background-size: cover;
    color:#fff;
    min-height: 100vh;
}

header {
    padding: 15px 30px; /* Réduit en hauteur comme demandé */
    text-align:center;
    background:#111;
    border-bottom:2px solid #222;
    position:relative;
    overflow: visible; /* Permet au cube de dépasser légèrement si besoin */
}

#logo-3d-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 250px;
    pointer-events: auto;
    z-index: 1;
}

header h1, .header h1 {
    z-index: 2; /* Au-dessus du canvas */
    pointer-events: none;
}

header .user-info {
    position:absolute;
    top:15px;
    right:20px;
    text-align:right;
    font-size:0.8em;
    z-index: 10;
}

.logout-btn {
    position: absolute;
    top: 55px;
    right: 20px;
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.7em;
    border: 1px solid rgba(255, 68, 68, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
}

header .user-info a {
    color:#00ff99;
    text-decoration:none;
    font-weight:bold;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

header .user-info a:hover {
    text-decoration:none;
    text-shadow: 0 0 8px rgba(0, 255, 153, 0.6);
}

header .admin-badge {
    background:#00ff99;
    color:#000;
    padding:2px 6px;
    border-radius:3px;
    font-size:0.8em;
    font-weight:bold;
    margin-left:5px;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    color:#00ff99;
    letter-spacing:10px;
    margin:0;
    text-transform: uppercase;
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(0, 255, 153, 0.4), 0 0 40px rgba(0, 255, 153, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: neonFlicker 4s infinite alternate;
    position: relative;
}

.admin-header h1 {
    font-size: 2.2rem !important;
    letter-spacing: 2px !important;
    animation: none !important;
    margin: 10px 0 !important;
}

@keyframes neonFlicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 153, 0.4), 0 0 40px rgba(0, 255, 153, 0.2);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.7;
    }
}

header p, .header p {
    font-family: 'Orbitron', sans-serif;
    font-style: italic;
    color: #888;
    min-height: 3.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
    margin-top: 30px;
}

header p small, .header p small {
    display: block;
    margin-top: 8px;
    opacity: 0.6;
    font-size: 0.8em;
}


/* Style uniquement pour le header du site public */
.user-info {
    display: flex;
    flex-direction: row-reverse; /* Profil à droite, Flux à sa gauche */
    align-items: center;
    gap: 25px;
}

/* Flux d'activité admin (Version compacte pour header) */
.admin-live-feed {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 153, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 280px;
    max-width: 350px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.activity-title {
    color: #00ff99;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.75em;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 153, 0.2);
    padding-bottom: 3px;
}

.activity-item {
    color: #aaa;
    margin-bottom: 3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-item:last-child { border-bottom: none; }

.activity-time {
    color: #00ff99;
    opacity: 0.7;
    margin-right: 5px;
    font-family: monospace;
}

.speech-bubble {
    position: absolute;
    bottom: 90%;
    right: 70%;
    background: #fff;
    color: #000;
    border-radius: 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    letter-spacing: normal;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    max-width: 0;
    padding: 6px 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 10px;
    border-width: 6px 0 0 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}


.menu-bar {
    background:#111;
    border-bottom:1px solid #222;
    text-align:center;
    padding:12px 0;
    position: relative;
    z-index: 10;
}

.menu-bar a {
    font-family: 'Orbitron', sans-serif;
    color:#00ff99;
    margin:0 15px;
    text-decoration:none;
    font-weight:bold;
    font-size: 0.9em;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.menu-bar a:hover {
    text-decoration:none;
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(0, 255, 153, 0.6);
}

.container {
    max-width:900px;
    margin:auto;
    padding:20px;
    position: relative;
    z-index: 100; /* Assure que le contenu est au-dessus de la sidebar */
}

.card.hidden-pagination {
    display: none;
}

.card {
    background:#1a1a1a;
    padding:20px;
    margin-bottom:15px;
    border-left:4px solid #00ff99;
    transition: all 0.25s ease;
    position: relative;
    overflow:hidden;
    box-shadow:0 20px 40px rgba(0,255,153,0.08);
    border-radius:10px;
}

.cover-placeholder {
    width:100%;
    height:210px;
    background:#111;
    border:none;
    border-radius:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#777;
    margin-bottom:18px;
    overflow:hidden;
}

.cover-placeholder img {
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    background:#222;
    box-shadow: 0 10px 25px rgba(0,255,153,0.15);
}

.card.no-hover:hover {
    transform: none;
    scale: none;
    background: #1a1a1a;
    box-shadow: 0 20px 40px rgba(0,255,153,0.08);
}

.card.no-hover::before {
    display: none;
}

/* Badge Nouveauté Articles */
.new-article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffcc00;
    color: #000;
    font-weight: bold;
    font-size: 0.7em;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
    z-index: 20;
    pointer-events: none;
    font-family: 'Orbitron', sans-serif;
    border: 1px solid rgba(0,0,0,0.1);
}

.card::before {
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg,transparent,rgba(0,255,153,0.08),transparent);
    transition:0.5s;
}

.card:hover::before {
    left:100%;
}

.date { color:#888; font-size:0.85rem; }
h2 { 
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin: 15px 0 10px 0; 
    color: #fff;
    font-weight: bold;
}
p { color:#ccc; }
a { color:#00ff99; text-decoration:none; font-weight:bold; }
a:hover { text-decoration:underline; }

/* Admin & Create Forms */
/* Sections de la page Jeu (Article) */
.header, 
.game-description, 
.gauge-section, 
.comments-section {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #00ff99;
    box-sizing: border-box !important;
    width: 100% !important;
    display: block;
}

.description-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #eee;
    word-wrap: break-word;
}

/* --- Rendu des Articles (Refonte V3) --- */
.lvl0-article-content {
    line-height: 1.8;
    font-size: 1.15rem;
    color: #eee;
}

.lvl0-article-content blockquote {
    border-left: 4px solid #00ff99;
    background: rgba(0, 255, 153, 0.05);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #ccc;
    font-size: 1.1rem;
}

.lvl0-article-content figure.article-screenshot {
    margin: 40px 0;
    text-align: center;
}

.lvl0-article-content figure.article-screenshot img {
    max-width: 100%;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.lvl0-article-content figcaption {
    margin-top: 15px;
    color: #888;
    font-size: 0.95rem;
    font-style: italic;
}

.lvl0-article-content strong { color: #00ff99; }
.lvl0-article-content a { color: #00ff99; text-decoration: none; border-bottom: 1px solid rgba(0, 255, 153, 0.3); transition: 0.2s; }
.lvl0-article-content a:hover { border-bottom-color: #00ff99; }

.article-center { text-align: center; margin: 35px 0; }
.article-justify { text-align: justify; margin: 20px 0; }

.header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.game-description h2 {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.user-info { color: #ccc; font-size: 0.9em; }
.logout-btn { background: #ff4444; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 0.9em; }
.logout-btn:hover { background: #cc3333; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #1a1a1a; padding: 20px; border-radius: 5px; text-align: center; border-top: 4px solid #00ff99; }
.stat-number { font-size: 2em; font-weight: bold; color: #00ff99; margin-bottom: 5px; }
.stat-label { color: #ccc; font-size: 0.9em; }

.quick-actions { margin-bottom: 30px; display: flex; gap: 15px; }
.quick-actions a { background: #333; color: #00ff99; padding: 12px 20px; border-radius: 5px; text-decoration: none; transition: background 0.3s; }
.quick-actions a:hover { background: #444; }

.tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid #333; }
.tab { padding: 15px 25px; cursor: pointer; background: transparent; border: none; color: #888; font-size: 0.85em; transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.3s, border-bottom 0.3s; border-bottom: 3px solid transparent; display: inline-block; }
.tab:hover { color: #00ff99; transform: scale(1.05); text-shadow: 0 0 8px rgba(0, 255, 153, 0.6); }
.tab.active { color: #00ff99; border-bottom-color: #00ff99; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.user-status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: bold; }
.status-admin { background: #00ff99; color: #000; }
.status-banned { background: #ff4444; color: white; }
.status-normal { background: #666; color: white; }

.btn {
    background: #00ff99; color: #000; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: bold; transition: background 0.3s; display: inline-block; text-decoration: none;
    font-family: 'Orbitron', sans-serif;
}
.btn:hover { background: #00cc88; }
.btn-warning { background: #ffaa00; color: #000; }
.btn-warning:hover { background: #cc8800; }
.btn-danger { background: #ff4444; color: white; }
.btn-danger:hover { background: #cc3333; }

.back-btn { background: #333; color: #00ff99; padding: 10px 20px; text-decoration: none; border-radius: 5px; transition: background 0.3s; display: inline-block; }
.back-btn:hover { background: #444; }

.form-container { background: #1a1a1a; padding: 30px; border-radius: 10px; border-left: 4px solid #00ff99; width: 100%; max-width: 700px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; color: #00ff99; font-weight: bold; font-size: 1.1em; }
.form-group input[type="text"], .form-group textarea, input, textarea { width: 100%; padding: 12px; background: #2a2a2a; border: 1px solid #333; border-radius: 5px; color: #fff; font-size: 16px; font-family: Arial, sans-serif; box-sizing: border-box; }
.form-group input[type="text"]:focus, .form-group textarea:focus, input:focus, textarea:focus { outline: none; border-color: #00ff99; box-shadow: 0 0 5px rgba(0, 255, 153, 0.3); }
.form-group textarea, textarea { min-height: 120px; resize: vertical; }

.bbcode-toolbar { margin-bottom: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.bbcode-btn { background: #333; border: 1px solid #555; border-radius: 3px; color: #fff; padding: 4px 8px; font-size: 12px; cursor: pointer; font-family: Arial, sans-serif; }
.bbcode-btn:hover { background: #555; border-color: #00ff99; }
.help-text { font-size: 0.9em; color: #888; margin-top: 5px; }

.rating-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 25px; }
.rating-item { background: #222; border: 1px solid #333; border-radius: 8px; padding: 18px; }
.rating-item label { margin-bottom: 10px; display: block; color: #00ff99; }
.rating-item select { width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333; border-radius: 5px; color: #fff; font-size: 16px; }
.rating-item select:focus { outline: none; border-color: #00ff99; box-shadow: 0 0 5px rgba(0, 255, 153, 0.3); }

.file-input-group { position: relative; }
.file-input-group input[type="file"] { opacity: 0; position: absolute; width: 100%; height: 100%; cursor: pointer; }
.file-input-label { display: inline-block; padding: 12px 20px; background: #333; color: #ccc; border: 1px dashed #555; border-radius: 5px; cursor: pointer; transition: all 0.3s; }
.file-input-label:hover { background: #444; border-color: #00ff99; }
.form-actions { text-align: left; margin-top: 30px; }

.message { padding: 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; }
.message.success, .notice.success { background: rgba(0, 255, 153, 0.1); border: 1px solid #00ff99; color: #00ff99; }
.message.error, .notice.error { background: rgba(255, 68, 68, 0.1); border: 1px solid #ff4444; color: #ff4444; }

.current-image { margin-top: 10px; padding: 10px; background: #222; border-radius: 5px; display: inline-block; }
.current-image img { max-width: 200px; max-height: 150px; border-radius: 5px; }

/* Jeu.php specific */
.box{max-width:800px;margin:auto;background:#1a1a1a;padding:25px;border-left:4px solid #00ff99;box-shadow:0 20px 40px rgba(0,255,153,0.08);border-radius:10px}
.game-title { 
    font-size: 2.2rem !important; 
    color: #00ff99 !important; 
    text-shadow: none !important; 
    animation: none !important;
    font-family: 'Orbitron', sans-serif !important;
}
.note{font-size:1.3rem;margin:10px 0}
.verdict{color:#00ff99;font-weight:bold}

/* Forum.php specific */
.form-card{display:grid;gap:12px}
.notice{padding:14px 16px;margin-bottom:16px;border-radius:8px}
.post-meta{color:#888;font-size:.9rem;margin-bottom:10px}
.post-actions{margin-top:10px}
.post-actions a{color:#ff5555;text-decoration:none;font-size:.9rem}
.post-actions a:hover{text-decoration:underline}

/* Login */
.login-prompt { text-align:center; padding:20px; background:#222; border-radius:8px; margin-bottom:20px; }
.login-prompt a { color:#00ff99; text-decoration:none; font-weight:bold; }
.login-prompt a:hover { text-decoration:underline; }

/* Exceptions spécifiques au contact */
.contact-card:hover {
    transform: none;
    background: #1a1a1a;
    box-shadow: 0 20px 40px rgba(0,255,153,0.08);
}
.contact-card::before {
    display: none;
}


.contact-card label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #00ff99;
    font-weight: bold;
}


.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 15px 25px;
    font-size: 1.1em;
    background: #111;
    border: 2px solid #333;
    border-radius: 30px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.search-bar:focus {
    border-color: #00ff99;
    box-shadow: 0 0 15px rgba(0,255,153,0.2);
}


/* Design Test de Jeu (Gauges, Commentaires, Description) */
.header, .game-description, .gauge-section, .comments-section { box-shadow: 0 10px 25px rgba(0,255,153,0.08); }
.game-description h2, .gauge-section h3, .comments-section h2 { color: #00ff99; margin-top: 0; }
.game-cover img { border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 2px solid #333; max-width: 100%; height: auto; }
.gauge-section h3 { margin-bottom: 20px; }
.gauge-item { margin-bottom: 15px; }
.gauge-label { display: flex; justify-content: space-between; margin-bottom: 5px; font-weight: bold; color: #ccc; }
.gauge-bar { width: 100%; height: 12px; background: #333; border-radius: 6px; overflow: hidden; }
.gauge-fill { height: 100%; background: #00ff99; border-radius: 6px; transition: width 0.5s ease-in-out; }
.verdict-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid #333; }
.verdict-section h4 { color: #00ff99; margin-top: 0; font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.comments-section h2 { border-bottom: 2px solid #222; padding-bottom: 10px; }
.comment-form { background: #1a1a1a; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 4px solid #00cc88; }
.comment-form textarea { width: 100%; min-height: 80px; background: #222; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 5px; margin-bottom: 10px; resize: vertical; }
.comment-form textarea:focus { outline: none; border-color: #00ff99; }
.comment { background: #1a1a1a; padding: 20px; border-radius: 8px; margin-bottom: 15px; border-left: 3px solid #333; }
.comment-username { 
    font-weight: bold; 
    color: #00ff99; 
    text-align: center; 
    word-break: break-word; 
    font-size: 0.85em; 
    font-family: 'Orbitron', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.comment-date { font-size: 0.85em; color: #777; margin-bottom: 10px; }
.comment-content { color: #ddd; line-height: 1.5; }
.comment-admin-actions { margin-top: 10px; }
.comment-admin-actions a { color: #ff4444; font-size: 0.85em; text-decoration: none; }
.comment-admin-actions a:hover { text-decoration: underline; }


/* Centrage des jauges */
.gauge-section { text-align: center; }
.gauge-section h3 { font-family: 'Orbitron', sans-serif; color: #00ff99; margin-bottom: 25px; }
.gauge-item { max-width: 500px; margin: 0 auto 20px auto; }
.gauge-label { font-family: 'Orbitron', sans-serif; font-size: 0.85em; text-transform: uppercase; margin-bottom: 8px; display: flex; justify-content: space-between; }
.verdict-section { text-align: center; }
.verdict-text { margin-bottom: 25px; color: #ddd; line-height: 1.6; }

.pros-cons-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.pros-box, .cons-box {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.pros-box:hover { transform: translateY(-5px); border-color: #00ff99; box-shadow: 0 5px 15px rgba(0, 255, 153, 0.1); }
.cons-box:hover { transform: translateY(-5px); border-color: #ff4444; box-shadow: 0 5px 15px rgba(255, 68, 68, 0.1); }

.pros-box h5, .cons-box h5 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9em;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pros-box h5 { color: #00ff99; }
.cons-box h5 { color: #ff4444; }

.pros-box ul, .cons-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-box li, .cons-box li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #bbb;
}

.pros-box li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #00ff99;
    font-weight: bold;
}

.cons-box li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #ff4444;
    font-weight: bold;
}

@media (max-width: 600px) {
    .pros-cons-container { flex-direction: column; }
}

/* Effet 3D Tilt sur les images */
.game-cover, .cover-placeholder {
    perspective: 1000px;
    display: inline-block;
}
.game-cover img, .cover-placeholder img {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}


.game-cover {
    position: relative;
    overflow: visible;
    border-radius: 0;
}
.cover-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}
.glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}
.game-cover:hover .glare, .cover-placeholder:hover .glare {
    opacity: 1;
}


/* Correction du Tilt et Reflet */
.tilt-container { perspective: 1000px; display: inline-block; position: relative; padding: 20px; margin: -20px; }
.tilt-inner { transition: transform 0.1s ease-out; transform-style: preserve-3d; will-change: transform; overflow: hidden; border-radius: 0; border: none; line-height: 0; position: relative; }
.tilt-inner img { max-width: 100%; height: auto; border: none !important; box-shadow: none !important; }
.glare { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 80%); opacity: 0; transition: opacity 0.2s ease; z-index: 5; }


/* Onglets et sections de formulaires */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid #333; margin-bottom: 30px; }
.tab { background: none; border: none; color: #777; padding: 10px 0; cursor: pointer; font-size: 0.85em; transition: color 0.3s, transform 0.2s ease, text-shadow 0.2s ease; position: relative; font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }
.tab:hover { color: #00ff99; transform: scale(1.05); text-shadow: 0 0 8px rgba(0, 255, 153, 0.6); }
.tab.active { color: #00ff99; }
.tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: #00ff99; }
.form-section { display: none; }
.form-section.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


.back-link { margin-top: 30px; text-align: center; border-top: 1px solid #222; padding-top: 20px; }
.back-link a { color: #888; text-decoration: none; font-size: 0.9em; transition: all 0.3s ease; }
.back-link a:hover { color: #00ff99; text-shadow: 0 0 8px rgba(0, 255, 153, 0.4); }


.form-section .btn { margin-top: 15px; width: 100%; padding: 12px; }


/* Trophées / Achievements Pop-up */
.achievement-toast { position: fixed; bottom: 30px; right: 30px; background: #1a1a1a; border-left: 4px solid #00ff99; padding: 15px 25px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); display: flex; align-items: center; gap: 15px; z-index: 9999; animation: slideInRight 0.5s ease forwards; cursor: pointer; }
.achievement-toast .icon { font-size: 2em; }
.achievement-toast .info h5 { margin: 0; color: #00ff99; font-size: 0.9em; text-transform: uppercase; letter-spacing: 1px; }
.achievement-toast .info p { margin: 3px 0 0 0; color: #fff; font-weight: bold; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(20px); } }




/* Prevent horizontal scroll */
body { overflow-x: hidden; }


/* Avatars */
.avatar { width: 35px; height: 35px; border-radius: 50%; background: #222; border: 2px solid #00ff99; display: inline-flex; align-items: center; justify-content: center; font-weight: bold; color: #00ff99; overflow: hidden; font-size: 0.9em; flex-shrink: 0; }
.avatar.small { width: 25px; height: 25px; font-size: 0.7em; border-width: 1px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar { text-shadow: 0 0 5px rgba(0, 255, 153, 0.5); box-shadow: 0 0 10px rgba(0,0,0,0.5); }

/* Animation pour le badge Live */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.live-badge {
    background: #ff4444;
    color: #fff;
    font-size: 0.65em;
    margin-left: 8px;
    font-weight: bold;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    animation: pulse 1.5s infinite;
}

/* Onglet Live actif quand stream en cours */
.nav-live-active {
    color: #ff4444 !important;
    font-weight: bold;
    animation: navPulse 1.2s infinite;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.9), 0 0 20px rgba(255, 68, 68, 0.4);
    position: relative;
}

@keyframes navPulse {
    0%   { transform: scale(1); text-shadow: 0 0 10px rgba(255,68,68,0.8); opacity: 1; }
    50%  { transform: scale(1.05); text-shadow: 0 0 25px rgba(255,68,68,1), 0 0 35px rgba(255,68,68,0.6); opacity: 0.5; }
    100% { transform: scale(1); text-shadow: 0 0 10px rgba(255,68,68,0.8); opacity: 1; }
}

/* Grades Utilisateurs */
.grade-badge {
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 0.7em !important;
    font-weight: normal !important;
    text-transform: uppercase !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5), inset 0 0 5px rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    margin-left: 8px !important;
    font-family: 'PixelMax-Regular', 'Courier New', Courier, monospace !important;
    letter-spacing: 0.5px !important;
    transform: skewX(-10deg) !important;
}

.shiny-grade {
    position: relative;
    overflow: hidden;
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
    background-size: 200% 200% !important;
    animation: shiny-bg-move 4s ease infinite;
    box-shadow: 0 0 15px currentColor;
}

.shiny-grade::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine-swipe 4s infinite;
}

@keyframes shiny-bg-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine-swipe {
    0% { left: -150%; }
    100% { left: 150%; }
}

.read-more-btn {
    font-family: 'Orbitron', sans-serif;
    color: #00ff99;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border: 1px solid rgba(0, 255, 153, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(0, 255, 153, 0.05);
}

.read-more-btn:hover {
    background: rgba(0, 255, 153, 0.2);
    border-color: #00ff99;
    text-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.1);
    transform: translateX(5px);
}

.smiley { 
    height: 32px; 
    width: auto; 
    vertical-align: middle; 
    margin: 0 2px; 
}

/* Bandeau de notification / avertissement */
.notification-banner {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 170, 0, 0.95);
    color: #000;
    padding: 15px 30px;
    border-radius: 0 0 10px 10px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ffaa00;
    border-top: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.notification-banner.show {
    top: 0;
}

.notification-banner.error {
    background: rgba(255, 44, 44, 0.95);
    border-color: #ff2c2c;
    color: #fff;
}

.notification-banner.success {
    background: rgba(0, 255, 153, 0.95);
    border-color: #00ff99;
    color: #000;
}

/* --- SWUP TRANSITIONS --- */
.transition-fade {
    transition: 0.4s;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
    transform: translateY(10px);
}

/* --- PERSISTENT RADIO PLAYER --- */
.radio-player-bar {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: auto;
    min-width: 450px;
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 153, 0.4);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 10000;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 153, 0.1);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    border-radius: 15px; /* Less round, more card-like */
}

.radio-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    /* On retire overflow: hidden ici pour ne pas couper l'éclat du point */
}

.radio-status-dot {
    width: 8px;
    height: 8px;
    background: #00ff99;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff99; /* Éclat plus prononcé */
    animation: radioPulse 2s infinite;
    flex-shrink: 0;
    margin-left: 5px; /* Petit décalage pour ne pas être collé au bord */
}

.radio-brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7em;
    font-weight: 800;
    color: #00ff99; /* Changé de blanc à vert fluo */
    white-space: nowrap;
    letter-spacing: 1px;
    padding-right: 12px;
    border-right: 1px solid rgba(0, 255, 153, 0.2); /* Bordure en vert translucide */
    flex-shrink: 0;
}

/* Nouveau conteneur pour le défilement */
.radio-title-container {
    overflow: hidden;
    white-space: nowrap;
    width: 150px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.radio-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75em;
    color: #00ff99;
    letter-spacing: 1px;
    display: inline-block;
}

/* Animation de défilement si le texte est long */
.radio-scroll {
    display: inline-block;
    animation: radioMarquee 10s linear infinite;
    padding-left: 20px;
}

@keyframes radioMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.radio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 5px;
    background: #222;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
    height: 5px;
    background: linear-gradient(to right, #00ff99 var(--value, 30%), #222 var(--value, 30%));
    border-radius: 3px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #00ff99;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.5);
    cursor: pointer;
    margin-top: -5.5px;
    transition: transform 0.2s;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.radio-btn {
    background: rgba(0, 255, 153, 0.1);
    border: 1px solid #00ff99;
    color: #00ff99;
    padding: 8px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8em;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s;
    min-width: 110px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.radio-btn:hover {
    background: #00ff99;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.4);
}

@keyframes radioPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .radio-player-bar {
        bottom: 20px;
        left: 20px;
        min-width: 0;
        width: calc(100% - 40px);
        padding: 10px;
        gap: 15px;
    }
    .radio-title { font-size: 0.6em; max-width: 100px; }
}

/* --- LE COIN STEAM WIDGET --- */
.steam-menu-widget-wrapper {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.steam-widget-toggle {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    padding: 6px 14px;
    font-size: 0.76em;
    font-weight: normal;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    box-shadow: none;
    font-family: 'Orbitron', sans-serif;
}

.steam-widget-toggle:hover {
    background: rgba(100, 65, 165, 0.1);
    border-color: rgba(100, 65, 165, 0.3);
    color: #b89feb;
}

.steam-widget-toggle[aria-expanded="true"] {
    background: rgba(100, 65, 165, 0.15);
    color: #fff;
    border-color: rgba(100, 65, 165, 0.4);
    box-shadow: 0 0 10px rgba(100, 65, 165, 0.1);
}

.steam-logo-icon {
    opacity: 0.5;
    font-size: 0.95em;
    filter: grayscale(100%);
    transition: all 0.25s ease;
}

.steam-widget-toggle:hover .steam-logo-icon,
.steam-widget-toggle[aria-expanded="true"] .steam-logo-icon {
    opacity: 0.9;
    filter: grayscale(0%);
}

.steam-widget-content {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 450px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    background: rgba(17, 17, 17, 0.98);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), 0 0 15px rgba(100, 65, 165, 0.2);
    box-sizing: border-box;
    z-index: 10001;
}

.steam-widget-content.open {
    max-height: 600px;
    opacity: 1;
    padding: 15px;
    border: 1px solid rgba(100, 65, 165, 0.4);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .steam-menu-widget-wrapper {
        position: static;
        transform: none;
        display: block;
        margin: 10px auto;
        text-align: center;
        width: fit-content;
    }
    
    .steam-widget-content {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .steam-widget-content.open {
        max-height: 500px;
        overflow-y: auto;
    }
}

.steam-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 12px;
}

.steam-tab {
    background: none;
    border: none;
    color: #777;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.2s;
    border-radius: 4px;
}

.steam-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.steam-tab.active {
    color: #00ff99;
    background: rgba(0, 255, 153, 0.1);
}

.steam-tab-pane {
    display: none;
    animation: steamFadeIn 0.3s ease forwards;
}

.steam-tab-pane.active {
    display: block;
}

@keyframes steamFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.steam-game-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.steam-game-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.steam-game-card:hover {
    background: rgba(100, 65, 165, 0.12);
    border-color: rgba(100, 65, 165, 0.4);
    transform: translateX(4px);
    text-decoration: none;
}

.steam-game-thumb {
    width: 92px;
    height: 43px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #222;
    flex-shrink: 0;
}

.steam-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.steam-game-title {
    display: block;
    color: #eee;
    font-weight: bold;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
    font-family: Arial, sans-serif;
}

.steam-game-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.steam-discount {
    background: #4c6b22;
    color: #a3d200;
    font-size: 0.8em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

.steam-price-old {
    color: #777;
    text-decoration: line-through;
    font-size: 0.78em;
}

.steam-price-new {
    color: #00ff99;
    font-weight: bold;
    font-size: 0.85em;
}

.steam-price-free {
    color: #00ff99;
    font-weight: bold;
    font-size: 0.85em;
    animation: neonPulseFree 1.5s infinite;
}

.steam-game-release {
    color: #888;
    font-size: 0.75em;
    font-style: italic;
    white-space: nowrap;
}

.steam-empty {
    color: #666;
    font-size: 0.8em;
    text-align: center;
    padding: 20px;
}

@keyframes neonPulseFree {
    0%   { text-shadow: 0 0 4px rgba(0, 255, 153, 0.4); }
    50%  { text-shadow: 0 0 12px rgba(0, 255, 153, 0.8); }
    100% { text-shadow: 0 0 4px rgba(0, 255, 153, 0.4); }
}

@media (max-width: 480px) {
    .steam-game-card {
        gap: 10px;
        padding: 8px;
    }
    .steam-game-thumb {
        width: 80px;
        height: 37px;
    }
    .steam-game-title {
        font-size: 0.78em;
    }
}

