/*
 * style.css — PhiloGest · Feuille de style principale
 * Marque : violet électrique #6d28d9 + rose fuchsia #db2777
 * Typographie : Plus Jakarta Sans (Google Fonts)
 * ──────────────────────────────────────────────────────────────────────────
 */

/* ═══ 1. Variables CSS ══════════════════════════════════════════════════════ */
:root {
    /* Palette principale */
    --bg-light:         #ffffff;
    --bg-subtle:        #f8fafc;
    --bg-accent-soft:   #f5f3ff;
    --primary:          #6d28d9;
    --primary-hover:    #5b21b6;
    --primary-light:    #a78bfa;
    --primary-glow:     rgba(109, 40, 217, 0.15);
    --secondary:        #db2777;
    --text-main:        #0f172a;
    --text-muted:       #64748b;
    --border:           #e2e8f0;
    --border-accent:    rgba(109, 40, 217, 0.2);
    --success:          #10b981;
    --warning:          #f59e0b;
    --danger:           #ef4444;

    /* Espacement */
    --section-pad:      6rem;
    --radius-card:      12px;
    --radius-lg:        16px;
    --radius-pill:      50px;

    /* Ombres */
    --shadow-card:      0 10px 25px rgba(109, 40, 217, 0.04);
    --shadow-lifted:    0 20px 45px rgba(15, 23, 42, 0.04);
    --shadow-modal:     0 30px 60px rgba(109, 40, 217, 0.15);
}

/* ═══ 2. Reset & Base ═══════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 5% 10%, rgba(109, 40, 217, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 95% 80%, rgba(219, 39, 119, 0.04) 0%, transparent 30%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

ul {
    list-style: none;
}

/* ═══ 3. Utilitaires ════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ═══ 4. Navigation ═════════════════════════════════════════════════════════ */
body > header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-icon-fallback {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
    flex-shrink: 0;
}

.logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    position: absolute;
    left: calc(50% + 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(-50%);
}

.nav-primary,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-primary {
    gap: 2rem;
}

.nav-actions {
    gap: 1.5rem;
}

.nav-links a {
    white-space: nowrap;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.nav-login {
    font-weight: 700 !important;
    color: var(--primary) !important;
    margin-right: 0.5rem;
}

/* Menu hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ═══ 5. Boutons ════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.2);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.35);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

.btn-outline {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--bg-accent-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
}

.btn-mini {
    background: var(--bg-accent-soft);
    color: var(--primary);
    border: 1px solid var(--border-accent);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-mini:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ═══ 6. Sections communes ══════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grilles génériques */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Cartes génériques */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: var(--radius-card);
    transition: all 0.3s ease;
    position: relative;
    text-align: left;
}

.card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-accent-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ═══ 7. Hero ═══════════════════════════════════════════════════════════════ */
.hero {
    padding: var(--section-pad) 0 5rem 0;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-accent-soft);
    color: var(--primary);
    border: 1px solid rgba(109, 40, 217, 0.15);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    max-width: 950px;
    margin: 0 auto 1.5rem auto;
    color: var(--text-main);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p.tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
    line-height: 1.5;
}

.hero p.tagline strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.hero-reassurance {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══ 8. Pilliers (Méthode) ═════════════════════════════════════════════════ */
.pillars {
    padding: var(--section-pad) 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ═══ 9. Tableau de Bord ════════════════════════════════════════════════════ */
.dashboard-section {
    padding: var(--section-pad) 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.dashboard-desc {
    text-align: left;
}

.dashboard-desc h2 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.dashboard-desc p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dashboard-mockup-frame {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lifted);
    text-align: left;
}

.dashboard-mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-mockup-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ═══ 10. Todo List ══════════════════════════════════════════════════════════ */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.todo-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.todo-item:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.todo-item.completed .todo-checkbox {
    background: var(--success);
    border-color: var(--success);
}

.todo-item.completed .todo-checkbox::after {
    content: "✓";
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
}

.todo-content { flex-grow: 1; }

.todo-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.todo-tag {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.todo-tag.urgent   { background: #fef2f2; color: #ef4444; }
.todo-tag.done     { background: #ecfdf5; color: #10b981; }
.todo-tag.incoming { background: #fffbeb; color: #f59e0b; }

/* ═══ 11. Section BPF ═══════════════════════════════════════════════════════ */
.bpf-section {
    padding: var(--section-pad) 0;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.bpf-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bpf-mockup-frame {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lifted);
    text-align: left;
}

.bpf-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.bpf-stat-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.bpf-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.bpf-stat-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.3;
}

.bpf-cadres-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.bpf-cadre-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.bpf-cadre-info {
    display: flex;
    flex-direction: column;
}

.bpf-cadre-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-main);
}

.bpf-cadre-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.bpf-cadre-num {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    white-space: nowrap;
}

.bpf-badge-date {
    background: #ffe4e6;
    color: #be123c;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

/* ═══ 12. Documents PDF ══════════════════════════════════════════════════════ */
.generated-docs-section {
    padding: var(--section-pad) 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.doc-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.doc-list-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.2rem 1.8rem;
    text-align: left;
    transition: all 0.2s ease;
}

.doc-list-card:hover {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.doc-badge {
    background: var(--bg-accent-soft);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.doc-list-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.doc-list-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══ 13. Import / Export CSV ════════════════════════════════════════════════ */
.csv-feature-showcase {
    padding: var(--section-pad) 0;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.csv-showcase-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.csv-showcase-text h2 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

.csv-showcase-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.csv-feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.csv-feature-badge {
    background: var(--bg-accent-soft);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.csv-feature-desc h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.csv-feature-desc p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.csv-illustration-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(109, 40, 217, 0.02);
}

/* ═══ 14. Différence ════════════════════════════════════════════════════════ */
.difference-section {
    padding: var(--section-pad) 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.difference-punchline-row {
    text-align: center;
    margin-top: 3.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    background: var(--bg-accent-soft);
    padding: 1.2rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-accent);
}

.diff-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem 1.8rem;
    text-align: left;
    transition: all 0.3s ease;
}

.diff-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.diff-icon {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    background: #ffe4e6;
    color: #be123c;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.diff-card h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.diff-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ═══ 15. Gouvernance & Sécurité ════════════════════════════════════════════ */
.governance-section {
    padding: var(--section-pad) 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.gov-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.gov-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    background: var(--bg-subtle);
    text-align: left;
    display: flex;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.gov-card:hover {
    border-color: var(--primary-light);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.04);
    transform: translateY(-2px);
}

.gov-card-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.gov-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.gov-card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══ 16. Tarifs ════════════════════════════════════════════════════════════ */
.pricing-section {
    padding: var(--section-pad) 0;
    background: var(--bg-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    max-width: 850px;
    margin: 0 auto;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.05);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.08);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    padding: 0.3rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.pricing-price span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 0.4rem;
}

.pricing-engagement {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

.pricing-addon {
    max-width: 850px;
    margin: 2.5rem auto 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 1.5rem;
}

.pricing-addon h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.pricing-addon p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-addon-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.pricing-footer {
    text-align: center;
    margin-top: 3.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ═══ 17. FAQ ═══════════════════════════════════════════════════════════════ */
.faq-section {
    padding: var(--section-pad) 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    text-align: left;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-header {
    padding: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
    font-weight: 300;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.8rem;
    background: #ffffff;
}

.faq-item.active .faq-content {
    padding: 0 1.8rem 1.8rem 1.8rem;
    border-top: 1px solid var(--border);
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1.5rem;
}

.faq-answer strong {
    color: var(--primary);
}

/* ═══ 18. CTA Final (Basta) ═════════════════════════════════════════════════ */
.basta {
    padding: var(--section-pad) 0;
    background: linear-gradient(135deg, var(--primary) 0%, #4c1d95 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.basta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(219,39,119,0.15) 0%, transparent 40%);
    pointer-events: none;
}

.basta h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    position: relative;
}

.basta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    color: #ddd6fe;
    position: relative;
}

/* ═══ 19. Footer ════════════════════════════════════════════════════════════ */
footer {
    background: #0b071e;
    padding: 5rem 0 3rem 0;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 450px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-contact h4,
.footer-features h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.footer-contact a,
.footer-features a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover,
.footer-features a:hover {
    color: #ffffff;
}

.footer-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-features li {
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.footer-features a {
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

/* ── Bouton retour en haut ───────────────────────────────────────────────── */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(109, 40, 217, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #5b21b6;
    transform: translateY(-2px);
}

.scroll-top-btn:focus-visible {
    outline: 3px solid rgba(109, 40, 217, 0.3);
    outline-offset: 3px;
}

.scroll-top-btn i {
    font-size: 0;
    font-style: normal;
    line-height: 1;
}

.scroll-top-btn i::before {
    content: '↑';
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
}

@media (max-width: 1120px) and (min-width: 901px) {
    .nav-links {
        position: static;
        left: auto;
        flex: 1;
        justify-content: flex-end;
        gap: 1.15rem;
        transform: none;
    }

    .nav-primary {
        gap: 1.15rem;
    }

    .nav-actions {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .btn-nav {
        padding: 0.55rem 0.85rem;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
        transform: none;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-primary,
    .nav-actions {
        position: static;
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        transform: none;
    }

    .nav-login {
        margin-right: 0;
    }

    .nav-links .btn-nav {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ═══ 20. Modales ═══════════════════════════════════════════════════════════ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-modal);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

.modal-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.modal-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg-subtle);
    margin-bottom: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}

/* Modale légale */
.legal-modal-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 800px;
    width: 100%;
    height: 85vh;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    position: relative;
}

.legal-modal-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--bg-accent-soft);
    padding-bottom: 0.5rem;
}

.legal-modal-content h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.legal-modal-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.legal-modal-content p,
.legal-modal-content li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.legal-modal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.close-legal-btn {
    position: sticky;
    bottom: 0;
    display: block;
    margin: 2rem 0 0 auto;
    background: var(--text-main);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.close-legal-btn:hover {
    background: var(--primary);
}

/* ═══ 21. Callout info (inline) ════════════════════════════════════════════ */
.callout-info {
    background: var(--bg-accent-soft);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ═══ Aperçus réels de l'application ═══════════════════════════════════════ */
.app-screenshot-frame {
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.app-screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.app-screenshot-frame figcaption {
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    background: var(--bg-subtle);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.app-screenshot-frame--wide {
    transform: perspective(1200px) rotateY(-1deg);
}

/* ═══ 22. Responsive ════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .hero h1              { font-size: 2.8rem; }
    .section-header h2    { font-size: 2rem; }

    .grid-3,
    .grid-4,
    .pricing-grid,
    .csv-showcase-grid,
    .dashboard-layout,
    .bpf-layout,
    .doc-list-grid,
    .gov-cards-grid,
    .footer-grid          { grid-template-columns: 1fr; }

    .bpf-layout           { direction: ltr; }
    .bpf-layout > *:first-child { order: 2; }
    .bpf-layout > *:last-child  { order: 1; }

    .gov-card             { padding: 1.8rem; }
    .pricing-addon        { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .footer-grid          { gap: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --section-pad: 4rem; }

    .hero              { padding: 4rem 0 3.5rem 0; }
    .hero h1           { font-size: 2.2rem; }
    .hero p.tagline    { font-size: 1.1rem; }
    .basta h2          { font-size: 2rem; }

    /* Mobile nav */
    .nav-toggle        { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    }
    .nav-links.nav-open { display: flex; }
    .nav-links .btn-nav { width: 100%; justify-content: center; }

    .modal-content     { padding: 2rem 1.5rem; }
    .bpf-stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid      { grid-template-columns: 1fr; }
    .gov-cards-grid    { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1           { font-size: 1.9rem; }
    .hero-reassurance  { flex-direction: column; align-items: center; gap: 0.5rem; }
    .container         { padding: 0 1rem; }
    .pricing-card      { padding: 2rem 1.5rem; }
    .faq-question      { font-size: 0.95rem; }
    .bpf-stats-grid    { grid-template-columns: 1fr; }
}

/* ═══ 23. Accessibilité & Réduction de mouvement ════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

/* ═══ 24. Print ════════════════════════════════════════════════════════════ */
@media print {
    header, footer, .modal, .basta, .scroll-top-btn { display: none; }
    body { background: #fff; color: #000; }
}

/* ═══════════════════════════════════════════════
   FONCTIONNALITÉS
═══════════════════════════════════════════════ */

.features-section{
    padding:7rem 0;
    background:var(--bg-subtle);
}

.features-section .card{
    height:100%;
}

.features-section h3{
    margin-bottom:1rem;
    font-size:1.15rem;
}

.features-section ul{
    margin:0;
    padding-left:1.2rem;
}

.features-section li{
    margin-bottom:.55rem;
    color:var(--text-muted);
    line-height:1.5;
}

.features-section li:last-child{
    margin-bottom:0;
}