/**
 * ImunCar — Landing page styles (Session 49)
 * Gradient bleu→violet premium, sections marketing, animations, responsive, dark mode.
 *
 * Réutilise les vars CSS de app.css : --color-primary, --shadow-*, --spacing-*, --text-primary, etc.
 */

:root {
    --landing-gradient: linear-gradient(135deg, #2563eb 0%, #667eea 50%, #764ba2 100%);
    --landing-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    --landing-section-padding: 5rem 0;
    --landing-section-padding-sm: 3rem 0;
    --landing-card-radius: 16px;
    --landing-card-radius-lg: 24px;
    --landing-shadow-card: 0 4px 14px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --landing-shadow-hover: 0 12px 30px rgba(37, 99, 235, 0.15), 0 6px 12px rgba(118, 75, 162, 0.10);
    --landing-shadow-premium: 0 20px 50px rgba(118, 75, 162, 0.25);
    --landing-brand-primary: #2563eb;
    --landing-brand-violet: #764ba2;
    --landing-brand-accent: #667eea;
    --landing-text-on-gradient: #ffffff;
    --landing-text-on-gradient-muted: rgba(255, 255, 255, 0.85);
}

/* ============================================
   BASE — body & global resets pour public pages
   ============================================ */

body.public-page {
    /* Override le wrapper flex de app.css qui suppose une sidebar */
    background-color: var(--bg-primary, #ffffff);
}

body.public-page .public-content {
    /* Pas de margin-left (pas de sidebar) */
    margin-left: 0;
    padding: 0;
    min-height: calc(100vh - 70px);
}

/* Anchor scroll padding pour compensation header sticky */
body.public-page {
    scroll-padding-top: 80px;
}

/* ============================================
   PUBLIC HEADER (sticky top)
   ============================================ */

.public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

.public-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 1rem;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--landing-brand-primary);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    transition: opacity 150ms ease;
}

.public-brand:hover {
    color: var(--landing-brand-primary);
    opacity: 0.85;
}

.public-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--landing-gradient);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.public-brand-text {
    background: var(--landing-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.public-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.public-nav-links li a {
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 150ms ease;
    padding: 0.25rem 0;
    position: relative;
}

.public-nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--landing-gradient);
    transition: width 200ms ease;
}

.public-nav-links li a:hover {
    color: var(--landing-brand-primary);
}

.public-nav-links li a:hover::after {
    width: 100%;
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-public-login {
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 150ms ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.btn-public-login:hover {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--landing-brand-primary);
}

.btn-public-register {
    background: var(--landing-gradient);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 150ms ease, box-shadow 150ms ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.btn-public-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: #fff !important;
}

.btn-public-register:active {
    transform: translateY(0);
}

.public-theme-btn,
.public-burger {
    color: var(--text-primary, #1f2937);
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.public-theme-btn:hover,
.public-burger:hover {
    background-color: rgba(37, 99, 235, 0.08);
}

/* Offcanvas mobile */
.public-offcanvas {
    max-width: 340px;
}

.public-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.public-mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-mobile-nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem;
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 150ms ease;
    min-height: 48px;
}

.public-mobile-nav-links li a:hover,
.public-mobile-nav-links li a:focus {
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--landing-brand-primary);
}

.public-mobile-nav-links li a i {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    color: var(--landing-brand-primary);
}

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

.landing-hero {
    position: relative;
    overflow: hidden;
    background: var(--landing-gradient);
    color: #fff;
    padding: 5rem 0 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Pattern SVG décoratif overlay */
.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.10) 0%, transparent 40%);
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.landing-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-title-accent {
    background: linear-gradient(90deg, #ffd86b, #ffb88c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--landing-text-on-gradient-muted);
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.btn-hero-primary {
    background: #fff;
    color: var(--landing-brand-primary) !important;
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    border: none;
    font-size: 1.05rem;
    transition: transform 150ms ease, box-shadow 150ms ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    color: var(--landing-brand-primary) !important;
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 150ms ease;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff !important;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    color: var(--landing-text-on-gradient-muted);
    font-size: 0.95rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat strong {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

/* Hero mockup dashboard (HTML/CSS art) */
.hero-mockup {
    position: relative;
    perspective: 1500px;
    perspective-origin: center top;
}

.hero-mockup-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
    color: var(--text-primary, #1f2937);
    max-width: 480px;
    margin-left: auto;
}

@keyframes heroFloat {
    0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}

.hero-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.hero-mockup-vehicle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-mockup-vehicle-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--landing-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.hero-mockup-vehicle-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary, #1f2937);
}

.hero-mockup-vehicle-meta {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.hero-mockup-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-mockup-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulseStatus 1.8s ease-in-out infinite;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-mockup-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero-mockup-stat {
    background: rgba(248, 250, 255, 0.8);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.hero-mockup-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.hero-mockup-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    line-height: 1.1;
}

.hero-mockup-stat-trend {
    font-size: 0.7rem;
    color: var(--color-success, #10b981);
    font-weight: 600;
    margin-top: 0.25rem;
}

.hero-mockup-chart {
    background: rgba(248, 250, 255, 0.8);
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.hero-mockup-chart-label {
    font-size: 0.7rem;
    color: var(--text-secondary, #6b7280);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-mockup-chart-svg {
    width: 100%;
    height: 50px;
}

/* ============================================
   SECTIONS GÉNÉRIQUES
   ============================================ */

.landing-section {
    padding: var(--landing-section-padding);
    position: relative;
}

.landing-section-alt {
    background: var(--bg-secondary, #f8f9fa);
}

.landing-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.landing-section-eyebrow {
    display: inline-block;
    color: var(--landing-brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.landing-section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary, #1f2937);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.landing-section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary, #6b7280);
    line-height: 1.6;
}

/* Scroll reveal */
.landing-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.landing-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SECTION FEATURES (12 cards)
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-primary, #fff);
    border-radius: var(--landing-card-radius);
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--landing-shadow-card);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-hover);
    border-color: rgba(37, 99, 235, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--landing-gradient-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.55;
    margin-bottom: 0;
    flex: 1;
}

.feature-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

/* ============================================
   SECTION WHY (problème/solution)
   ============================================ */

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

.why-card {
    background: var(--bg-primary, #fff);
    border-radius: var(--landing-card-radius);
    padding: 1.75rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--landing-shadow-card);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
    align-items: stretch;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.why-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-hover);
}

.why-problem,
.why-solution {
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.why-problem {
    background: rgba(239, 68, 68, 0.06);
    border-left: 3px solid rgba(239, 68, 68, 0.45);
}

.why-solution {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid rgba(16, 185, 129, 0.45);
}

.why-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    opacity: 0.8;
}

.why-problem .why-label { color: #b91c1c; }
.why-solution .why-label { color: #047857; }

.why-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary, #1f2937);
    margin: 0;
}

.why-arrow {
    color: var(--landing-brand-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   SECTION PREVIEW (mockups dashboard)
   ============================================ */

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

.preview-card {
    background: var(--bg-primary, #fff);
    border-radius: var(--landing-card-radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--landing-shadow-card);
    overflow: hidden;
    transition: transform 250ms ease, box-shadow 250ms ease;
    display: flex;
    flex-direction: column;
}

.preview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--landing-shadow-premium);
}

.preview-card-visual {
    background: var(--landing-gradient-soft);
    padding: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.preview-card-info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.preview-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.4rem;
}

.preview-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mockup 1 : Eco score */
.mockup-eco {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
}

.mockup-eco-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mockup-eco-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient(#10b981 0deg 313deg, #e5e7eb 313deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mockup-eco-circle::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 50%;
}

.mockup-eco-circle span {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-size: 1.1rem;
    color: #10b981;
}

.mockup-eco-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.mockup-eco-info strong {
    font-size: 0.95rem;
    color: var(--text-primary, #1f2937);
}

.mockup-eco-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mockup-eco-kpis div {
    background: rgba(248, 250, 255, 0.8);
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.7rem;
}

.mockup-eco-kpis strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary, #1f2937);
}

/* Mockup 2 : Chat IA */
.mockup-chat {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
    font-size: 0.78rem;
}

.mockup-chat-bubble {
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    margin-bottom: 0.5rem;
    max-width: 90%;
    line-height: 1.4;
}

.mockup-chat-bubble.user {
    background: var(--landing-gradient);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.mockup-chat-bubble.assistant {
    background: rgba(248, 250, 255, 0.9);
    color: var(--text-primary, #1f2937);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.mockup-chat-bubble.assistant strong {
    color: var(--landing-brand-primary);
    display: block;
    margin-bottom: 0.25rem;
}

/* Mockup 3 : Trajet GPS */
.mockup-gps {
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.mockup-gps-map {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    height: 100px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.mockup-gps-path {
    stroke: #ffd86b;
    stroke-width: 2.5;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 6px rgba(255, 216, 107, 0.6));
}

.mockup-gps-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.95;
}

.mockup-gps-info strong { display: block; font-size: 0.9rem; }

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-primary, #fff);
    border-radius: var(--landing-card-radius-lg);
    padding: 2rem 1.75rem;
    border: 2px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--landing-shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-hover);
}

.pricing-card.is-popular {
    border-color: var(--landing-brand-violet);
    box-shadow: var(--landing-shadow-premium);
    transform: scale(1.02);
}

.pricing-card.is-popular:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--landing-gradient);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.pricing-price {
    margin: 1rem 0;
    line-height: 1;
}

.pricing-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--landing-brand-primary);
    letter-spacing: -0.02em;
}

.pricing-price-period {
    font-size: 0.95rem;
    color: var(--text-secondary, #6b7280);
    font-weight: 500;
}

.pricing-pitch {
    font-size: 0.95rem;
    color: var(--text-secondary, #6b7280);
    margin-bottom: 1.5rem;
    min-height: 2.8em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-primary, #1f2937);
    line-height: 1.45;
}

.pricing-features li i {
    color: var(--color-success, #10b981);
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1rem;
}

.pricing-cta {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 150ms ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.pricing-cta-primary {
    background: var(--landing-gradient);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.pricing-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
    color: #fff !important;
}

.pricing-cta-outline {
    background: transparent;
    color: var(--landing-brand-primary) !important;
    border-color: var(--landing-brand-primary);
}

.pricing-cta-outline:hover {
    background: rgba(37, 99, 235, 0.08);
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.pricing-note a {
    color: var(--landing-brand-primary);
    font-weight: 600;
}

/* ============================================
   SECTION ROADMAP
   ============================================ */

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.roadmap-column {
    background: var(--bg-primary, #fff);
    border-radius: var(--landing-card-radius);
    padding: 1.5rem;
    border-top: 4px solid;
    box-shadow: var(--landing-shadow-card);
}

.roadmap-column.is-recent { border-top-color: #10b981; }
.roadmap-column.is-current { border-top-color: #f59e0b; }
.roadmap-column.is-future { border-top-color: #764ba2; }

.roadmap-column-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.roadmap-column.is-recent .roadmap-column-label {
    background: rgba(16, 185, 129, 0.12); color: #047857;
}
.roadmap-column.is-current .roadmap-column-label {
    background: rgba(245, 158, 11, 0.12); color: #b45309;
}
.roadmap-column.is-future .roadmap-column-label {
    background: rgba(118, 75, 162, 0.12); color: #6b21a8;
}

.roadmap-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 1rem;
}

.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roadmap-list li {
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: var(--text-primary, #1f2937);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roadmap-list li:last-child { border-bottom: none; }

/* ============================================
   SECTION TRUST (4 badges)
   ============================================ */

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.trust-badge {
    background: var(--bg-primary, #fff);
    border-radius: var(--landing-card-radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--landing-shadow-card);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--landing-shadow-hover);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
}

.trust-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 0.5rem;
}

.trust-desc {
    font-size: 0.85rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.5;
    margin: 0;
}

.trust-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.trust-note a {
    color: var(--landing-brand-primary);
    font-weight: 600;
}

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

.landing-cta-final {
    background: var(--landing-gradient);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.landing-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 50%, rgba(255, 255, 255, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 75% 50%, rgba(255, 255, 255, 0.10) 0%, transparent 40%);
    pointer-events: none;
}

.landing-cta-final .container {
    position: relative;
    z-index: 2;
}

.cta-final-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-final-subtitle {
    font-size: 1.1rem;
    color: var(--landing-text-on-gradient-muted);
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

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

.public-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

.public-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.public-footer-brand i {
    color: var(--landing-brand-accent);
    font-size: 1.5rem;
}

.public-footer-pitch {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.public-footer-eu {
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.public-footer-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.public-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.public-footer-links li {
    margin-bottom: 0.55rem;
}

.public-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 150ms ease;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

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

.public-footer-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.public-footer-status .status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulseStatus 2s ease-in-out infinite;
}

.public-footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2.5rem 0 1.5rem;
}

.public-footer-copyright {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin: 0;
}

.public-footer-tagline {
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================
   DARK MODE — adaptations
   ============================================ */

/* Override des variables CSS root pour data-bs-theme="dark"
   (les vars de app.css ne changent que via prefers-color-scheme, pas via data-bs-theme).
   Ceci fixe TOUS les usages de var(--text-primary), var(--text-secondary), var(--bg-primary)
   dans landing.css en mode dark, même quand l'user force "dark" sans que le système soit en dark. */
[data-bs-theme="dark"] body.public-page {
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --bg-primary: #1a2235;
    --bg-secondary: #0e1525;
    background-color: #0b1220;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .public-header {
    background: rgba(11, 18, 32, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .public-header.is-scrolled {
    background: rgba(11, 18, 32, 0.95);
}

[data-bs-theme="dark"] .public-nav-links li a,
[data-bs-theme="dark"] .btn-public-login,
[data-bs-theme="dark"] .public-theme-btn,
[data-bs-theme="dark"] .public-burger {
    color: #e2e8f0;
}

/* Tous les titres et textes principaux sur cards */
[data-bs-theme="dark"] .landing-section-title,
[data-bs-theme="dark"] .feature-title,
[data-bs-theme="dark"] .why-text,
[data-bs-theme="dark"] .preview-card-title,
[data-bs-theme="dark"] .pricing-name,
[data-bs-theme="dark"] .pricing-features li,
[data-bs-theme="dark"] .roadmap-column-title,
[data-bs-theme="dark"] .roadmap-list li,
[data-bs-theme="dark"] .trust-title,
[data-bs-theme="dark"] .hero-mockup-card,
[data-bs-theme="dark"] .hero-mockup-vehicle-name,
[data-bs-theme="dark"] .hero-mockup-stat-value,
[data-bs-theme="dark"] .mockup-eco-info strong,
[data-bs-theme="dark"] .mockup-eco-kpis strong {
    color: #e2e8f0;
}

/* Textes secondaires (descriptions, labels, pitchs) */
[data-bs-theme="dark"] .landing-section-subtitle,
[data-bs-theme="dark"] .feature-desc,
[data-bs-theme="dark"] .preview-card-desc,
[data-bs-theme="dark"] .pricing-pitch,
[data-bs-theme="dark"] .pricing-price-period,
[data-bs-theme="dark"] .pricing-note,
[data-bs-theme="dark"] .trust-desc,
[data-bs-theme="dark"] .trust-note,
[data-bs-theme="dark"] .hero-mockup-vehicle-meta,
[data-bs-theme="dark"] .hero-mockup-stat-label,
[data-bs-theme="dark"] .hero-mockup-chart-label,
[data-bs-theme="dark"] .mockup-eco-info p,
[data-bs-theme="dark"] .mockup-eco-kpis div {
    color: #94a3b8;
}

/* Cards et conteneurs background */
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .why-card,
[data-bs-theme="dark"] .preview-card,
[data-bs-theme="dark"] .pricing-card,
[data-bs-theme="dark"] .roadmap-column,
[data-bs-theme="dark"] .trust-badge {
    background: #1a2235;
    border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .landing-section-alt {
    background: #0e1525;
}

/* Pricing populaire en dark — keep accent violet visible */
[data-bs-theme="dark"] .pricing-card.is-popular {
    border-color: #a78bfa;
}

/* Bouton CTA outline en dark — texte plus clair pour contraste */
[data-bs-theme="dark"] .pricing-cta-outline {
    color: #93c5fd !important;
    border-color: #93c5fd;
}

[data-bs-theme="dark"] .pricing-cta-outline:hover {
    background: rgba(147, 197, 253, 0.10);
    color: #bfdbfe !important;
}

/* Why card — fond problème/solution adapté dark mode */
[data-bs-theme="dark"] .why-problem {
    background: rgba(239, 68, 68, 0.12);
    border-left-color: rgba(248, 113, 113, 0.55);
}

[data-bs-theme="dark"] .why-solution {
    background: rgba(16, 185, 129, 0.12);
    border-left-color: rgba(52, 211, 153, 0.55);
}

[data-bs-theme="dark"] .why-problem .why-label { color: #fca5a5; }
[data-bs-theme="dark"] .why-solution .why-label { color: #6ee7b7; }

/* Roadmap labels en dark */
[data-bs-theme="dark"] .roadmap-column.is-recent .roadmap-column-label {
    background: rgba(16, 185, 129, 0.18); color: #6ee7b7;
}
[data-bs-theme="dark"] .roadmap-column.is-current .roadmap-column-label {
    background: rgba(245, 158, 11, 0.18); color: #fbbf24;
}
[data-bs-theme="dark"] .roadmap-column.is-future .roadmap-column-label {
    background: rgba(167, 139, 250, 0.18); color: #c4b5fd;
}

/* Hero mockup en dark */
[data-bs-theme="dark"] .hero-mockup-card {
    background: linear-gradient(160deg, #1a2235 0%, #0e1525 100%);
}

[data-bs-theme="dark"] .hero-mockup-stat,
[data-bs-theme="dark"] .hero-mockup-chart,
[data-bs-theme="dark"] .mockup-eco,
[data-bs-theme="dark"] .mockup-chat,
[data-bs-theme="dark"] .mockup-eco-kpis div {
    background: #1a2235;
    border-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .mockup-chat-bubble.assistant {
    background: #0e1525;
    border-color: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .mockup-chat-bubble.assistant strong {
    color: #93c5fd;
}

/* Pricing price amount — accent visible en dark */
[data-bs-theme="dark"] .pricing-price-amount {
    color: #93c5fd;
}

/* Border dividers en dark */
[data-bs-theme="dark"] .hero-mockup-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   RESPONSIVE — Mobile-first refinements
   ============================================ */

@media (max-width: 1199px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .roadmap-grid,
    .preview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    :root {
        --landing-section-padding: 4rem 0;
    }

    .landing-hero {
        padding: 4rem 0 5rem;
        min-height: auto;
    }

    .hero-mockup {
        margin-top: 3rem;
    }

    .hero-mockup-card {
        max-width: 380px;
        margin: 0 auto;
    }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
    .pricing-card.is-popular { transform: none; }
    .pricing-card.is-popular:hover { transform: translateY(-4px); }
    .roadmap-grid { grid-template-columns: 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    :root {
        --landing-section-padding: 3rem 0;
    }

    .landing-hero {
        padding: 3rem 0 4rem;
    }

    .hero-ctas { gap: 0.5rem; }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .why-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

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

    .cta-final-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .public-footer-top {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .features-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }

    .landing-section-header {
        margin-bottom: 2.5rem;
    }

    .hero-mockup-card {
        transform: rotateY(0) rotateX(0);
        padding: 1.25rem;
    }

    @keyframes heroFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    .pricing-card { padding: 1.5rem 1.25rem; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .hero-mockup-card,
    .hero-mockup-status::before,
    .public-footer-status .status-dot {
        animation: none;
    }

    .landing-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .feature-card:hover,
    .pricing-card:hover,
    .preview-card:hover,
    .why-card:hover,
    .trust-badge:hover,
    .btn-hero-primary:hover,
    .btn-public-register:hover {
        transform: none;
    }
}
