@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/noto-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/noto-serif-700.woff2") format("woff2");
}

:root {
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --card: #fffdf8;
  --ink: #1b1914;
  --muted: #5e584e;
  --forest: #143f38;
  --forest-deep: #0c2c28;
  --foam: #e5f1ec;
  --copper: #8d4328;
  --copper-soft: #f8ece6;
  --line: #ddd4c4;
  --warn: #f4e7c6;
  --warn-ink: #6b4d14;
  --focus: #0e6b58;
  --serif: "Noto Serif", "Liberation Serif", Georgia, serif;
  --sans: Inter, "Liberation Sans", "Noto Sans", sans-serif;
  --shadow: 0 16px 40px rgba(28, 25, 20, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
p, li, h1, h2, h3, label { overflow-wrap: break-word; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(20, 63, 56, 0.08), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--forest); }
a:hover { color: var(--copper); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 0.5rem; }
.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; min-width: 0; }
.hero-grid > *, .source-grid > *, .split > *, .panel, .card { min-width: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(243, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner, .banner-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.site-header .header-inner { min-height: 4.25rem; }
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.wordmark span { letter-spacing: -0.01em; }
.byline, .fine, .meta { color: var(--muted); font-size: 0.92rem; }
.byline a, .fine a, .meta a { color: inherit; }
.banner { background: var(--forest); color: #f6f3ec; }
.banner a { color: #f6f3ec; }
.banner-inner { align-items: flex-start; padding: 0.9rem 0; }
.banner p { margin: 0; max-width: 46rem; }
.banner-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
h1, h2, h3, .stamp {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 0.2rem 0 0.8rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.45rem; }
.eyebrow {
  margin: 0;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead { font-size: 1.18rem; max-width: 40rem; }
.hero { padding: 2.5rem 0 1rem; }
.hero-grid, .split {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.card, .panel, .rule, .source-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.deadline-card { padding: 1.25rem 1.3rem 1.1rem; border-top: 6px solid var(--copper); }
.stamp {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  color: var(--forest);
}
.deadline-card p { margin: 0.7rem 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.facts li {
  background: var(--foam);
  color: var(--forest-deep);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.92rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--forest); color: #f7f4ee; }
.btn-primary:hover { background: var(--forest-deep); color: white; }
.btn-secondary, .btn-light { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: var(--card); }
.btn-ghost { background: transparent; color: var(--forest); border-color: transparent; padding-inline: 0.4rem; }
.banner .btn-primary { background: #f3efe6; color: var(--forest-deep); }
.banner .btn-secondary { color: #f3efe6; border-color: rgba(243, 239, 230, 0.45); }
.section { padding: 1.2rem 0 0.4rem; }
.source-grid, .choice-list { display: grid; gap: 0.8rem; }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
legend { font-weight: 600; padding: 0; }
.source-grid { grid-template-columns: 1fr 1fr; }
.source-card, .panel, .rule { padding: 1.15rem 1.2rem 1rem; }
.source-card p, .rule p { margin: 0.45rem 0 0; }
.disclaimer {
  margin-top: 0.8rem !important;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--warn-ink);
  background: var(--warn);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.quote { margin: 0.4rem 0 0; }
.quote p { margin: 0; }
.tool { padding-bottom: 2.5rem; }
.steps {
  display: flex;
  gap: 0.4rem;
  padding: 0;
  margin: 0 0 0.8rem;
  list-style: none;
  overflow-x: auto;
}
.steps li {
  flex: 1 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--line);
}
.steps .is-current { color: var(--ink); border-color: var(--forest); font-weight: 600; }
.steps .is-done { color: var(--forest); }
.steps .is-skipped { text-decoration: line-through; }
.choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--forest); background: var(--foam); }
.choice input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }
.choice strong { display: block; }
.choice small { display: block; color: var(--muted); }
.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; }
input[type="email"], input[type="password"], input[type="text"], textarea {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: white;
  color: var(--ink);
}
textarea { min-height: 14rem; resize: vertical; }
.check-line { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-weight: 400; }
.check-line input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }
.stack { display: grid; gap: 0.9rem; }
.form-error { color: var(--copper); font-weight: 600; }
.status { min-height: 1.4rem; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#resultat-liste { display: grid; gap: 0.85rem; }
.cta {
  margin-top: 1.2rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--forest);
  color: #f6f3ec;
}
.cta .btn-primary { background: #f3efe6; color: var(--forest-deep); }
.cta .btn-primary:hover { background: white; color: var(--forest-deep); }
.cta a { color: #f6f3ec; }
.cta h2 { color: #f6f3ec; }
.site-footer { border-top: 1px solid var(--line); padding: 1.4rem 0 2rem; }
.site-footer p { margin: 0.2rem 0; }
.prose { padding: 2rem 0 2.5rem; max-width: 46rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.admin-main { padding: 2rem 0 3rem; }
.stats { width: 100%; border-collapse: collapse; background: var(--card); }
.stats th, .stats td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.55rem 0.4rem; vertical-align: top; }
.stats th { font-size: 0.85rem; }
.note { background: var(--foam); border-radius: 12px; padding: 0.8rem 0.9rem; }

@media (max-width: 800px) {
  .hero-grid, .split, .source-grid { grid-template-columns: 1fr; }
  .header-inner, .footer-inner, .banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-actions, .actions { width: 100%; }
  .hero .btn, .banner-actions .btn, .actions .btn, .cta .btn { width: 100%; }
  .hero { padding-top: 1.4rem; }
  .wordmark span { font-size: 0.98rem; }
  .stats { display: block; overflow-x: auto; }
}

@media print {
  .site-header, .banner, .no-print, .site-footer, .actions, .cta { display: none !important; }
  body { background: white; }
  .card, .panel, .rule, .source-card { box-shadow: none; }
  a { color: black; text-decoration: none; }
  .print-only { display: block; }
}
.print-only { display: none; }
