/* ============================================================
   HSE VOICE — Landing page
   ============================================================ */

:root {
    --primary: #1e40af;
    --primary-hover: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-subtle: #eff6ff;

    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --hover: #f1f5f9;

    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px rgba(15, 23, 42, 0.08), 0 10px 10px rgba(15, 23, 42, 0.04);

    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1.5px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.site-logo .hse { color: var(--text); }
.site-logo .voice { color: var(--primary); }

.site-nav {
    display: flex;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

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

.site-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-ghost {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius);
    transition: all 0.15s;
}

.btn-ghost:hover {
    background: var(--hover);
    color: var(--text);
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--hover);
    border-color: var(--text-light);
}

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

.btn-full {
    width: 100%;
}

/* ============================================================
   SÉLECTEUR DE LANGUE
   ============================================================ */

.lang-select {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.15s;
    margin-right: 4px;
}

.lang-select:hover {
    border-color: var(--primary);
    color: var(--text);
}

.lang-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.hero {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 64, 175, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(30, 64, 175, 0.15);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 52px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--primary);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-trust {
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Chat mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.chat-mockup {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.chat-header {
    background: var(--bg);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.chat-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
}

.chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
}

.bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
    word-wrap: break-word;
}

.bubble-agent {
    background: var(--bg);
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.bubble-user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.bubble-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-light);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.bubble-typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

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

section {
    padding: 80px 0;
}

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

.section-header .eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: var(--text);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   PROBLÈME
   ============================================================ */

.problem {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.problem-card {
    text-align: left;
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.problem-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.problem-icon-red { background: #fef2f2; color: var(--danger); }
.problem-icon-orange { background: #fff7ed; color: var(--warning); }
.problem-icon-yellow { background: #fffbeb; color: #ca8a04; }

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.problem-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   FONCTIONNALITÉS
   ============================================================ */

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

.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ============================================================
   COMMENT ÇA MARCHE
   ============================================================ */

.how {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.how-step {
    text-align: center;
}

.how-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.how-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.how-step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.how-arrow {
    font-size: 28px;
    color: var(--text-light);
    font-weight: 300;
}

/* ============================================================
   BÉNÉFICES
   ============================================================ */

.benefits {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
    color: #fff;
    padding: 64px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefit-number {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
}

.benefit-number span {
    font-size: 32px;
    vertical-align: top;
    margin-left: 2px;
}

.benefit-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-final {
    padding: 100px 0;
}

.cta-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cta-card h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-card > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta-form input,
.cta-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: all 0.15s;
    resize: vertical;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: var(--text-light);
}

.cta-form input:focus,
.cta-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.cta-form button {
    margin-top: 8px;
}

.cta-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

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

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 64px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand .site-logo {
    font-size: 22px;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-brand .hse { color: #fff; }
.footer-brand .voice { color: #60a5fa; }

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    max-width: 280px;
    line-height: 1.6;
}

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-col a:hover { color: #60a5fa; }

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

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

@media (max-width: 900px) {
    .site-nav { display: none; }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title { font-size: 38px; }
    .hero-subtitle { font-size: 16px; }
    .section-header h2 { font-size: 30px; }

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

    .how-grid {
        grid-template-columns: 1fr;
    }

    .how-arrow { transform: rotate(90deg); }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 { font-size: 26px; }

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

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

    .lang-select { font-size: 12px; padding: 6px 8px; }
}

@media (max-width: 500px) {
    .hero { padding: 40px 0 60px; }
    .hero-title { font-size: 30px; }
    .hero-cta { flex-direction: column; }
    .btn-lg { width: 100%; text-align: center; }
    section { padding: 56px 0; }
    .section-header h2 { font-size: 24px; }
    .benefit-number { font-size: 40px; }
    .benefit-number span { font-size: 24px; }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; }
}