/* ==========================================
   PLANEA LANDING PAGE - Separate from app
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: #ffffff;
    color: #334155;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(30, 41, 59, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow 0.3s;
}

.landing-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.landing-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.landing-nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: #ffffff;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #2563eb;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.btn-cta:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-cta-outline {
    background: transparent;
    border: 1.5px solid #2563eb;
    color: #2563eb;
}

.btn-cta-outline:hover {
    background: #2563eb;
    color: #ffffff;
}

.btn-cta-large {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: 10px;
}

/* Nav end (lang toggle + hamburger) */
.nav-end {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    line-height: inherit;
    cursor: pointer;
    padding: 5px 10px;
    transition: border-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.lang-toggle:hover {
    border-color: rgba(255,255,255,0.35);
    color: #ffffff;
}

/* "Se connecter" nav button — same size as lang toggle */
.nav-login {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* Mobile menu */
.landing-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
}

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

.landing-section {
    padding: 96px 24px;
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2563eb;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

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

.landing-hero {
    padding: 160px 24px 96px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 span {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 19px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    color: #94a3b8;
}

.hero-free-badge svg {
    color: #22c55e;
}

.hero-visual {
    position: relative;
}

.hero-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    background: #1e293b;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hero-screenshot-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    padding: 24px;
}

/* Mock roadmap bars inside placeholder */
.mock-roadmap {
    width: 100%;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    height: 28px;
}

.mock-label {
    width: 80px;
    height: 14px;
    background: #334155;
    border-radius: 3px;
    flex-shrink: 0;
}

.mock-bar {
    height: 24px;
    border-radius: 5px;
    flex-shrink: 0;
}

.mock-bar-1 { width: 35%; background: #3b82f6; margin-left: 10%; }
.mock-bar-2 { width: 45%; background: #8b5cf6; margin-left: 20%; }
.mock-bar-3 { width: 25%; background: #f59e0b; margin-left: 30%; }
.mock-bar-4 { width: 55%; background: #22c55e; margin-left: 5%; }
.mock-bar-5 { width: 30%; background: #ef4444; margin-left: 40%; }

.mock-diamond {
    width: 14px;
    height: 14px;
    background: #f59e0b;
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-left: 60%;
}

/* ==========================================
   TRUST BANNER
   ========================================== */

.trust-banner {
    background: #f8fafc;
    padding: 48px 24px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.trust-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

/* ==========================================
   FEATURES
   ========================================== */

.features-section {
    background: #ffffff;
}

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

.feature-card {
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 24px rgba(59,130,246,0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #eff6ff;
    color: #3b82f6;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   PREVIEW
   ========================================== */

.preview-section {
    background: #f8fafc;
}

.preview-container {
    max-width: 960px;
    margin: 0 auto;
}

.preview-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.preview-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #94a3b8;
    font-size: 16px;
}

.preview-placeholder svg {
    opacity: 0.4;
}

/* ==========================================
   PREVIEW MOCK APP
   ========================================== */

.mock-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
}

.mapp-topbar {
    height: 46px;
    flex-shrink: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mapp-pill {
    width: 90px;
    height: 18px;
    background: #1e293b;
    border-radius: 4px;
    flex-shrink: 0;
}

.mapp-tabs {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.mapp-tab {
    padding: 5px 12px;
    font-size: 11px;
    color: #64748b;
    border-radius: 5px;
    font-weight: 500;
    user-select: none;
}

.mapp-tab-on {
    color: #e2e8f0;
    background: rgba(255,255,255,0.09);
}

.mapp-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.mapp-ghost-btn {
    width: 52px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid #334155;
}

.mapp-blue-btn {
    width: 68px;
    height: 24px;
    border-radius: 5px;
    background: #2563eb;
}

.mapp-body {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
}

.mapp-sidebar {
    width: 155px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 6px 0;
}

.mapp-grp-hd {
    height: 9px;
    background: #cbd5e1;
    border-radius: 3px;
    margin: 10px 12px 6px;
}

.mapp-grp-hd-sm { width: 55%; }

.mapp-row-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.mapp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mapp-line {
    height: 8px;
    background: #e2e8f0;
    border-radius: 3px;
    flex: 1;
}

.mapp-line-sm {
    flex: 0;
    width: 50%;
}

.mapp-gantt {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.mapp-week-hd {
    display: flex;
    height: 28px;
    flex-shrink: 0;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.mapp-wk {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #94a3b8;
    border-right: 1px solid #e2e8f0;
    font-weight: 500;
}

.mapp-wk:last-child { border-right: none; }

.mapp-gantt-rows {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mapp-today-line {
    position: absolute;
    left: 36%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(239,68,68,0.35);
    z-index: 2;
}

.mapp-gr {
    flex: 1;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.mapp-gr-alt { background: #f8fafc; }

.mapp-gb {
    position: absolute;
    height: 14px;
    border-radius: 4px;
    opacity: 0.88;
    z-index: 1;
}

.mapp-gd {
    position: absolute;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: #f59e0b;
    z-index: 1;
    top: 50%;
    margin-top: -5px;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */

.steps-section {
    background: #ffffff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, #3b82f6, #e2e8f0);
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #1e293b;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   PRICING
   ========================================== */

.pricing-section {
    background: #f8fafc;
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #3b82f6;
    padding: 48px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 32px rgba(59,130,246,0.1);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 56px;
    font-weight: 800;
    color: #0f172a;
    margin: 24px 0 8px;
    letter-spacing: -1px;
}

.pricing-price-label {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
}

.pricing-features li {
    padding: 10px 0;
    font-size: 15px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li svg {
    color: #22c55e;
    flex-shrink: 0;
}

/* ==========================================
   CONTACT
   ========================================== */

.contact-section {
    background: #ffffff;
}

.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-field label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.contact-field input,
.contact-field textarea {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.contact-field textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #94a3b8;
}

.contact-success {
    display: none;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 15px;
    text-align: center;
}

.contact-error {
    display: none;
    padding: 16px 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 15px;
    text-align: center;
}

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

.landing-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 48px 24px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    list-style: none;
    margin-bottom: 32px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 13px;
    color: #94a3b8;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
}

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

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-free-badge {
        justify-content: center;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-grid::before {
        display: none;
    }

    .section-title {
        font-size: 30px;
    }

    .trust-content {
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .landing-nav-links {
        display: none;
    }

    .landing-menu-toggle {
        display: block;
    }

    .nav-login {
        display: none;
    }

    .lang-toggle {
        padding: 4px 8px;
        font-size: 11px;
    }

    .landing-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #1e293b;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .landing-hero {
        padding: 120px 24px 64px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

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

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

    .landing-section {
        padding: 64px 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .trust-content {
        gap: 32px;
    }

    .trust-number {
        font-size: 26px;
    }
}
