/* ===================================
   SOFLOMAT Holding - Design System
   Style basé sur CYDIS Corporate DA
   =================================== */

/* Variables - Basées sur CYDIS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - CYDIS Palette */
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-surface-elevated: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-accent: #0A0A0A;
    --color-accent-hover: #2D2D2D;
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

p {
    color: var(--color-text-secondary);
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-text);
}

.header__logo span {
    color: var(--color-accent);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.header__link {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.header__link:hover,
.header__link.active {
    color: var(--color-text);
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.header__link:hover::after,
.header__link.active::after {
    width: 100%;
}

/* Mobile Menu Button */
.header__menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.header__menu-btn span {
    width: 20px;
    height: 1.5px;
    background-color: var(--color-text);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.hero__content {
    max-width: 800px;
}

.hero__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.hero__title {
    margin-bottom: var(--space-xl);
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    line-height: 1.5;
    margin-bottom: var(--space-2xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background-color: var(--color-text);
    color: var(--color-surface);
}

.btn--primary:hover {
    background-color: #2D2D2D;
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    border-color: var(--color-text);
}

/* Section */
.section {
    padding: var(--space-5xl) 0;
}

.section--alt {
    background-color: var(--color-surface);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-header__title {
    margin-bottom: var(--space-lg);
}

.section-header__text {
    margin: 0 auto;
}

/* Cards */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-2xl);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    color: var(--color-accent);
}

.card__title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-md);
}

.card__text {
    font-size: var(--font-size-sm);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.feature-item__icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Platform Section */
.platform {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.platform__content {
    max-width: 500px;
}

.platform__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.platform__title {
    margin-bottom: var(--space-lg);
}

.platform__text {
    margin-bottom: var(--space-xl);
}

.platform__visual {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border-radius: 12px;
    padding: var(--space-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    border: 1px solid var(--color-border-light);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.stat {
    text-align: center;
}

.stat__value {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

.stat__label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-surface);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

.footer__logo span {
    color: var(--color-accent);
}

.footer__tagline {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer__column-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-surface);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-surface);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
}

.footer__legal {
    display: flex;
    gap: var(--space-xl);
}

.footer__legal-link {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Values Section */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.value {
    padding: var(--space-2xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.value:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border);
}

.value__number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.value__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.value__text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

/* Content Block */
.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

.content-block h3 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

/* Responsive */
@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .platform {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .values {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }

    .header__menu-btn {
        display: flex;
    }

    .hero__content {
        text-align: center;
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-header {
        padding: 0 var(--space-md);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__brand {
        margin: 0 auto;
    }

    .footer__links {
        align-items: center;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
    }

    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-3xl) 0;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl);
}

.mobile-nav__link {
    padding: var(--space-lg) 0;
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
    transition: color var(--transition-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
    color: var(--color-accent);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}