/* BonBudget — site explicatif. Aucune dépendance, aucune police externe, aucun traceur. */
:root {
  --primary: #1f5f57; --primary-dark: #0f3d38; --primary-soft: #e3efec; --accent: #c9762b; --accent-soft: #fbeedd;
  --bg: #f5f3ee; --card: #ffffff; --ink: #1c2321; --muted: #5d6965; --line: #ddd9cf;
  --radius: 16px; --shadow: 0 10px 30px rgba(15, 61, 56, .12); --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 3px; border-radius: 6px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--primary); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: .5rem .8rem; border-radius: 10px; font-size: .97rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 22px 18px; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Boutons */
.btn { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; padding: .85rem 1.5rem; border-radius: 12px; border: 2px solid var(--primary); cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .12s, background .12s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.btn-light { background: #fff; color: var(--primary-dark); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* Sections */
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 800; color: var(--accent); margin-bottom: .8rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.dark .eyebrow { color: #f2b26b; }
.dark .lead { color: #d3e6e2; }

/* Héros */
.hero { padding: 64px 0 40px; background: radial-gradient(1100px 500px at 85% -10%, #dcece8 0%, transparent 60%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 62%, #f2b26b88 62%); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.hero small { color: var(--muted); }
.hero-shot { position: relative; padding-bottom: 40px; }
.hero-shot .browser { transform: rotate(-1deg); }
.hero-shot .phone { position: absolute; right: -10px; bottom: -6px; width: 27%; transform: rotate(3deg); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-shot { max-width: 560px; margin: 10px auto 0; } }

/* Cadres d'appareils */
.browser { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #ece9e1; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9c4b8; display: block; }
.phone { background: #111; border-radius: 28px; padding: 7px; box-shadow: var(--shadow); }
.phone img { border-radius: 22px; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Bandeau de confiance */
.strip { padding: 28px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.strip b { display: block; }
.strip span.ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 1.2rem; }
@media (max-width: 860px) { .strip ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .strip ul { grid-template-columns: 1fr; } }

/* Cartes */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.card .browser { margin-top: 18px; box-shadow: none; }
.dark .card { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
@media (max-width: 960px) { .cards, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.four, .cards.two { grid-template-columns: 1fr; } }

/* Mise en avant alternée */
.spot { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 34px 0; }
.spot.rev { grid-template-columns: 1.15fr 1fr; }
.spot.rev .spot-text { order: 2; }
.spot-phone { max-width: 300px; margin: 0 auto; }
.spot ul { padding-left: 1.2em; margin: 0 0 1em; }
.spot li { margin-bottom: .45em; }
.tag { display: inline-block; background: var(--accent-soft); color: #8a4a12; font-weight: 700; font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; margin-bottom: 1rem; }
@media (max-width: 860px) { .spot, .spot.rev { grid-template-columns: 1fr; gap: 24px; } .spot.rev .spot-text { order: 0; } }

/* Étapes */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; text-align: left; }
.steps li { list-style: none; counter-increment: s; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #f2b26b; color: #3b2208; font-weight: 800; margin-bottom: 12px; }
.steps { padding: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; margin: 34px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); }

/* Inscription */
.signup { max-width: 560px; margin: 28px auto 0; background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; text-align: left; box-shadow: var(--shadow); }
.signup label { display: block; font-weight: 700; margin: 0 0 6px; font-size: .95rem; }
.signup input[type=email], .signup select { width: 100%; padding: .8rem .9rem; font-size: 1rem; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 16px; font-family: inherit; background: #fff; color: var(--ink); }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.signup .check input { margin-top: .3em; width: 18px; height: 18px; flex: none; }
.signup .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: .8rem 1rem; border-radius: 10px; margin-top: 14px; font-weight: 600; }
.msg.ok { background: #e1f3e8; color: #17613a; }
.msg.err { background: #fbe4e1; color: #912f25; }

/* Pages de texte */
.page-head { padding: 64px 0 20px; }
.prose { max-width: 740px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 10px; margin: 1.4em 0; }
.note.demo { background: var(--primary-soft); border-color: var(--primary); }
mark { background: #fff1a8; padding: 0 .25em; border-radius: 4px; }
.grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.grid-feat .card { padding: 22px; }
.grid-feat h3 { font-size: 1.05rem; }
@media (max-width: 900px) { .grid-feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-feat { grid-template-columns: 1fr; } }

/* Pied de page */
footer { background: #17201e; color: #c8d3d0; padding: 48px 0 32px; font-size: .95rem; }
footer a { color: #e6f0ee; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; margin: 0 0 .7em; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: .4em; }
footer .brand { color: #fff; }
footer .fine { margin-top: 30px; padding-top: 18px; border-top: 1px solid #2c3a37; color: #93a39f; font-size: .85rem; }
@media (max-width: 700px) { footer .cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Utilitaires (pas d'attribut style : la politique de sécurité du site l'interdit) */
.mt14 { margin-top: 14px; } .mt28 { margin-top: 28px; } .mt30 { margin-top: 30px; } .mt36 { margin-top: 36px; }
section.pt30 { padding-top: 30px; } section.pt20 { padding-top: 20px; } section.pt0 { padding-top: 0; } .spot.pt10 { padding-top: 10px; } .spot.pt0 { padding-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.phone-center { max-width: 300px; margin: 36px auto 0; }

.nav a.btn { color: #fff; } .nav a.btn:hover { background: var(--primary-dark); color: #fff; }
.wrap.prose { max-width: var(--max); }
.wrap.prose > * { max-width: 740px; }
.wrap.prose.mx-auto > * { margin-left: auto; margin-right: auto; }
.wrap.prose > .spot { max-width: none; }

/* SEO / guides */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--primary); }
.meta { color: var(--muted); font-size: .9rem; }
.h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.shot { margin: 1.6rem 0; }
.prose ol { padding-left: 1.3em; }
.prose ol li { margin-bottom: .5em; }
.card h3 a, .card .h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .card .h3 a:hover { color: var(--primary); text-decoration: underline; }
