/* ========================================= */
/* --- SPARTAN GRAPHIX : STYLE PRINCIPAL --- */
/* ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto:wght@300;400&display=swap');

/* --- VARIABLES GLOBALES --- */
:root {
    --bg-color: #0b0c10;
    --text-color: #c5c6c7;
    --neon-color: #66fcf1;
    --neon-dark: #45a29e;
}

/* --- RESET & BODY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    cursor: crosshair;
    background-image: 
        linear-gradient(rgba(102, 252, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 252, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px; 
    animation: scrollGrid 15s linear infinite; 
}

/* ========================================= */
/* --- NAVIGATION & MENU BURGER --- */
/* ========================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(11, 12, 16, 0.95);
    border-bottom: 2px solid var(--neon-color);
    box-shadow: 0 0 15px var(--neon-color);
    position: sticky;
    top: 0;
    z-index: 1000; 
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    color: var(--neon-color);
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px var(--neon-color);
}

.burger-container {
    position: relative;
    display: inline-block;
}

.menu-burger {
    font-size: 35px;
    color: var(--neon-color);
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
}
.menu-burger:hover { text-shadow: 0 0 15px var(--neon-color); }

.burger-dropdown {
    display: none;
    position: absolute;
    right: 0; 
    top: 100%;
    background-color: rgba(11, 12, 16, 0.98);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(102, 252, 241, 0.3);
    z-index: 1000;
    border: 1px solid var(--neon-dark);
    border-radius: 8px;
    margin-top: 0; 
}

.burger-container:hover .burger-dropdown { display: block; }
.show-menu { display: block !important; } /* Correction iPhone */

.burger-dropdown a {
    color: var(--text-color);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}
.burger-dropdown a:last-child { border-bottom: none; }
.burger-dropdown a:hover {
    background-color: rgba(102, 252, 241, 0.1);
    color: var(--neon-color);
    padding-left: 25px; 
}

/* ========================================= */
/* --- BOUTONS STANDARDS --- */
/* ========================================= */

.btn-neon {
    display: inline-block;
    padding: 15px 30px;
    color: var(--neon-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    border: 2px solid var(--neon-color);
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-dark) inset, 0 0 5px var(--neon-dark);
}
.btn-neon:hover {
    background: var(--neon-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-color), 0 0 40px var(--neon-color);
    transform: translateY(-3px);
}

/* ========================================= */
/* --- FOOTER & RÉSEAUX SOCIAUX --- */
/* ========================================= */

footer {
    text-align: center;
    padding: 30px 20px;
    background: #050505;
    border-top: 1px solid var(--neon-dark);
    width: 100%; 
}

.socials {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 25px; 
    margin-top: 15px;
}

.socials a, .socials a i, .fa-x-twitter, .fa-x-twitter::before {
    color: #ffffff !important;
    font-size: 28px;
    transition: 0.3s;
}
.socials a:hover, .socials a:hover i, .socials a:hover .fa-x-twitter {
    color: var(--neon-color) !important;
    text-shadow: 0 0 15px var(--neon-color);
    transform: scale(1.2);
}

/* ========================================= */
/* --- ACCUEIL & TABLEAU DE BORD --- */
/* ========================================= */

.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px; }
.main-logo { max-width: 450px; width: 100%; margin-bottom: 30px; filter: drop-shadow(0 0 20px var(--neon-dark)); }
.hero h1 { font-family: 'Orbitron', sans-serif; font-size: 3rem; color: white; margin-bottom: 15px; text-shadow: 0 0 10px var(--neon-color); }

.dashboard-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center;
    gap: 15px; 
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.dash-btn {
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; 
    padding: 15px 25px; font-size: 1.1rem; white-space: nowrap; 
}
.dash-btn i { font-size: 1.4rem; margin-bottom: 0; }

/* ========================================= */
/* --- SECTION BOUTIQUE --- */
/* ========================================= */

.boutique-section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.boutique-section h2 { text-align: center; color: var(--neon-color); font-family: 'Orbitron', sans-serif; font-size: 2.5rem; margin-bottom: 50px; }

.category-row { margin-bottom: 60px; }
.category-title { text-align: center; color: white; font-family: 'Orbitron', sans-serif; font-size: 1.8rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 2px; }

.carousel-wrapper { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; }
.shop-carousel { 
    display: flex; 
    overflow-x: auto; 
    gap: 20px; 
    width: 100%; 
    padding: 80px 60px; /* <-- LA CORRECTION : 30px d'espace sur les côtés ! */
    scroll-behavior: smooth; 
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.shop-carousel::-webkit-scrollbar { display: none; } 

.scroll-btn { 
    background: rgba(11, 12, 16, 0.9); border: 2px solid var(--neon-color); color: var(--neon-color); 
    font-size: 1.5rem; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; flex-shrink: 0; 
    display: flex; align-items: center; justify-content: center; transition: 0.3s; 
}
.scroll-btn:hover { background: var(--neon-color); color: black; box-shadow: 0 0 15px var(--neon-color); }

/* Cartes Produits */
.product-card { 
    flex: 0 0 250px; background: rgba(11, 12, 16, 0.9); border: 1px solid var(--neon-dark); border-radius: 12px; 
    padding: 15px; text-align: center; transition: transform 0.4s ease, margin 0.4s ease, box-shadow 0.4s ease; 
    z-index: 1; position: relative;
}
/* 2. Le gros zoom de la carte (Style Netflix) */
.product-card:hover { 
    border-color: var(--neon-color); 
    transform: scale(1.15); /* Fait grossir la carte de 15% */
    /* On a supprimé le "margin" qui cassait la page ! */
    box-shadow: 0 10px 30px rgba(102, 252, 241, 0.4); 
    z-index: 20; /* La met bien au premier plan par-dessus ses voisines */
}
.product-card h4 { color: white; font-family: 'Orbitron', sans-serif; font-size: 1.1rem; margin-bottom: 10px; }
.product-price { font-size: 1.4rem; color: var(--neon-color); font-family: 'Orbitron', sans-serif; margin-bottom: 15px; font-weight: bold; }
.btn-buy { width: 100%; padding: 10px; cursor: pointer; font-size: 1rem; }

/* Badges */
.product-badges { position: absolute; top: 15px; left: 15px; z-index: 10; }
.badge { font-size: 0.75rem; padding: 5px 10px; border-radius: 20px; color: white; font-family: 'Orbitron', sans-serif; }
.badge.promo { background: #ff0055; } .badge.vip { background: #a200ff; } .badge.new { background: #00ff00; color: black; }

/* Conteneur Images (Slideshow) */
.img-container { position: relative; width: 100%; height: 180px; border-radius: 8px; overflow: hidden; margin-bottom: 15px; background: #000; }
.img-container img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.img-alt-1, .img-alt-2 { opacity: 0; }
.product-card:hover .img-alt-1 { animation: defilementImage1 6s infinite; }
.product-card:hover .img-alt-2 { animation: defilementImage2 6s infinite; }

/* ========================================= */
/* --- AUTRES PAGES (Logiciels, Contact, etc.) --- */
/* ========================================= */

.page-content, .gallery-page, .software-section, .contact-section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; text-align: center; flex: 1; }
.page-content h1, .gallery-page h1, .software-section h2, .contact-section h2 { font-family: 'Orbitron', sans-serif; color: var(--neon-color); font-size: 3rem; margin-bottom: 40px; text-shadow: 0 0 15px var(--neon-color); }

/* Textes & Boutons Spéciaux */
.center-content { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.vinted-btn { margin-top: 40px; font-size: 1.5rem; padding: 20px 40px; border-color: #09b1ba; color: #09b1ba; box-shadow: 0 0 5px #09b1ba inset, 0 0 15px #09b1ba; }
.vinted-btn:hover { background: #09b1ba; color: #000; box-shadow: 0 0 20px #09b1ba, 0 0 40px #09b1ba; }
.text-box { background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--neon-color); padding: 30px; text-align: left; }
.text-box h3, .order-section h3 { font-family: 'Orbitron', sans-serif; color: white; margin-bottom: 15px; }
.text-box p { color: #c5c6c7; line-height: 1.6; }

/* Contact Form */
.contact-form { background: rgba(0, 0, 0, 0.6); border: 1px solid var(--neon-dark); padding: 40px; border-radius: 10px; width: 100%; max-width: 600px; box-shadow: 0 0 20px rgba(102, 252, 241, 0.1); margin: 0 auto; }
.input-group { display: flex; flex-direction: column; text-align: left; margin-bottom: 25px; }
.input-group label { font-family: 'Orbitron', sans-serif; color: var(--neon-color); margin-bottom: 8px; font-size: 0.9rem; }
.input-group input, .input-group textarea { background: rgba(255, 255, 255, 0.05); border: 1px solid #333; padding: 15px; border-radius: 5px; color: var(--text-color); font-family: 'Roboto', sans-serif; font-size: 1rem; transition: 0.3s; outline: none; }
.input-group input:focus, .input-group textarea:focus { border-color: var(--neon-color); box-shadow: 0 0 10px var(--neon-dark); background: rgba(102, 252, 241, 0.05); }

/* Audio HAM */
.audio-player { margin-top: 30px; padding: 15px; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--neon-color); border-radius: 8px; text-align: center; box-shadow: 0 0 15px rgba(102, 252, 241, 0.1); }
.audio-player h4 { font-family: 'Orbitron', sans-serif; color: var(--neon-color); margin-bottom: 15px; font-size: 1rem; text-shadow: 0 0 5px var(--neon-color); }
audio { width: 100%; max-width: 400px; outline: none; border-radius: 30px; box-shadow: 0 0 5px var(--neon-dark); }

/* Galerie Images (HAM, Hack) */
.header-images { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }
.header-images img { width: 30%; max-width: 350px; border-radius: 8px; border: 1px solid var(--neon-dark); box-shadow: 0 0 10px var(--neon-dark); object-fit: cover; }

/* Qui sommes-nous */
.about-section { display: flex; flex-direction: column; align-items: center; padding: 60px 20px; text-align: center; max-width: 900px; margin: 0 auto; }
.about-content { background: rgba(255, 255, 255, 0.03); padding: 40px; border-left: 4px solid var(--neon-color); border-radius: 0 20px 20px 0; }
.about-content h2 { font-family: 'Orbitron', sans-serif; color: var(--neon-color); margin-bottom: 20px; }

/* Serveurs */
.servers-section { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; text-align: center; }
.server-list { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 15px; }
.server-card { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--neon-dark); border-radius: 10px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; }
.server-card:hover { border-color: var(--neon-color); box-shadow: 0 0 15px rgba(102, 252, 241, 0.2); }
.server-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: rgba(0, 0, 0, 0.5); }
.server-info-left { display: flex; align-items: center; gap: 15px; }
.server-icon { width: 40px; height: 40px; object-fit: contain; border-radius: 5px; }
.server-header h3 { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: white; }
.server-status { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; text-transform: uppercase; font-size: 0.9rem; }
.dot { width: 15px; height: 15px; border-radius: 50%; display: inline-block; }
.dot.open { background-color: #00ff00; box-shadow: 0 0 10px #00ff00; }
.dot.closed, .dot.maintenance { background-color: #ff8c00; box-shadow: 0 0 10px #ff8c00; }
.dot.maintenance { animation: blink 1.5s infinite; }
.server-desc { max-height: 0; padding: 0 20px; background: rgba(11, 12, 16, 0.9); text-align: left; color: var(--text-color); transition: all 0.4s ease-out; }
.server-card.active .server-desc { max-height: 200px; padding: 20px; border-top: 1px solid var(--neon-dark); }

/* Dev & Jeux */
.dev-title { font-family: 'Orbitron', sans-serif; color: #ff0055; font-size: 2rem; margin-bottom: 10px; text-shadow: 0 0 10px #ff0055; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.screenshot-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; transition: 0.3s; }
.screenshot-grid img:hover { border-color: var(--neon-color); transform: scale(1.05); box-shadow: 0 0 15px var(--neon-color); }

/* ========================================= */
/* --- ANIMATIONS (KEYFRAMES) --- */
/* ========================================= */

@keyframes scrollGrid {
    0% { background-position: 0px 0px; }
    100% { background-position: 40px 40px; }
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}
@keyframes defilementImage1 {
    0%, 25%   { opacity: 0; }
    33%, 58%  { opacity: 1; }
    66%, 100% { opacity: 0; }
}
@keyframes defilementImage2 {
    0%, 58%   { opacity: 0; }
    66%, 91%  { opacity: 1; }
    100%      { opacity: 0; }
}

/* ========================================= */
/* --- RESPONSIVE (MOBILES & TABLETTES) --- */
/* ========================================= */

@media (max-width: 768px) {
    .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
    .page-content h1, .gallery-page h1, .software-section h2, .contact-section h2 { font-size: 2rem; }
    .dev-title { font-size: 1.5rem; }
    .hero, .software-section, .about-section, .servers-section, .page-content, .gallery-section { padding: 30px 15px; }
    
    .server-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .server-status { align-self: flex-end; }
    
    .about-content { border-left: none; border-top: 4px solid var(--neon-color); border-radius: 0 0 20px 20px; padding: 20px; }
    .header-images { flex-direction: column; align-items: center; }
    .header-images img { width: 100%; margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .screenshot-grid { grid-template-columns: 1fr; }
    .logo-text { font-size: 22px; }
    .socials a { font-size: 24px; margin: 0 10px; }
    .dash-btn { padding: 12px 20px; font-size: 1rem; }
}