/* Site vitrine Tenly : même identité que l'application (indigo, cartes arrondies, boutons pilule). Aucune police ni ressource externe. */
:root {
  --brand: #4f46e5; --brand-strong: #3d34c9; --brand-soft: #eef0ff; --coral: #ff8a65;
  --ink: #0e1325; --muted: #5b6475; --canvas: #f4f5f9; --line: #e6e8ee; --white: #fff;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--brand-strong); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; }
.btn-ghost:hover { border-color: #cfd3dc; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; min-height: 44px; padding: 0 18px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Accroche */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #e9e7ff 0%, transparent 60%), var(--canvas); padding: 72px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero { padding: 48px 0 56px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Téléphone illustratif (pure CSS, données fictives) */
.phone { width: min(320px, 100%); margin: 0 auto; background: var(--canvas); border: 10px solid #11152a; border-radius: 42px; padding: 18px 14px; box-shadow: 0 30px 60px rgba(30,27,75,.25); }
.phone .bar { display: flex; align-items: center; justify-content: space-between; font-weight: 800; letter-spacing: -.03em; font-size: 18px; margin-bottom: 14px; }
.phone .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 600; }
.balance { border-radius: 22px; padding: 18px; color: #fff; background: linear-gradient(135deg, #6d63ff, #4f46e5 45%, #3027a8); }
.balance small { opacity: .8; font-size: 12px; }
.balance strong { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.2; }
.balance .track { height: 7px; border-radius: 9px; background: rgba(255,255,255,.25); margin: 12px 0 8px; overflow: hidden; }
.balance .track span { display: block; height: 7px; width: 72%; background: #fff; border-radius: 9px; }
.balance .row { display: flex; justify-content: space-between; font-size: 12px; opacity: .9; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; text-align: center; font-size: 10px; font-weight: 600; }
.quick span { display: grid; place-items: center; height: 46px; border-radius: 14px; background: #fff; color: var(--brand); margin-bottom: 4px; font-size: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.todo { background: #fff; border-radius: 18px; padding: 12px; font-size: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.todo div { display: flex; align-items: center; gap: 10px; padding: 7px 4px; }
.todo i { width: 28px; height: 28px; border-radius: 50%; background: #fff6e5; display: grid; place-items: center; font-style: normal; flex: none; }
.todo b { display: block; font-size: 12.5px; }
.todo em { font-style: normal; color: var(--muted); font-size: 11px; }

/* Sections */
section { padding: 84px 0; }
.alt { background: var(--canvas); }
.kicker { color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; margin: 10px 0 14px; }
.sub { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 40px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: #fff; border: 1px solid rgba(16,24,40,.05); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.steps { counter-reset: s; }
.steps .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 15px; margin-right: 10px; }
.who li { margin: 8px 0; }

/* Tarifs */
.price { display: flex; flex-direction: column; gap: 6px; }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price ul { padding: 0; margin: 12px 0 18px; list-style: none; color: var(--muted); }
.price li { padding: 5px 0 5px 26px; position: relative; }
.price li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.featured { border: 2px solid var(--brand); position: relative; }
.featured .tag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.note { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* FAQ */
details { background: #fff; border-radius: 18px; padding: 18px 22px; margin: 10px 0; box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Appel final + pied */
.final { background: linear-gradient(135deg, #6d63ff, #4f46e5 45%, #3027a8); color: #fff; border-radius: 28px; padding: 52px 28px; text-align: center; }
.final h2 { color: #fff; }
.final p { opacity: .85; max-width: 560px; margin: 0 auto 26px; }
.final .btn { background: #fff; color: var(--brand-strong); }
.final .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Pages légales */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 22px; margin-top: 34px; }
.legal p, .legal li { color: #374151; }

.narrow { max-width: 820px; }
.center { justify-content: center; }

/* Outils gratuits (quittance, IRL, relances) */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.form { display: grid; gap: 14px; }
.form fieldset { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 0; display: grid; gap: 12px; background: #fff; }
.form legend { font-weight: 700; padding: 0 6px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; font-weight: 400; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f9fafb; color: var(--ink); width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc h2 { white-space: normal; font-size: 22px; margin: 0 0 16px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; white-space: normal; }
.doc td { border-top: 1px solid var(--line); padding: 8px 4px; }
.doc td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.doc tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions button { font: inherit; cursor: pointer; border: 0; }
.result { background: var(--brand-soft); border-radius: 18px; padding: 22px; }
.result .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--brand-strong); }
.warn { background: #fff6e5; border-radius: 14px; padding: 12px 14px; color: #8a4b08; font-size: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { font: inherit; font-size: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.cta-band { margin-top: 40px; background: var(--brand-soft); border-radius: 22px; padding: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; max-width: 620px; }
.irl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.irl-table th, .irl-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.irl-table td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }
.seo h2 { font-size: 26px; margin-top: 44px; }
.seo p, .seo li { color: #374151; }
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; border: 0; box-shadow: none; padding: 0; }
  .top { display: none; }
}
.page { padding-top: 36px; padding-bottom: 60px; }
a.card { display: block; text-decoration: none; transition: transform .15s; }
a.card:hover { transform: translateY(-2px); }
[hidden] { display: none !important; }
