@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #1a7a3a;
    --primary-dark: #14612e;
    --primary-light: #22a04d;
    --accent: #0d9488;
    --accent2: #22a04d;
    --bg: #fafffe;
    --dark: #0a2e1a;
    --gray-900: #1e293b;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #1a7a3a 0%, #22a04d 50%, #0d9488 100%);
    --gradient-2: linear-gradient(135deg, #0a2e1a 0%, #1a3a2a 100%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    text-decoration: none;
}

.logo span {
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-2);
    padding-top: 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26,122,58,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13,148,136,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,122,58,0.15);
    border: 1px solid rgba(26,122,58,0.3);
    color: #22a04d;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 800px;
    letter-spacing: -1.5px;
}

.hero h1 .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26,122,58,0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    cursor: pointer;
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-stat p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 2rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ===== PROFILS / RÔLES ===== */
.roles-section {
    background: var(--gray-100);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.role-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(26,122,58,0.2);
}

.role-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.role-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.role-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(26,122,58,0.1);
    transform: translateY(-3px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.feature-tag {
    background: rgba(26,122,58,0.1);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== WORKFLOW ===== */
.workflow-section {
    background: var(--dark);
    color: var(--white);
}

.workflow-section .section-label { color: var(--accent); }
.workflow-section .section-title { color: var(--white); }
.workflow-section .section-subtitle { color: rgba(255,255,255,0.5); }

.workflow-pipeline {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 2rem 0;
    margin-top: 1rem;
}

.workflow-step {
    flex: 0 0 auto;
    text-align: center;
    padding: 1.5rem 1rem;
    min-width: 150px;
    position: relative;
}

.workflow-step::after {
    content: '\2192';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 300;
}

.workflow-step:last-child::after { display: none; }

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-weight: 800;
    font-size: 1rem;
}

.workflow-step h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.workflow-step p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* ===== TECH STACK ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tech-card .tech-emoji {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.tech-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.tech-card p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ===== SECURITY ===== */
.security-section {
    background: linear-gradient(135deg, #0a2e1a 0%, #1a3a2a 100%);
    color: white;
}

.security-section .section-label { color: var(--success); }
.security-section .section-title { color: white; }
.security-section .section-subtitle { color: rgba(255,255,255,0.5); }

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.security-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.security-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(16,185,129,0.3);
}

.security-item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* ===== CHIFFRES CLÉS ===== */
.stats-section {
    background: #f1f5f9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.3rem;
}

/* ===== INTEGRATIONS ===== */
.integrations-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 2rem 0;
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.integration-badge:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.integration-badge .int-icon {
    font-size: 1.5rem;
}

.integration-badge h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
}

.integration-badge p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ===== USE CASES ===== */
.usecases-section {
    background: var(--white);
}

.usecase-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.usecase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--gray-100);
    border-radius: 20px;
    overflow: hidden;
}

.usecase:nth-child(even) {
    direction: rtl;
}

.usecase:nth-child(even) > * {
    direction: ltr;
}

.usecase-visual {
    padding: 2.5rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.usecase-visual-inner {
    background: var(--white);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.usecase-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 0;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: -2px;
    width: 2px;
    background: var(--gray-300);
}

.flow-dot {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    background: var(--primary);
    position: relative;
    z-index: 1;
}

.flow-dot.done {
    background: var(--success);
}

.flow-dot.active {
    background: var(--warning);
    animation: pulse 2s infinite;
}

.flow-step-content h5 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.1rem;
}

.flow-step-content p {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.usecase-text {
    padding: 2.5rem;
}

.usecase-tag {
    display: inline-block;
    background: rgba(26,122,58,0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.usecase-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.usecase-text > p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.usecase-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.usecase-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.benefit-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: #ecfdf5;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.usecase-personas {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.persona-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
}

@media (max-width: 900px) {
    .usecase {
        grid-template-columns: 1fr;
    }
    .usecase:nth-child(even) {
        direction: ltr;
    }
    .usecase-visual {
        min-height: auto;
    }
}

/* ===== CTA ===== */
.cta-section {
    background: var(--gradient-1);
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

footer strong {
    color: var(--white);
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid, .security-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all .3s cubic-bezier(.4,0,.2,1);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .hero-buttons { flex-direction: column; }
    .features-grid, .security-grid { grid-template-columns: 1fr; }
    .tech-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2rem; }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-pipeline { flex-wrap: wrap; justify-content: center; }
    .interface-grid { grid-template-columns: 1fr !important; }
    .interface-grid > div { transform: none !important; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}
