/* Outils, IRL and guide pages. Same « Registre » tokens as home.css; colors mirror app/src/shared/design/tokens.ts. */
@font-face {
  font-family: "Inter ML";
  src: url(/assets/fonts/inter-var-latin.woff2) format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #0C0F0D;
  --ink-2: #131815;
  --paper: #F7F9F6;
  --panel: #FFFFFF;
  --panel-muted: #F0F3F0;
  --citron: #DAE278;
  --citron-soft: #F0F4DE;
  --muted: #5E6269;
  --line: #DDE1DF;
  --hair: rgba(12, 15, 13, .08);
  --danger: #B3261E;
  --danger-soft: #FBEAE7;
  --on-ink: #F7F9F6;
  --on-ink-muted: rgba(247, 249, 246, .72);
  --wrap: 1240px;
  --column: 760px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-card: 20px;
  --r-field: 12px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter ML", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
::selection { background: var(--citron); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.column { width: min(100% - 2 * var(--gutter), var(--column)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--citron); color: var(--ink); padding: 12px 16px; border-radius: 12px; font-weight: 650; }
.skip:focus { top: 12px; }

/* ---------- Header and footer ---------- */
.site-header { border-bottom: 1px solid var(--hair); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo img { width: 68px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 550; }
.nav a { text-decoration: none; opacity: .82; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.badge { display: inline-block; border-radius: 10px; line-height: 0; }
.badge img { height: 52px; width: auto; }
.badge--sm img { height: 40px; }
@media (max-width: 760px) { .nav .nav-link, .nav .badge { display: none; } .nav-cta .nav .badge { display: inline-block; } }
.site-footer { margin-top: 96px; border-top: 1px solid var(--hair); padding: 48px 0 56px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.site-footer h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-block; padding: 10px 0; text-decoration: none; opacity: .8; }
.site-footer li a:hover { opacity: 1; text-decoration: underline; }
.site-footer .legal { margin-top: 36px; color: var(--muted); font-size: 14px; }

/* ---------- Page heading ---------- */
.crumbs { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { padding: 36px 0 8px; }
.kicker { margin: 0 0 14px; font-size: 14px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere; }
.lead { margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }
.updated { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Prose ---------- */
.prose { margin-top: 40px; }
.prose h2 { margin: 52px 0 14px; font-size: clamp(25px, 2.6vw, 31px); font-weight: 760; letter-spacing: -.03em; line-height: 1.2; text-wrap: balance; }
.prose h3 { margin: 30px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.prose p, .prose li { font-size: 18px; }
.prose p { margin: 14px 0 0; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 24px; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--muted); }
.prose a { text-decoration: underline; }
.prose blockquote { margin: 18px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--citron); color: var(--ink-2); }
.prose .source { font-size: 15px; color: var(--muted); }
.answer { margin: 28px 0 0; padding: 22px 24px; background: var(--citron-soft); border-radius: var(--r-card); font-size: 19px; }
.answer p { margin: 0; }
.formula { margin: 18px 0 0; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Tables ---------- */
.table-wrap { margin: 18px 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 16px 0; font-size: 14px; color: var(--muted); }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody th a { display: inline-block; padding: 12px 0; margin: -12px 0; font-weight: 600; }
@media (max-width: 640px) { th, td { padding: 12px; } }
/* Comparison tables become one card per row on phones. */
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; border: 0; padding: 4px 0; }
  .compare tbody th { font-size: 17px; padding-bottom: 6px; }
  .compare td::before { content: attr(data-label); display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
  .compare td + td { margin-top: 8px; }
}

/* ---------- Key figure ---------- */
.figure { margin: 32px 0 0; padding: 26px 26px 24px; background: var(--ink); color: var(--on-ink); border-radius: var(--r-card); }
.figure .label { margin: 0; font-size: 15px; color: var(--on-ink-muted); }
.figure .value { margin: 6px 0 0; font-size: clamp(48px, 8vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.figure .meta { margin: 12px 0 0; font-size: 16px; color: var(--on-ink-muted); }
.figure .meta strong { color: var(--on-ink); font-weight: 650; }

/* ---------- Tool form ---------- */
.tool { margin: 36px 0 0; padding: clamp(20px, 3vw, 32px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.tool fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.tool fieldset + fieldset { margin-top: 28px; }
.tool legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.tool fieldset + fieldset legend { padding-top: 24px; border-top: 1px solid var(--line); }
.tool legend + .fields { clear: both; }
.fields { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 16px; font-weight: 600; }
.field { align-content: start; }
.field .hint { font-size: 14px; color: var(--muted); line-height: 1.4; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  appearance: none;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.4; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--citron); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border: 2px solid var(--danger); }
.field [aria-invalid="true"]:focus { outline-color: var(--danger-soft); border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: 15px; font-weight: 600; line-height: 1.4; }
.amount { position: relative; }
.amount input { padding-right: 38px; }
.amount::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 24px;
  font: inherit; font-size: 17px; font-weight: 650;
  color: var(--ink); background: var(--citron);
  border: 0; border-radius: 12px; cursor: pointer; text-decoration: none;
}
.button:hover { filter: brightness(.97); }
.button[disabled] { opacity: .6; cursor: progress; }
.note { margin: 0; font-size: 15px; color: var(--muted); }
.status { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; font-size: 16px; }
.status:empty { display: none; }
.status.error { background: var(--danger-soft); color: var(--danger); }
.status.done { background: var(--citron-soft); }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } .field[aria-hidden="true"] { display: none; } .actions .button { width: 100%; } }

/* ---------- Calculator result ---------- */
.result { margin: 24px 0 0; padding: 22px 24px; border-radius: 16px; background: var(--citron-soft); }
.result[hidden] { display: none; }
.result .label { margin: 0; font-size: 15px; color: var(--muted); }
.result p { margin: 8px 0 0; }
.result > p:first-child { margin-top: 0; }
.result .note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); }
.result .big { margin: 4px 0 0; font-size: clamp(34px, 5vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result dl { margin: 16px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; font-size: 16px; }
.result dt { color: var(--muted); }
.result dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.result.blocked { background: var(--panel-muted); }
@media (max-width: 640px) { .result dl { grid-template-columns: 1fr; gap: 0; } .result dd { text-align: left; margin-bottom: 10px; } }

/* ---------- App card: the ink house of the landing, with a real capture ---------- */
.app-card {
  position: relative; isolation: isolate;
  margin: 64px 0 0; padding: 72px clamp(22px, 4vw, 36px) clamp(26px, 4vw, 36px);
  color: var(--on-ink);
  display: grid; grid-template-columns: 1fr 210px; gap: 28px; align-items: center;
}
.app-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); clip-path: polygon(50% 0, 100% 44px, 100% 100%, 0 100%, 0 44px); border-radius: 0 0 var(--r-card) var(--r-card); }
.app-card h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 780; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.hl { background: var(--citron); color: var(--ink); padding: 0 .12em .04em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.app-card p { margin: 12px 0 0; color: var(--on-ink-muted); font-size: 17px; }
.app-card ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.app-card li { padding-left: 26px; position: relative; font-size: 17px; }
.app-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--citron); }
.app-card li span { display: block; color: var(--on-ink-muted); font-size: 15px; }
.app-card .cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.app-card .cta p { margin: 0; font-size: 15px; }
.app-card a:not(.badge) { color: var(--on-ink); }
.app-shot { margin: 0; align-self: end; }
.app-shot img { width: 100%; border-radius: 22px; border: 6px solid #232824; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); background: var(--paper); }
@media (max-width: 680px) {
  .app-card { grid-template-columns: 1fr; padding-top: 64px; }
  .app-shot { order: -1; width: min(220px, 70%); justify-self: center; }
}

/* ---------- Cards list ---------- */
.cards, .prose .cards { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.prose .cards li { margin: 0; padding: 0; }
.cards a { display: block; height: 100%; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; }
.cards a:hover { border-color: var(--ink); }
.cards strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.cards span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- FAQ ---------- */
.faq { margin-top: 18px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; }
.faq details p { margin: 0; font-size: 17px; }
