/* =============================================
   FLEXCAMPUS LANDING PAGE - STYLES
   Modern, animated landing page
   ============================================= */

/* =============================================
   VARIABLES & BASE
   ============================================= */

:root {
    /* Couleurs Primaires */
    --primary: #0d3865;
    --primary-dark: #092847;
    --primary-light: #1a4a7a;

    /* Couleurs Secondaires */
    --secondary: #6dcbdd;
    --secondary-light: #8ed8e6;
    --secondary-dark: #4fb8cc;

    /* Fonctionnelles */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutres */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);

    /* Layout */
    --max-width: 1200px;
    --navbar-height: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(13, 56, 101, 0.05);
    --shadow: 0 4px 6px -1px rgba(13, 56, 101, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(13, 56, 101, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(13, 56, 101, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(13, 56, 101, 0.25);
    --shadow-glow: 0 0 40px rgba(109, 203, 221, 0.4);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes floatRotate {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    60% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

@keyframes morphShape {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   BACKGROUND ANIMATION
   ============================================= */

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 30%, var(--gray-50) 100%);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(109, 203, 221, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 203, 221, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: fadeIn 1s ease;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(109, 203, 221, 0.2), rgba(109, 203, 221, 0.05));
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 70%;
    left: 15%;
    animation-delay: -15s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 40%;
    animation-delay: -7s;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo-text,
.navbar.scrolled .nav-link {
    color: var(--gray-800);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    transition: color var(--transition-base);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-base);
}

.navbar.scrolled .mobile-menu-btn span {
    background: var(--gray-800);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 999;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    display: block;
    padding: 16px 20px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(109, 203, 221, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(109, 203, 221, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar.scrolled .btn-ghost {
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.navbar.scrolled .btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn svg {
    transition: transform var(--transition-base);
}

.btn:hover svg {
    transform: translateX(4px);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--navbar-height) + 40px) 0 80px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 50%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-description strong {
    color: var(--secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Visual - Terminal */
.hero-visual {
    position: relative;
}

.terminal-window {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
    font-size: 13px;
    color: var(--gray-400);
    font-family: 'Monaco', 'Menlo', monospace;
}

.terminal-body {
    padding: 24px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    min-height: 280px;
}

.terminal-line {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.terminal-line.typing .command {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1s steps(40) forwards;
}

.prompt {
    color: var(--secondary);
    margin-right: 10px;
}

.command {
    color: var(--white);
}

.output-text {
    color: var(--gray-400);
}

.terminal-line.success .output-text {
    color: var(--success);
}

.terminal-line.highlight .output-text {
    color: var(--secondary);
    font-weight: 600;
}

/* Floating Cards */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.card-icon {
    font-size: 24px;
}

.card-text {
    font-weight: 600;
    color: var(--gray-700);
}

.card-1 {
    top: -20px;
    right: -30px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 60px;
    left: -40px;
    animation-delay: -1.5s;
}

.card-3 {
    bottom: -10px;
    right: 60px;
    animation-delay: -3s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    animation: fadeIn 1s ease 1s forwards;
    opacity: 0;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(109, 203, 221, 0.1);
    color: var(--secondary-dark);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =============================================
   FEATURES SECTION
   ============================================= */

.features {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 36px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.feature-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.feature-icon .icon-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    border-radius: var(--radius-md);
    opacity: 0.15;
    transition: all var(--transition-base);
}

.feature-card:hover .icon-bg {
    opacity: 0.25;
    transform: scale(1.1);
}

.feature-icon svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 16px;
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* =============================================
   LABS SECTION
   ============================================= */

.labs {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.labs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.labs-text .section-title {
    text-align: left;
}

.labs-text .section-description {
    text-align: left;
}

.labs-features {
    list-style: none;
    margin: 32px 0;
}

.labs-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--gray-700);
    font-weight: 500;
}

.labs-features svg {
    stroke: var(--success);
    flex-shrink: 0;
}

/* Lab Demo Visual */
.lab-demo {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.lab-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.lab-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-400);
}

.status-dot.running {
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--success);
}

.lab-timer {
    font-size: 14px;
    color: var(--gray-500);
}

.lab-demo-content {
    padding: 20px;
}

.lab-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.lab-tab {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-base);
}

.lab-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.lab-terminal {
    background: var(--gray-900);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.8;
}

.term-line {
    color: var(--gray-300);
}

.term-user {
    color: var(--success);
}

.term-path {
    color: var(--secondary);
}

.term-cmd {
    color: var(--white);
}

.term-line.output {
    color: var(--gray-500);
}

.cursor {
    display: inline-block;
    animation: blink 1s step-end infinite;
    color: var(--secondary);
}

/* =============================================
   FORMATIONS SECTION
   ============================================= */

.formations {
    background: var(--white);
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.formation-card {
    padding: 36px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.formation-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

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

.formation-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.formation-badge.soon {
    background: var(--warning);
    color: var(--gray-900);
}

.formation-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.formation-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.formation-card > p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.formation-modules {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.formation-modules li {
    padding: 8px 0;
    color: var(--gray-700);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.formation-modules li::before {
    content: '•';
    color: var(--secondary);
    font-weight: bold;
}

.formation-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

.formation-card.coming-soon {
    opacity: 0.7;
}

.formation-card.coming-soon:hover {
    opacity: 1;
}

/* =============================================
   ABOUT SECTION
   ============================================= */

.about {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-values {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.value:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.value strong {
    display: block;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.value span {
    color: var(--gray-600);
    font-size: 14px;
}

/* About Visual */
.about-visual {
    display: flex;
    justify-content: center;
}

.about-image {
    position: relative;
    width: 320px;
    height: 320px;
}

.image-decoration {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphShape 8s ease-in-out infinite;
    opacity: 0.9;
}

.about-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.about-emoji {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.about-card h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.about-card p {
    color: var(--gray-600);
    margin: 0;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta {
    background: var(--gradient-hero);
    padding: 100px 0;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

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

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

.footer {
    background: var(--gray-900);
    padding: 60px 0 30px;
    color: var(--gray-400);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    line-height: 1.7;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    padding: 8px 0;
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 14px;
}

.footer-tech {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-badge {
    padding: 6px 12px;
    background: var(--gray-800);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--gray-400);
}

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

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-cards {
        display: none;
    }

    .features-grid,
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .labs-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .labs-text .section-title,
    .about-text .section-title,
    .labs-text .section-description,
    .labs-visual {
        text-align: center;
    }

    .labs-features {
        max-width: 400px;
        margin: 32px auto;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding-top: calc(var(--navbar-height) + 20px);
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .scroll-indicator {
        display: none;
    }

    .features-grid,
    .formations-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .hero-badge {
        font-size: 12px;
    }

    .hero-description {
        font-size: 16px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .terminal-body {
        font-size: 12px;
    }

    .about-image {
        width: 260px;
        height: 260px;
    }

    .about-card {
        padding: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --gray-600: #333;
        --gray-500: #444;
    }
}
