/* Combien coûte mon app ? : feuille de style commune
   Direction : papier clair, encre, un seul accent orange (celui du point du logo). */
:root {
    --paper: #FAFAF7;
    --surface: #FFFFFF;
    --ink: #111827;
    --ink-2: #334155;
    --muted: #5B6472;
    --line: #E3E5E8;
    --accent: #FF5C35;
    --accent-press: #F04A22;
    --accent-deep: #B93A0E;
    --accent-soft: #FFF1EA;
    --radius: 16px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 12px 28px -16px rgba(17, 24, 39, .28);
}
html { scroll-behavior: smooth; }
body.page { background: var(--paper); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
input, textarea { caret-color: var(--accent); }
@media (pointer: fine) {
    html { scrollbar-color: #C4C8CE var(--paper); }
}

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; border-radius: 12px; padding: 15px 24px; line-height: 1.2; transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s; cursor: pointer; text-decoration: none; }
.btn i { transition: transform .2s var(--ease-out); }
.btn:hover i { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 22px -12px rgba(255, 92, 53, .9); }
.btn-primary:hover { background: var(--accent-press); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1F2937; transform: translateY(-2px); }
.btn-ghost { color: var(--ink); padding-left: 4px; padding-right: 4px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn-lg { font-size: 1.1rem; padding: 18px 28px; }

/* --- Navigation --- */
.site-nav { background: rgba(250, 250, 247, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-nav-in { max-width: 1160px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-nav-logo img { height: 26px; width: auto; display: block; }
@media (min-width: 640px) { .site-nav-logo img { height: 34px; } }
.site-nav-links { display: none; align-items: center; gap: 28px; font-weight: 600; font-size: .97rem; }
.site-nav-links a { color: var(--ink-2); padding: 6px 0; background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: background-size .3s var(--ease-out), color .2s; }
.site-nav-links a:hover, .site-nav-links a[aria-current="page"] { color: var(--ink); background-size: 100% 2px; }
.site-nav-links a.btn { padding: 11px 18px; font-size: .95rem; background: var(--accent); color: var(--ink); }
.site-nav-links a.btn:hover { background: var(--accent-press); }
@media (min-width: 900px) { .site-nav-links { display: flex; } .site-nav-menu { display: none; } }
.site-nav-menu { position: relative; }
.site-nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 1.1rem; }
.site-nav-menu summary::-webkit-details-marker { display: none; }
.site-nav-menu nav { position: absolute; right: 0; top: 52px; width: min(280px, calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: grid; }
.site-nav-menu nav a { padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.site-nav-menu nav a:hover, .site-nav-menu nav a[aria-current="page"] { background: var(--accent-soft); }
.site-nav-menu nav .btn { margin-top: 6px; }

/* --- Pied de page --- */
.site-footer { background: var(--ink); color: #CBD5E1; margin-top: 88px; }
.site-footer-in { max-width: 1160px; margin: 0 auto; padding: 56px 20px 32px; display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .site-footer-in { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.site-footer img { height: 30px; width: auto; }
.site-footer p { font-size: .95rem; line-height: 1.6; max-width: 30em; margin-top: 14px; color: #A3AEC0; }
.site-footer h2 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 9px; font-size: .95rem; }
.site-footer a { color: #CBD5E1; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.site-footer-legal { border-top: 1px solid #1F2937; max-width: 1160px; margin: 0 auto; padding: 20px; font-size: .85rem; color: #8B97A8; }

/* --- Mise en page générale --- */
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.section { padding-top: 88px; }
.h-display { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.h-section { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; max-width: 20em; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- Apparition au défilement --- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .btn i { transition: none; }
}

/* --- Accueil : en-tête --- */
.hero { display: grid; gap: 44px; align-items: center; padding-top: 56px; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; padding-top: 80px; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .95rem; color: var(--muted); }
.hero-proof i { color: var(--accent-deep); margin-right: 6px; }

/* Aperçu interactif du simulateur */
.demo { padding: 26px; position: relative; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.demo-head p { font-weight: 800; font-size: 1.05rem; }
.demo-head span { font-size: .85rem; color: var(--muted); }
.demo-list { display: grid; gap: 8px; }
.demo-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); user-select: none; }
.demo-opt:hover { border-color: var(--ink); }
.demo-opt input { position: absolute; opacity: 0; pointer-events: none; }
.demo-opt .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #AEB4BD; display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .25s var(--ease-out); }
.demo-opt .box i { font-size: 11px; color: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s var(--ease-out); }
.demo-opt .name { flex: 1; font-weight: 600; }
.demo-opt .price { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.demo-opt:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); }
.demo-opt:has(input:checked) .box { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.demo-opt:has(input:checked) .box i { opacity: 1; transform: none; }
.demo-opt:has(input:checked) .price { color: var(--ink); font-weight: 700; }
.demo-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.demo-opt.is-fixed { cursor: default; background: #F4F5F6; border-style: dashed; }
.demo-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-total .label { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.demo-total .amount { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.demo .btn { width: 100%; margin-top: 18px; }
.demo-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* Chiffres */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 72px; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { padding: 24px 16px; }
.facts div + div { border-left: 1px solid var(--line); }
@media (max-width: 799px) { .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.facts dt { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts dd { color: var(--muted); font-size: .95rem; margin-top: 2px; }

/* Étapes */
.steps { display: grid; gap: 28px; margin-top: 36px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--accent-deep); line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--ink-2); line-height: 1.6; }

/* Exemples de budgets */
.budgets { margin-top: 32px; border-top: 1px solid var(--line); }
.budget { display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .3s var(--ease-out), background-color .3s; }
@media (min-width: 800px) { .budget { grid-template-columns: 220px minmax(0, 1fr) auto; } }
.budget:hover { background: var(--surface); padding-left: 16px; padding-right: 16px; }
.budget .amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.budget h3 { font-weight: 800; font-size: 1.15rem; }
.budget p { color: var(--ink-2); line-height: 1.55; margin-top: 2px; }
.budget .go { font-weight: 700; white-space: nowrap; color: var(--ink); }
.budget .go i { color: var(--accent-deep); margin-left: 6px; transition: transform .2s var(--ease-out); }
.budget:hover .go i { transform: translateX(4px); }

/* Cartes de guides */
.guides { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 32px; }
.guide-link { display: flex; flex-direction: column; padding: 24px; transition: transform .25s var(--ease-out), border-color .2s; }
.guide-link:hover { transform: translateY(-4px); border-color: var(--ink); }
.guide-link .cat { font-size: .85rem; font-weight: 700; color: var(--accent-deep); }
.guide-link .t { font-size: 1.12rem; font-weight: 800; line-height: 1.3; margin: 8px 0; }
.guide-link .s { color: var(--muted); line-height: 1.55; font-size: .97rem; flex: 1; }

/* Questions fréquentes */
.faq { margin-top: 28px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--accent-deep); border-bottom: 2.5px solid var(--accent-deep); transform: rotate(45deg); transition: transform .3s var(--ease-out); margin-right: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }
.faq .answer p + p, .faq .answer ul { margin-top: 10px; }
.faq .answer ul { list-style: disc; padding-left: 1.2em; }
.faq .answer li { margin-bottom: 4px; }
.faq .answer a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Bloc final */
.closing { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .closing { grid-template-columns: minmax(0, 1fr) auto; } }
.closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.closing p { color: #CBD5E1; font-size: 1.1rem; line-height: 1.6; margin-top: 12px; max-width: 34em; }

/* --- Pages historiques : neutralise l'ancien habillage (dégradé animé, verre) --- */
body.page .glass-card, body.page .glass-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--line); box-shadow: var(--shadow); }
body.page .pulse-glow { animation: none; box-shadow: none; }

/* Pages de contenu simples (à propos, méthode) */
.doc-page { background: #FAFAF7; color: #111827; }
.doc-wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; }
.doc-h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.doc-intro { font-size: 1.2rem; line-height: 1.65; color: #334155; margin-top: 18px; }
.doc-meta { margin-top: 18px; font-size: 14px; color: #64748B; }
.doc-body { margin-top: 44px; font-size: 1.075rem; line-height: 1.8; color: #1F2937; }
.doc-body h2 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: #111827; margin: 52px 0 16px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p { margin: 0 0 18px; }
.doc-body ul { list-style: disc; margin: 0 0 20px; padding-left: 1.3em; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: #FF5C35; }
.doc-body a { color: #111827; font-weight: 600; text-decoration: underline; text-decoration-color: #FF5C35; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-body a:hover { color: #C2410C; }
.doc-table { width: 100%; overflow-x: auto; margin: 8px 0 26px; border: 1px solid #E5E7EB; border-radius: 14px; background: #fff; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.5; }
.doc-table th { text-align: left; font-weight: 700; background: #F3F4F6; padding: 12px 16px; }
.doc-table td { padding: 12px 16px; border-top: 1px solid #E5E7EB; vertical-align: top; }
.doc-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 8px 0 28px; }
.doc-facts div { background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; padding: 18px 20px; }
.doc-facts strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; color: #111827; line-height: 1.1; }
.doc-facts span { font-size: .95rem; color: #64748B; }
.doc-end { background: #111827; color: #fff; border-radius: 24px; padding: 40px 28px; text-align: center; margin-top: 56px; }
.doc-end h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; color: #fff; }
.doc-end p { color: #CBD5E1; max-width: 34em; margin: 0 auto 24px; line-height: 1.6; }
.doc-btn { display: inline-flex; align-items: center; gap: 10px; background: #FF5C35; color: #111827; font-weight: 800; padding: 14px 22px; border-radius: 12px; transition: transform .15s ease, background .15s ease; }
.doc-btn:hover { background: #E8471F; transform: translateY(-2px); }
.guide-meta a, .guide-author a { color: #111827; font-weight: 600; text-decoration: underline; text-decoration-color: #FF5C35; text-underline-offset: 3px; }
.guide-author { margin-top: 48px; padding: 22px 24px; background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; font-size: 1rem; line-height: 1.65; color: #334155; }
.guide-author strong { color: #111827; }
