/**
 * ╔══════════════════════════════════════════════════════════════════╗
 * ║  MiyabiCorp - Styles Communs                                     ║
 * ║  Author: Nova | Lysandre PB                                      ║
 * ║  Created: 04-12-2025                                             ║
 * ║  Description: Variables, Reset, et Composants partagés           ║
 * ╚══════════════════════════════════════════════════════════════════╝
 */

/* ═══════════════════════════════════════════════════════════════════
   VARIABLES CSS
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Couleurs principales */
    --bg-dark: #0a0b10;
    --primary-blue: #00f0ff;
    --ice-blue: #aeeeff;
    --text-white: #ffffff;
    --text-muted: #aaa;
    --text-dim: #888;
    --text-faint: #666;
    --border-subtle: #2a2a2a;
    --glass: rgba(20, 22, 31, 0.7);
    --accent-dark: #14161f;
    --dark-blue: #0f172a;
    --alert-color: #ff3366;
    --accent-orange: #ff8c00;

    /* Espacement */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET ET BASE
   ═══════════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHIE
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 0.95rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.top-nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 5%;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(10, 11, 16, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.back-btn {
    color: var(--ice-blue);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-normal);
}

.back-btn:hover {
    color: var(--primary-blue);
    letter-spacing: 1px;
    transform: translateX(-5px);
}

.logo-small {
    color: var(--text-faint);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   UTILITAIRES
   ═══════════════════════════════════════════════════════════════════ */
.noise-overlay {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION PRINCIPALE (partagée toutes pages)
   ═══════════════════════════════════════════════════════════════════ */
body > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(10, 11, 16, 0.97);
    border-bottom: 1px solid rgba(0, 240, 255, 0.25);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
    backdrop-filter: blur(6px);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.highlight { color: var(--primary-blue); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition-normal);
}

.nav-links a:hover { color: var(--primary-blue); }

.nav-links .active {
    color: var(--primary-blue);
    border-bottom: 1px solid var(--primary-blue);
    padding-bottom: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPOSANTS PARTAGÉS
   ═══════════════════════════════════════════════════════════════════ */
.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 140, 0, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    font-size: 0.6rem;
    padding: 3px 8px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 1;
}

.btn-disabled {
    opacity: 0.35;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════
   HAMBURGER MENU   
   ═══════════════════════════════════════════════════════════════════ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 200;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-normal);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    header {
        padding: 12px 5%;
    }

    .logo {
        font-size: 0.95rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 11, 16, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 150;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-family: 'Orbitron', sans-serif;
        letter-spacing: 3px;
    }
}
