@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
}

:root {
  --ink: #17241c;
  --muted: #42564b;
  --pine: #1a4034;
  --pine-deep: #10261e;
  --copper: #8a4324;
  --paper: #f3efe6;
  --card: #fffcf7;
  --line: #e0d6c6;
  --sand: #f4ecdf;
  --good: #14613a;
  --bad: #8a3328;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(16, 38, 30, 0.07);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, .footer-name, .brand-name, .result-hero, .tool-list strong {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
p { margin: 0 0 1rem; }
a { color: var(--pine); }
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}
::selection { background: #efd3c3; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: white;
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  z-index: 5;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(1120px, calc(100% - 2.4rem)); margin-inline: auto; }
.narrow { display: inline; }
.wide { display: none; }

.site-header {
  background: var(--pine-deep);
  color: #f4efe6;
  border-top: 4px solid #c56a32;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0.85rem 0 0.35rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.monogram {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e0a27a;
  border-radius: 50%;
  font-family: var(--serif);
  flex: none;
}
.brand-text { display: grid; min-width: 0; }
.brand-name { font-size: 1.15rem; color: #f7f3ea; }
.brand-role { color: #c9ddd2; font-size: 0.82rem; font-family: var(--sans); letter-spacing: 0; }
.site-nav {
  display: flex;
  gap: 0.15rem;
  width: min(1120px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding: 0.35rem 0 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  color: #d7e6dd;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"] {
  color: white;
  box-shadow: inset 0 -2px 0 #e0a27a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.05rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-header {
  min-height: 42px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  color: #f6f1e7;
  border: 1px solid rgba(244, 239, 228, 0.45);
  font-size: 0.92rem;
}
.btn-header:hover { background: rgba(255, 255, 255, 0.06); }
.btn-pine { background: var(--pine); color: #f6f1e7; }
.btn-pine:hover { background: #14352b; }
.btn-main {
  width: 100%;
  background: #f4efe4;
  color: var(--pine-deep);
  font-size: 1.05rem;
  line-height: 1.3;
}
.btn-main:hover { background: white; }
.btn-calc { width: 100%; background: var(--pine); color: #f6f1e7; margin-top: 0.4rem; }
.btn-calc:hover { background: #14352b; }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-hero { padding: 2rem 0 0.5rem; }
.page-hero { padding: 1.35rem 0 0.4rem; }
h1 { margin: 0 0 0.7rem; font-size: clamp(2.05rem, 5vw, 3.45rem); max-width: 18ch; }
.lede { font-size: 1.12rem; max-width: 42rem; color: var(--ink); }
.crumb { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.92rem; }
.crumb a { color: var(--muted); }

.tool-list { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.75rem; }
.tool-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.tool-list a:hover { border-color: var(--pine); }
.tool-list .num { font-family: var(--serif); color: var(--copper); font-size: 1.35rem; }
.tool-list strong { display: block; font-size: 1.35rem; color: var(--pine-deep); }
.tool-list .desc { display: block; color: var(--muted); margin-top: 0.25rem; font-family: var(--sans); letter-spacing: 0; font-weight: 400; }
.go { color: var(--pine); font-size: 1.3rem; }

.visit {
  display: grid;
  gap: 1rem;
  background: var(--pine-deep);
  color: #f6f1e7;
  border-radius: 20px;
  padding: 1.15rem;
  margin: 1.4rem 0 2rem;
}
.visit h2 { margin: 0 0 0.35rem; font-size: 1.8rem; color: white; }
.visit p { color: #d7e6dd; }
.visit img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: #16382c; }
.visit .btn-main { width: auto; }

.prose { max-width: 68ch; padding-bottom: 1rem; }
.prose h2 { margin: 2.1rem 0 0.7rem; font-size: 1.7rem; }
.prose h3 { margin: 1.4rem 0 0.4rem; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose a { text-underline-offset: 2px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { text-align: left; font-weight: 600; padding-bottom: 0.45rem; }
th, td { text-align: left; padding: 0.55rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
td:last-child, th:last-child { text-align: right; }

.faq { display: grid; gap: 0.55rem; margin-top: 0.8rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem 0.9rem;
}
.faq-item summary { cursor: pointer; font-weight: 600; padding: 0.75rem 0; }
.faq-item .faq-a { color: var(--ink); padding-bottom: 0.4rem; }

.tool { display: grid; gap: 1rem; margin: 0.6rem 0 2rem; }
.form-card, .result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; }
legend { font-family: var(--serif); font-size: 1.28rem; margin-bottom: 0.7rem; }
.fields { display: grid; gap: 0.85rem; }
label, .choice { font-weight: 600; font-size: 0.95rem; }
label { display: grid; gap: 0.35rem; }
input, select {
  min-height: 48px;
  border: 1px solid #cfc5b4;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); background: #fff7f5; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.84rem; line-height: 1.4; }
.choices { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  min-height: 48px;
  background: white;
}
.choice:has(input:checked) { border-color: var(--pine); background: #e7f0eb; }
.checkline { display: flex; align-items: flex-start; gap: 0.6rem; font-weight: 500; }
.checkline input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--pine); }
.errors {
  background: #f8ece6;
  border: 1px solid #e2c2b4;
  color: #6e2e24;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
}
.errors ul { margin: 0; padding-left: 1.1rem; }

.result-kicker {
  margin: 0;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.result-hero {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(2.15rem, 7vw, 3.3rem);
  color: var(--pine-deep);
  overflow-wrap: anywhere;
}
.result-hero.good { color: var(--good); }
.result-hero.bad { color: var(--bad); }
.result-sub { color: var(--muted); margin-bottom: 0.8rem; }
.result-h { margin: 1rem 0 0.15rem; font-size: 1.2rem; }
.stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid var(--line);
}
.stat dt { color: var(--muted); font-weight: 400; }
.stat dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fine { margin: 0.2rem 0 0.6rem; padding-left: 1rem; color: var(--muted); font-size: 0.88rem; }
.callout, .disclaimer {
  background: var(--sand);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.disclaimer { margin: 0.9rem 0 0; }
.notes { margin: 0.7rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.notes li { margin: 0.35rem 0; }
.cta-band {
  margin-top: 1rem;
  background: var(--pine-deep);
  color: #f6f1e7;
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}
.cta-kicker {
  margin: 0;
  color: #e7b89a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta-lead { margin: 0; color: #d7e6dd; }
.share-row { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }
.linkish {
  background: none;
  border: 0;
  padding: 0.2rem 0;
  min-height: 44px;
  color: #f4efe4;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.compare { display: grid; gap: 0.7rem; }
.compare section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem 0.3rem;
}
.compare section.is-lower { border-color: var(--pine); background: #f3f7f4; }
.compare h3 { margin: 0; font-size: 1.15rem; }
.compare-pay {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--pine-deep);
}
.badge {
  display: inline-block;
  margin: 0.2rem 0 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e7f0eb;
  color: var(--pine);
  font-size: 0.78rem;
  font-weight: 600;
}

.site-footer {
  background: var(--pine-deep);
  color: #d5e4db;
  margin-top: 3rem;
  padding: 2.4rem 0 1.6rem;
}
.site-footer h2 { margin: 0 0 0.6rem; color: white; font-size: 1.35rem; }
.site-footer a { color: #f4efe6; }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name { margin: 0 0 0.35rem; font-size: 1.6rem; color: white; }
.contact, .footer-links { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.contact li, .footer-links li { margin: 0.35rem 0; }
.contact span { display: block; color: #9db5a8; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.placeholder { border-bottom: 1px dashed #e0a27a; color: #f0c7b0; }
.portrait { display: flex; gap: 0.75rem; align-items: center; margin: 0.9rem 0 0; }
.portrait img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; background: #16382c; }
.portrait figcaption { font-size: 0.85rem; color: #e7b89a; }
.footer-legal { margin-top: 1.6rem; font-size: 0.88rem; color: #b7c9bf; }
.footer-legal p { max-width: 75ch; }
.setup-note { color: #e7b89a; }
.copy { color: #8eaa9c; }

@media (min-width: 480px) {
  .narrow { display: none; }
  .wide { display: inline; }
}
@media (min-width: 720px) {
  .fields.two { grid-template-columns: 1fr 1fr; }
  .brand-role { display: block; }
  .form-card, .result-card { padding: 1.25rem 1.3rem 1.3rem; }
}
@media (min-width: 800px) {
  .visit { grid-template-columns: 88px 1fr; align-items: center; padding: 1.35rem 1.4rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 0.9fr; }
  .compare { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .tool { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: start; }
  .result-card { position: sticky; top: 0.8rem; }
  .site-nav { overflow: visible; flex-wrap: wrap; }
}
@media (max-width: 719px) {
  .brand-role { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .cta-band, .site-nav, .skip, .btn-calc { display: none !important; }
  body { background: white; }
  .result-card, .form-card { box-shadow: none; }
}

.siblings { font-size: 0.92rem; }
.siblings a { color: #f4efe6; }

/* ---- ronde 4 : liens croisés et page À propos ---- */
.xsite-wrap { margin-top: 0.5rem; margin-bottom: 1.5rem; }
.xsite { max-width: 68ch; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.xsite h2 { margin: 0 0 0.5rem; font-size: 1.35rem; color: var(--pine-deep); }
.xsite p { margin: 0 0 0.6rem; }
.xsite ul { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.xsite li { margin: 0.3rem 0; }
.xsite p:last-child { margin-bottom: 0; }
.profile { display: grid; gap: 1rem; align-items: center; margin: 0.4rem 0 1rem; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--pine-deep); color: #f6f1e7; display: grid; place-items: center; font-family: var(--serif); font-size: 2.2rem; letter-spacing: 0.02em; border: 2px solid #e0a27a; }
.profile-name { margin: 0; font-family: var(--serif); font-size: 1.5rem; color: var(--pine-deep); }
.profile-meta { margin: 0.1rem 0 0; color: var(--muted); }
@media (min-width: 640px) { .profile { grid-template-columns: auto 1fr; gap: 1.3rem; } }

/* Ronde 7 */
.result-cta-top { display: flex; width: 100%; background: var(--copper); color: #fff; margin: 0 0 0.9rem; font-size: 1.05rem; line-height: 1.3; }
.result-cta-top:hover { background: #6f351c; }
.btn-download { background: var(--copper); color: #fff; font-size: 1.05rem; }
.btn-download:hover { background: #6f351c; }
.guide-promo { border-left: 5px solid var(--copper); }
.dl-box { display: grid; gap: 0.5rem; justify-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: 1rem 0 1.4rem; }
.dl-box p { margin: 0; }
.dl-meta { color: var(--muted); font-size: 0.9rem; }
@media print { .result-cta-top, .guide-promo { display: none !important; } }

/* r10: language switcher */
.lang-switch { margin: 0.75rem 0 0; text-align: right; font-size: 0.95rem; }
.lang-switch a { font-weight: 600; }

/* r15: acheter ou louer, quiz, liste de documents */
.rb-table td, .rb-table th { text-align: right; white-space: nowrap; }
.rb-table th[scope="row"], .rb-table thead th:first-child { text-align: left; }
.rb-table tr.be { background: #e7f0eb; font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--pine); }
.quiz fieldset { margin: 0 0 1rem; }
.quiz legend { font-weight: 600; }
.quiz .choices { display: grid; gap: 0.4rem; }
#quiz-result { margin-top: 1.25rem; }
.quiz-tips li { margin-bottom: 0.5rem; }
.quiz-tips .tip-2::marker { content: "✓  "; }
.quiz-tips .tip-1::marker { content: "•  "; }
.quiz-tips .tip-0::marker { content: "!  "; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 1.8rem; margin-bottom: 0.55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.25rem; width: 1rem; height: 1rem; border: 2px solid var(--pine); border-radius: 3px; }
.checklist small { color: #4a5a50; }
@media print {
  .site-header, .site-footer, .xsite-wrap, .skip, .no-print, .result-cta-top, .cta-band, details.faq-item { display: none !important; }
  body { background: #fff; }
  .checklist li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
/* r15b: mise en page acheter ou louer */
.fields.two > * { min-width: 0; }
.fields input, .fields select { max-width: 100%; }
#rb select { width: 100%; min-width: 0; }
.tool:has(> #rb) { grid-template-columns: minmax(0, 1fr); }
#rb .fields.two { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.rb-table { font-size: 0.92rem; }

/* r16: programmes d'aide, pages de redirection */
.prog { border: 1px solid #d8e2dc; border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 1rem; background: #fff; }
.prog h3 { margin-top: 0; }
.st { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 999px; font-size: 0.9em; }
.st-ok { background: #e3f1e8; color: #1d5a36; } .st-no { background: #f6e1dc; color: #8a2c17; } .st-check { background: #f7efd9; color: #6d5310; }
.prog-src { font-size: 0.92rem; }
.redirect-box { max-width: 36rem; margin: 3rem auto; padding: 1.5rem; text-align: center; }

/* r17: boîte « Prochaine étape » */
.next-step { margin: 1.1rem 0 0.2rem; padding: 0.9rem 1.1rem 1.1rem; border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: 12px; background: var(--sand); }
.next-step[hidden] { display: none; }
.next-step .result-h { margin-top: 0; }
.ns-line { margin: 0.3rem 0 0.6rem; }
.ns-links { margin: 0 0 0.8rem; padding-left: 1.1rem; }
.ns-links li { margin: 0.3rem 0; }
.ns-src { margin: 0 0 0.8rem; font-size: 0.88rem; color: var(--muted); }
.ns-cta { width: 100%; }
@media print { .next-step { display: none !important; } }

/* r20: cibles de 44 px et boîte « Prochaine étape » visible sous le résultat */
.brand, .btn-header { min-height: 44px; }
.monogram { width: 44px; height: 44px; }
.choice, .checkline { min-height: 44px; align-items: center; }
.choice { display: flex; gap: 0.5rem; }
.tool details > summary, .form-card details > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.hint a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a, .footer-links a, .contact a, .siblings a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.ns-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
