/* ============================================
   FLOTLY — Site Vitrine
   Design system identique a flotly-app
   ============================================ */

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #eff6ff;
    --primary-ring: rgba(59, 130, 246, 0.15);

    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --info: #0ea5e9;
    --info-light: #f0f9ff;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;

    --surface: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ---- Navbar ---- */
.navbar-flotly {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    transition: box-shadow 0.3s var(--ease);
    z-index: 1050;
}

.navbar-flotly.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-flotly .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
}

.navbar-flotly .brand-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
}

.navbar-flotly .nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.15s var(--ease);
}

.navbar-flotly .nav-link:hover,
.navbar-flotly .nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-flotly {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-flotly-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 7px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.btn-flotly-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
}

.btn-flotly-white {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-flotly-white:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, var(--surface) 0%, #e2e8f0 50%, var(--border-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-visual {
    position: relative;
}

.hero-mockup {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    padding: 20px;
    position: relative;
}

.hero-mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.hero-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.hero-mockup-dot.red { background: #ef4444; }
.hero-mockup-dot.yellow { background: #f59e0b; }
.hero-mockup-dot.green { background: #10b981; }

.hero-mockup-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    min-height: 260px;
}

.hero-mockup-sidebar {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 12px;
}

.hero-mockup-sidebar-item {
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-mockup-sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.hero-mockup-content {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
}

.hero-mockup-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin: 4px;
}

.hero-mockup-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-mockup-stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.hero-mockup-stat-icon.green { background: var(--success-light); color: var(--success); }
.hero-mockup-stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.hero-mockup-stat-icon.orange { background: var(--warning-light); color: var(--warning); }

.hero-mockup-stat-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1;
}

.hero-mockup-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
}

/* ---- Sections ---- */
.section {
    padding: 80px 0;
}

.section-surface {
    background: var(--surface);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

/* ---- Feature Cards ---- */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s var(--ease);
    height: 100%;
}

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

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.feature-card-icon.blue { background: var(--primary-light); color: var(--primary); }
.feature-card-icon.green { background: var(--success-light); color: var(--success); }
.feature-card-icon.purple { background: var(--purple-light); color: var(--purple); }
.feature-card-icon.orange { background: var(--warning-light); color: var(--warning); }
.feature-card-icon.red { background: #fef2f2; color: var(--danger); }
.feature-card-icon.cyan { background: var(--info-light); color: var(--info); }

.feature-card h4 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    margin: 0;
}

/* ---- Stats Section ---- */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- How it works ---- */
.step-card {
    text-align: center;
    padding: 24px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h4 {
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.875rem;
}

/* ---- Pricing Cards ---- */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: center;
    transition: all 0.3s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
}

.pricing-card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.pricing-card-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.pricing-card-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
    flex: 1;
}

.pricing-card-features li {
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card-features li:last-child {
    border-bottom: none;
}

.pricing-card-features li i {
    color: var(--success);
    font-size: 0.9rem;
}

/* ---- Testimonials ---- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
}

.testimonial-card .stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.testimonial-card blockquote {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}

.testimonial-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 50%, var(--purple) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

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

/* ---- FAQ ---- */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.15s var(--ease);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s var(--ease);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Contact Form ---- */
.contact-form .form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 6px;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.875rem;
    transition: all 0.15s var(--ease);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ring);
}

.contact-info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.contact-info-card i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-info-card h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* ---- Footer ---- */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer h5 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer a {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    display: block;
    padding: 4px 0;
    transition: color 0.15s var(--ease);
}

.footer a:hover {
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-brand span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ---- Page Header (sous-pages) ---- */
.page-header {
    background: linear-gradient(135deg, var(--surface) 0%, #e2e8f0 100%);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ---- Legal Page ---- */
.legal-content {
    padding: 60px 0;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content ul {
    padding-left: 20px;
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ---- Features page detail ---- */
.feature-detail {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-detail:last-child {
    border-bottom: none;
}

.feature-detail-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-detail-list {
    list-style: none;
    padding: 0;
}

.feature-detail-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-detail-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.feature-detail-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: 2.5rem; }
    .hero-visual { margin-top: 40px; }
    .section { padding: 60px 0; }
    .cta-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section { padding: 48px 0; }
    .pricing-card { padding: 28px; }
    .hero-mockup-body { grid-template-columns: 1fr; }
    .hero-mockup-sidebar { display: none; }
}

@media (max-width: 576px) {
    .hero { padding: 90px 0 48px; }
    .hero-title { font-size: 1.75rem; }
    .section { padding: 40px 0; }
    .feature-card { padding: 20px; }
    .stat-value { font-size: 2rem; }
}
