/* ========================================
   YELLUP SEXY DESIGN SYSTEM V3.5
   Blanc + Flash + Épuré + Efficace
   Inspiré de start.html et vybra.html
   ======================================== */

:root {
    /* COULEURS FLASH SIGNATURE */
    --flash-cyan: #00E5FF;
    --flash-pink: #FF1CF7;
    --flash-green: #00FF88;
    --flash-orange: #FF6B00;
    --flash-purple: #B24BF3;
    --flash-yellow: #FFE500;
    
    /* COULEURS PAR MODULE */
    --atlas-color: #00E5FF;
    --pulse-color: #00FF88;
    --sensor-color: #B24BF3;
    --predict-color: #FF6B00;
    --vybra-color: #FF1CF7;
    
    /* BLANC ET GRIS */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F0F0F0;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #1A1A1A;
    
    /* TYPOGRAPHIE */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* ESPACEMENTS (8pt grid) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */
    
    /* RADIUS */
    --radius-sm: 0.5rem;   /* 8px */
    --radius-md: 0.75rem;  /* 12px */
    --radius-lg: 1rem;     /* 16px */
    --radius-xl: 1.5rem;   /* 24px */
    --radius-2xl: 2rem;    /* 32px */
    --radius-full: 9999px;
    
    /* OMBRES */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px currentColor;
    
    /* TRANSITIONS */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-base);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   HEADER SEXY
   ======================================== */

.yellup-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    z-index: 1000;
    padding: var(--space-6) var(--space-8);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: var(--font-weight-black);
    box-shadow: 0 4px 16px currentColor;
}

.module-atlas .logo-icon { background: linear-gradient(135deg, var(--atlas-color), #0099CC); }
.module-pulse .logo-icon { background: linear-gradient(135deg, var(--pulse-color), #00CC66); }
.module-sensor .logo-icon { background: linear-gradient(135deg, var(--sensor-color), #8822CC); }
.module-predict .logo-icon { background: linear-gradient(135deg, var(--predict-color), #CC4400); }
.module-vybra .logo-icon { background: linear-gradient(135deg, var(--vybra-color), #CC00AA); }

.brand {
    font-size: 24px;
    font-weight: var(--font-weight-black);
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.module-name {
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-atlas .module-name { color: var(--atlas-color); }
.module-pulse .module-name { color: var(--pulse-color); }
.module-sensor .module-name { color: var(--sensor-color); }
.module-predict .module-name { color: var(--predict-color); }
.module-vybra .module-name { color: var(--vybra-color); }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--gray-500);
    font-weight: var(--font-weight-medium);
}

.breadcrumb a {
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--gray-900);
}

.status-badge {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    box-shadow: 0 4px 16px currentColor;
}

.module-atlas .status-badge { background: linear-gradient(135deg, var(--atlas-color), #0099CC); }
.module-pulse .status-badge { background: linear-gradient(135deg, var(--pulse-color), #00CC66); }
.module-sensor .status-badge { background: linear-gradient(135deg, var(--sensor-color), #8822CC); }
.module-predict .status-badge { background: linear-gradient(135deg, var(--predict-color), #CC4400); }
.module-vybra .status-badge { background: linear-gradient(135deg, var(--vybra-color), #CC00AA); }

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding: var(--space-20) var(--space-8);
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 72px;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-6);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-atlas .gradient-text { background: linear-gradient(135deg, var(--atlas-color), var(--flash-cyan)); }
.module-pulse .gradient-text { background: linear-gradient(135deg, var(--pulse-color), var(--flash-green)); }
.module-sensor .gradient-text { background: linear-gradient(135deg, var(--sensor-color), var(--flash-purple)); }
.module-predict .gradient-text { background: linear-gradient(135deg, var(--predict-color), var(--flash-orange)); }
.module-vybra .gradient-text { background: linear-gradient(135deg, var(--vybra-color), var(--flash-pink)); }

.hero-subtitle {
    font-size: 24px;
    color: var(--gray-500);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   CONTAINER
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.section {
    padding: var(--space-16) 0;
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-bottom: var(--space-8);
    text-align: center;
}

.section-heading {
    font-size: 36px;
    font-weight: var(--font-weight-extrabold);
    color: var(--gray-900);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

/* ========================================
   CARTES SEXY
   ======================================== */

.card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.card:hover {
    border-color: currentColor;
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-atlas { color: var(--atlas-color); }
.card-pulse { color: var(--pulse-color); }
.card-sensor { color: var(--sensor-color); }
.card-predict { color: var(--predict-color); }
.card-vybra { color: var(--vybra-color); }

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-bottom: var(--space-6);
    box-shadow: 0 8px 24px currentColor;
    background: currentColor;
}

.card-title {
    font-size: 28px;
    font-weight: var(--font-weight-extrabold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.card-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.card-stat {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--gray-400);
    font-weight: var(--font-weight-semibold);
}

.card-stat i {
    color: currentColor;
}

/* ========================================
   BOUTONS SEXY
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: currentColor;
    color: white;
}

.btn-primary:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 24px currentColor;
}

.btn-secondary {
    background: var(--white);
    color: currentColor;
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: currentColor;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-atlas { color: var(--atlas-color); }
.btn-pulse { color: var(--pulse-color); }
.btn-sensor { color: var(--sensor-color); }
.btn-predict { color: var(--predict-color); }
.btn-vybra { color: var(--vybra-color); }

/* ========================================
   GRILLES
   ======================================== */

.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ========================================
   METRICS & KPI
   ======================================== */

.metric-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
    transition: all var(--transition-base);
}

.metric-card:hover {
    border-color: currentColor;
    box-shadow: var(--shadow-lg);
}

.metric-value {
    font-size: 48px;
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-2);
}

.metric-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    margin-top: var(--space-2);
}

.metric-trend.positive { color: var(--flash-green); }
.metric-trend.negative { color: #FF4444; }

/* ========================================
   BADGES & TAGS
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-atlas { background: rgba(0, 229, 255, 0.15); color: var(--atlas-color); }
.badge-pulse { background: rgba(0, 255, 136, 0.15); color: var(--pulse-color); }
.badge-sensor { background: rgba(178, 75, 243, 0.15); color: var(--sensor-color); }
.badge-predict { background: rgba(255, 107, 0, 0.15); color: var(--predict-color); }
.badge-vybra { background: rgba(255, 28, 247, 0.15); color: var(--vybra-color); }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        box-shadow: 0 0 40px currentColor;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ========================================
   NAVIGATION TABS
   ======================================== */

.nav-tabs {
    display: flex;
    gap: var(--space-4);
    background: var(--white);
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
    margin-bottom: var(--space-12);
}

.nav-tab {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.nav-tab:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-tab.active {
    background: currentColor;
    color: white;
    box-shadow: 0 4px 12px currentColor;
}

/* ========================================
   SUB-MODULES GRID
   ======================================== */

.submodules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
}

.submodule-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    cursor: pointer;
}

.submodule-card:hover {
    border-color: currentColor;
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.submodule-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: var(--space-5);
    background: currentColor;
    box-shadow: 0 6px 20px currentColor;
}

.submodule-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.submodule-description {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: var(--space-16) var(--space-8);
    background: var(--gray-900);
    color: white;
    margin-top: var(--space-20);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: var(--font-weight-black);
    background: linear-gradient(135deg, var(--flash-pink), var(--flash-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
}

.footer-text {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: var(--space-8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
}

.footer-link {
    color: var(--gray-400);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-8);
    }
    
    .container {
        padding: 0 var(--space-5);
    }
    
    .yellup-header {
        padding: var(--space-4) var(--space-5);
    }
}