:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #8b5cf6;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-light: #f9fafb;
    --color-border: #e5e7eb;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg);
}

/* Navigation */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-md) 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    font-weight: 400;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.lang-selector {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lang-selector option {
    background: var(--color-text);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Hero */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.hero-image::after {
    content: 'Dashboard FLOON Studio';
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: var(--spacing-xl);
    text-align: center;
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
}

.hero-image:has(img[src])::after {
    display: none;
}

.btn-primary {
    background: white;
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: background 0.2s;
    display: inline-block;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
}

.features h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-light);
}

/* Modules */
.modules {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--color-bg-light);
}

.modules h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: 700;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.module-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.module-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.module-card p:not(.module-subtitle) {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Platform Features */
.platform {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--color-bg);
}

.platform h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.platform-intro {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.platform-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.platform-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.platform-feature.reverse {
    direction: rtl;
}

.platform-feature.reverse > * {
    direction: ltr;
}

.platform-feature-content {
    padding: var(--spacing-lg);
}

.platform-feature-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.platform-feature-content p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.platform-feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-bg-light);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.platform-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.platform-feature-image::after {
    content: 'Capture d\'écran à ajouter';
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    padding: var(--spacing-xl);
    text-align: center;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.platform-feature-image:has(img[src])::after {
    display: none;
}

/* Support */
.support {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-2xl) var(--spacing-md);
    background: var(--color-bg-light);
}

.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.support-info h2,
.support-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.support-info p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.support-info a {
    color: var(--color-primary);
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

.support-cta {
    background: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.support-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

/* Footer */
.contentinfo {
    background: var(--color-text);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    align-items: start;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand span {
    font-weight: 400;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    grid-column: 1 / -1;
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {
    .navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
    }

    .lang-selector {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 100%;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .platform-feature,
    .platform-feature.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .platform-feature.reverse > * {
        direction: ltr;
    }

    .platform-feature-image {
        order: -1;
        min-height: 200px;
    }

    .support-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Anchor offset for fixed header */
section {
    scroll-margin-top: 80px;
}

