/* =================
   1. ROOT VARIABLES & GLOBAL RESETS
   ================= */
:root {
    --bg-primary: #0A0A10;
    --bg-secondary: #121218;
    --bg-tertiary: #1a1a24;
    --accent-primary: #00BFFF;
    --accent-secondary: #8A2BE2;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --text-primary: #EAEAEA;
    --text-secondary: #888899;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow-border: conic-gradient(from 180deg at 50% 50%, rgba(255, 255, 255, 0) 0deg, var(--accent-primary) 50deg, rgba(255, 255, 255, 0) 100deg);
    --glass-bg: rgba(18, 18, 24, 0.65);
    --glass-bg-rich: rgba(18, 18, 24, 0.78);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.14);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(32px);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 50px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(0, 191, 255, 0.15);
    --shadow-neon: 0 8px 30px rgba(0, 191, 255, 0.35), 0 0 20px rgba(138, 43, 226, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --btn-height-sm: 38px;
    --btn-height-md: 48px;
    --btn-height-lg: 56px;
}

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

html {
    scroll-behavior: smooth;
}

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

body.nav-open {
    overflow-y: hidden;
}

/* =================
   2. FUTURISTIC FEATURES & MICRO-INTERACTIONS
   ================= */

/* --- Aurora Background & Cursor Glow --- */
@property --aurora-pos-1-x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 70%;
}

@property --aurora-pos-1-y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 20%;
}

@property --aurora-color-1 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(195, 100%, 50%, 0.15);
}

@property --aurora-pos-2-x {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 30%;
}

@property --aurora-pos-2-y {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 80%;
}

@property --aurora-color-2 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(260, 100%, 50%, 0.15);
}

.aurora-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at var(--aurora-pos-1-x) var(--aurora-pos-1-y), var(--aurora-color-1), transparent 50%),
        radial-gradient(ellipse at var(--aurora-pos-2-x) var(--aurora-pos-2-y), var(--aurora-color-2), transparent 50%);
    z-index: -2;
    animation: aurora-hub-anim 25s infinite ease-in-out;
}

/* --- Network Canvas Styling --- */
#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

@keyframes aurora-hub-anim {
    0% {
        --aurora-pos-1-x: 70%;
        --aurora-pos-1-y: 20%;
        --aurora-color-1: hsla(195, 100%, 50%, 0.15);
        --aurora-pos-2-x: 30%;
        --aurora-pos-2-y: 80%;
        --aurora-color-2: hsla(260, 100%, 50%, 0.15);
    }

    33% {
        --aurora-pos-1-x: 80%;
        --aurora-pos-1-y: 40%;
        --aurora-color-1: hsla(220, 100%, 60%, 0.18);
        --aurora-pos-2-x: 20%;
        --aurora-pos-2-y: 60%;
        --aurora-color-2: hsla(280, 100%, 60%, 0.12);
    }

    66% {
        --aurora-pos-1-x: 60%;
        --aurora-pos-1-y: 70%;
        --aurora-color-1: hsla(180, 100%, 50%, 0.12);
        --aurora-pos-2-x: 40%;
        --aurora-pos-2-y: 30%;
        --aurora-color-2: hsla(250, 100%, 60%, 0.18);
    }

    100% {
        --aurora-pos-1-x: 70%;
        --aurora-pos-1-y: 20%;
        --aurora-color-1: hsla(195, 100%, 50%, 0.15);
        --aurora-pos-2-x: 30%;
        --aurora-pos-2-y: 80%;
        --aurora-color-2: hsla(260, 100%, 50%, 0.15);
    }
}

/* --- Cursor glow --- */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, rgba(0, 191, 255, 0) 50%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.1s ease-out;
    z-index: 0;
}

/* --- On-Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

/* --- Glitch Effect --- */
.glitch {
    position: relative;
    color: var(--text-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    overflow: hidden;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-primary);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary), 2px 2px var(--accent-primary);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 98px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 130px, 0);
    }
}

/* =================
   3. REUSABLE COMPONENTS
   ================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Boutons modernisés --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

/* Shimmer sweep effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.2);
}

.btn-nav {
    padding: 10px 24px;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
}

.btn-nav:hover {
    background: rgba(0, 191, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 24px rgba(0, 191, 255, 0.12);
}

/* =================
   4. PAGE STRUCTURE & SECTIONS
   ================= */

/* --- Footer Contact Bar --- */
footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    flex-wrap: wrap;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast), letter-spacing var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.footer-contact a:hover {
    color: var(--accent-primary);
    letter-spacing: 0.06em;
}

.footer-contact .separator {
    margin: 0 4px;
    font-weight: 400;
    opacity: 0.3;
    color: var(--text-secondary);
}

/* --- Header --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 16px 0;
    z-index: 1000;
    background: rgba(10, 10, 16, 0.55);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, var(--glass-border-hover) 30%, rgba(0, 191, 255, 0.12) 50%, var(--glass-border-hover) 70%, transparent 100%) 1;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.logo:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.25));
}

/* --- Desktop Nav Links avec underline animé --- */
nav .desktop-nav {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

nav .desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.96rem;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: color var(--transition-base), background var(--transition-fast), letter-spacing var(--transition-base);
}

nav .desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width var(--transition-smooth);
}

nav .desktop-nav a:hover {
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

nav .desktop-nav a:hover::after {
    width: 70%;
}

/* --- Main Content --- */
main {
    padding-top: 100px;
}

section {
    padding: 100px 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

/* --- Hero Section --- */
#hero {
    min-height: calc(90vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 800px;
    letter-spacing: -0.02em;
}

#hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* --- Section Solutions --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.solution-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Bordure néon animée */
.solution-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: var(--glow-border);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card:hover {
    border-color: rgba(0, 191, 255, 0.2);
    box-shadow: var(--shadow-md), 0 0 40px rgba(0, 191, 255, 0.08);
}

.solution-card>* {
    position: relative;
    z-index: 2;
}

.solution-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 1px;
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 1px);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(138, 43, 226, 0.1));
    border-radius: var(--radius-lg);
    color: var(--accent-primary);
}

.solution-card h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.solution-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Section Avantages --- */
#avantages {
    background: var(--bg-secondary);
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 250px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-heading);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
}

.stat-item>span:first-of-type {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 10px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Contact --- */
#contact .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

#contact .section-subtitle {
    max-width: 600px;
    margin: 0.5rem auto 0;
    color: var(--text-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-details li i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.contact-details li div strong {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details li div a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-details li div a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.contact-info .btn-primary {
    margin-top: 1rem;
    align-self: flex-start;
}

.contact-map {
    position: relative;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: none;
    transition: none;
}

.contact-map:hover iframe {
    filter: none;
}

/* --- Pied de page --- */
footer {
    padding: 56px 0 48px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    position: relative;
}

footer #copyright {
    margin: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.7;
}

/* =================================
   5. RESPONSIVE DESIGN & MOBILE MENU
   ================================= */

/* Par défaut, sur desktop, on cache les éléments mobiles */
.hamburger,
.mobile-nav,
.mobile-nav-backdrop {
    display: none;
}

@media (max-width: 768px) {

    /* Cacher la nav desktop et afficher le hamburger sur mobile */
    nav .desktop-nav,
    nav .desktop-nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1010;
        position: relative;
    }

    .hamburger span {
        width: 28px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 10px;
        transition: all var(--transition-base);
        position: relative;
        transform-origin: 1px;
    }

    /* Animation du hamburger en croix quand il est actif */
    .hamburger.is-active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .hamburger.is-active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Style du panneau de navigation mobile */
    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        max-width: 280px;
        height: 100vh;
        padding: 20px;
        background: rgba(10, 10, 16, 0.92);
        backdrop-filter: blur(40px) saturate(1.2);
        -webkit-backdrop-filter: blur(40px) saturate(1.2);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
        z-index: 1005;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition-smooth), visibility var(--transition-smooth);
    }

    .mobile-nav-close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-primary);
        cursor: pointer;
        font-size: 1.8rem;
        line-height: 1;
        transition: all var(--transition-base);
    }

    .mobile-nav-close:hover {
        background: rgba(0, 191, 255, 0.12);
        border-color: var(--accent-primary);
        color: var(--accent-primary);
        transform: rotate(90deg);
    }

    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 16, 0.6);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1004;
        transition: opacity var(--transition-base), visibility var(--transition-base);
    }

    /* État actif : visible et à sa place */
    .mobile-nav.is-active {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-nav-backdrop.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav a {
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.15rem;
        font-weight: 600;
        font-family: var(--font-heading);
        position: relative;
        padding: 5px 0;
        transition: color var(--transition-base), transform var(--transition-base), letter-spacing var(--transition-base);
    }

    .mobile-nav a:not(.btn):hover {
        color: var(--accent-primary);
        transform: translateX(4px);
        letter-spacing: 0.03em;
    }

    .mobile-nav .btn {
        font-size: 0.95rem;
        padding: 12px 28px;
    }

    /* Ajustements généraux pour mobile */
    footer .container {
        gap: 12px;
    }

    .footer-contact {
        gap: 12px;
        font-size: 0.78rem;
        flex-direction: row;
        padding: 0;
    }

    .footer-contact .separator {
        display: inline;
    }

    main {
        padding-top: 90px;
    }

    section {
        padding: 60px 0;
    }

    .logo img {
        height: 35px;
    }

    #hero {
        min-height: auto;
        padding: 40px 0;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info .btn-primary {
        align-self: center;
    }
}

/* =================
   6. HUB PAGE STYLES
   ================= */

/* --- Lien actif spécial pour le hub dans la nav --- */
.active-nav-link {
    background: var(--accent-gradient) !important;
    color: #fff !important;
    font-weight: 700;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.2);
}

.active-nav-link:hover {
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* --- Layout principal du hub --- */
#hub {
    padding-top: 60px;
    padding-bottom: 100px;
}

.hub-home #hub {
    padding-top: 20px;
}

.hub-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* --- Panneau latéral de filtres --- */
.hub-sidebar {
    background: var(--glass-bg-rich);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    padding: 24px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 140px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hub-sidebar h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.filter-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    border-left: 3px solid transparent;
}

.filter-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-left-color: rgba(255, 255, 255, 0.15);
}

.filter-link.active {
    background-color: rgba(0, 191, 255, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
    font-weight: 600;
    box-shadow: inset 0 0 12px rgba(0, 191, 255, 0.04);
}

.filter-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Contenu principal (recherche + grille) --- */
.hub-content {
    min-width: 0;
}

/* --- Barre de recherche élégante --- */
.search-bar {
    position: relative;
    margin-bottom: 32px;
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-style: italic;
    letter-spacing: 0.02em;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 28px rgba(0, 191, 255, 0.18), 0 0 0 2px rgba(0, 191, 255, 0.08);
    background: rgba(18, 18, 24, 0.85);
}

.search-bar:focus-within i {
    color: var(--accent-primary);
}

/* --- Grille d'applications --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* --- Carte d'application --- */
.app-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 40px rgba(0, 191, 255, 0.1);
    border-color: rgba(0, 191, 255, 0.22);
}

/* On réutilise l'effet néon de .solution-card */
.app-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: var(--glow-border);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card>* {
    position: relative;
    z-index: 2;
}

.app-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 1px;
    background: var(--bg-secondary);
    border-radius: calc(var(--radius-lg) - 1px);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
}

.app-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(138, 43, 226, 0.1));
    color: var(--accent-primary);
    border-radius: var(--radius-lg);
}

.app-title h4 {
    margin: 0 0 4px 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.app-category-tag {
    font-size: 0.73rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
}

.app-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 20px;
}

.app-card[hidden] {
    display: none;
}

.app-card .btn {
    align-self: flex-start;
    padding: 11px 24px;
    font-size: 0.88rem;
}

.hub-empty-state {
    margin-top: 30px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-align: center;
    backdrop-filter: blur(10px);
}

/* ============================
   7. HUB RESPONSIVE STYLES
   ============================ */

@media (max-width: 992px) {
    .hub-container {
        grid-template-columns: 220px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hub-container {
        grid-template-columns: 1fr;
    }

    .hub-sidebar {
        display: none;
    }

    #hub {
        padding-top: 40px;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }
}
