/* Perchoir — page de présentation.
   Même parti pris que l'outil : encre et bleu nuit, traits fins, angles nets, aucun dégradé ni ombre décorative.
   Les titres sont composés dans un caractère à empattements, le reste en linéale. */
:root {
  --night: #0F1222;
  --blue: #2340C4;
  --blue-soft: #EEF1FB;
  --red: #D2342F;
  --ink: #14151A;
  --muted: #52545F;
  --faint: #7C7E89;
  --line: #E6E3DC;
  --line-strong: #CFCBC1;
  --bg: #FFFFFF;
  --soft: #F8F7F4;
  --radius: 6px;
  --font: "Inter", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", "Charter", "Cambria", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.02rem; letter-spacing: -0.01em; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--soft); border: 1px solid var(--line); color: var(--ink); padding: 0.1em 0.4em; border-radius: 3px; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.soft { background: var(--soft); }
.kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; max-width: 38em; }
.note { font-size: 0.85rem; color: var(--faint); }
.note.gap { margin-top: 22px; }
.note.gap-lg { margin-top: 48px; }
.section.flush { border-top: 0; padding-top: 0; }

/* ---- boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 550; font-size: 0.96rem; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); padding: 11px 20px; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn-small { padding: 7px 14px; font-size: 0.9rem; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { background: transparent; border-color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: var(--blue-soft); border-color: var(--blue-soft); }

/* ---- barre du haut ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 5px; width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav-links a:hover { color: var(--ink); }

/* ---- accueil ---- */
.hero { padding: 88px 0 0; overflow: hidden; }
.hero-text { max-width: 46rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); letter-spacing: -0.03em; }
.hero h1 em { font-style: italic; color: inherit; }
.hero .lead { font-size: 1.16rem; margin-top: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .shot { margin-top: 64px; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }

/* ---- chiffres ---- */
.stats { border-top: 1px solid var(--line); background: var(--bg); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---- ce qu'il suit : tableau des sources ---- */
.sources { margin-top: 48px; border-top: 1px solid var(--ink); }
.source { display: grid; grid-template-columns: 15rem 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.source h3 { font-size: 1.02rem; }
.source p { color: var(--muted); font-size: 0.98rem; }
.source ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.source li { font-size: 0.8rem; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 2px 8px; background: var(--bg); }

/* ---- couverture ---- */
[hidden] { display: none !important; }
.coverage { width: 100%; border-collapse: collapse; font-size: 0.93rem; border-top: 1px solid var(--ink); }
.coverage th { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.coverage td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.coverage .nom { font-weight: 600; white-space: nowrap; }
.coverage .detail { color: var(--muted); font-size: 0.86rem; }
.coverage .nb { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coverage td:last-child { color: var(--muted); white-space: nowrap; }

/* ---- fonctionnement ---- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 24px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }

/* ---- aperçu : lignes alternées ---- */
.rows { display: grid; gap: 80px; margin-top: 56px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.row-text h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; letter-spacing: -0.02em; line-height: 1.18; }
.row-text p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }
.row-text ul { margin: 18px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); font-size: 0.95rem; }
.row-text li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); }

/* ---- recherche ---- */
.band { background: var(--night); color: #fff; border-radius: var(--radius); padding: 56px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.band .kicker { color: rgba(255, 255, 255, 0.55); }
.band p.lead { color: rgba(255, 255, 255, 0.72); }
.queries { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); overflow: hidden; }
.queries div { background: var(--night); padding: 16px 18px; }
.queries code { background: transparent; border: 0; color: #fff; font-size: 0.95rem; padding: 0; display: block; margin-bottom: 6px; }
.queries p { color: rgba(255, 255, 255, 0.62); font-size: 0.88rem; line-height: 1.45; }

/* ---- fonctionnalités : liste ---- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.split-head { position: sticky; top: 96px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.checks li { padding: 22px 0; border-top: 1px solid var(--line); }
.checks p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* ---- accès ---- */
.access { display: grid; grid-template-columns: 1fr minmax(0, 24rem); gap: 48px; align-items: center; background: var(--night); color: #fff; border-radius: var(--radius); padding: 56px; }
.access .kicker { color: rgba(255, 255, 255, 0.55); }
.access p.lead { color: rgba(255, 255, 255, 0.72); }
.access a { color: #fff; }
.access ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.88); font-size: 0.98rem; }
.access ol li { counter-increment: a; padding-left: 30px; position: relative; }
.access ol li::before { content: counter(a) "."; position: absolute; left: 0; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.request { display: grid; gap: 14px; align-self: start; }
.request label { display: grid; gap: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.request label span { color: rgba(255, 255, 255, 0.45); font-size: 0.8rem; }
.request input, .request textarea { font: inherit; font-size: 0.95rem; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 9px 11px; width: 100%; resize: vertical; }
.request input:focus, .request textarea:focus { outline: 0; border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.request textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.request .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request .btn { justify-self: start; color: var(--ink); }
.request .btn:disabled { opacity: 0.6; }
.request .note { color: rgba(255, 255, 255, 0.55); }
.request .note.ok { color: #8FE0B4; } .request .note.ko { color: #FFB1AA; }
.sibling { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }

/* ---- questions ---- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 550; font-size: 1rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 300; color: var(--faint); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding: 0 44px 22px 0; font-size: 0.98rem; }

/* ---- pied de page ---- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: 0.88rem; color: var(--faint); }
.footer a { color: var(--muted); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-size: 0.98rem; }

/* ---- captures d'écran : un simple cadre ---- */
.shot { margin: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 9px 14px; font-size: 0.8rem; color: var(--faint); border-top: 1px solid var(--line); background: var(--soft); }
.row.row-shot { grid-template-columns: 0.72fr 1.28fr; gap: 56px; }
.row.row-shot:nth-child(even) { grid-template-columns: 1.28fr 0.72fr; }

/* ---- écrans moyens et petits ---- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .row, .row.row-shot, .row.row-shot:nth-child(even), .band, .split { grid-template-columns: 1fr; gap: 36px; }
  .row:nth-child(even) .row-text { order: 0; }
  .split-head { position: static; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .access { grid-template-columns: 1fr; padding: 44px 36px; }
  .section { padding: 72px 0; }
  .rows { gap: 56px; }
  .source { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 0; }
  .hero .shot { margin-top: 40px; }
  .checks, .queries { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .band, .access { padding: 32px 22px; }
  .cta .btn { flex: 1 1 auto; }
  .section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
