/* --- VARIABLES --- */
:root {
    --bg-color: #0d0e14;
    --main-color: #00e0ff;
    --secondary-color: #005663;
    --text-color: #c0c0c0;
    --neon-shadow: 0 0 5px var(--main-color), 0 0 15px var(--main-color);
    --futuristic-font: 'Orbitron', sans-serif;
    --body-font: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--futuristic-font);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* --- FOND ANIMÉ --- */
body::before {
    content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, #0d0e14 80%),
                linear-gradient(rgba(0, 224, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 224, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    animation: bgScroll 60s linear infinite;
    will-change: transform;
}
@keyframes bgScroll { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }

/* --- TYPOGRAPHIE & TITRES --- */
.neon-title {
    font-size: 2.5em; color: #fff; text-shadow: 0 0 20px var(--main-color);
    margin-bottom: 10px; text-align: center;
}
.status-text { font-family: var(--body-font); font-size: 0.9em; letter-spacing: 2px; text-align: center; color: #888; }
.scan-line { width: 100px; height: 2px; background: var(--main-color); margin: 20px auto; box-shadow: 0 0 10px var(--main-color); }

/* --- HEADER --- */
.header-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(13, 14, 20, 0.95); padding: 15px 20px; z-index: 1000;
    border-bottom: 1px solid rgba(0, 224, 255, 0.3); backdrop-filter: blur(5px);
}
.header-nav nav { display: flex; justify-content: center; gap: 20px; }
.nav-link {
    color: var(--main-color); text-decoration: none; font-weight: 700; font-size: 0.9em; transition: 0.3s;
}
.nav-link:hover { color: #fff; text-shadow: 0 0 10px var(--main-color); }

/* --- CONTAINERS --- */
.form-container {
    background: rgba(9, 10, 15, 0.95); border: 1px solid var(--main-color);
    box-shadow: var(--neon-shadow); padding: 30px; max-width: 450px;
    margin: 100px auto 50px; border-radius: 10px; text-align: center;
}

/* --- FORMULAIRES & INPUTS --- */
input[type="text"], input[type="email"], input[type="password"], input[type="file"] {
    width: 100%; padding: 12px; margin: 10px 0;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--secondary-color);
    color: #fff; font-family: var(--body-font); border-radius: 4px; outline: none; transition: 0.3s;
}
input:focus { border-color: var(--main-color); box-shadow: 0 0 5px rgba(0, 224, 255, 0.2); }

.cta-button {
    display: inline-block; width: 100%; padding: 12px; margin-top: 10px;
    background: transparent; color: var(--main-color); border: 2px solid var(--main-color);
    font-weight: 700; cursor: pointer; transition: 0.3s; text-transform: uppercase;
    font-family: var(--futuristic-font);
}
.cta-button:hover { background: var(--main-color); color: #000; box-shadow: 0 0 20px var(--main-color); }

.small-button {
    font-size: 0.8em; padding: 5px 10px; width: auto; margin-top: 5px;
}
.delete-btn { border-color: #ff4444; color: #ff4444; }
.delete-btn:hover { background: #ff4444; color: #fff; box-shadow: 0 0 10px #ff4444; }

/* --- DASHBOARD SPECIFIC --- */
.server-interface {
    background: rgba(9, 10, 15, 0.8); border: 1px solid var(--secondary-color);
    padding: 20px; border-radius: 8px; max-width: 600px; margin: 20px auto;
}

/* --- GALERIE & 3D VIEWER --- */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px; padding: 20px 5%; max-width: 1200px; margin: 0 auto;
}

.image-card {
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--secondary-color);
    padding: 15px; border-radius: 8px; text-align: center; transition: 0.3s;
}
.image-card:hover { border-color: var(--main-color); transform: translateY(-3px); }

.skin-container {
    width: 100%; height: 250px; /* Hauteur du viewer 3D */
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 4px; margin-bottom: 10px; cursor: move;
}

.image-label { font-weight: bold; color: var(--main-color); display: block; margin-bottom: 5px; }

.copy-input {
    background: #000 !important; color: #0f0 !important; border: 1px dashed #0f0 !important;
    font-family: monospace; font-size: 0.8em; text-align: center; cursor: pointer;
}

/* --- MESSAGES --- */
.alert { padding: 10px; margin-bottom: 15px; border-radius: 4px; font-size: 0.9em; font-family: var(--body-font); }
.alert-success { background: rgba(0, 255, 0, 0.1); border: 1px solid #0f0; color: #0f0; }
.alert-error { background: rgba(255, 0, 0, 0.1); border: 1px solid #f00; color: #f00; }

/* --- LIENS --- */
a { color: var(--secondary-color); text-decoration: none; font-size: 0.8em; transition: 0.3s; }
a:hover { color: var(--main-color); }

.footer { text-align: center; padding: 20px; color: #444; font-size: 0.8em; margin-top: 50px; }