/* ==========================================================================
   RETROLINK : Thème Premium Rétro-Moderne & Responsive
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-800.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Press Start 2P';
    src: url('../fonts/PressStart2P-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #0A0A0A;
    --text-color: #F5F5F5;
    --primary-color: #00F2FF; /* Cyan Néon */
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary-color: #FF00E5; /* Cyber Pink */
    --secondary-glow: rgba(255, 0, 229, 0.5);
    --accent-color: #1F1F1F; /* Gris Circuit */
    --panel-bg: rgba(31, 31, 31, 0.7);
    --panel-border: rgba(0, 242, 255, 0.2);
    
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-title: 'Orbitron', "Segoe UI", system-ui, sans-serif;
    --font-retro: 'Press Start 2P', "Lucida Console", "Courier New", monospace;

    --transition-speed: 0.3s;
    --border-radius: 8px;
}

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

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- CRT Effect Overlay --- */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.15;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* --- Header & Navigation (Glassmorphism) --- */
.main-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Navigation Wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-grow: 1;
    justify-content: flex-end;
}

.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.main-nav a:hover {
    color: var(--primary-color);
    background: rgba(0, 242, 255, 0.1);
    text-shadow: 0 0 8px var(--primary-glow);
}

.auth-nav {
    display: flex;
    gap: 15px;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
    border-radius: 3px;
    box-shadow: 0 0 5px var(--secondary-glow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-main);
    font-size: 0.9rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #00b8cc, var(--primary-color));
    color: #000;
    box-shadow: 0 0 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.2), 0 0 10px rgba(0, 229, 255, 0.2);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-danger {
    background: transparent;
    color: #ff3333;
    border: 2px solid #ff3333;
}
.btn-danger:hover {
    background: #ff3333;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0 100px;
    background: radial-gradient(circle at top center, rgba(31, 31, 31, 0.8) 0%, var(--bg-color) 70%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,229,255,0.05) 0%, transparent 50%);
    animation: rotateGlow 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.4;
    text-shadow: 0 0 15px var(--primary-glow);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b0b4b8;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Features Grid (Glassmorphism Cards) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.flex-responsive {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .flex-responsive {
        flex-direction: column;
    }
}

.feature-card {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.15);
    border-color: var(--primary-color);
    background: rgba(31, 31, 31, 0.9);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #fff;
}

.feature-card p {
    color: #a0a5aa;
    font-size: 0.95rem;
}

.icon-neon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: filter 0.3s;
}

.feature-card:hover .icon-neon {
    filter: drop-shadow(0 0 20px var(--primary-color));
}

/* --- Formulaires Modernes --- */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #c5c6c7;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    background: #000;
}

/* --- Badges --- */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.badge-success { background: rgba(76, 175, 80, 0.2); color: #4CAF50; border: 1px solid #4CAF50; }
.badge-warning { background: rgba(255, 152, 0, 0.2); color: #FF9800; border: 1px solid #FF9800; }
.badge-danger { background: rgba(244, 67, 54, 0.2); color: #F44336; border: 1px solid #F44336; }
.badge-info { background: rgba(0, 242, 255, 0.2); color: var(--primary-color); border: 1px solid var(--primary-color); }

/* --- Tableaux Responsives --- */
.table-responsive {
    overflow-x: auto;
    background: var(--panel-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table th {
    background: rgba(0,0,0,0.3);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- Alertes / Flash Messages --- */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeInDown 0.5s ease-out forwards;
    transition: opacity 0.5s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: rgba(76, 175, 80, 0.15); border-left: 4px solid #4CAF50; color: #81c784; }
.alert-danger { background: rgba(244, 67, 54, 0.15); border-left: 4px solid #F44336; color: #e57373; }
.alert-warning { background: rgba(255, 0, 229, 0.15); border-left: 4px solid var(--secondary-color); color: var(--secondary-color); }

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(10, 10, 10, 0.9);
    color: #888;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: #fff; text-shadow: 0 0 5px var(--primary-color); }


/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* Tablette & Petit Desktop */
@media (max-width: 1024px) {
    .hero-title { font-size: 2rem; }
    .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }

    .mobile-menu-btn {
        display: block; /* Afficher le hamburger */
    }

    /* Animation du bouton Hamburger */
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Navigation Mobile (Tiroir) */
    .nav-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 12, 16, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 30px;
        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0), opacity 0.3s ease, visibility 0.4s;
        z-index: 999;
    }

    .nav-wrapper.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    /* Empêcher le scroll du body quand le menu est ouvert */
    body.menu-open { overflow: hidden; }

    .main-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 15px;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .auth-nav {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .auth-nav .btn {
        width: 100%;
    }

    /* Ajustements typo et marges mobile */
    .hero-section { padding: 60px 0; }
    .hero-title { font-size: 1.5rem; line-height: 1.6; }
    .hero-subtitle { font-size: 1rem; padding: 0 10px; }
    
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .feature-card { padding: 30px 20px; }
}
/* --- AI Holographic Badge (SÉAME) --- */
.ai-certified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at center, var(--primary-color) 0%, #0044ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 15px var(--primary-glow);
    animation: holographShimmer 3s linear infinite;
    z-index: 10;
    pointer-events: none;
}

.ai-certified-badge::before {
    content: "RETROLINK CERTIFIED - ORIGINAL PCB";
    color: #fff;
    font-family: var(--font-title);
    font-size: 0.35rem;
    text-align: center;
    padding: 10px;
    font-weight: 700;
}

@keyframes holographShimmer {
    0% { filter: hue-rotate(0deg) brightness(1); opacity: 0.8; }
    50% { filter: hue-rotate(20deg) brightness(1.3); opacity: 1; }
    100% { filter: hue-rotate(0deg) brightness(1); opacity: 0.8; }
}

/* --- Scan Laser Effect --- */
.scan-container {
    position: relative;
    overflow: hidden;
}

.scan-laser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-glow), 0 0 30px var(--secondary-color);
    z-index: 5;
    animation: scanAnimation 2s ease-in-out infinite;
}

@keyframes scanAnimation {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* --- RPG Style Progress Bar --- */
.hp-bar-container {
    width: 100%;
    height: 20px;
    background: #333;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.hp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    transition: width 0.5s ease-out;
}

.hp-bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: var(--font-retro);
    font-size: 0.6rem;
    color: #fff;
    line-height: 16px;
    text-shadow: 1px 1px #000;
}

/* Launch landing */
.launch-hero {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    padding: 70px 0 50px;
    background:
        radial-gradient(circle at 18% 20%, rgba(0, 242, 255, 0.18), transparent 32%),
        radial-gradient(circle at 85% 14%, rgba(255, 0, 229, 0.14), transparent 30%),
        linear-gradient(135deg, #06070d 0%, #111827 54%, #090a10 100%);
}

.launch-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 42px;
    align-items: center;
}

.launch-kicker {
    color: var(--secondary-color);
    font-family: var(--font-retro);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.launch-copy h1 {
    max-width: 780px;
    color: #fff;
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 22px;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.24);
}

.launch-subtitle {
    max-width: 680px;
    color: #c8d2dc;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.launch-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.launch-note {
    max-width: 620px;
    color: #8d99a8;
    font-size: 0.9rem;
}

.launch-panel {
    border: 1px solid rgba(0, 242, 255, 0.32);
    border-radius: 8px;
    background: rgba(5, 8, 18, 0.78);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 242, 255, 0.12);
    padding: 18px;
}

.launch-screen {
    min-height: 390px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(18, 25, 43, 0.96), rgba(5, 7, 13, 0.98));
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.launch-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px);
    pointer-events: none;
}

.launch-screen-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 46px;
}

.launch-screen-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 12px rgba(255,0,229,0.65);
}

.launch-status {
    color: var(--primary-color);
    font-family: var(--font-retro);
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.launch-date {
    color: #fff;
    font-family: var(--font-title);
    font-size: 2.3rem;
    margin-bottom: 34px;
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    position: relative;
}

.launch-grid div {
    min-height: 92px;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 255, 0.18);
    background: rgba(255, 255, 255, 0.045);
}

.launch-grid strong,
.launch-grid span {
    display: block;
}

.launch-grid strong {
    color: #fff;
    margin-bottom: 8px;
}

.launch-grid span {
    color: #99a8b7;
    font-size: 0.85rem;
}

.launch-features {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    padding: 58px 0;
}

.launch-features h2 {
    color: var(--primary-color);
    font-family: var(--font-title);
    margin-bottom: 12px;
}

.launch-features p {
    color: #b9c3cf;
    line-height: 1.65;
}

.launch-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.launch-feature-list article {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel-bg);
    padding: 18px;
}

.launch-feature-list span {
    color: var(--secondary-color);
    font-family: var(--font-retro);
    font-size: 0.65rem;
}

.launch-feature-list h3 {
    margin: 12px 0 8px;
    color: #fff;
}

@media (max-width: 860px) {
    .launch-wrap,
    .launch-features,
    .launch-feature-list {
        grid-template-columns: 1fr;
    }

    .launch-hero {
        padding-top: 42px;
    }

    .launch-screen {
        min-height: 330px;
    }
}
