/* creditcredit.be — « Le taux en grand »
   Le chiffre est le héros : aplats rouge Creditcredit, encre, papier blanc.
   Une famille (Archivo) dont l'axe de largeur porte la voix ; filets d'encre plutôt que cartes. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: optional; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: optional; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  --rouge: #d42f22;          /* rouge Creditcredit (logo) */
  --rouge-fonce: #a92318;
  --rouge-pale: #fbe9e7;
  --encre: #121417;
  --encre-2: #4a4f57;
  --papier: #ffffff;
  --gris: #f1f1ef;
  --trait: #121417;
  --trait-doux: #d6d6d2;
  --vert: #127a4b;           /* économies, gains */
  --sur-rouge-2: #ffffff;    /* texte secondaire sur rouge : blanc (seul contraste AA sur ce rouge) */

  --f: "Archivo", "Segoe UI", system-ui, sans-serif;
  --large: 125%;
  --page: min(1320px, 100% - clamp(2rem, 5vw, 4rem));
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--encre) var(--gris); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--papier); color: var(--encre); font: 400 1.0625rem/1.6 var(--f); font-variant-numeric: lining-nums tabular-nums; }
main { flex: 1; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--rouge); color: #fff; }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.sur-rouge :focus-visible, .pied :focus-visible, .engagements :focus-visible { outline-color: #fff; }
input, select, textarea, button { font: inherit; color: inherit; caret-color: var(--rouge); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--encre); color: #fff; padding: .7rem 1rem; font-weight: 700; }
.evitement:focus { top: 1rem; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
.large { font-stretch: var(--large); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.1rem; padding: .75em 1.5em; border: 0; border-radius: 0; cursor: pointer;
  font: 750 1rem/1.1 var(--f); font-stretch: 112%; letter-spacing: .005em; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn::after { content: ""; width: .55em; height: .55em; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); }
.btn:hover::after { transform: translateX(3px) rotate(45deg); }
.btn--go, .btn--plaque { background: var(--encre); color: #fff; }
.btn--go:hover, .btn--plaque:hover { background: #000; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: var(--encre); color: #fff; text-decoration: none; }
.btn--ghost::after { display: none; }
.btn--grand { min-height: 3.6rem; font-size: 1.12rem; width: 100%; justify-content: space-between; }
.btn[disabled], .btn--attente { opacity: .6; cursor: progress; }

/* ---------- En-tête ---------- */
.entete { background: var(--papier); border-bottom: 2px solid var(--trait); position: relative; z-index: 20; }
.entete__barre { width: var(--page); margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.marque { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.marque__plaque { font: 900 1.55rem/1 var(--f); font-stretch: var(--large); letter-spacing: -.02em; color: var(--encre); }
.marque__be { color: var(--rouge); }
.marque__slogan { font: 500 .78rem/1 var(--f); margin-top: .35rem; color: var(--encre-2); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav__liste { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__liste > li > a, .nav__sous > button {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; padding: .4rem .7rem;
  font: 600 .98rem/1 var(--f); color: var(--encre); text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer;
}
.nav__liste > li > a:hover, .nav__sous > button:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.nav__sous { position: relative; }
.nav__sous svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.nav__sous > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__panneau { display: none; position: absolute; top: calc(100% + .6rem); left: 0; min-width: 21rem; list-style: none; margin: 0; padding: .5rem 0; background: var(--encre); }
.nav__sous > button[aria-expanded="true"] + .nav__panneau { display: block; }
@media (hover: hover) and (min-width: 1181px) { .nav__sous:hover > .nav__panneau, .nav__sous:focus-within > .nav__panneau { display: block; } .nav__sous::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .6rem; } }
.nav__panneau a { display: block; padding: .7rem 1.2rem; color: #fff; text-decoration: none; font: 600 1rem/1.25 var(--f); }
.nav__panneau a:hover { background: var(--rouge); }
.nav__panneau .cartouche { display: none; }
.nav__actions { display: flex; align-items: center; gap: 1.2rem; }
.tel { display: inline-flex; align-items: center; gap: .45rem; font: 800 1.05rem/1 var(--f); font-stretch: 110%; color: var(--encre); text-decoration: none; white-space: nowrap; }
.tel svg { width: 1.15em; height: 1.15em; color: var(--rouge); }
.nav__actions .btn { white-space: nowrap; min-height: 2.8rem; padding: .6em 1.15em; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .6rem; min-height: 2.9rem; padding: .4rem .9rem; background: var(--encre); color: #fff; border: 0; font: 700 .95rem/1 var(--f); cursor: pointer; }
.nav-toggle__barres, .nav-toggle__barres::before, .nav-toggle__barres::after { display: block; width: 1.15rem; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
.nav-toggle__barres::before, .nav-toggle__barres::after { content: ""; position: absolute; left: 0; }
.nav-toggle__barres::before { top: -6px; } .nav-toggle__barres::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__barres { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__barres::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__barres::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1rem, 4vw, 2rem) 1.5rem; background: var(--papier); border-bottom: 2px solid var(--trait); }
  .nav-ouverte .nav { display: flex; }
  .nav__liste { flex-direction: column; align-items: stretch; }
  .nav__liste > li { border-bottom: 1px solid var(--trait-doux); }
  .nav__liste > li > a, .nav__sous > button { width: 100%; justify-content: space-between; font-size: 1.15rem; min-height: 3.3rem; padding-inline: 0; }
  .nav__panneau { position: static; min-width: 0; margin: 0 0 .8rem; }
  .nav__actions { flex-direction: column; align-items: stretch; padding-top: 1rem; }
  .tel { justify-content: center; min-height: 3rem; }
}

/* ---------- Accueil : aplat rouge ---------- */
.une { background: var(--rouge); color: #fff; padding: clamp(2rem, 4vw, 3.2rem) 0 clamp(2.5rem, 5vw, 4rem); }
.une__in { width: var(--page); margin: 0 auto; }
.une__haut { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 4vw, 4rem); align-items: end; padding-bottom: clamp(1.4rem, 2.5vw, 2rem); border-bottom: 2px solid #fff; }
@media (max-width: 900px) { .une__haut { grid-template-columns: minmax(0, 1fr); } }
.une__titre { margin: 0; max-width: 14ch; font: 900 clamp(2.4rem, 5.2vw, 5.2rem)/.9 var(--f); font-stretch: var(--large); letter-spacing: -.035em; text-wrap: balance; }
.une__bas { display: grid; gap: 1.1rem; }
.une__sous { margin: 0; max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; color: #fff; }
.une__preuves { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font: 700 .98rem/1.3 var(--f); }
.une__preuves li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; background: #fff; margin-right: .55rem; vertical-align: .1em; }

/* ---------- Simulateur ---------- */
.portique { display: grid; gap: 1.8rem 2.5rem; min-width: 0; }
.portique__titre { grid-column: 1 / -1; margin: 0; font: 850 1.5rem/1.1 var(--f); font-stretch: 115%; letter-spacing: -.01em; }
.portique__destinations, .portique__sorties { border: 0; margin: 0; padding: 0; min-width: 0; }
.portique__etape { display: block; margin: 0 0 .7rem; padding: 0; font: 700 .86rem/1.2 var(--f); font-stretch: 75%; letter-spacing: .07em; text-transform: uppercase; }
.destinations { display: grid; gap: 0; }
.destination { position: relative; cursor: pointer; }
.destination input, .sortie input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.destination__panneau { display: flex; align-items: center; min-height: 2.9rem; padding: .55rem .9rem; font: 700 1.02rem/1.2 var(--f); border-top: 1px solid currentColor; transition: background-color .2s, color .2s; }
.destination:last-child .destination__panneau { border-bottom: 1px solid currentColor; }
.destination__nom { flex: 1; min-width: 0; }
.destination__panneau::after { content: ""; width: .5rem; height: .5rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .2s, transform .25s var(--ease); }
.destination:hover .destination__panneau::after { opacity: .6; }
.destination input:checked + .destination__panneau::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
.portique__fixe { grid-column: 1 / -1; margin: 0; font: 800 1.05rem/1.2 var(--f); }
.portique__reglages { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-content: start; min-width: 0; }
.champ-montant { width: 100%; display: flex; align-items: baseline; gap: .4rem; border-bottom: 3px solid currentColor; }
.champ-montant input { flex: 1; width: 100%; min-width: 0; border: 0; background: none; padding: .1rem 0 .25rem; font: 850 clamp(2rem, 3.4vw, 2.9rem)/1.1 var(--f); font-stretch: 112%; letter-spacing: -.02em; color: inherit; }
.champ-montant input:focus { outline: none; }
.champ-montant:focus-within { border-bottom-width: 5px; }
.champ-montant__eur { font: 800 1.4rem/1 var(--f); white-space: nowrap; }
.champ-montant--petit input { font-size: 1.05rem; font-weight: 600; font-stretch: 100%; padding: .4rem 0 .3rem; }
.champ-montant--petit { border-bottom-width: 2px; }
.champ-montant--petit .champ-montant__eur { font-size: .95rem; }
/* Curseur encadré des boutons − et + */
.reglette { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 .3rem; }
.reglette__btn { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 2px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font: 800 1.6rem/1 var(--f); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background-color .15s, color .15s, opacity .15s; }
.reglette__btn span { margin-top: -.12em; }
.reglette__btn:hover:not(:disabled) { background: currentColor; }
.reglette__btn:hover:not(:disabled) span { color: var(--rouge); }
.portique--compact .reglette__btn:hover:not(:disabled) span, .portique--mini .reglette__btn:hover:not(:disabled) span { color: #fff; }
.reglette__btn:active:not(:disabled) { transform: scale(.94); }
.reglette__btn:disabled { opacity: .35; cursor: default; }
.curseur { --pos: 50%; flex: 1; width: 100%; min-width: 0; margin: 0; appearance: none; background: transparent; height: 1.6rem; cursor: pointer; color: inherit; }
.curseur::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, currentColor var(--pos), color-mix(in srgb, currentColor 30%, transparent) var(--pos)); }
.curseur::-moz-range-track { height: 4px; background: color-mix(in srgb, currentColor 30%, transparent); }
.curseur::-moz-range-progress { height: 4px; background: currentColor; }
.curseur::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: currentColor; }
.curseur::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: currentColor; }
.portique__bornes { margin: 0; font-size: .9rem; }
.sorties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(7.4rem, 100%), 1fr)); gap: .4rem; }
.sortie { position: relative; cursor: pointer; }
.sortie__panneau { display: grid; align-content: center; gap: .05rem; min-height: 3.7rem; padding: .55rem .7rem; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .15s, color .15s; }
.sortie__duree { font: 750 .98rem/1.15 var(--f); }
.sortie__duree small { font-weight: 500; }
.sortie__mens { font-size: .88rem; }
.sortie__jauge { display: none; }
.resultat__label { margin: 0; font: 600 1rem/1.3 var(--f); }
.resultat__type { font-weight: 500; }
.resultat__mensualite { margin: .2rem 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .5rem; font: 900 clamp(3.4rem, 7.4vw, 6.6rem)/.92 var(--f); font-stretch: var(--large); letter-spacing: -.045em; }
.resultat__unite { font-size: .3em; font-weight: 750; font-stretch: 100%; letter-spacing: 0; }
.resultat__unite small { font-size: .8em; font-weight: 500; }
.resultat__details { margin: 1.2rem 0 1.4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1.5rem; font-size: .93rem; }
.resultat__details div { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-top: 1px solid currentColor; }
.resultat__details dt { font-weight: 400; }
.resultat__details dd { margin: 0; font-weight: 750; text-align: right; }
.resultat__note { margin: .6rem 0 0; font-size: .86rem; }
.portique__tableau { grid-column: 1 / -1; }
.portique__tableau summary { cursor: pointer; font: 700 1rem/1.2 var(--f); padding: .4rem 0; width: max-content; max-width: 100%; text-decoration: underline; text-underline-offset: .3em; }
.tableau-scroll { overflow-x: auto; margin-top: .8rem; }
.portique__exemple { grid-column: 1 / -1; margin: 0; font-size: .8rem; line-height: 1.55; padding-top: 1rem; border-top: 1px solid currentColor; }

/* Place réservée avant l'affichage du simulateur (stabilité de mise en page) */
.une [data-sim]:empty { display: block; min-height: 1420px; margin-top: clamp(1.5rem, 3vw, 2.2rem); }
@media (min-width: 721px) { .une [data-sim]:empty { min-height: 1190px; } }
@media (min-width: 1101px) { .une [data-sim]:empty { min-height: 600px; } }
.colonne [data-sim]:empty { display: block; min-height: 1340px; box-shadow: inset 0 0 0 2px var(--trait); }

/* Version accueil : sur l'aplat rouge, trois colonnes */
.portique--complet { color: #fff; margin-top: clamp(1.5rem, 3vw, 2.2rem); grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, 1.25fr); grid-template-areas: "dest regl res" "tab tab tab" "ex ex ex"; }
.portique--complet .portique__destinations { grid-area: dest; }
.portique--complet .portique__reglages { grid-area: regl; }
.portique--complet .portique__resultat { grid-area: res; }
.portique--complet .portique__tableau { grid-area: tab; }
.portique--complet .portique__exemple { grid-area: ex; color: var(--sur-rouge-2); opacity: 1; }
.portique--complet .destination input:checked + .destination__panneau { background: #fff; color: var(--rouge); }
.portique--complet .destination:hover .destination__panneau { background: rgba(255,255,255,.12); }
.portique--complet .destination input:checked:hover + .destination__panneau { background: #fff; }
.portique--complet .sortie:hover .sortie__panneau { background: rgba(255,255,255,.14); }
.portique--complet .sortie input:checked + .sortie__panneau { background: #fff; color: var(--rouge); box-shadow: none; }
.portique--complet .portique__bornes, .portique--complet .resultat__note, .portique--complet .resultat__details dt { color: var(--sur-rouge-2); opacity: 1; }
.portique--complet .tableau-amort { background: #fff; color: var(--encre); }
.portique--complet .tableau-amort caption { color: #fff; }
.portique--complet :focus-visible, .portique--complet input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 1100px) {
  .portique--complet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "dest regl" "res res" "tab tab" "ex ex"; }
}
@media (max-width: 720px) {
  .portique, .portique--complet, .portique--compact { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dest" "mont" "res" "sort" "tab" "ex"; gap: 1.2rem; }
  .portique__titre { grid-area: auto; }
  .portique__reglages { display: contents; }
  .portique__destinations, .portique__fixe { grid-area: dest; }
  .portique__montant { grid-area: mont; }
  .portique__resultat { grid-area: res; }
  .portique__sorties { grid-area: sort; }
  .portique__tableau { grid-area: tab; }
  .portique__exemple { grid-area: ex; }
  .portique .destinations, .portique--compact .destinations { display: flex; overflow-x: auto; gap: .4rem; scroll-snap-type: x mandatory; padding-bottom: .4rem; scrollbar-width: thin; }
  .portique .destination { flex: none; scroll-snap-align: start; }
  .portique .destination .destination__panneau, .portique--compact .destination:nth-last-child(2) .destination__panneau { border: 1.5px solid currentColor; white-space: nowrap; min-height: 2.6rem; padding: .45rem .8rem; }
  .portique .destination__panneau::after { display: none; }
  .sorties { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sortie__mens { font-size: .78rem; }
  .sortie__panneau { min-height: 3.3rem; padding: .45rem .5rem; }
  .resultat__mensualite { font-size: clamp(3.2rem, 15vw, 4.4rem); }
  .resultat__details { grid-template-columns: minmax(0, 1fr); margin: .8rem 0 1rem; }
}

/* Version colonne (pages) et mini (demande) : papier, résultat sur rouge */
.portique--compact, .portique--mini { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem; box-shadow: inset 0 0 0 2px var(--trait); background: var(--papier); }
.portique--compact .destinations { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: .8rem; }
.portique--compact .destination__panneau { font-size: .9rem; min-height: 2.5rem; padding: .45rem .1rem; }
.portique--compact .destination:nth-last-child(2) .destination__panneau { border-bottom: 1px solid currentColor; }
.portique--compact .destination input:checked + .destination__panneau, .portique--mini .destination input:checked + .destination__panneau { color: var(--rouge); font-weight: 850; }
.portique--compact .sortie input:checked + .sortie__panneau, .portique--mini .sortie input:checked + .sortie__panneau { background: var(--encre); color: #fff; box-shadow: none; }
.portique--compact .sortie:hover .sortie__panneau, .portique--mini .sortie:hover .sortie__panneau { background: var(--gris); }
.portique--compact .sortie input:checked:hover + .sortie__panneau, .portique--mini .sortie input:checked:hover + .sortie__panneau { background: var(--encre); }
.portique--compact .champ-montant input { font-size: 1.9rem; }
.portique--compact .portique__resultat, .portique--mini .portique__resultat { background: var(--rouge); color: #fff; padding: 1.3rem; margin: 0 -1.4rem; }
.portique--compact .resultat__mensualite { font-size: clamp(2.8rem, 4vw, 3.6rem); }
.portique--compact .resultat__details { grid-template-columns: minmax(0, 1fr); }
.portique--compact .resultat__details dt, .portique--mini .resultat__details dt, .portique--compact .resultat__note { color: var(--sur-rouge-2); opacity: 1; }
.portique--compact .btn--go, .portique--mini .btn--go { background: var(--encre); }
.portique--mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.portique--mini .portique__destinations { grid-column: 1 / -1; }
.portique--mini .destinations { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 1rem; align-items: stretch; }
@media (max-width: 1000px) { .portique--mini .destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portique--mini .destination__panneau { height: 100%; }
.portique--mini .destination .destination__panneau { border-bottom: 1px solid currentColor; border-top: 0; }
.portique--mini .portique__resultat { margin: 0; }
.portique--mini .resultat__mensualite { font-size: clamp(2.8rem, 5vw, 4.2rem); }
@media (max-width: 760px) { .portique--mini { grid-template-columns: minmax(0, 1fr); } .portique--mini .portique__resultat { margin: 0 -1.4rem; } }

/* ---------- Bande légale ---------- */
.bande-legale { border-bottom: 2px solid var(--trait); }
.bande-legale__in { width: var(--page); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.1rem 0 1.3rem; }
.avertissement { display: flex; align-items: center; gap: .9rem; margin: 0; font: 750 clamp(1rem, 1.6vw, 1.2rem)/1.3 var(--f); }
.avertissement__triangle { width: 2.6rem; height: 2.3rem; flex: none; }
.agrements { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.agrements li { display: flex; align-items: center; gap: .6rem; font-size: .82rem; line-height: 1.3; max-width: 17rem; }
.agrements a { flex: none; display: flex; align-items: center; justify-content: center; width: 9.5rem; height: 3.5rem; line-height: 0; }
.agrements img { display: block; width: auto; height: auto; max-width: 100%; max-height: 2.75rem; }

/* ---------- Tableau des taux (accueil) ---------- */
.section { width: var(--page); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section__titre { margin: 0 0 clamp(1.5rem, 3vw, 2.5rem); font: 900 clamp(2rem, 4.6vw, 4rem)/.95 var(--f); font-stretch: var(--large); letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.section__intro { margin: -1rem 0 2.5rem; max-width: 60ch; font-size: 1.15rem; color: var(--encre-2); }
.tarifs { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--trait); }
.tarif__lien { display: grid; grid-template-columns: 9.5rem minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .8fr) 3rem; align-items: center; gap: .8rem 1.8rem; padding: clamp(.9rem, 1.6vw, 1.2rem) clamp(.5rem, 1.5vw, 1.2rem); border-top: 2px solid var(--trait); text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease); }
.tarif__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .35s var(--ease); }
.tarif__nom { font: 850 clamp(1.35rem, 2.3vw, 2.2rem)/1.05 var(--f); font-stretch: var(--large); letter-spacing: -.025em; }
.tarif__nom small { display: block; margin-top: .35rem; font: 500 .95rem/1.3 var(--f); font-stretch: 100%; letter-spacing: 0; color: var(--encre-2); transition: color .25s; }
.tarif__fait { font: 750 1.02rem/1.25 var(--f); font-variant-numeric: tabular-nums; }
.tarif__fait small { display: block; margin-bottom: .2rem; font: 650 .78rem/1.3 var(--f); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); transition: color .25s; }
.tarif__voir { justify-self: end; width: 2.2rem; height: 2.2rem; transition: transform .3s var(--ease); }
.tarif__voir svg { display: block; width: 100%; height: 100%; }
.tarif__lien:hover, .tarif__lien:focus-visible { background: var(--rouge); color: #fff; outline: none; }
.tarif__lien:hover small, .tarif__lien:focus-visible small { color: #fff; }
.tarif__lien:hover .tarif__image, .tarif__lien:focus-visible .tarif__image { filter: none; }
.tarif__lien:hover .tarif__voir, .tarif__lien:focus-visible .tarif__voir { transform: translateX(.35rem); }
@media (max-width: 1000px) {
  .tarif__lien { grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 1fr) 2.2rem; gap: .5rem 1.2rem; }
  .tarif__image { grid-row: 1 / 3; }
  .tarif__nom { grid-column: 2 / 4; }
  .tarif__voir { grid-column: 4; grid-row: 1 / 3; }
  .tarif__fait { grid-row: 2; }
}
@media (max-width: 560px) {
  .tarif__lien { grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1fr); gap: .45rem .9rem; padding-inline: 0; }
  .tarif__image { grid-row: 1 / 3; align-self: start; }
  .tarif__nom { grid-column: 2 / 4; font-size: 1.25rem; }
  .tarif__nom small { font-size: .85rem; }
  .tarif__fait { grid-column: 2 / 4; grid-row: auto; font-size: .9rem; }
  .tarif__fait small { display: inline-block; min-width: 4.6rem; margin: 0; }
  .tarif__image { grid-row: 1 / 4; }
  .tarif__voir { display: none; }
}

/* Atouts (texte en grand) */
.atouts { background: var(--encre); color: #fff; }
.atouts__in { width: var(--page); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.atouts__phrase { margin: 0; font: 850 clamp(1.8rem, 3.8vw, 3.4rem)/1.05 var(--f); font-stretch: var(--large); letter-spacing: -.03em; text-wrap: balance; }
.atouts__phrase em { font-style: normal; color: var(--rouge); background: #fff; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.atouts__texte { align-self: end; color: #c9ccd1; font-size: 1.08rem; }
.atouts__texte p { margin: 0 0 1rem; }
.atouts .btn--go { background: var(--rouge); }
.atouts .btn--go:hover { background: var(--rouge-fonce); }
@media (max-width: 860px) { .atouts__in { grid-template-columns: minmax(0, 1fr); } }

/* Villes (référencement local) */
.villes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; font: 850 clamp(1.4rem, 3vw, 2.6rem)/1.15 var(--f); font-stretch: var(--large); letter-spacing: -.02em; }
.villes a { color: var(--rouge); text-decoration: none; }
.villes a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.villes span { color: var(--encre); }

/* ---------- Contenu de la page « accueil » (blocs importés) ---------- */
.accueil { width: var(--page); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.accueil.gh-content > * { max-width: none; margin: 0; }
.accueil.gh-content > * + * { margin-top: clamp(3.5rem, 8vw, 6rem); }
.accueil.gh-content > h2 + * { margin-top: 1.5rem; }
.accueil h2 { font: 900 clamp(2rem, 4.6vw, 4rem)/.95 var(--f); font-stretch: var(--large); letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.directions { list-style: none; padding: 0; display: grid; border-top: 2px solid var(--trait); }
.directions > li { margin: 0 !important; }
.direction { padding: 1.4rem 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 21rem; align-items: start; gap: .6rem 2.5rem; border-bottom: 2px solid var(--trait); }
.direction .btn { justify-self: end; }
.accueil ul.directions, .accueil ul.aires, .accueil .engagements ul { padding-left: 0; }
.accueil .direction h3 { margin: 0; font: 850 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--f); font-stretch: var(--large); letter-spacing: -.02em; }
.accueil .direction p { margin: 0; color: var(--encre-2); padding-top: .3rem; }
.direction .btn--go { background: var(--encre); color: #fff; }
.cartouche, .fleche-grande, .borne { display: none !important; }
.promesses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem); }
.promesse { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--trait); padding-top: 1.2rem; }
.promesse h3 { order: 1; margin: 0 0 .4rem; font: 900 clamp(2rem, 4vw, 3.4rem)/.95 var(--f); font-stretch: var(--large); letter-spacing: -.03em; }
.promesse p:first-child { order: 2; margin: 0 0 .8rem; font-weight: 700; color: var(--rouge); }
.promesse > :not(h3):not(:first-child) { order: 3; margin: 0 0 1.1rem; max-width: 50ch; }
.aires { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.aires > li, .engagements li, .directions > li { margin-top: 0 !important; }
.aire a { display: grid; gap: .8rem; text-decoration: none; }
.aire img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); transition: filter .4s var(--ease); }
.aire a:hover img { filter: none; }
.aire span { font: 800 1.15rem/1.2 var(--f); font-stretch: 112%; border-top: 2px solid var(--trait); padding-top: .7rem; }
.aire a:hover span { color: var(--rouge); }
.engagements { background: var(--rouge); color: #fff; padding: clamp(2rem, 5vw, 4rem); }
.engagements h2 { color: #fff; }
.engagements ul { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.engagements li { border-top: 2px solid #fff; padding-top: 1rem; margin: 0; }
.engagements h3 { margin: 0 0 .5rem; font: 850 clamp(1.3rem, 2.2vw, 1.8rem)/1.1 var(--f); font-stretch: var(--large); letter-spacing: -.02em; }
.engagements h3 a { color: #fff; text-decoration: none; }
.engagements h3 a:hover { text-decoration: underline; }
.engagements p { margin: 0; color: var(--sur-rouge-2); }
@media (max-width: 1000px) {
  .direction { grid-template-columns: minmax(0, 1fr); }
  .direction .btn { justify-self: start; }
  .aires { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .promesses, .aires, .engagements ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- En-tête des pages ---------- */
.titre-page { background: var(--rouge); color: #fff; }
.titre-page__in { width: var(--page); margin: 0 auto; padding: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(2.2rem, 4vw, 3.4rem); }
.fil ol { list-style: none; margin: 0 0 clamp(1.2rem, 3vw, 2.2rem); padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .6rem; font: 600 .9rem/1.3 var(--f); }
.fil li + li::before { content: "/"; margin-right: .6rem; opacity: .7; }
.fil a { color: #fff; }
.fil [aria-current] { color: var(--sur-rouge-2); }
.titre-page__h1 { margin: 0; max-width: 20ch; font: 900 clamp(2.3rem, 5.6vw, 5.2rem)/.94 var(--f); font-stretch: var(--large); letter-spacing: -.035em; text-wrap: balance; }
.titre-page__chapeau { margin: 1.2rem 0 0; max-width: 58ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #fff; }
.faits { margin: clamp(1.8rem, 4vw, 2.8rem) 0 0; display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 4vw, 3.5rem); padding-top: 1.2rem; border-top: 2px solid #fff; }
.fait dt { font: 650 .82rem/1.3 var(--f); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; color: var(--sur-rouge-2); }
.fait dd { margin: .2rem 0 0; font: 800 clamp(1.15rem, 2vw, 1.6rem)/1.1 var(--f); font-stretch: 112%; }
.fait--fort dd { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .9; font-weight: 900; font-stretch: var(--large); letter-spacing: -.035em; }

/* ---------- Mise en page lecture ---------- */
.mise-en-page { width: var(--page); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.mise-en-page--large { grid-template-columns: minmax(0, 1fr); }
.colonne__collant { position: sticky; top: 1.2rem; }
@media (max-width: 1000px) { .mise-en-page { grid-template-columns: minmax(0, 1fr); } .colonne__collant { position: static; } }
/* Pages crédit : le simulateur flotte à droite, le texte l’entoure puis reprend toute la largeur en dessous. */
@media (min-width: 1001px) {
  .mise-en-page--produit { display: flow-root; }
  .mise-en-page--produit .colonne { float: right; width: clamp(20rem, 32%, 26rem); margin: 0 0 2.5rem clamp(2rem, 5vw, 5rem); }
  .mise-en-page--produit .colonne__collant { position: static; }
  .mise-en-page--produit .gh-content > * { max-width: none; }
  .mise-en-page--produit .gh-content > :is(blockquote, hr, figure, details, section, table, div, .kg-card, .exemple-legal) { display: flow-root; }
  .mise-en-page--produit .gh-content > hr { overflow: hidden; }
}
.titre-page__action { margin: 1.6rem 0 0; }
/* Accès au simulateur de la page : bouton en fin de texte et bouton flottant pendant la lecture */
#simulateur { scroll-margin-top: 1rem; }
#simulateur:focus { outline: none; }
.gh-content > .vers-simulateur { margin-top: 2.2em; }
.gh-content .vers-simulateur .btn, .gh-content .vers-simulateur .btn:hover { color: #fff; text-decoration: none; }
.simu-flottant { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 30; background: var(--rouge); color: #fff; box-shadow: 0 .6rem 1.6rem rgb(17 18 20 / .28); opacity: 0; visibility: hidden; transform: translateY(1rem); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s, background-color .2s; }
.simu-flottant.est-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s, background-color .2s; }
.simu-flottant:hover { background: var(--rouge-fonce); color: #fff; text-decoration: none; }
@media (max-width: 560px) { .simu-flottant { left: 1rem; right: 1rem; bottom: 1rem; } }
@media (min-width: 1001px) { .titre-page__action { display: none; } }
#simulateur { scroll-margin-top: 1rem; }
.pleine { width: var(--page); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }

.gh-content { font-size: 1.1rem; line-height: 1.7; min-width: 0; }
.gh-content > * { max-width: 68ch; }
.gh-content > * + * { margin-top: 1.15em; margin-bottom: 0; }
.gh-content > :first-child { margin-top: 0; }
.gh-content h2, .gh-content h3, .gh-content h4 { line-height: 1.08; color: var(--encre); text-wrap: balance; }
.gh-content h2 { font: 850 clamp(1.6rem, 2.8vw, 2.3rem)/1.05 var(--f); font-stretch: 118%; letter-spacing: -.025em; margin-top: 2em; }
.gh-content h3 { font: 800 1.35rem/1.15 var(--f); font-stretch: 110%; margin-top: 1.8em; }
.gh-content h4 { font: 800 1.15rem/1.2 var(--f); margin-top: 1.6em; }
.gh-content h2 + *, .gh-content h3 + *, .gh-content h4 + * { margin-top: .6em; }
.gh-content a { color: var(--rouge-fonce); text-decoration-thickness: 1.5px; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .35em; }
.gh-content li::marker { color: var(--rouge); font-weight: 800; }
.gh-content strong { font-weight: 750; }
.gh-content blockquote { margin-left: 0; margin-right: 0; padding: 1rem 0; border-top: 2px solid var(--trait); border-bottom: 2px solid var(--trait); font-size: 1.05rem; font-weight: 600; }
.gh-content blockquote p { margin: 0 0 .6rem; }
.gh-content hr { border: 0; height: 2px; background: var(--trait); margin: 2.5em 0; }
.gh-content figure { margin-inline: 0; }
.gh-content img, .article__image img, .liste-articles__image, .grille-credits img, .aire img { filter: grayscale(1) contrast(1.05); }
.gh-content figcaption { font-size: .9rem; color: var(--encre-2); margin-top: .5rem; }
.gh-content table { border-collapse: collapse; width: 100%; font-size: .97rem; }
.gh-content th, .gh-content td { padding: .6rem .7rem; border-bottom: 1px solid var(--trait-doux); text-align: left; vertical-align: top; }
.gh-content .alignright, .gh-content img.alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
.gh-content .alignleft, .gh-content img.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
.gh-content .aligncenter { display: block; margin-inline: auto; }
@media (max-width: 600px) { .gh-content .alignright, .gh-content .alignleft, .gh-content img.alignright, .gh-content img.alignleft { float: none; margin: 1rem 0; max-width: 100%; } }
.gh-content .google-map iframe { display: block; border: 0; filter: grayscale(1); }
.article__image { margin: 0 0 2rem; }
.article__image img { width: 100%; }
.kg-width-wide { max-width: min(1000px, 100%) !important; }
.kg-width-full { max-width: 100% !important; }
.kg-image { display: block; }
.exemple-legal { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 2px solid var(--trait); font-size: .86rem; line-height: 1.55; color: var(--encre-2); max-width: 75ch; }

/* Tableaux */
.tableau-amort { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--papier); color: var(--encre); }
.tableau-amort caption { text-align: left; font: 700 .95rem/1.3 var(--f); padding: .7rem 0; caption-side: top; }
.tableau-amort th, .tableau-amort td { padding: .5rem .8rem; border-top: 1px solid var(--trait-doux); text-align: right; white-space: nowrap; }
.tableau-amort th:first-child { text-align: left; }
.tableau-amort thead th { font: 700 .76rem/1.2 var(--f); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); border-top: 2px solid var(--trait); }
.tableau-amort .gain { color: var(--vert); font-weight: 700; }
.tableau-amort .perte { color: var(--rouge-fonce); font-weight: 700; }
@media (max-width: 560px) {
  .tableau-amort th, .tableau-amort td { white-space: normal; padding: .45rem .35rem; font-size: .84rem; }
  .outil--regroupement .tableau-amort thead { display: none; }
  .outil--regroupement .tableau-amort tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--trait-doux); padding: .35rem 0; }
  .outil--regroupement .tableau-amort th, .outil--regroupement .tableau-amort td { border: 0; padding: .2rem .5rem; text-align: left; white-space: nowrap; }
  .outil--regroupement .tableau-amort td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--encre-2); }
  .outil--regroupement .tableau-amort th { align-self: end; font-size: .95rem; }
}

/* Étiquettes, pages similaires */
.etiquettes { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.etiquettes a { display: inline-block; padding: .3rem .7rem; box-shadow: inset 0 0 0 1.5px var(--trait); font: 600 .85rem/1.3 var(--f); text-decoration: none; }
.etiquettes a:hover { background: var(--encre); color: #fff; }
.similaires { width: var(--page); margin: 0 auto; padding: 0 0 clamp(3.5rem, 7vw, 5.5rem); }
.similaires__titre { margin: 0 0 1.2rem; font: 900 clamp(1.7rem, 3.2vw, 2.6rem)/1 var(--f); font-stretch: var(--large); letter-spacing: -.03em; }
.similaires__liste { list-style: none; padding: 0; margin: 0; border-bottom: 2px solid var(--trait); }
.similaires__liste a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .6rem; border-top: 2px solid var(--trait); text-decoration: none; font: 750 clamp(1.05rem, 1.6vw, 1.3rem)/1.25 var(--f); font-stretch: 110%; transition: background-color .2s, color .2s; }
.similaires__liste a:hover { background: var(--rouge); color: #fff; }
.fleche { width: 1.3em; height: 1.3em; flex: none; }

/* Listes d'articles */
.liste-articles { list-style: none; padding: 0; margin: 0; border-bottom: 2px solid var(--trait); }
.liste-articles__item { border-top: 2px solid var(--trait); }
.liste-articles__lien { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 1.5rem 3rem; padding: 1.6rem 0; text-decoration: none; }
.liste-articles__lien:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.liste-articles__image { order: 2; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); transition: filter .3s; }
.liste-articles__lien:hover .liste-articles__image { filter: none; }
.liste-articles__texte { display: grid; gap: .5rem; justify-items: start; align-content: start; }
.liste-articles__titre { font: 850 clamp(1.4rem, 2.6vw, 2.1rem)/1.05 var(--f); font-stretch: 118%; letter-spacing: -.025em; text-wrap: balance; }
.liste-articles__lien:hover .liste-articles__titre { color: var(--rouge); }
.liste-articles__extrait { color: var(--encre-2); max-width: 70ch; }
.liste-articles__rubrique { font-size: .92rem; font-weight: 600; color: var(--rouge-fonce); }
@media (max-width: 700px) { .liste-articles__lien { grid-template-columns: minmax(0, 1fr); } .liste-articles__image { order: 0; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; font-weight: 700; }

/* FAQ */
.faq { min-width: 0; border-bottom: 2px solid var(--trait); }
.faq__item { border-top: 2px solid var(--trait); }
.faq__question { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 0; font: 800 clamp(1.1rem, 1.7vw, 1.35rem)/1.25 var(--f); font-stretch: 108%; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; margin-left: auto; flex: none; font: 400 2rem/1 var(--f); color: var(--rouge); transition: transform .25s var(--ease); }
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__question:hover { color: var(--rouge); }
.faq__reponse { padding: 0 0 1.4rem; }
.faq__lien { display: inline-block; margin-top: .8rem; font-size: .92rem; }

/* ---------- Outils (page simulateurs) ---------- */
.outil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; box-shadow: inset 0 0 0 2px var(--trait); max-width: 100% !important; }
.outil__reglages { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; align-content: start; min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); }
.outil__reglages .portique__etape { margin-top: .8rem; }
.outil select { width: 100%; min-height: 3rem; padding: .5rem .2rem; border: 0; border-bottom: 2px solid var(--trait); background: transparent; font: 700 1.1rem/1.2 var(--f); border-radius: 0; }
.outil__aide { font-size: .9rem; color: var(--encre-2); margin: .3rem 0 0; }
.outil__resultat { background: var(--rouge); color: #fff; padding: clamp(1.2rem, 3vw, 2rem); display: grid; gap: .8rem; align-content: start; min-width: 0; overflow-x: auto; }
.outil__resultat .resultat__mensualite { font-size: clamp(3rem, 6vw, 5.4rem); }
.outil__resultat .tableau-amort caption { color: #fff; }
.outil__resultat .tableau-amort { margin-top: .4rem; }
.outil__resultat .btn--go { justify-self: start; background: var(--encre); }
.outil__resultat .portique__exemple { color: var(--sur-rouge-2); opacity: 1; border-top-color: #fff; }
.outil__resultat .outil__aide { color: var(--sur-rouge-2); }
.outil__sous { margin: 0; color: var(--sur-rouge-2); }
.outil__vide { margin: 0; }
.outil__vide a { color: #fff; }
.reg-lignes { display: grid; gap: .6rem; }
.reg-ligne { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .6rem; align-items: end; padding-bottom: .6rem; border-bottom: 1px solid var(--trait-doux); }
.reg-ligne label { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; font-size: .78rem; color: var(--encre-2); min-width: 0; }
.reg-ligne > label > input { min-height: 2.6rem; border: 0; border-bottom: 2px solid var(--trait); padding: .3rem 0; font-weight: 600; min-width: 0; background: transparent; color: var(--encre); }
.reg-ligne .champ-montant { color: var(--encre); }
.reg-suppr { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.reg-suppr:hover { background: var(--encre); color: #fff; }
.reg-suppr svg { width: 1.1rem; height: 1.1rem; }
.reg-ajout { justify-self: start; }
.case { display: flex; gap: .6rem; align-items: flex-start; margin-top: .8rem; font-size: .98rem; cursor: pointer; }
.case input { width: 1.3rem; height: 1.3rem; accent-color: var(--rouge); flex: none; margin-top: .15rem; }
@media (max-width: 860px) {
  .outil { grid-template-columns: minmax(0, 1fr); }
  .reg-ligne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .reg-ligne > label:first-child { grid-column: 1 / 3; grid-row: 1; }
  .reg-suppr { grid-column: 3; grid-row: 1; }
}
.pleine .outil, .pleine [data-sim] { max-width: none; }
.pleine .portique--complet { padding: clamp(1.2rem, 3vw, 2rem); background: var(--rouge); color: #fff; margin-top: 0; }

/* Grille des crédits (page simulateurs) */
.grille-credits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); gap: 2.4rem 2rem; max-width: none !important; }
.grille-credits li { display: grid; grid-template-rows: auto auto 1fr auto; gap: .6rem; margin: 0; border-top: 2px solid var(--trait); padding-top: 1rem; }
.grille-credits img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); }
.grille-credits h3 { margin: .3rem 0 0; }
.grille-credits h3 a { color: var(--encre); text-decoration: none; }
.grille-credits h3 a:hover { color: var(--rouge); }
.grille-credits p { margin: 0; color: var(--encre-2); font-size: .98rem; }
.grille-credits .btn { justify-self: start; }

/* ---------- Formulaires ---------- */
.cc-form { max-width: none !important; }
.cc-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: inset 0 0 0 2px var(--trait); }
.champ { display: grid; gap: .3rem; align-content: start; }
.champ--large, .cc-contact .form-mention, .cc-contact .form-statut, .cc-contact .btn { grid-column: 1 / -1; }
.cc-contact .btn { justify-self: start; }
.champ label, .dm-label { font: 700 .95rem/1.3 var(--f); }
.req { color: var(--rouge); }
.champ input, .champ textarea, .dm input, .dm select, .dm textarea {
  width: 100%; min-height: 3rem; padding: .55rem .75rem; border: 0; border-radius: 0;
  background: var(--papier); box-shadow: inset 0 0 0 1.5px #7b8089; font: 400 1rem/1.3 var(--f); color: var(--encre); transition: box-shadow .15s;
}
.champ textarea, .dm textarea { min-height: 8rem; resize: vertical; }
.champ input:hover, .champ textarea:hover, .dm input:hover, .dm select:hover, .dm textarea:hover { box-shadow: inset 0 0 0 1.5px var(--encre); }
.champ input:focus, .champ textarea:focus, .dm input:focus, .dm select:focus, .dm textarea:focus { outline: none; box-shadow: inset 0 0 0 3px var(--encre); }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rouge) !important; background: var(--rouge-pale) !important; }
.erreur { margin: .25rem 0 0; color: var(--rouge-fonce); font-size: .88rem; font-weight: 700; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-mention { font-size: .88rem; color: var(--encre-2); margin: 0; }
.form-statut { margin: 0; font-weight: 700; }
.form-statut:empty { display: none; }
.form-ok { margin: 0; padding: 1rem 1.2rem; background: var(--encre); color: #fff; font-weight: 700; }
::placeholder { color: #6b7079; opacity: 1; }
@media (max-width: 640px) { .cc-contact { grid-template-columns: minmax(0, 1fr); } }

/* Demande de crédit */
.demande { width: var(--page); margin: 0 auto; padding: clamp(2.2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.demande__intro { max-width: 70ch; }
.demande__h2 { margin: 0 0 1rem; font: 900 clamp(1.6rem, 3vw, 2.4rem)/1 var(--f); font-stretch: var(--large); letter-spacing: -.03em; }
.dm-progres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 2px solid var(--trait-doux); counter-reset: etape; }
.dm-progres li { counter-increment: etape; padding: .8rem 0; font: 700 1rem/1.2 var(--f); color: var(--encre-2); border-bottom: 5px solid transparent; margin-bottom: -2px; }
.dm-progres li::before { content: counter(etape); display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; margin-right: .6rem; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; font-weight: 800; }
.dm-progres li.actif { color: var(--encre); border-bottom-color: var(--rouge); }
.dm-progres li.actif::before { background: var(--rouge); color: #fff; box-shadow: none; }
.dm-progres li.fait { color: var(--encre); }
.dm-progres li.fait::before { background: var(--encre); color: #fff; box-shadow: none; }
.dm-recap { margin: 1rem 0 0; padding: 1rem 0; border-top: 2px solid var(--trait); font-size: 1.05rem; }
.dm-recap:empty { display: none; }
.dm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.dm-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.dm-step__title { padding: 0; margin-bottom: .2rem; font: 900 clamp(1.8rem, 3.6vw, 2.8rem)/1 var(--f); font-stretch: var(--large); letter-spacing: -.03em; }
.dm-step__title:focus { outline: none; }
.dm-block { padding-top: 1.2rem; border-top: 2px solid var(--trait); }
.dm-block__title { display: block; margin: 0 0 1rem; font: 800 1.3rem/1.2 var(--f); font-stretch: 112%; }
.dm-cols, .dm-row { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr) minmax(0, 1fr); gap: .4rem 1.2rem; align-items: center; }
.dm-block:not(.dm-block--duo) .dm-row { grid-template-columns: minmax(10rem, 15rem) minmax(0, 26rem); }
.dm-cols { font: 700 .78rem/1.2 var(--f); text-transform: uppercase; letter-spacing: .06em; color: var(--encre-2); padding-bottom: .5rem; }
.dm-row { padding: .4rem 0; }
.dm-field { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; min-width: 0; }
.dm-field > input, .dm-field > select { flex: 1; min-width: 0; }
.dm-field .erreur { flex-basis: 100%; }
.unit { font-weight: 700; color: var(--encre-2); }
.dm-help { width: 2.3rem; height: 2.3rem; flex: none; border-radius: 50%; border: 0; background: var(--encre); color: #fff; font: 800 1rem/1 var(--f); cursor: pointer; }
.dm-help:hover { background: var(--rouge); }
.dm-credits__scroll { overflow-x: auto; }
.dm-credits__table { border-collapse: collapse; width: 100%; min-width: 760px; }
.dm-credits__table th { text-align: left; font: 700 .76rem/1.2 var(--f); text-transform: uppercase; letter-spacing: .05em; color: var(--encre-2); padding: .4rem .3rem; }
.dm-credits__table td { padding: .3rem; }
.dm-add-credit { margin-top: .8rem; }
.dm-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 2px solid var(--trait); }
.dm-nav .btn--go { min-width: 13rem; }
@media (max-width: 760px) {
  .dm-cols { display: none; }
  .dm-row, .dm-block:not(.dm-block--duo) .dm-row { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .dm-block--duo .dm-co::before { content: "Co-emprunteur"; font-size: .8rem; color: var(--encre-2); flex-basis: 100%; }
  .dm-progres li { font-size: .82rem; }
  .dm-progres li::before { display: grid; margin: 0 0 .4rem; }
}
dialog.aide { border: 0; border-radius: 0; padding: 1.8rem; max-width: min(46rem, 92vw); box-shadow: 0 30px 80px -20px rgba(0,0,0,.55); }
dialog.aide::backdrop { background: rgba(18,20,23,.7); }
dialog.aide h2 { font: 850 1.4rem/1.15 var(--f); font-stretch: 112%; margin: 0 0 .8rem; }
.aide__images { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 1rem 0 1.4rem; }
.aide__images figure { margin: 0; }
.aide__images figcaption { font-size: .88rem; color: var(--encre-2); margin-top: .4rem; }

/* Merci et erreurs */
.merci, .erreur-page { width: var(--page); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 0; }
.merci__texte > * { max-width: 40ch; }
.merci .gh-content h1, .merci h1 { font: 900 clamp(2.2rem, 5vw, 4rem)/.95 var(--f) !important; font-stretch: var(--large) !important; letter-spacing: -.03em; color: var(--encre) !important; text-align: left !important; }
.merci .gh-content h2, .merci .gh-content h4 { text-align: left !important; }
.merci [style] { color: inherit !important; font-family: inherit !important; }
.merci img { display: none; }
.merci__panneau, .erreur-page__panneau { display: none; }
.erreur-page__titre { font: 900 clamp(2.4rem, 6vw, 5rem)/.95 var(--f); font-stretch: var(--large); letter-spacing: -.035em; margin: 0 0 1rem; max-width: 16ch; }
.erreur-page__liens { list-style: none; padding: 0; margin: 2rem 0 0; border-bottom: 2px solid var(--trait); max-width: 40rem; }
.erreur-page__liens a { display: block; padding: .9rem 0; border-top: 2px solid var(--trait); text-decoration: none; font: 750 1.2rem/1.2 var(--f); }
.erreur-page__liens a:hover { color: var(--rouge); }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #c9ccd1; }
.pied a { color: #fff; }
.pied__grille { width: var(--page); margin: 0 auto; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
.pied__titre { margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid #fff; font: 800 1rem/1.2 var(--f); font-stretch: 112%; color: #fff; }
.pied__bloc p { margin: 0 0 1rem; font-size: .95rem; }
.pied__adresse { font-style: normal; font-size: .95rem; color: #fff; }
.pied__liens { list-style: none; padding: 0; margin: 0 0 .9rem; display: grid; gap: .55rem; font-size: .95rem; }
.pied__liens a { text-decoration: none; }
.pied__liens a:hover { text-decoration: underline; }
.pied__plus { font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: .25em; }
.pied__villes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .95rem; }
.pied__villes a { text-decoration: none; }
.pied__villes a:hover { text-decoration: underline; }
.pied__legal { width: var(--page); margin: 0 auto; padding: 1.8rem 0 2rem; border-top: 1px solid #3a3e44; display: grid; justify-items: center; gap: 1.2rem; text-align: center; }
.pied .avertissement { justify-content: center; text-align: left; }
.pied .agrements { justify-content: center; text-align: left; }
.pied .avertissement { color: #fff; }
.pied .agrements li { color: #c9ccd1; }
.pied .agrements a { background: #fff; padding: .4rem .6rem; box-sizing: border-box; }
.pied__petit { margin: 0 auto; font-size: .8rem; line-height: 1.55; color: #9da2aa; max-width: 120ch; }
.pied__bas { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.8rem; font-size: .88rem; }
.pied__marque { width: var(--page); margin: 0 auto; text-align: center; padding: 0 0 1.5rem; font: 900 clamp(2.4rem, 8.4vw, 7.4rem)/.8 var(--f); font-stretch: var(--large); letter-spacing: -.05em; color: #fff; white-space: nowrap; overflow: hidden; }
.pied__marque span { color: var(--rouge); }
@media (max-width: 1000px) { .pied__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media print { .entete, .pied, .colonne, .simu-flottant, .vers-simulateur, .une [data-sim] { display: none; } }

/* Cartes de l'éditeur Ghost (le CSS par défaut de Ghost n'est pas chargé) */
.kg-card { margin-inline: 0; }
.kg-image-card img { display: block; height: auto; }
.kg-image-card figcaption { font-size: .9rem; color: var(--encre-2); margin-top: .5rem; }
.kg-gallery-container { display: flex; flex-direction: column; gap: .6rem; }
.kg-gallery-row { display: flex; gap: .6rem; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container { display: flex; min-height: 8rem; color: var(--encre); text-decoration: none; box-shadow: inset 0 0 0 2px var(--trait); }
.kg-bookmark-container:hover { background: var(--gris); }
.kg-bookmark-content { flex: 1; display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.2rem; min-width: 0; }
.kg-bookmark-title { font-weight: 800; font-stretch: 112%; }
.kg-bookmark-description { font-size: .95rem; color: var(--encre-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kg-bookmark-metadata { display: flex; align-items: center; gap: .5rem; margin-top: auto; font-size: .85rem; color: var(--encre-2); }
.kg-bookmark-icon { width: 20px; height: 20px; }
.kg-bookmark-author, .kg-bookmark-publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kg-bookmark-publisher::before { content: "· "; }
.kg-bookmark-thumbnail { position: relative; flex: 0 0 33%; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
