/* Frais d'achat .be — charte : bleu marine (confiance), or (accent notarial), fond gris-bleu clair accordé aux photos. */
:root {
  --fond: #eef2f7;
  --carte: #ffffff;
  --texte: #1b2733;
  --doux: #5a6878;
  --bord: #d9e1ea;
  --marine: #12355b;
  --marine-fonce: #0b2340;
  --marine-clair: #e2eaf3;
  --or: #b8892c;
  --or-clair: #f6efdf;
  --gris-bleu: #8fa3b8;
  --alerte-fond: #fff6e3;
  --alerte-bord: #d9a441;
  --ombre: 0 10px 30px rgba(11, 35, 64, 0.12);
  --rayon: 14px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0f1720;
    --carte: #17212c;
    --texte: #e7ecf1;
    --doux: #9aa8b6;
    --bord: #263241;
    --marine: #7fb0e3;
    --marine-clair: #1a2836;
    --or: #d9b54a;
    --or-clair: #2a2517;
    --gris-bleu: #5f7389;
    --alerte-fond: #2e2616;
    --ombre: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 17px/1.65 var(--sans); }
a { color: var(--marine); }
img { max-width: 100%; display: block; }
.conteneur { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* En-tête */
header.site { background: var(--carte); border-bottom: 1px solid var(--bord); position: relative; z-index: 2; }
header.site .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--texte); font-family: var(--serif); font-size: 21px; font-weight: 700; }
.logo svg { width: 30px; height: 30px; flex: none; margin-right: 10px; }
.logo span { color: var(--or); }
nav.site { display: flex; gap: 6px; flex-wrap: wrap; }
nav.site a { text-decoration: none; color: var(--doux); font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--marine); background: var(--marine-clair); }

/* Bandeau photo */
.hero { position: relative; color: #fff; background-color: #0b2340; background-size: cover; background-position: center; padding: 56px 0 128px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 35, 64, 0.92) 0%, rgba(11, 35, 64, 0.75) 45%, rgba(11, 35, 64, 0.35) 100%); }
.hero .conteneur { position: relative; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 5.2vw, 46px); line-height: 1.15; margin: 0 0 14px; max-width: 760px; }
.hero .chapo { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255, 255, 255, 0.88); margin: 0 0 18px; max-width: 640px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.badges li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); }
.hero-accueil { background-image: url("img/accueil.jpg"); background-position: center 85%; }
.hero-wallonie { background-image: url("img/wallonie.jpg"); }
.hero-bruxelles { background-image: url("img/bruxelles.jpg"); }
.hero-flandre { background-image: url("img/flandre.jpg"); }
.credit-photo { position: absolute; right: 12px; bottom: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.6); }

main { padding: 0 0 56px; }
h2 { font-family: var(--serif); font-size: 27px; line-height: 1.25; margin: 48px 0 14px; color: var(--texte); }
h3 { font-size: 18px; margin: 0 0 6px; }
.chapo-section { color: var(--doux); margin-top: -4px; }

/* Carte du calculateur */
.carte-calc { position: relative; z-index: 1; margin-top: -88px; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px; }
.carte-calc-titre { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--serif); font-size: 21px; }
.carte-calc-titre svg { width: 26px; height: 26px; color: var(--or); flex: none; }
.maj { font-size: 13px; color: var(--doux); margin: 14px 0 0; }
.sim-grille { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; }
@media (max-width: 780px) { .sim-grille { grid-template-columns: 1fr; } .carte-calc { padding: 18px; } }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.saisie { display: flex; align-items: center; border: 1px solid var(--bord); border-radius: 10px; background: var(--fond); }
.saisie input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 14px; font: inherit; font-size: 19px; font-weight: 600; color: var(--texte); }
.saisie .unite { padding: 0 14px; color: var(--doux); font-weight: 600; }
select { width: 100%; padding: 12px 14px; border: 1px solid var(--bord); border-radius: 10px; background: var(--fond); color: var(--texte); font: inherit; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--or); outline-offset: 2px; }
.aide { font-size: 14px; color: var(--doux); margin: 6px 0 0; }
.cache { display: none; }

.sim-resultat { background: var(--marine-clair); border-radius: 12px; padding: 22px; align-self: start; }
.res-label { margin: 0; font-weight: 600; color: var(--doux); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; }
.res-chiffre { font-family: var(--serif); font-size: 46px; font-weight: 700; margin: 2px 0; color: var(--marine); line-height: 1.1; }
.res-sous { margin: 0 0 16px; color: var(--doux); }
.repartition { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bord); margin-bottom: 8px; }
.repartition span { display: block; height: 100%; }
.r-region { background: var(--marine); } .r-notaire { background: var(--or); } .r-etat { background: var(--gris-bleu); }
.legende { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--doux); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.detail th { text-align: left; font-weight: 400; padding: 7px 0; }
.detail td { text-align: right; padding: 7px 0 7px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail tr { border-bottom: 1px solid var(--bord); }
.detail tr.total { border-bottom: 0; font-weight: 700; }
.alerte { border-left: 4px solid var(--alerte-bord); background: var(--alerte-fond); padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 12px 0 0; }

/* Tableaux d'exemples */
.tableau-scroll { overflow-x: auto; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); }
.exemples th, .exemples td { padding: 12px 16px; border-bottom: 1px solid var(--bord); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exemples thead th { background: var(--marine-clair); color: var(--texte); font-size: 14px; }
.exemples tr:last-child td { border-bottom: 0; }
.exemples th:first-child, .exemples td:first-child { text-align: left; font-weight: 600; }

/* Cartes régions */
.cartes-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 18px 0; }
.carte-region { display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: var(--texte); transition: transform 0.15s, box-shadow 0.15s; }
.carte-region:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte-region img { width: 100%; height: 150px; object-fit: cover; background: var(--marine-clair); }
.carte-region div { padding: 16px 18px 18px; }
.carte-region strong { display: block; font-family: var(--serif); font-size: 20px; color: var(--marine); margin-bottom: 4px; }
.carte-region span { font-size: 15px; color: var(--doux); }

/* Pictogrammes « où va votre argent » */
.postes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.poste { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px; }
.poste svg { width: 40px; height: 40px; margin-bottom: 10px; }
.poste p { margin: 0; font-size: 15px; color: var(--doux); }
.picto-region { color: var(--marine); } .picto-notaire { color: var(--or); } .picto-etat { color: var(--gris-bleu); }

/* Listes de conditions */
.conditions { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.conditions li { position: relative; padding: 14px 16px 14px 48px; background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; }
.conditions li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; background: var(--or-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8892c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.encadre { background: var(--or-clair); border: 1px solid var(--or); border-radius: var(--rayon); padding: 18px 20px; }
.encadre h2 { margin-top: 0; font-size: 22px; }
.encadre p { margin: 0; }

/* FAQ */
details { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--doux); }

/* Encart partenaire */
.partenaire { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--marine-fonce); color: #fff; border-radius: var(--rayon); padding: 24px; margin: 18px 0 8px; }
.partenaire svg { width: 48px; height: 48px; color: var(--or); flex: none; }
.partenaire div { flex: 1 1 260px; }
.partenaire h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 4px; }
.partenaire p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 15px; }
.bouton { display: inline-block; text-align: center; background: var(--or); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; }
.bouton:hover { filter: brightness(1.08); }
.mention-affil { font-size: 13px; color: var(--doux); }
.sources { font-size: 14px; color: var(--doux); }

/* Pied de page */
footer.site { background: var(--marine-fonce); color: rgba(255, 255, 255, 0.75); padding: 32px 0; font-size: 14px; }
footer.site .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer.site a { color: #fff; }
footer.site .logo { color: #fff; font-size: 18px; }

/* Formulaire de contact */
.carte-form { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 24px; margin: 20px 0; max-width: 760px; }
.grille-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .grille-form { grid-template-columns: 1fr; } .carte-form { padding: 18px; } }
.carte-form input[type="text"], .carte-form input[type="email"], .carte-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--bord); border-radius: 10px; background: var(--fond); color: var(--texte); font: inherit; }
.carte-form textarea { resize: vertical; min-height: 150px; }
.champ.case { display: flex; gap: 10px; align-items: flex-start; }
.champ.case input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--marine); }
.champ.case label { font-weight: 400; margin: 0; }
.carte-form button.bouton { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirmation { text-align: center; padding: 48px 0; }
.confirmation svg { width: 64px; height: 64px; color: var(--marine); margin: 0 auto 12px; }

/* Pages de texte */
.page-texte { padding-top: 32px; }
.page-texte h1 { font-family: var(--serif); font-size: 34px; margin: 0 0 12px; }
