/* ===== CSS Variables ===== */
:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FF8C5A;
    --secondary: #2D3748;
    --accent: #667EEA;
    --accent-purple: #7C3AED;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #1A202C;
    --gray-900: #171923;
    --gray-800: #1A202C;
    --gray-700: #2D3748;
    --gray-600: #4A5568;
    --gray-500: #718096;
    --gray-400: #A0AEC0;
    --gray-300: #CBD5E0;
    --gray-200: #E2E8F0;
    --gray-100: #F7FAFC;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    --gradient-accent: linear-gradient(135deg, #667EEA 0%, #7C3AED 100%);
    --gradient-dark: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

@keyframes siteLoaderSweep {
    0% {
        transform: translateX(-120%) rotate(0.001deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: translateX(0%) rotate(0.001deg);
        opacity: 1;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(120%) rotate(0.001deg);
        opacity: 0;
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--gray-700);
}

body.modules-page {
    background: #ffffff;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

#site-loader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(900px 500px at 20% 25%, rgba(255, 107, 53, 0.18) 0%, transparent 60%),
        radial-gradient(700px 400px at 80% 80%, rgba(99, 102, 241, 0.18) 0%, transparent 60%),
        rgba(10, 12, 18, 0.98);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    clip-path: circle(140% at 50% 50%);
    transition: opacity 3.8s ease, visibility 3.8s ease, clip-path 4s cubic-bezier(0.22, 1, 0.36, 1);
}

#site-loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(1px 1px at 62% 28%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(1px 1px at 22% 78%, rgba(255, 255, 255, 0.10), transparent 55%),
        radial-gradient(1px 1px at 82% 68%, rgba(255, 255, 255, 0.12), transparent 55%),
        radial-gradient(1px 1px at 48% 58%, rgba(255, 255, 255, 0.08), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: overlay;
}

#site-loader::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 70% at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0.9;
    pointer-events: none;
}

#site-loader .site-loader__content {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    transition: transform 3.8s ease, filter 3.8s ease, opacity 3.8s ease;
    position: relative;
    z-index: 1;
}

#site-loader .site-loader__content::before {
    content: '';
    position: fixed;
    inset: -35vh -60vw;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.0) 38%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0.0) 62%, transparent 100%);
    transform: translateX(-120%) rotate(0.001deg);
    animation: siteLoaderSweep 4.2s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(3px);
}

#site-loader .site-loader__logo {
    width: min(460px, 82vw);
    height: auto;
    filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.55));
    animation: siteLoaderFloat 4.6s ease-in-out infinite;
}

#site-loader.site-loader--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    clip-path: circle(0% at 50% 50%);
}

#site-loader.site-loader--hide .site-loader__content {
    transform: scale(1.06);
    filter: blur(10px);
    opacity: 0;
}

@keyframes siteLoaderFloat {
    0% {
        transform: translateY(0) scale(0.995);
        filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.55));
    }
    50% {
        transform: translateY(-10px) scale(1);
        filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.65));
    }
    100% {
        transform: translateY(0) scale(0.995);
        filter: drop-shadow(0 22px 55px rgba(0, 0, 0, 0.55));
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}


/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--gray-700);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
   
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
   
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.4rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.4), rgba(255, 140, 90, 0.2));
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(124, 58, 237, 0.2));
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(102, 126, 234, 0.2));
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(0, 50px) scale(0.9); }
    75% { transform: translate(-50px, -25px) scale(1.05); }
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(102, 126, 234, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.btn-hero-primary i {
    transition: var(--transition);
}

.btn-hero-primary:hover i {
    transform: translateX(5px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.play-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    animation: dashboardFloat 6s ease-in-out infinite;
}

@keyframes dashboardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.preview-header {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) { background: #EF4444; }
.preview-dots span:nth-child(2) { background: #F59E0B; }
.preview-dots span:nth-child(3) { background: #10B981; }

.preview-title {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.preview-date {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.6rem;
}

.preview-content {
    display: flex;
    min-height: 300px;
}

.preview-sidebar {
    width: 60px;
    background: var(--primary);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.preview-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 1rem;
}

.sidebar-item.active,
.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.preview-main {
    flex: 1;
    padding: 1.5rem;
}

.preview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-card {
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
}

.mini-card.card-blue { border-left: 3px solid var(--accent); }
.mini-card.card-green { border-left: 3px solid var(--success); }
.mini-card.card-orange { border-left: 3px solid var(--primary); }

.mini-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.mini-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--white);
}

.mini-card.card-blue .mini-icon { background: var(--accent); }
.mini-card.card-green .mini-icon { background: var(--success); }
.mini-card.card-orange .mini-icon { background: var(--primary); }

.mini-trend {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.mini-trend.up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.mini-trend.down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.mini-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.mini-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.preview-chart {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.preview-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.preview-chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
}

.preview-chart-period {
    font-size: 0.7rem;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.5rem;
}

.preview-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 90px;
}

.preview-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.4rem;
}

.preview-bar {
    width: 100%;
    background: var(--gray-200);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
}

.preview-chart-label {
    font-size: 0.65rem;
    color: var(--gray-400);
}

.preview-bar.active {
    background: var(--primary);
}

.preview-bar:hover {
    background: var(--primary-light);
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: floatCard 4s ease-in-out infinite;
}

.card-ai {
    bottom: 80px;
    left: 250px;
    animation-delay: -1s;
}

.card-notif {
    top: 60px;
    right: 300px;
    animation-delay: -2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ai-icon, .notif-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.ai-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(102, 126, 234, 0.1));
    color: var(--accent-purple);
}

.notif-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: var(--success);
}

.ai-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.ai-msg {
    font-size: 0.75rem;
    color: var(--success);
}

.notif-text span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ===== Animations ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Logos Section ===== */
.logos-section {
    padding: 4rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.logos-title {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.logos-slider {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.logos-track {
    display: flex;
    gap: 4rem;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-300);
    white-space: nowrap;
    transition: var(--transition);
}

.logo-item:hover {
    color: var(--gray-500);
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 90, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ===== 3D Parallax Boxes Section ===== */
.parallax-boxes-section {
    position: relative;
    height: 150vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    overflow: visible;
    z-index: 1;
}

.parallax-boxes-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.box-wrap {
    position: absolute;
    display: block;
    width: 240px;
    height: 240px;
    perspective: 1000px;
}

/* Positions des cubes (disposition originale) */
.box-wrap:nth-of-type(1) { top: 80vh; left: 0vw; }
.box-wrap:nth-of-type(2) { top: 80vh; left: 34vw; }
.box-wrap:nth-of-type(3) { top: 80vh; right: 10vw; }
.box-wrap:nth-of-type(4) { top: 60vh; right: 30vw; z-index: 150; }
.box-wrap:nth-of-type(5) { top: 75vh; right: 0vw; }
.box-wrap:nth-of-type(6) { top: 90vh; left: 5vw; }
.box-wrap:nth-of-type(7) { display: none; }
.box-wrap:nth-of-type(8) { top: 100vh; right: 10vw; }
.box-wrap:nth-of-type(9) { top: 70vh; left: 20vw; z-index: 150; }
.box-wrap:nth-of-type(10) { display: none; }

.parallax-box {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: rotateX(25deg) rotateY(25deg);
}

.parallax-box .side {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at center, #ffffff 0%, #fff5f0 40%, #ff6b35 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.parallax-box .side img {
    width: 60%;
    height: auto;
    opacity: 0.7;
    filter: brightness(0.9);
}

.module-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.5);
}

/* Variantes de couleur */
.parallax-box.box--dark .side {
    background: radial-gradient(circle at center, #ffffff 0%, #fff5f0 40%, #ff6b35 100%);
    border-color: rgba(255, 107, 53, 0.2);
}

.parallax-box.box--light .side {
    background: radial-gradient(circle at center, #ffffff 0%, #fff5f0 40%, #ff6b35 100%);
    border-color: rgba(255, 107, 53, 0.4);
}

.parallax-box.box--light .side img {
    opacity: 0.85;
}

/* Dimensions des faces */
.parallax-box .front,
.parallax-box .back {
    width: 241px;
    height: 241px;
}

.parallax-box .right,
.parallax-box .left {
    width: 241px;
    height: 241px;
    left: 0;
}

.parallax-box .top,
.parallax-box .bottom {
    width: 241px;
    height: 241px;
    top: 0;
}

/* Transformations 3D des faces */
.parallax-box .front { transform: rotateY(0deg) translateZ(120px); }
.parallax-box .back { transform: rotateY(180deg) translateZ(120px); }
.parallax-box .right { transform: rotateY(90deg) translateZ(120px); }
.parallax-box .left { transform: rotateY(-90deg) translateZ(120px); }
.parallax-box .top { transform: rotateX(90deg) translateZ(120px); }
.parallax-box .bottom { transform: rotateX(-90deg) translateZ(120px); }

/* Contenu central */
.parallax-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    pointer-events: none;
}

.parallax-logo-img {
    max-width: 600px;
    width: 90vw;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.5));
}

/* Responsive */
@media (max-width: 768px) {
    .parallax-boxes-section {
        height: 100vh;
    }
    
    .box-wrap {
        width: 160px;
        height: 160px;
    }
    
    .parallax-box .front,
    .parallax-box .back,
    .parallax-box .right,
    .parallax-box .left,
    .parallax-box .top,
    .parallax-box .bottom {
        width: 161px;
        height: 161px;
    }
    
    .parallax-box .front { transform: rotateY(0deg) translateZ(80px); }
    .parallax-box .back { transform: rotateY(180deg) translateZ(80px); }
    .parallax-box .right { transform: rotateY(90deg) translateZ(80px); }
    .parallax-box .left { transform: rotateY(-90deg) translateZ(80px); }
    .parallax-box .top { transform: rotateX(90deg) translateZ(80px); }
    .parallax-box .bottom { transform: rotateX(-90deg) translateZ(80px); }
    
    .parallax-title {
        font-size: 2rem;
    }
    
    .parallax-subtitle {
        font-size: 1rem;
    }
}

/* ===== Frame Scroll Section ===== */
.frame-scroll-section {
    position: relative;
    height: 400vh;
    background: #fcfcfc;
    overflow: hidden;
}

/* ── Réseau neuronal — derrière la frame ── */
#neural-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.neural-fog-layer,
.neural-fog-layer-2 {
    display: none;
}

.frame-scroll-sticky {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100vh;
    transform: translate(-50%, calc(-50% + var(--posY, 50) * 1vh));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    visibility: hidden;
    pointer-events: none;
}

.frame-scroll-sticky.is-active {
    visibility: visible;
    pointer-events: auto;
}

/* Once the final video has played, the overlay stops following the
   viewport and settles in place (no jump - --frozenTop is computed from
   its current on-screen position), so it scrolls away with the page
   instead of staying fixed over the next sections. */
.frame-scroll-sticky.is-frozen {
    position: absolute;
    top: var(--frozenTop, 0px);
    bottom: auto;
    left: 50%;
    transform: translate(-50%, 0);
}

.frame-scroll-media {
    position: relative;
    width: min(66.666vw, 1200px);
    transform: translateX(calc(var(--pos, 0) * 33.333vw)) scale(var(--scale, 1));
    will-change: transform;
}

.frame-scroll-media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
}

.frame-scroll-media video {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateY(35px);
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: var(--videoOpacity, 0);
    pointer-events: none;
}

.frame-scroll-content {
    position: absolute;
    top: 50%;
    width: min(620px, 62vw);
    padding: 0 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}


/* Image occupies ~1/3 of the width; text is centered in the remaining 2/3 */
.frame-scroll-content-right {
    left: calc(83.333vw + var(--pos, 0) * 16.667vw);
    transform: translate(calc(-50% + 60px), -50%);
}

.frame-scroll-content-left {
    left: calc(16.667vw + var(--pos, 0) * 16.667vw);
    transform: translate(calc(-50% - 60px), -50%);
}

.frame-scroll-content.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.frame-scroll-content h3 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.frame-scroll-content p {
    color: var(--gray-600);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1.25rem;
}

.frame-scroll-content .fs-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.frame-scroll-content .fs-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1.2rem;
}

.frame-scroll-content .fs-feature-list i {
    color: var(--primary);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .frame-scroll-section {
        display: none;
    }
}

@media (min-width: 993px) and (max-width: 1440px) {
    .frame-scroll-media {
        width: min(45vw, 480px);
    }

    .frame-scroll-media img {
        transform: translateY(20px);
    }

    .frame-scroll-content {
        width: min(320px, 36vw);
    }

    .frame-scroll-content-right {
        left: calc(78vw + var(--pos, 0) * 14vw);
    }

    .frame-scroll-content-left {
        left: calc(22vw + var(--pos, 0) * 14vw);
    }
}

/* Above 1440px, the desktop position formula (16.667vw / 83.333vw) leaves
   panels too close to the viewport edge for their 620px width up to ~1860px.
   A small width reduction restores the margin without touching font sizes. */
@media (min-width: 1441px) and (max-width: 1859px) {
    .frame-scroll-content {
        width: min(620px, 32vw);
    }
}





.erp-essai-section
{
    display: none;
}


/* ===== Cube Build Section ===== */
.cube-build-section {
    position: relative;
    background: var(--gray-900);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 32em;
}

/* Gradient overlay like .erp-demo-section */
.cube-build-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
}


.cube-build-section div {
    position: absolute;
    transform-style: preserve-3d;
}

.cube-build-section .assembly {
    top: 50%;
    left: 50%;
    transform: scale(0.75) rotateX(-45deg) rotateY(-45deg);
}

.cube-build-section .comp-3d {
    animation: r 6s ease-in-out infinite;
}

.cube-build-section .comp-3d--i {
    animation-name: ri;
}

.cube-build-section .comp-3d--o {
    animation-name: ro;
}

@keyframes ri {
    0%, 20% { transform: rotateY(-0.5turn); }
    50% { transform: none; }
    80%, 100% { transform: rotateX(-0.5turn); }
}

@keyframes ro {
    0%, 35% { transform: rotate(-0.5turn); }
    65%, 100% { transform: none; }
}

.cube-build-section .cube {
    width: 4em;
    height: 4em;
}

.cube-build-section .pos .cube {
    animation: m 6s ease-out infinite;
}

@keyframes m {
    0%, 5%, 95%, 100% { transform: none; }
    15% { transform: translate3d(0, 4em, 0); }
    25% { transform: translate3d(0, 4em, 4em); }
    35%, 65% { transform: translate3d(4em, 4em, 4em); }
    75% { transform: translate3d(4em, 0, 4em); }
    85% { transform: translate3d(4em, 0, 0); }
}

.cube-build-section .cube__face {
    margin: -2em;
    width: 4em;
    height: 4em;
    box-shadow: 0 0 2em rgba(200, 200, 200, 0.2) inset;
    backface-visibility: hidden;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e3 100%);
}

.cube-build-section .cube__face:nth-child(2n) {
    filter: brightness(0.95);
    background: linear-gradient(135deg, #eaeae5 0%, #ddddd8 100%);
}

.cube-build-section .cube__face:nth-child(n + 5) {
    filter: brightness(1.05);
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
}

.cube-build-section .cube__face:nth-child(1) { transform: rotateY(0deg) translateZ(2em); }
.cube-build-section .cube__face:nth-child(2) { transform: rotateY(90deg) translateZ(2em); }
.cube-build-section .cube__face:nth-child(3) { transform: rotateY(180deg) translateZ(2em); }
.cube-build-section .cube__face:nth-child(4) { transform: rotateY(270deg) translateZ(2em); }
.cube-build-section .cube__face:nth-child(5) { transform: rotateX(90deg) translateZ(2em); }
.cube-build-section .cube__face:nth-child(6) { transform: rotateX(-90deg) translateZ(2em); }

.cube-build-section .cube__face span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.55em;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: none;
}

.cube-build-section .cube__face:nth-child(n + 5) span {
    color: white;
}

.cube-build-section .cube__face img.cube-logo {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.cube-build-section .cube__face:nth-child(3) img.cube-logo,
.cube-build-section .cube__face:nth-child(4) img.cube-logo {
    transform: scaleX(-1);
}

/* Inner cubes positions (19 cubes) */
.cube-build-section .comp-3d--i .cube:nth-child(1) { transform: translate3d(-4em, -4em, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(2) { transform: translate3d(-4em, 0, -4em); }
.cube-build-section .comp-3d--i .cube:nth-child(3) { transform: translate3d(-4em, 0, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(4) { transform: translate3d(-4em, 0, 4em); }
.cube-build-section .comp-3d--i .cube:nth-child(5) { transform: translate3d(-4em, 4em, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(6) { transform: translate3d(0, -4em, -4em); }
.cube-build-section .comp-3d--i .cube:nth-child(7) { transform: translate3d(0, -4em, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(8) { transform: translate3d(0, -4em, 4em); }
.cube-build-section .comp-3d--i .cube:nth-child(9) { transform: translate3d(0, 0, -4em); }
.cube-build-section .comp-3d--i .cube:nth-child(10) { transform: translate3d(0, 0, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(11) { transform: translate3d(0, 0, 4em); }
.cube-build-section .comp-3d--i .cube:nth-child(12) { transform: translate3d(0, 4em, -4em); }
.cube-build-section .comp-3d--i .cube:nth-child(13) { transform: translate3d(0, 4em, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(14) { transform: translate3d(0, 4em, 4em); }
.cube-build-section .comp-3d--i .cube:nth-child(15) { transform: translate3d(4em, -4em, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(16) { transform: translate3d(4em, 0, -4em); }
.cube-build-section .comp-3d--i .cube:nth-child(17) { transform: translate3d(4em, 0, 0); }
.cube-build-section .comp-3d--i .cube:nth-child(18) { transform: translate3d(4em, 0, 4em); }
.cube-build-section .comp-3d--i .cube:nth-child(19) { transform: translate3d(4em, 4em, 0); }

/* Text orientation for outer cubes */
.cube-build-section .pos:nth-child(1) .cube__face span { transform: none; }
.cube-build-section .pos:nth-child(2) .cube__face span { transform: rotateY(180deg); }
.cube-build-section .pos:nth-child(3) .cube__face span { transform: rotateX(180deg); }
.cube-build-section .pos:nth-child(4) .cube__face span { transform: rotateX(180deg) rotateY(180deg); }
.cube-build-section .pos:nth-child(5) .cube__face span { transform: rotateY(180deg); }
.cube-build-section .pos:nth-child(6) .cube__face span { transform: rotateY(180deg); }
.cube-build-section .pos:nth-child(7) .cube__face span { transform: rotateX(180deg) rotateY(180deg); }
.cube-build-section .pos:nth-child(8) .cube__face span { transform: rotateX(180deg); }

.cube-build-section .pos:nth-child(1) { transform: scale3d(1, 1, 1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(2) { transform: scale3d(1, 1, -1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(3) { transform: scale3d(1, -1, 1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(4) { transform: scale3d(1, -1, -1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(5) { transform: scale3d(-1, 1, 1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(6) { transform: scale3d(-1, 1, -1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(7) { transform: scale3d(-1, -1, 1) translate3d(4em, 4em, 4em); }
.cube-build-section .pos:nth-child(8) { transform: scale3d(-1, -1, -1) translate3d(4em, 4em, 4em); }


.cube-build-overlay {
    position: relative;
    margin-top: 100vh;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* Increase height of cube build section */
.cube-build-section {
    min-height: 160vh;
}

.cube-build-section .section-header {
    position: relative;
    z-index: 10;
}

.cube-build-section .section-title,
.cube-build-section .section-subtitle {
    color: var(--white);
}

/* ===== Features Section ===== */
.features-section {
    padding: 6rem 0;
}

.features-section.features-dark {
    position: relative;
    background: transparent;
    overflow: visible;
    z-index: 50;
}

.features-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--gray-900);
    z-index: -1;
}

.features-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.25) 0%, transparent 55%),
                      radial-gradient(circle at 85% 80%, rgba(102, 126, 234, 0.25) 0%, transparent 55%);
    opacity: 0.9;
}

.features-section.features-dark .section-header {
    position: relative;
    z-index: 1;
}

.features-section.features-dark .section-title {
    color: var(--white);
}

.features-section.features-dark .section-subtitle {
    color: var(--gray-400);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 200;
}

.features-section.features-dark .features-grid {
    position: relative;
    z-index: 1;
}

.features-section.features-dark .feature-card {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.features-section.features-dark .feature-card h3 {
    color: #1a1a2e;
}

.features-section.features-dark .feature-card p {
    color: #555;
}

.features-section.features-dark .feature-link {
    color: var(--primary);
}

.features-section.features-dark .feature-link i {
    color: var(--primary);
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from var(--border-angle),
        var(--primary),
        var(--accent),
        var(--accent-purple),
        var(--primary),
        transparent 50%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotateBorder {
    to { --border-angle: 360deg; }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
    animation: rotateBorder 2.5s linear infinite;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon-blue { background: rgba(102, 126, 234, 0.1); color: var(--accent); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.icon-purple { background: rgba(124, 58, 237, 0.1); color: var(--accent-purple); }
.icon-orange { background: rgba(255, 107, 53, 0.1); color: var(--primary); }
.icon-red { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.icon-teal { background: rgba(20, 184, 166, 0.1); color: #14B8A6; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.feature-link:hover {
    gap: 0.75rem;
}

/* ===== Modules Section ===== */
.modules-section {
    padding: 6rem 0;
    background: #f8f9fa;
}

.modules-showcase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modules-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.module-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
}

.module-tab:hover {
    border-color: var(--primary);
    color: var(--white);
    background: rgba(255, 107, 53, 0.1);
}

.module-tab.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
}

.modules-content {
    background: rgba(30, 35, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
    overflow: hidden;
}

.module-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem;
}

.module-panel.active {
    display: grid;
}

.module-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.module-info > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.module-features {
    margin-bottom: 2rem;
}

.module-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.module-features li:last-child {
    border-bottom: none;
}

.module-features i {
    color: var(--success);
    font-size: 0.875rem;
}

.btn-module {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.btn-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.module-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-mockup {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    min-height: 300px;
}

.pipeline {
    display: flex;
    gap: 1rem;
}

.pipeline-col {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
}

.col-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.deal-card {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.75rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--gray-300);
}

.deal-card.active {
    border-left-color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.deal-card.won {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.gantt-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gantt-row {
    height: 30px;
    background: var(--white);
    border-radius: var(--radius-sm);
    position: relative;
}

.gantt-bar {
    position: absolute;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.employee-cards {
    display: flex;
    gap: 1rem;
}

.emp-card {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.emp-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 0.75rem;
}

.emp-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.invoice-preview {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.invoice-header {
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.invoice-lines {
    margin-bottom: 1.5rem;
}

.invoice-line {
    height: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.invoice-line:nth-child(2) { width: 80%; }
.invoice-line:nth-child(3) { width: 60%; }

.invoice-total {
    text-align: right;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* ===== AI Section ===== */
.ai-section {
    padding: 6rem 0;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.ai-bg {
    position: absolute;
    inset: 0;
}

.ai-particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%);
}

.ai-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-dark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.ai-section .section-title {
    color: var(--white);
}

.ai-description {
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-feature {
    display: flex;
    gap: 1rem;
}

.ai-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ai-feature-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ai-feature-text p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.ai-chat-window {
    background: var(--gray-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 250px;
}

.chat-message {
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.user p {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
}

.chat-message.ai {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.message-content > p {
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.ai-tasks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-task {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-400);
}

.ai-task.done {
    color: var(--success);
}

.ai-task.processing {
    color: var(--accent);
}

.task-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: var(--white);
    font-size: 0.875rem;
}

.chat-input input::placeholder {
    color: var(--gray-500);
}

.chat-input button {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    transform: scale(1.05);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 6rem 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 90, 0.05));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stat-card .stat-name {
    color: var(--gray-600);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #F59E0B;
}

.testimonial-text {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
}

.author-role {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ===== Pricing Section ===== */
.pricing-section {
    padding: 6rem 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-label {
    font-weight: 500;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-label.active {
    color: var(--gray-900);
}

.discount-badge {
    background: var(--success);
    color: var(--white);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.module-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.pricing-price {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
}

.period {
    color: var(--gray-500);
}

.amount-custom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.pricing-features li i {
    font-size: 0.875rem;
}

.pricing-features li .fa-check {
    color: var(--success);
}

.pricing-features li.disabled {
    color: var(--gray-400);
}

.pricing-features li.disabled .fa-times {
    color: var(--gray-300);
}

.btn-pricing {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.btn-pricing:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-pricing-primary {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    color: var(--white);
}

/* ===== CTA Section ===== */
body:not(.module-detail-page) .cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.method-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.method-value {
    font-weight: 600;
    color: var(--gray-900);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1.5rem 0;
    line-height: 1.7;
}

.footer .logo span {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-bottom i {
    color: var(--danger);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        padding-top: 6rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        margin-top: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .module-panel {
        grid-template-columns: 1fr;
    }
    
    .ai-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-buttons {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .modules-nav {
        flex-direction: column;
    }
    
    .module-tab {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .preview-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 5rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Scroll Animations ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }

/* ===== Professional Module Mockups ===== */
.module-mockup-pro {
    width: 100%;
}

.mockup-window {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.mockup-header {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }

.mockup-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
}

.mockup-body {
    padding: 1.25rem;
    background: var(--gray-50);
    min-height: 280px;
}

/* CRM Pipeline Mockup */
.crm-pipeline {
    display: flex;
    gap: 0.75rem;
    height: 100%;
}

.pipeline-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 600;
}

.column-header i {
    font-size: 0.65rem;
}

.column-header .count {
    margin-left: auto;
    background: rgba(255,255,255,0.5);
    padding: 0.15rem 0.4rem;
    border-radius: 100px;
    font-size: 0.6rem;
}

.column-header.prospects { background: rgba(102, 126, 234, 0.15); color: var(--accent); }
.column-header.qualification { background: rgba(255, 107, 53, 0.15); color: var(--primary); }
.column-header.proposition { background: rgba(124, 58, 237, 0.15); color: var(--accent-purple); }
.column-header.won { background: rgba(16, 185, 129, 0.15); color: var(--success); }

.pipeline-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pipeline-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    position: relative;
    transition: var(--transition);
}

.pipeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pipeline-card.highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255,107,53,0.03), rgba(255,140,90,0.03));
}

.pipeline-card.success {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16,185,129,0.05), rgba(16,185,129,0.02));
}

.card-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.card-avatar.blue { background: linear-gradient(135deg, #667EEA, #764BA2); }
.card-avatar.green { background: linear-gradient(135deg, #10B981, #059669); }
.card-avatar.orange { background: linear-gradient(135deg, #FF6B35, #FF8C5A); }
.card-avatar.purple { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.card-avatar.success-bg { background: linear-gradient(135deg, #10B981, #34D399); }

.card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-amount {
    font-size: 0.6rem;
    color: var(--gray-500);
}

.card-tag {
    position: absolute;
    top: -6px;
    right: 6px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 100px;
    font-weight: 600;
}

.card-success-icon {
    color: var(--success);
    font-size: 0.7rem;
    margin-left: auto;
}

/* Gantt Chart Mockup */
.gantt-pro {
    display: flex;
    gap: 1rem;
    height: 100%;
}

.gantt-sidebar {
    width: 120px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gantt-task-name {
    font-size: 0.65rem;
    color: var(--gray-700);
    padding: 0.4rem 0.5rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.gantt-task-name i {
    color: var(--primary);
    font-size: 0.6rem;
}

.gantt-task-name.sub {
    padding-left: 1rem;
    font-size: 0.6rem;
    color: var(--gray-500);
}

.gantt-task-name.sub i {
    color: var(--gray-400);
}

.gantt-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.gantt-months {
    display: flex;
    margin-bottom: 0.5rem;
}

.gantt-months span {
    flex: 1;
    text-align: center;
    font-size: 0.6rem;
    color: var(--gray-500);
    font-weight: 500;
}

.gantt-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.gantt-bar-row {
    height: 22px;
    position: relative;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.gantt-bar-pro {
    position: absolute;
    height: 100%;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.gantt-bar-pro.blue { background: linear-gradient(90deg, #667EEA, #764BA2); }
.gantt-bar-pro.green { background: linear-gradient(90deg, #10B981, #34D399); }
.gantt-bar-pro.orange { background: linear-gradient(90deg, #FF6B35, #FF8C5A); }
.gantt-bar-pro.purple { background: linear-gradient(90deg, #7C3AED, #A855F7); }
.gantt-bar-pro.teal { background: linear-gradient(90deg, #14B8A6, #2DD4BF); }

.gantt-today {
    position: absolute;
    top: 25px;
    bottom: 0;
    left: 65%;
    width: 2px;
    background: var(--danger);
    z-index: 10;
}

.gantt-today::before {
    content: 'Aujourd\'hui';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: var(--danger);
    white-space: nowrap;
    font-weight: 600;
}

/* RH Dashboard Mockup */
.rh-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rh-stats-row {
    display: flex;
    gap: 0.75rem;
}

.rh-stat-card {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.rh-stat-card i {
    font-size: 1rem;
    color: var(--primary);
    width: 32px;
    height: 32px;
    background: rgba(255,107,53,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rh-stat-info {
    display: flex;
    flex-direction: column;
}

.rh-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.rh-stat-label {
    font-size: 0.6rem;
    color: var(--gray-500);
}

.rh-team-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rh-employee {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.rh-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
}

.rh-emp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rh-emp-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
}

.rh-emp-role {
    font-size: 0.6rem;
    color: var(--gray-500);
}

.rh-status {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
}

.rh-status.available { background: rgba(16,185,129,0.1); color: var(--success); }
.rh-status.busy { background: rgba(255,107,53,0.1); color: var(--primary); }
.rh-status.vacation { background: rgba(102,126,234,0.1); color: var(--accent); }

/* Invoice Mockup */
.invoice-body {
    background: var(--white);
}

.invoice-pro {
    padding: 0.5rem;
}

.invoice-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

.invoice-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 0.8rem;
}

.invoice-logo span {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gray-800);
}

.invoice-badge-status {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 100px;
}

.invoice-badge-status.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.invoice-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.invoice-to .label {
    display: block;
    font-size: 0.55rem;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.invoice-to .value {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
}

.invoice-to .sub {
    display: block;
    font-size: 0.6rem;
    color: var(--gray-500);
}

.invoice-meta {
    text-align: right;
    font-size: 0.6rem;
    color: var(--gray-600);
}

.invoice-meta span {
    font-weight: 600;
}

.invoice-table {
    margin-bottom: 1rem;
}

.invoice-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.4rem 0;
    font-size: 0.65rem;
    border-bottom: 1px solid var(--gray-100);
}

.invoice-row.header {
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.invoice-row span:last-child {
    text-align: right;
}

.invoice-total-section {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 0.6rem;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    padding: 0.25rem 0;
    color: var(--gray-600);
}

.invoice-total-row.total {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gray-900);
    border-top: 1px solid var(--gray-200);
    margin-top: 0.3rem;
    padding-top: 0.4rem;
}

/* Comptabilité Mockup */
.compta-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.compta-chart {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
}

.chart-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.chart-bars-pro {
    display: flex;
    gap: 0.5rem;
    height: 100px;
    align-items: flex-end;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
    position: relative;
}

.chart-bar-group span {
    font-size: 0.55rem;
    color: var(--gray-500);
    position: absolute;
    bottom: -15px;
}

.bar-income, .bar-expense {
    width: 12px;
    border-radius: 3px 3px 0 0;
    position: absolute;
    bottom: 0;
}

.bar-income {
    background: linear-gradient(180deg, #10B981, #34D399);
    left: calc(50% - 14px);
}

.bar-expense {
    background: linear-gradient(180deg, #EF4444, #F87171);
    left: calc(50% + 2px);
}

.chart-bar-group.active .bar-income,
.chart-bar-group.active .bar-expense {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.6rem;
    color: var(--gray-600);
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.legend-dot.income { background: var(--success); }
.legend-dot.expense { background: var(--danger); }

.compta-summary {
    display: flex;
    gap: 0.5rem;
}

.summary-item {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item i {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.summary-item.income i { background: rgba(16,185,129,0.1); color: var(--success); }
.summary-item.expense i { background: rgba(239,68,68,0.1); color: var(--danger); }
.summary-item.profit i { background: rgba(102,126,234,0.1); color: var(--accent); }

.summary-value {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-900);
}

.summary-label {
    display: block;
    font-size: 0.55rem;
    color: var(--gray-500);
}

/* Stocks Mockup */
.stocks-dashboard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stocks-search {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.7rem;
    border: 1px solid var(--gray-200);
}

.stocks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stock-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stock-icon {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.stock-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stock-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-800);
}

.stock-ref {
    font-size: 0.55rem;
    color: var(--gray-400);
}

.stock-qty {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.stock-qty .unit {
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--gray-500);
}

.stock-qty.good { color: var(--success); }
.stock-qty.warning { color: var(--warning); }
.stock-qty.critical { color: var(--danger); }

.stock-qty i {
    font-size: 0.7rem;
}

.stocks-alert {
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius);
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    color: var(--warning);
    font-weight: 500;
}

.stocks-alert i {
    font-size: 0.8rem;
}

/* ===== Simple Animated Mockups ===== */
.mockup-simple {
    width: 100%;
}

.mockup-screen {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.mockup-topbar {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar-mini {
    width: 50px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.5rem;
}

.mockup-sidebar-mini::before {
    content: '';
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
}

.mockup-sidebar-mini::after {
    content: '';
    width: 24px;
    height: 100px;
    background: linear-gradient(180deg, 
        rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.15) 20%,
        transparent 20%, transparent 30%,
        rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.15) 50%,
        transparent 50%, transparent 60%,
        rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.15) 80%,
        transparent 80%
    );
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.mockup-content-area {
    flex: 1;
    padding: 1rem;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Stats boxes */
.mockup-stats, .mockup-kpis {
    display: flex;
    gap: 0.5rem;
}

.stat-box, .kpi-box {
    flex: 1;
    height: 50px;
    border-radius: var(--radius);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0.5rem;
}

/* Text lines (gray placeholders) */
.text-line {
    display: block;
    height: 8px;
    width: 70%;
    background: var(--gray-300);
    border-radius: 4px;
}

.text-line.short { width: 50%; }
.text-line.tiny { width: 40%; height: 6px; }
.text-line.micro { width: 30%; height: 5px; }
.text-line.dark { background: var(--gray-400); }
.text-line.light { background: rgba(255,255,255,0.4); }
.text-line.center { margin: 0 auto; }
.text-line.price { background: var(--primary); width: 45%; height: 6px; }

.stat-box.orange, .kpi-box.orange { background: rgba(255,107,53,0.15); }
.stat-box.green, .kpi-box.green { background: rgba(16,185,129,0.15); }
.stat-box.gray { background: var(--gray-200); }
.stat-box.red { background: rgba(239,68,68,0.15); }
.stat-box.yellow { background: rgba(245,158,11,0.15); }
.stat-box.blue, .kpi-box.blue { background: rgba(102,126,234,0.15); }
.stat-box.purple, .kpi-box.purple { background: rgba(124,58,237,0.15); }

/* Kanban mockup */
.mockup-kanban {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.kanban-lane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lane-header {
    height: 26px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
}

.lane-header .icon-dot {
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

.lane-header .text-line {
    flex: 1;
    height: 6px;
    background: currentColor;
    opacity: 0.4;
}

.lane-header.orange { background: rgba(255,107,53,0.2); color: var(--primary); }
.lane-header.green { background: rgba(16,185,129,0.2); color: var(--success); }
.lane-header.purple { background: rgba(124,58,237,0.2); color: var(--accent-purple); }

.lane-empty {
    flex: 1;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    min-height: 80px;
}

.lane-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 3px solid var(--success);
    opacity: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lane-card .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.badge-line {
    width: 35px;
    height: 10px;
    background: rgba(102,126,234,0.2);
    border-radius: 10px;
}

.badge-line.green {
    background: rgba(16,185,129,0.2);
}

/* Planning mockup */
.mockup-planning {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.planning-header {
    display: flex;
    background: var(--gray-100);
    padding: 0.5rem;
    gap: 0.25rem;
}

.planning-header span {
    flex: 1;
    height: 20px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
}

.planning-grid {
    display: flex;
    padding: 0.5rem;
    gap: 0.25rem;
    min-height: 150px;
}

.planning-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-right: 1px solid var(--gray-100);
    padding-right: 0.25rem;
}

.planning-col:last-child { border-right: none; }

.planning-col.empty {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        var(--gray-50) 5px,
        var(--gray-50) 10px
    );
    border-radius: var(--radius-sm);
}

.time-block {
    height: 35px;
    border-radius: var(--radius-sm);
    border-left: 3px solid;
    transform: scaleY(0);
    transform-origin: top;
    padding: 5px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.time-block .text-line {
    width: 80%;
    height: 5px;
}

.time-block.orange { background: rgba(255,107,53,0.15); border-color: var(--primary); }
.time-block.orange .text-line { background: rgba(255,107,53,0.4); }
.time-block.green { background: rgba(16,185,129,0.15); border-color: var(--success); }
.time-block.green .text-line { background: rgba(16,185,129,0.4); }
.time-block.blue { background: rgba(102,126,234,0.15); border-color: var(--accent); }
.time-block.blue .text-line { background: rgba(102,126,234,0.4); }

/* Calendar mockup */
.mockup-calendar {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.cal-header-bar {
    height: 30px;
    background: var(--gray-100);
    margin: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-header-bar .text-line {
    width: 50%;
    height: 8px;
}

.cal-days {
    display: flex;
    padding: 0 0.5rem;
    gap: 0.25rem;
}

.cal-days span {
    flex: 1;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.cal-days span i {
    display: block;
    width: 60%;
    height: 5px;
    background: var(--gray-300);
    border-radius: 3px;
}

.cal-days span i:last-child {
    width: 40%;
    height: 8px;
}

.cal-days span.today {
    background: rgba(255,107,53,0.2);
}

.cal-days span.today i {
    background: rgba(255,107,53,0.4);
}

.cal-grid {
    display: flex;
    padding: 0.5rem;
    gap: 0.25rem;
    min-height: 120px;
}

.cal-cell {
    flex: 1;
    border-right: 1px solid var(--gray-100);
}

.cal-cell:last-child { border-right: none; }

.cal-cell.has-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-bar {
    height: 18px;
    border-radius: var(--radius-sm);
    opacity: 0;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.event-bar .text-line {
    width: 70%;
    height: 5px;
    background: rgba(255,255,255,0.5);
}

.event-bar.blue { background: var(--accent); }
.event-bar.orange { background: var(--primary); }
.event-bar.green { background: var(--success); }
.event-bar.tall { height: 40px; }

/* Dashboard mockup */
.mockup-dashboard {
    flex: 1;
    display: flex;
    gap: 0.75rem;
}

.dash-chart {
    flex: 2;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
}

.chart-bar {
    flex: 1;
    background: var(--accent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.chart-bar.green {
    background: var(--success);
}

.chart-legend-mock {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem;
    background: var(--white);
    border-radius: var(--radius);
    margin-top: -0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-item::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item::after {
    content: '';
    width: 40px;
    height: 6px;
    background: var(--gray-300);
    border-radius: 3px;
}

.legend-item.blue::before { background: var(--accent); }
.legend-item.green::before { background: var(--success); }

/* KPI boxes detailed */
.kpi-box {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
}

.kpi-icon-box {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: currentColor;
    opacity: 0.3;
    flex-shrink: 0;
}

.kpi-box.blue .kpi-icon-box { background: var(--accent); }
.kpi-box.green .kpi-icon-box { background: var(--success); }
.kpi-box.orange .kpi-icon-box { background: var(--primary); }
.kpi-box.purple .kpi-icon-box { background: var(--accent-purple); }

.kpi-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.kpi-lines .text-line {
    width: 90%;
}

.kpi-lines .text-line.short {
    width: 60%;
}

.kpi-lines .text-line.micro {
    width: 50%;
}

.dash-donut {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(
        #06B6D4 0deg 200deg,
        var(--success) 200deg 240deg,
        var(--danger) 240deg 280deg,
        var(--gray-200) 280deg 360deg
    );
    position: relative;
}

.donut-ring::after {
    content: '';
    position: absolute;
    inset: 15px;
    background: var(--white);
    border-radius: 50%;
}

/* Finance mockup */
.mockup-finance {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.finance-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    border-bottom: 1px solid var(--gray-100);
    opacity: 0;
    transform: translateX(-20px);
}

.finance-line:last-child { border-bottom: none; }
.finance-line.highlight { background: var(--gray-50); }

.line-label {
    width: 60%;
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
}

.line-value {
    width: 25%;
    height: 16px;
    border-radius: var(--radius-sm);
}

.line-value.blue { background: rgba(102,126,234,0.3); }
.line-value.green { background: rgba(16,185,129,0.3); }
.line-value.orange { background: rgba(255,107,53,0.3); }

/* Bars mockup */
.mockup-bars {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    width: 50px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    flex-shrink: 0;
}

.h-bar {
    height: 14px;
    border-radius: var(--radius-sm);
    transform: scaleX(0);
    transform-origin: left;
}

.h-bar.gray { background: var(--gray-300); }
.h-bar.orange { background: var(--primary); }
.h-bar.yellow { background: var(--warning); }
.h-bar.green { background: var(--success); }
.h-bar.blue { background: var(--accent); }

/* Modules store mockup */
.mockup-modules-store {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-banner {
    height: 55px;
    background: var(--primary);
    border-radius: var(--radius);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.store-banner .text-line.light {
    width: 120px;
}

.store-banner .text-line.light.short {
    width: 80px;
}

.banner-price {
    width: 50px;
    height: 24px;
    background: rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.store-card {
    height: 55px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid rgba(16,185,129,0.3);
    opacity: 0;
    display: flex;
    align-items: center;
    padding: 8px;
    gap: 8px;
}

.card-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.card-icon.blue { background: rgba(102,126,234,0.2); }
.card-icon.green { background: rgba(16,185,129,0.2); }
.card-icon.orange { background: rgba(255,107,53,0.2); }
.card-icon.purple { background: rgba(124,58,237,0.2); }
.card-icon.teal { background: rgba(20,184,166,0.2); }
.card-icon.pink { background: rgba(236,72,153,0.2); }

.card-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-lines .text-line {
    width: 80%;
    height: 6px;
}

.card-lines .badge-line {
    width: 30px;
}

.check-icon {
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.store-card.buyable {
    border-color: var(--gray-200);
}

.store-card.buyable::after {
    content: '';
    width: 40px;
    height: 18px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ===== Animations ===== */
.anim-fade {
    animation: fadeIn 0.6s ease forwards;
}

.anim-slide {
    animation: slideUp 0.6s ease forwards;
}

.anim-pop {
    animation: popIn 0.4s ease forwards;
}

.anim-grow {
    animation: growUp 0.6s ease forwards;
}

.anim-grow-h {
    animation: growRight 0.6s ease forwards;
}

.anim-slide-right {
    animation: slideRight 0.5s ease forwards;
}

.anim-spin {
    animation: spinIn 1s ease forwards;
}

/* Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes growUp {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes growRight {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes spinIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

/* Hover effect on mockup */
.mockup-simple:hover .lane-card,
.mockup-simple:hover .time-block,
.mockup-simple:hover .event-bar,
.mockup-simple:hover .chart-bar,
.mockup-simple:hover .h-bar {
    animation-play-state: running;
}

.module-panel.active .mockup-simple .stat-box,
.module-panel.active .mockup-simple .kpi-box {
    animation: popIn 0.4s ease forwards;
}

.module-panel.active .mockup-simple .stat-box:nth-child(1),
.module-panel.active .mockup-simple .kpi-box:nth-child(1) { animation-delay: 0.1s; }
.module-panel.active .mockup-simple .stat-box:nth-child(2),
.module-panel.active .mockup-simple .kpi-box:nth-child(2) { animation-delay: 0.2s; }
.module-panel.active .mockup-simple .stat-box:nth-child(3),
.module-panel.active .mockup-simple .kpi-box:nth-child(3) { animation-delay: 0.3s; }
.module-panel.active .mockup-simple .stat-box:nth-child(4),
.module-panel.active .mockup-simple .kpi-box:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .mockup-topbar {
        min-height: 220px;
    }
    
    .mockup-sidebar-mini {
        width: 35px;
    }
    
    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ERP Demo Carousel Section ===== */
.erp-demo-section {
    padding: 6rem 0;
    background: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.erp-demo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
}

.erp-demo-section .section-header {
    position: relative;
    z-index: 1;
}

.erp-demo-section .section-title {
    color: var(--white);
}

.erp-demo-section .section-subtitle {
    color: var(--gray-400);
}

.erp-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    min-height: 520px;
    position: relative;
    z-index: 1;
}

/* Frame imbriqué */
.erp-mockup-frame {
    display: flex;
    align-items: center;
    position: relative;
}

/* Sidebar fixe */
.erp-sidebar-fixed {
    width: 60px;
    background: var(--primary);
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.3);
    z-index: 20;
    position: relative;
    height: 320px; /* même hauteur que la carte active */
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.sidebar-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-item {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1rem;
}

.sidebar-item:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
}

.sidebar-item.active {
    color: var(--white);
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Carousel 3D */
.erp-carousel-container {
    width: 520px;
    height: 480px;
    position: relative;
    perspective: 1200px;
    margin-left: -8px;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    width: 500px;
    height: 320px;
    left: 0;
    top: 50%;
    margin-top: -160px;
    background: var(--white);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.carousel-card.center {
    z-index: 10;
    transform: translateX(0) translateY(0) translateZ(0) scale(1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.carousel-card.up-1 {
    z-index: 5;
    transform: translateX(30px) translateY(-130px) translateZ(-100px) scale(0.88);
    opacity: 0.6;
    filter: brightness(0.7);
    border-radius: var(--radius-xl);
}

.carousel-card.up-2 {
    z-index: 1;
    transform: translateX(50px) translateY(-220px) translateZ(-200px) scale(0.75);
    opacity: 0.3;
    filter: brightness(0.5);
    border-radius: var(--radius-xl);
}

.carousel-card.down-1 {
    z-index: 5;
    transform: translateX(30px) translateY(130px) translateZ(-100px) scale(0.88);
    opacity: 0.6;
    filter: brightness(0.7);
    border-radius: var(--radius-xl);
}

.carousel-card.down-2 {
    z-index: 1;
    transform: translateX(50px) translateY(220px) translateZ(-200px) scale(0.75);
    opacity: 0.3;
    filter: brightness(0.5);
    border-radius: var(--radius-xl);
}

.carousel-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(80px) translateY(280px) translateZ(-300px) scale(0.6);
}

/* Card Topbar */
.card-topbar {
    background: var(--white);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-200);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.topbar-left i {
    font-size: 0.5rem;
}

.breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-search, .topbar-notif {
    width: 28px;
    height: 28px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--gray-500);
}

.topbar-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
}

.card-body {
    padding: 0.8rem;
    height: calc(100% - 48px);
    background: var(--gray-50);
    overflow: hidden;
}

/* Dashboard */
.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.dash-kpi {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.kpi-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--white);
}

.kpi-icon.blue { background: var(--accent); }
.kpi-icon.green { background: var(--success); }
.kpi-icon.orange { background: var(--primary); }
.kpi-icon.purple { background: var(--accent-purple); }

.kpi-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kpi-value {
    width: 35px;
    height: 8px;
    background: var(--gray-300);
    border-radius: 4px;
}

.kpi-label {
    width: 28px;
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
}

.dash-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    height: calc(100% - 70px);
}

.dash-chart-main, .dash-chart-side {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.chart-header span {
    width: 50px;
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.3rem;
    height: calc(100% - 20px);
}

.chart-bars .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    border-radius: 3px 3px 0 0;
}

.donut-chart {
    width: 70px;
    height: 70px;
    margin: 0.5rem auto;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0% 35%, var(--accent) 35% 60%, var(--success) 60% 100%);
    position: relative;
}

.donut-chart::after {
    content: '';
    position: absolute;
    inset: 15px;
    background: var(--white);
    border-radius: 50%;
}

/* CRM Kanban */
.crm-kanban {
    display: flex;
    gap: 0.5rem;
    height: 100%;
}

.kanban-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.col-header {
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
}

.col-header.orange { background: rgba(255,107,53,0.15); }
.col-header.blue { background: rgba(102,126,234,0.15); }
.col-header.green { background: rgba(16,185,129,0.15); }

.col-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.col-header.orange .col-dot { background: var(--primary); }
.col-header.blue .col-dot { background: var(--accent); }
.col-header.green .col-dot { background: var(--success); }

.col-title {
    flex: 1;
    height: 5px;
    background: var(--gray-300);
    border-radius: 3px;
}

.col-count {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray-500);
}

.kanban-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-left: 3px solid var(--accent);
}

.kanban-card.won {
    border-left-color: var(--success);
}

.card-avatar {
    width: 20px;
    height: 20px;
    background: var(--gray-200);
    border-radius: 50%;
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-info span:first-child {
    width: 70%;
    height: 5px;
    background: var(--gray-300);
    border-radius: 3px;
}

.card-info span:last-child {
    width: 50%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
}

.card-amount {
    width: 25px;
    height: 10px;
    background: var(--gray-100);
    border-radius: 3px;
}

/* Planning */
.planning-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.planning-header {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.day-col {
    flex: 1;
    text-align: center;
    padding: 0.3rem;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.day-col span {
    display: block;
    width: 20px;
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
    margin: 0 auto;
}

.day-col.today {
    background: rgba(255,107,53,0.1);
}

.day-col.today span {
    background: var(--primary);
}

.planning-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.planning-row {
    display: grid;
    grid-template-columns: 40px repeat(5, 1fr);
    gap: 0.3rem;
    align-items: center;
}

.row-label {
    width: 30px;
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
}

.task-block {
    height: 22px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 0.3rem;
}

.task-block span {
    width: 60%;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
}

.task-block.orange { background: var(--primary); }
.task-block.blue { background: var(--accent); }
.task-block.green { background: var(--success); }
.task-block.purple { background: var(--accent-purple); }

/* Invoice Table */
.invoice-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr 1fr 0.8fr;
    padding: 0.4rem 0.6rem;
    background: var(--gray-100);
    font-size: 0.55rem;
    color: var(--gray-500);
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr 1fr 0.8fr;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}

.table-row span {
    height: 5px;
    background: var(--gray-200);
    border-radius: 3px;
    width: 80%;
}

.status-badge {
    width: 35px !important;
    height: 12px !important;
    border-radius: 6px !important;
}

.status-badge.paid { background: rgba(16,185,129,0.2) !important; }
.status-badge.pending { background: rgba(255,107,53,0.2) !important; }
.status-badge.overdue { background: rgba(239,68,68,0.2) !important; }

/* Stock Grid */
.stock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.stock-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stock-card.warning {
    border: 1px solid rgba(245,158,11,0.3);
}

.stock-card.danger {
    border: 1px solid rgba(239,68,68,0.3);
}

.stock-icon {
    width: 24px;
    height: 24px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--gray-500);
}

.stock-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stock-info span:first-child {
    width: 70%;
    height: 5px;
    background: var(--gray-300);
    border-radius: 3px;
}

.stock-info span:last-child {
    width: 50%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
}

.stock-level {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
}

.stock-card.warning .level-bar { background: var(--warning); }
.stock-card.danger .level-bar { background: var(--danger); }

/* RH Calendar */
.rh-calendar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.calendar-nav .nav-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--gray-400);
    cursor: pointer;
}

.month-label {
    width: 60px;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cal-head {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    text-align: center;
    font-size: 0.55rem;
    color: var(--gray-400);
    font-weight: 600;
}

.cal-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.cal-body span {
    height: 22px;
    background: var(--gray-50);
    border-radius: 4px;
}

.cal-body span.today {
    background: var(--primary);
}

.cal-body span.weekend {
    background: var(--gray-100);
}

.cal-body span.event {
    position: relative;
}

.cal-body span.event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.cal-body span.event.blue::after { background: var(--accent); }
.cal-body span.event.orange::after { background: var(--primary); }
.cal-body span.event.green::after { background: var(--success); }

/* Module Info */
.erp-module-info {
    text-align: left;
    width: 260px;
    flex-shrink: 0;
}

.module-name {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
}

.module-desc {
    color: var(--gray-400);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.5s ease;
}

.module-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--gray-300);
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
}

.module-points {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    min-height: 4.5rem; /* réserve de hauteur pour éviter les sauts */
}

.module-points li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--gray-300);
    margin-bottom: 0.4rem;
}

.module-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background: rgba(255,255,255,0.4);
}

.carousel-dots .dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .erp-carousel-wrapper {
        gap: 2rem;
        min-height: auto;
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .erp-carousel-container {
        width: 380px;
        height: 400px;
    }
    
    /* Carte = 240px de haut */
    .carousel-card {
        width: 360px;
        height: 240px;
        margin-top: -120px;
    }
    
    .carousel-card.up-1 {
        transform: translateX(20px) translateY(-100px) translateZ(-80px) scale(0.88);
    }
    
    .carousel-card.up-2 {
        transform: translateX(35px) translateY(-170px) translateZ(-160px) scale(0.75);
    }
    
    .carousel-card.down-1 {
        transform: translateX(20px) translateY(100px) translateZ(-80px) scale(0.88);
    }
    
    .carousel-card.down-2 {
        transform: translateX(35px) translateY(170px) translateZ(-160px) scale(0.75);
    }
    
    /* Sidebar = 240px de haut (même que la carte), largeur 48px */
    .erp-sidebar-fixed {
        height: 240px;
        width: 48px;
        padding: 0.5rem 0;
    }
    
    .sidebar-logo {
        width: 28px;
        height: 28px;
        margin-bottom: 0.5rem;
    }
    
    .sidebar-nav {
        gap: 0.15rem;
    }
    
    .sidebar-item {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .sidebar-item.active {
        transform: scale(1);
    }
    
    .erp-module-info {
        width: 100%;
        text-align: center;
        order: 3;
    }
    
    .module-badge {
        margin: 0 auto 0.5rem;
    }
}

@media (max-width: 768px) {
    .erp-carousel-wrapper {
        gap: 1.5rem;
    }
    
    .erp-carousel-container {
        width: 320px;
        height: 350px;
    }
    
    /* Carte = 200px de haut */
    .carousel-card {
        width: 300px;
        height: 200px;
        margin-top: -100px;
    }
    
    .carousel-card.up-1 {
        transform: translateX(15px) translateY(-85px) translateZ(-70px) scale(0.88);
    }
    
    .carousel-card.down-1 {
        transform: translateX(15px) translateY(85px) translateZ(-70px) scale(0.88);
    }
    
    .carousel-card.up-2,
    .carousel-card.down-2 {
        opacity: 0;
    }
    
    /* Sidebar = 200px de haut (même que la carte), largeur 44px */
    .erp-sidebar-fixed {
        height: 200px;
        width: 44px;
        padding: 0.4rem 0;
    }
    
    .sidebar-logo {
        width: 26px;
        height: 26px;
        margin-bottom: 0.4rem;
    }
    
    .sidebar-nav {
        gap: 0.1rem;
    }
    
    .sidebar-item {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .sidebar-item.active {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .erp-demo-section {
        padding: 3rem 0;
    }
    
    .erp-carousel-container {
        width: 280px;
        height: 300px;
    }
    
    /* Carte = 170px de haut */
    .carousel-card {
        width: 260px;
        height: 170px;
        margin-top: -85px;
    }
    
    .carousel-card.up-1 {
        transform: translateX(10px) translateY(-70px) translateZ(-60px) scale(0.88);
    }
    
    .carousel-card.down-1 {
        transform: translateX(10px) translateY(70px) translateZ(-60px) scale(0.88);
    }
    
    /* Sidebar = 170px de haut (même que la carte), largeur 40px */
    .erp-sidebar-fixed {
        height: 170px;
        width: 40px;
        padding: 0.3rem 0;
    }
    
    .sidebar-logo {
        width: 24px;
        height: 24px;
        margin-bottom: 0.3rem;
    }
    
    .sidebar-nav {
        gap: 0.08rem;
    }
    
    .sidebar-item {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }
    
    .sidebar-item.active {
        transform: scale(1);
    }
}

/* ===== ERP Real Mockups Styles ===== */

/* Stats Row */
.erp-stats-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.erp-stat {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
    text-align: center;
}

.erp-stat .val {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: inherit;
}

.erp-stat .lbl {
    display: block;
    font-size: 0.55rem;
    opacity: 0.9;
}

.erp-stat.orange-bg { background: rgba(255,107,53,0.1); color: var(--primary); }
.erp-stat.green-bg { background: rgba(16,185,129,0.1); color: var(--success); }
.erp-stat.gray-bg { background: var(--gray-100); color: var(--gray-500); }
.erp-stat.red-bg { background: rgba(239,68,68,0.1); color: var(--danger); }
.erp-stat.yellow-bg { background: rgba(245,158,11,0.1); color: var(--warning); }
.erp-stat.blue-bg { background: rgba(102,126,234,0.1); color: var(--accent); }
.erp-stat.purple-bg { background: rgba(124,58,237,0.1); color: var(--accent-purple); }

/* Kanban */
.erp-kanban {
    display: flex;
    gap: 0.5rem;
}

.kanban-col {
    flex: 1;
    min-width: 0;
}

.kanban-header {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.kanban-header i { font-size: 0.6rem; }
.kanban-header.orange { background: rgba(255,107,53,0.1); color: var(--primary); }
.kanban-header.green { background: rgba(16,185,129,0.1); color: var(--success); }
.kanban-header.purple { background: rgba(124,58,237,0.1); color: var(--accent-purple); }

.kanban-empty {
    background: var(--white);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem 0.5rem;
    text-align: center;
    font-size: 0.6rem;
    color: var(--gray-400);
}

.kanban-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 0.6rem;
    margin-bottom: 0.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kanban-card .card-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.2rem;
}

.kanban-card .card-client {
    font-size: 0.55rem;
    color: var(--gray-500);
    margin-bottom: 0.4rem;
}

.kanban-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-card .badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 100px;
    font-weight: 600;
}

.kanban-card .badge.blue { background: rgba(102,126,234,0.15); color: var(--accent); }

.kanban-card .date {
    font-size: 0.5rem;
    color: var(--accent);
}

/* Week Planning */
.erp-week-planning {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.week-header {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.week-header .day {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray-600);
    border-right: 1px solid var(--gray-100);
}

.week-header .day:last-child { border-right: none; }

.week-body {
    display: flex;
    min-height: 140px;
}

.day-col {
    flex: 1;
    padding: 0.4rem;
    border-right: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.day-col:last-child { border-right: none; }

.day-col.empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-col .add-btn {
    font-size: 0.55rem;
    color: var(--gray-400);
    cursor: pointer;
}

.time-slot {
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid;
}

.time-slot .time {
    display: block;
    font-size: 0.55rem;
    font-weight: 600;
}

.time-slot .duration {
    display: block;
    font-size: 0.5rem;
    opacity: 0.8;
}

.time-slot.orange { background: rgba(255,107,53,0.1); border-color: var(--primary); color: var(--primary); }
.time-slot.green { background: rgba(16,185,129,0.1); border-color: var(--success); color: var(--success); }
.time-slot.blue { background: rgba(102,126,234,0.1); border-color: var(--accent); color: var(--accent); }

/* Calendar */
.erp-calendar {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.calendar-header {
    padding: 0.6rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.calendar-grid {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.cal-day-header {
    flex: 1;
    padding: 0.4rem;
    text-align: center;
    font-size: 0.55rem;
    color: var(--gray-500);
    border-right: 1px solid var(--gray-100);
    line-height: 1.3;
}

.cal-day-header:last-child { border-right: none; }

.cal-day-header.today {
    background: rgba(255,107,53,0.1);
    color: var(--primary);
    font-weight: 600;
}

.calendar-body {
    display: flex;
    min-height: 120px;
}

.cal-col {
    flex: 1;
    padding: 0.3rem;
    border-right: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cal-col:last-child { border-right: none; }

.cal-event {
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.5rem;
    font-weight: 500;
    color: var(--white);
}

.cal-event.blue { background: var(--accent); }
.cal-event.orange { background: var(--primary); }
.cal-event.green { background: var(--success); }
.cal-event.tall { padding: 0.6rem 0.4rem; }

/* Dashboard KPI */
.dashboard-body {
    padding: 0.75rem !important;
}

.erp-kpi-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.kpi-card {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid var(--gray-100);
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.kpi-icon.blue { background: rgba(102,126,234,0.1); color: var(--accent); }
.kpi-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.kpi-icon.orange { background: rgba(255,107,53,0.1); color: var(--primary); }
.kpi-icon.purple { background: rgba(124,58,237,0.1); color: var(--accent-purple); }

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-900);
}

.kpi-label {
    font-size: 0.55rem;
    color: var(--gray-500);
}

.kpi-sub {
    font-size: 0.5rem;
    color: var(--gray-400);
}

.kpi-sub.warning { color: var(--danger); }

/* Charts Row */
.erp-charts-row {
    display: flex;
    gap: 0.5rem;
}

.chart-section {
    flex: 2;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
    border: 1px solid var(--gray-100);
}

.donut-section {
    flex: 1;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.6rem;
    border: 1px solid var(--gray-100);
}

.chart-section .chart-title,
.donut-section .chart-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.bar-chart {
    display: flex;
    gap: 0.4rem;
    height: 80px;
    align-items: flex-end;
    padding-bottom: 15px;
    position: relative;
}

.bar-group {
    flex: 1;
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 100%;
    position: relative;
}

.bar-group span {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5rem;
    color: var(--gray-500);
}

.bar-group .bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
}

.bar-group .bar.blue { background: var(--accent); }
.bar-group .bar.green { background: var(--success); }

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.5rem;
    color: var(--gray-600);
}

.chart-legend .dot,
.donut-legend .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.25rem;
}

.dot.blue { background: var(--accent); }
.dot.green { background: var(--success); }
.dot.cyan { background: #06B6D4; }
.dot.red { background: var(--danger); }
.dot.gray { background: var(--gray-400); }

/* Donut Chart */
.donut-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.donut {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: conic-gradient(
        #06B6D4 0deg 200deg,
        var(--success) 200deg 240deg,
        var(--danger) 240deg 280deg,
        var(--gray-300) 280deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-hole {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 50%;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.5rem;
    color: var(--gray-600);
}

/* Finance Summary */
.finance-summary {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1rem;
}

.finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--gray-100);
}

.finance-row:last-child { border-bottom: none; }

.finance-row.highlight {
    background: var(--gray-50);
}

.finance-label {
    font-size: 0.7rem;
    color: var(--gray-600);
}

.finance-label .warning-text {
    color: var(--danger);
    font-size: 0.6rem;
}

.finance-value {
    font-size: 0.85rem;
    font-weight: 700;
}

.finance-value.blue { color: var(--accent); }
.finance-value.green { color: var(--success); }
.finance-value.orange { color: var(--primary); }

/* Devis Status */
.devis-status {
    background: var(--white);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.devis-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.6rem;
}

.devis-bars {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.devis-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.devis-label {
    width: 60px;
    font-size: 0.55rem;
    color: var(--gray-500);
}

.devis-bar {
    height: 14px;
    border-radius: var(--radius-sm);
}

.devis-bar.gray { background: var(--gray-300); }
.devis-bar.orange { background: var(--primary); }
.devis-bar.yellow { background: var(--warning); }
.devis-bar.green { background: var(--success); }
.devis-bar.blue { background: var(--accent); }

/* Modules Store */
.modules-store-body {
    padding: 0.75rem !important;
}

.abo-banner {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.abo-info .abo-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--white);
}

.abo-info .abo-sub {
    display: block;
    font-size: 0.55rem;
    color: rgba(255,255,255,0.8);
}

.abo-price {
    text-align: right;
}

.abo-price .price {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.abo-price .period {
    display: block;
    font-size: 0.5rem;
    color: rgba(255,255,255,0.8);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.module-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.module-card.included {
    border-color: rgba(16,185,129,0.3);
}

.module-card .module-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.module-card .module-icon.blue { background: rgba(102,126,234,0.1); color: var(--accent); }
.module-card .module-icon.green { background: rgba(16,185,129,0.1); color: var(--success); }
.module-card .module-icon.orange { background: rgba(255,107,53,0.1); color: var(--primary); }
.module-card .module-icon.purple { background: rgba(124,58,237,0.1); color: var(--accent-purple); }
.module-card .module-icon.teal { background: rgba(20,184,166,0.1); color: #14B8A6; }
.module-card .module-icon.pink { background: rgba(236,72,153,0.1); color: #EC4899; }

.module-card .module-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.module-card .module-name {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--gray-800);
}

.module-card .module-badge {
    font-size: 0.45rem;
    padding: 0.1rem 0.3rem;
    border-radius: 100px;
    width: fit-content;
}

.module-card .module-badge.green {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.module-card .module-price {
    font-size: 0.55rem;
    color: var(--primary);
    font-weight: 600;
}

.module-card .check {
    color: var(--success);
    font-size: 0.8rem;
}

.module-card .activate-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Modules Page - Light Style ===== */
.modules-hero {
    padding: 8rem 0 4rem;
    background: #ffffff;
}

.modules-hero .section-badge {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.modules-hero .section-title,
.modules-hero .section-subtitle {
    color: #1a1a2e;
}

/* Amélioration du contraste pour les sections modules */
.modules-section .section-title {
    color: #1a1a2e;
}

.modules-section .section-subtitle {
    color: #444;
}

.modules-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.module-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.module-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.module-card-icon.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.module-card-icon.icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
}

.module-card-icon.icon-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
}

.module-card-icon.icon-orange {
    background: rgba(255, 107, 53, 0.15);
    color: #FF6B35;
}

.module-card-icon.icon-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #2DD4BF;
}

.module-card-icon.icon-red {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
}

.module-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.module-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.module-features {
    display: none;
}

.module-feature-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.module-feature-item i {
    color: #10B981;
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.module-feature-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.module-feature-item p {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.module-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
}

.module-link:hover {
    gap: 0.75rem;
    color: #FF8C5A;
}

.module-link i {
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 1024px) {
    .modules-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modules-hero {
        padding: 6rem 0 3rem;
    }

    .modules-list {
        grid-template-columns: 1fr;
    }

    .module-card {
        padding: 1.25rem;
    }

    .module-card h3 {
        font-size: 1rem;
    }

    .module-description {
        font-size: 0.875rem;
    }

    .module-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}

/* ===== Module Detail Pages ===== */
.module-detail-page {
    background: var(--white);
}

.module-detail-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(to right, rgba(255, 107, 53, 0.35) 0%, rgba(26, 26, 46, 0.35) 100%);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    color: #e05520;
    gap: 0.75rem;
}

.module-detail-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.module-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
}

.module-detail-icon.icon-blue,
.module-detail-icon.icon-green,
.module-detail-icon.icon-purple,
.module-detail-icon.icon-orange,
.module-detail-icon.icon-teal,
.module-detail-icon.icon-red {
    background: rgba(255, 107, 53, 0.15);
    color: #FF6B35;
}

.module-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.module-detail-intro {
    font-size: 1.25rem;
    color: #444;
    line-height: 1.8;
}

.module-detail-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.content-section > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-detailed-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.feature-detailed-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-detailed-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-detailed-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-detailed-card > p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.feature-list li i {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: var(--transition);
}

.benefit-card:hover {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.integration-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.integration-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: var(--transition);
}

.integration-item:hover {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.integration-item i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.integration-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.integration-item p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.module-detail-page .cta-section {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 20px;
}

.module-detail-page .cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.module-detail-page .cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive for module detail pages */
@media (max-width: 1024px) {
    .features-detailed-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .module-detail-hero {
        padding: 6rem 0 3rem;
    }

    .module-detail-header h1 {
        font-size: 1.75rem;
    }

    .module-detail-intro {
        font-size: 1rem;
    }

    .module-detail-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .integration-list {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

/* Responsive for mockups */
@media (max-width: 768px) {
    .erp-stats-row {
        flex-wrap: wrap;
    }
    
    .erp-stat {
        min-width: calc(50% - 0.25rem);
    }
    
    .erp-kanban {
        flex-direction: column;
    }
    
    .erp-kpi-row {
        flex-wrap: wrap;
    }
    
    .kpi-card {
        min-width: calc(50% - 0.25rem);
    }
    
    .erp-charts-row {
        flex-direction: column;
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .week-body {
        overflow-x: auto;
    }
    
    .day-col {
        min-width: 80px;
    }
}
