/* ===================================
   QOGNYX - Professional Website Styles
   =================================== */

:root {
    /* Colors */
    --primary-bg: #0A0A0A;
    --secondary-bg: #1A1A1A;
    --neon-blue: #00A0FF;
    --dark-blue: #0044AA;
    --gradient-blue: linear-gradient(135deg, #003366, #00A0FF);
    --text-white: #FFFFFF;
    --text-light: #E0E0E0;
    --text-gray: #A0A0A0;
    --accent-line: #00BFFF;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 4rem;
}

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

body {
    font-family: var(--font-body);
    background: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 68, 170, 0.1) 0%, var(--primary-bg) 70%);
    z-index: -2;
}

.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
    background-image: 
        linear-gradient(45deg, var(--neon-blue) 1px, transparent 1px),
        linear-gradient(-45deg, var(--neon-blue) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 160, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-white);
    text-decoration: none;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--neon-blue);
}

.cta-button {
    background: var(--gradient-blue);
    color: var(--text-white);
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 160, 255, 0.4);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--text-white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 160, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
}

.btn-secondary:hover {
    background: var(--neon-blue);
    color: var(--primary-bg);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--secondary-bg);
    border: 2px solid rgba(0, 160, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 20px 40px rgba(0, 160, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 160, 255, 0.05);
    border: 1px solid rgba(0, 160, 255, 0.2);
    border-radius: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-blue);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--secondary-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(0, 160, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 160, 255, 0.1);
    color: var(--text-gray);
}
/* Brand logo inline */
.brand-logo img{
  height: 38px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(0,160,255,0.4));
}

.brand-logo.small img{
  height: 8px;
}

.brand-logo.large img{
  height: 52px;
}



/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        padding: 1rem;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.sub-menu {
        list-style: none;
        padding: 0;
        margin: 0.5rem 0 0;
    }
    .nav-item {
        position: relative;
    }
    @media (max-width: 768px) {
        .sub-menu {
            display: block; /* Stack dans menu collapse */
        }
        .hamburger {
            display: block; /* Visible sur mobile */
            background: none;
            border: none;
            color: var(--text-white);
            font-size: 1.5rem;
            cursor: pointer;
        }
        .nav-menu {
            display: none; /* Hidden par défaut */
        }
        .nav-menu.active {
            display: flex;
            flex-direction: column;
        }
    }
    @media (min-width: 769px) {
        .hamburger {
            display: none;
        }
        .sub-menu {
            display: none; /* Hover pour desktop si tu veux, via JS/CSS */
            position: absolute;
            background: var(--secondary-bg);
            padding: 1rem;
        }
        .nav-item:hover .sub-menu {
            display: block;
        }
    }
/* ==========================
   THEME SWITCH (FINAL FIX)
   ========================== */

/* THEME (FINAL) */
:root { color-scheme: dark; }

html[data-theme="light"]{
  color-scheme: light;

  --primary-bg: #F7F9FC;
  --secondary-bg: #FFFFFF;

  --text-white: #0B1220;
  --text-light: #223049;
  --text-gray:  #5B6B85;

  --neon-blue: #007BFF;
  --dark-blue: #003A99;
  --gradient-blue: linear-gradient(135deg, #003A99, #007BFF);

  --accent-line: rgba(0,123,255,.55);
}

/* Navbar override (car elle est hardcodée) */
html[data-theme="light"] .navbar{
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(0,123,255,.2);
}

.theme-toggle{ touch-action: manipulation; }
