/* vosfinances.lu : feuille de style unique. Direction « Sapin et Grès ». */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --fond: #FAF8F3; --surface: #FFFFFF; --surface-2: #F3F0E8; --bord: #E4E0D6; --texte: #14211D; --texte-2: #4A5A55;
  --sapin: #0F5E4F; --sapin-fonce: #0B4A3E; --sapin-pale: #E3EFEB; --ocre: #D9A441; --ocre-pale: #F6EBD3; --ocre-texte: #8A5F12;
  --succes: #1F8A4C; --attention: #C2410C; --attention-pale: #FCEDE4; --erreur: #B42318; --info: #2457A6; --info-pale: #E7EEF8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --rayon: 12px; --ombre: 0 1px 2px rgba(20, 33, 29, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0E1513; --surface: #16201D; --surface-2: #1B2723; --bord: #26332F; --texte: #E8EEEA; --texte-2: #9FB0AA;
    --sapin: #4FBFA5; --sapin-fonce: #6FD3BB; --sapin-pale: #17302A; --ocre: #E7B95A; --ocre-pale: #2B2416; --ocre-texte: #E7B95A;
    --succes: #4ADE80; --attention: #FB923C; --attention-pale: #2E1D12; --erreur: #F87171; --info: #7FA7E8; --info-pale: #172238;
    --ombre: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0E1513; --surface: #16201D; --surface-2: #1B2723; --bord: #26332F; --texte: #E8EEEA; --texte-2: #9FB0AA;
  --sapin: #4FBFA5; --sapin-fonce: #6FD3BB; --sapin-pale: #17302A; --ocre: #E7B95A; --ocre-pale: #2B2416; --ocre-texte: #E7B95A;
  --succes: #4ADE80; --attention: #FB923C; --attention-pale: #2E1D12; --erreur: #F87171; --info: #7FA7E8; --info-pale: #172238;
  --ombre: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 1.0625rem/1.65 var(--sans); font-feature-settings: "cv11", "ss01"; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sapin); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sapin-fonce); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; font-variation-settings: "opsz" 72; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saut { position: absolute; left: -999px; top: 0; background: var(--sapin); color: #fff; padding: .6rem 1rem; z-index: 50; }
.saut:focus { left: 1rem; top: .5rem; }
.cadre { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 40em) { .cadre { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* En-tête */
.bandeau { background: var(--surface); border-bottom: 1px solid var(--bord); position: sticky; top: 0; z-index: 20; }
.bandeau__in { display: flex; align-items: center; gap: .75rem; min-height: 3.75rem; }
.marque { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; text-decoration: none; color: var(--texte); white-space: nowrap; font-variation-settings: "opsz" 48; }
.marque:hover { color: var(--texte); text-decoration: none; }
.marque__tld { color: var(--ocre-texte); }
.menu { margin-left: auto; }
.menu__liste { list-style: none; margin: 0; padding: 0; }
.menu__large { display: none; }
.menu__mobile > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border: 1px solid var(--bord); border-radius: 999px; font-size: .95rem; font-weight: 500; }
.menu__mobile > summary::-webkit-details-marker { display: none; }
.menu__icone, .menu__icone::before, .menu__icone::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu__icone::before, .menu__icone::after { content: ""; position: absolute; left: 0; }
.menu__icone::before { top: -5px; } .menu__icone::after { top: 5px; }
.menu__mobile[open] .menu__liste { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--bord); padding: .5rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.menu__mobile[open] .menu__liste a { display: block; padding: .7rem .25rem; border-bottom: 1px solid var(--bord); color: var(--texte); text-decoration: none; font-weight: 500; }
.menu__liste a[aria-current="page"] { color: var(--sapin); }
.theme { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--bord); background: transparent; color: var(--texte); display: grid; place-items: center; cursor: pointer; }
.theme svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme__lune { display: none; }
:root[data-theme="dark"] .theme__soleil { display: none; } :root[data-theme="dark"] .theme__lune { display: inline; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme__soleil { display: none; } :root:not([data-theme="light"]) .theme__lune { display: inline; } }
@media (min-width: 62em) {
  .menu__mobile { display: none; }
  .menu__large { display: block; }
  .menu__large .menu__liste { display: flex; gap: .2rem; }
  .menu__large a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--texte); text-decoration: none; font-weight: 500; font-size: .97rem; }
  .menu__large a:hover { background: var(--surface-2); }
  .menu__large a[aria-current="page"] { color: var(--sapin); background: var(--sapin-pale); }
}

/* Boutons, étiquettes */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.25rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--sapin); }
.btn--plein { background: var(--sapin); color: #fff; }
.btn--plein:hover { background: var(--sapin-fonce); border-color: var(--sapin-fonce); color: #fff; }
:root[data-theme="dark"] .btn--plein, :root[data-theme="dark"] .btn--plein:hover { color: #0E1513; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--plein, :root:not([data-theme="light"]) .btn--plein:hover { color: #0E1513; } }
.btn--trait { color: var(--sapin); background: transparent; }
.btn--trait:hover { background: var(--sapin-pale); }
.etiquette { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sapin); margin: 0 0 .5rem; }
.sponso { display: inline-block; background: var(--surface-2); border: 1px solid var(--bord); border-radius: 6px; padding: .15rem .5rem; font-size: .8rem; font-weight: 600; color: var(--texte-2); }
.puce { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--sapin-pale); color: var(--sapin); margin: .15rem .3rem .15rem 0; }
.section-titre { margin-bottom: 1rem; }

/* Accueil */
.ouverture { background: linear-gradient(180deg, var(--surface) 0%, var(--fond) 100%); border-bottom: 1px solid var(--bord); }
.ouverture__in { padding-top: 2.5rem; padding-bottom: 2.75rem; }
.ouverture__sur { font-size: .82rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ocre-texte); }
.ouverture h1 { max-width: 20ch; font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem); }
.ouverture__chapo { max-width: 38rem; font-size: 1.15rem; color: var(--texte-2); }
.ouverture__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.reperes, .outils-accueil, .parcours, .derniers, .actus, .methode { padding-top: 2.75rem; }
.methode { padding-bottom: 3rem; }
.reperes__grille { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 46em) { .reperes__grille { grid-template-columns: repeat(3, 1fr); } }
.repere { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.repere__lib { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.repere__val { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1.1; color: var(--sapin); font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.repere__unite { font-size: 1.1rem; margin-left: .2rem; color: var(--texte-2); }
.repere__note { font-size: .92rem; color: var(--texte-2); }
.repere__src { margin-top: auto; margin-bottom: 0; font-size: .8rem; color: var(--texte-2); }
.grille-outils { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36em) { .grille-outils { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grille-outils { grid-template-columns: repeat(4, 1fr); } }
.grille-outils--page { margin: 1.5rem 0 2rem; }
.outil { display: flex; flex-direction: column; gap: .35rem; background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.15rem; color: var(--texte); text-decoration: none; transition: border-color .15s; }
.outil:hover { border-color: var(--sapin); color: var(--texte); }
.outil__nom { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.outil__desc { color: var(--texte-2); font-size: .95rem; }
.outil__rien { margin-top: auto; padding-top: .4rem; font-size: .78rem; font-weight: 600; color: var(--sapin); }
.outil__ico { width: 2.5rem; height: 2.5rem; border-radius: 10px; background: var(--ocre-pale); position: relative; margin-bottom: .3rem; }
.outil__ico::before { content: ""; position: absolute; inset: .62rem; border: 2px solid var(--ocre-texte); border-radius: 3px; }
.outil__ico--capacite::before { border-radius: 50%; }
.outil__ico--taeg::before { border-radius: 2px 2px 50% 50%; }
.outil__ico--budget::before { border-width: 2px 0; border-radius: 0; }
.parcours__grille { display: grid; gap: 1rem; }
@media (min-width: 46em) { .parcours__grille { grid-template-columns: repeat(3, 1fr); } }
.parcours__item { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem; border-left: 4px solid var(--sapin); background: var(--surface); border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--texte-2); text-decoration: none; }
.parcours__item:hover { color: var(--texte); background: var(--sapin-pale); }
.parcours__q { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--texte); }
.actus__liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bord); }
.actus__liste li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .85rem 0; border-bottom: 1px solid var(--bord); }
.actus__liste time { flex: none; width: 9.5rem; color: var(--texte-2); font-size: .9rem; font-variant-numeric: tabular-nums; }
.actus__liste a { font-weight: 600; flex: 1 1 16rem; }
.methode__grille { display: grid; gap: 1.25rem; }
@media (min-width: 46em) { .methode__grille { grid-template-columns: repeat(3, 1fr); } }
.methode__n { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--ocre-texte); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ocre-pale); }
.methode__t { font-weight: 700; margin-bottom: .3rem; }
.methode__grille p:last-child { color: var(--texte-2); font-size: .97rem; }
.methode__liens { margin-top: 1rem; font-weight: 600; }

/* Cartes */
.grille-cartes { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .grille-cartes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grille-cartes { grid-template-columns: repeat(3, 1fr); } }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--ombre); }
.carte__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.carte__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.carte__corps { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.carte__titre { font-size: 1.15rem; margin-bottom: .45rem; }
.carte__titre a { color: var(--texte); text-decoration: none; }
.carte__titre a:hover { color: var(--sapin); text-decoration: underline; }
.carte__chapo { color: var(--texte-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carte__date { margin: auto 0 0; font-size: .82rem; color: var(--texte-2); }

/* Documents (articles, rubriques, pages) */
.doc { padding-top: 1.25rem; padding-bottom: 3rem; }
.doc__tete { max-width: 46rem; }
.ariane ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem; font-size: .85rem; color: var(--texte-2); }
.ariane li + li::before { content: "›"; margin: 0 .35rem 0 .15rem; color: var(--texte-2); }
.ariane a { color: var(--texte-2); }
.chapo { font-size: 1.17rem; line-height: 1.6; color: var(--texte); }
.confiance { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); margin: 1.25rem 0 1.5rem; font-size: .9rem; }
.confiance p { margin: 0; }
.confiance__avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sapin); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1rem; flex: none; }
:root[data-theme="dark"] .confiance__avatar { color: #0E1513; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .confiance__avatar { color: #0E1513; } }
.confiance__txt a { font-weight: 600; }
.confiance__dates { color: var(--texte-2); }
.confiance__liens { grid-column: 1 / -1; list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.confiance__liens a { color: var(--texte-2); }
.confiance__puces { grid-column: 1 / -1; }
.doc__visuel { margin: 0 0 1.75rem; max-width: 46rem; }
.doc__visuel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--rayon); filter: saturate(.85) sepia(.06); }
.doc__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 72em) {
  .doc__grille { grid-template-columns: minmax(0, 46rem) minmax(0, 1fr); }
  .doc__cote { position: sticky; top: 5rem; align-self: start; font-size: .9rem; border-left: 2px solid var(--bord); padding-left: 1rem; max-height: calc(100vh - 6rem); overflow: auto; }
  .doc__cote ol { list-style: none; margin: 0; padding: 0; }
  .doc__cote li { margin-bottom: .55rem; }
  .doc__cote a { color: var(--texte-2); text-decoration: none; }
  .doc__cote a:hover { color: var(--sapin); }
  .doc__cote-titre { font-weight: 700; margin-bottom: .6rem; }
  .doc__corps .sommaire { display: none; }
}
@media (max-width: 71.99em) { .doc__cote { display: none; } }
.retenir { background: var(--ocre-pale); border-left: 4px solid var(--sapin); border-radius: 0 var(--rayon) var(--rayon) 0; padding: 1rem 1.2rem .4rem; margin-bottom: 1.5rem; }
.retenir__titre { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin-bottom: .4rem; }
.retenir ul { margin: 0 0 .6rem; padding-left: 1.15rem; }
.retenir li { margin-bottom: .35rem; }
.sommaire { border: 1px solid var(--bord); border-radius: var(--rayon); padding: .75rem 1rem; margin-bottom: 1.75rem; background: var(--surface); }
.sommaire summary { font-weight: 700; cursor: pointer; }
.sommaire ol { margin: .6rem 0 .2rem; padding-left: 1.2rem; }
.sommaire li { margin-bottom: .3rem; }

.prose { max-width: 46rem; }
.prose--etroite { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4rem; }
.prose strong { font-weight: 650; }
.tableau { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface); }
.tableau table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.tableau caption { caption-side: bottom; text-align: left; font-size: .8rem; color: var(--texte-2); padding: .55rem .8rem; border-top: 1px solid var(--bord); }
.tableau th, .tableau td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau thead th { background: var(--surface-2); font-weight: 650; font-size: .88rem; }
.tableau tbody tr:last-child td { border-bottom: 0; }
.encadre { border-radius: var(--rayon); padding: 1rem 1.2rem .3rem; margin: 1.5rem 0; border: 1px solid var(--bord); background: var(--surface); }
.encadre--attention { border-color: transparent; background: var(--attention-pale); border-left: 4px solid var(--attention); border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre--droits { border-color: transparent; background: var(--info-pale); border-left: 4px solid var(--info); border-radius: 0 var(--rayon) var(--rayon) 0; }
.encadre--exemple { background: var(--surface); border: 1px dashed var(--sapin); }
.encadre ul { padding-left: 1.2rem; }
.encart-outil { margin: 2rem 0; padding: 1.1rem 1.25rem; border-radius: var(--rayon); background: var(--sapin-pale); }
.encart-outil p { margin-bottom: .4rem; }
.encart-outil__sur { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sapin); }
.encart-outil__nom { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.faq { margin-top: 2.5rem; }
.faq__q { border-bottom: 1px solid var(--bord); padding: .2rem 0; }
.faq__q summary { cursor: pointer; font-weight: 650; padding: .7rem 1.6rem .7rem 0; position: relative; list-style: none; }
.faq__q summary::-webkit-details-marker { display: none; }
.faq__q summary::after { content: "+"; position: absolute; right: .2rem; top: .55rem; font-size: 1.3rem; color: var(--sapin); }
.faq__q[open] summary::after { content: "−"; }
.faq__q p { color: var(--texte-2); }
.sources { margin-top: 2.5rem; font-size: .92rem; }
.sources h2 { font-size: 1.3rem; }
.sources ol { padding-left: 1.3rem; }
.sources li { margin-bottom: .45rem; }
.sources__date { color: var(--texte-2); }
.avert { margin-top: 2rem; padding: .9rem 1rem; border-radius: var(--rayon); background: var(--surface-2); font-size: .88rem; color: var(--texte-2); }
.signature { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bord); font-size: .93rem; color: var(--texte-2); }
.signature__nom { font-weight: 700; margin-bottom: .2rem; }
.liees { margin-top: 3rem; }
.rubrique__liste { margin: 1rem 0 3rem; }
.rubrique__vide { max-width: 46rem; padding: 1rem 1.2rem; background: var(--surface-2); border-radius: var(--rayon); color: var(--texte-2); }
.doc--rubrique .doc__grille { border-top: 1px solid var(--bord); padding-top: 2rem; }
.page-maj { margin-top: 2.5rem; font-size: .85rem; color: var(--texte-2); }
.liste-simple { padding-left: 1.2rem; }
.auteur { display: flex; align-items: center; gap: 1rem; }
.auteur h1 { margin-bottom: .2rem; }
.auteur__mono { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--sapin); color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.auteur__role { color: var(--texte-2); margin: 0; }
.plan ul { columns: 1; }
@media (min-width: 46em) { .plan ul { columns: 2; column-gap: 2rem; } }

/* Calculateurs */
.calc { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); margin: 1.25rem 0 2.5rem; }
@media (min-width: 62em) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.calc__form, .calc__res { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.1rem 1.15rem; }
.calc__form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc__form legend { font-weight: 700; margin-bottom: .6rem; padding: 0; }
.champ { margin-bottom: 1.15rem; }
.champ label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.champ__aide { display: block; font-size: .82rem; color: var(--texte-2); margin-top: .3rem; }
.champ__ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.champ__nombre { display: flex; align-items: center; border: 1px solid var(--bord); border-radius: 8px; background: var(--fond); padding-right: .55rem; }
.champ__nombre input { width: 7.5rem; border: 0; background: transparent; color: var(--texte); font: 600 1rem var(--sans); font-variant-numeric: tabular-nums; padding: .55rem .6rem; text-align: right; min-width: 0; }
.champ__nombre input:focus { outline: none; }
.champ__nombre:focus-within { outline: 3px solid var(--ocre); outline-offset: 1px; }
.champ__unite { color: var(--texte-2); font-size: .9rem; min-width: 3.4rem; text-align: left; }
.champ select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--bord); border-radius: 8px; background: var(--fond); color: var(--texte); font: inherit; }
.champ--seul .champ__nombre { width: 100%; max-width: 15rem; }
.champ--seul .champ__nombre input { width: 100%; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--sapin) var(--pct, 50%), var(--bord) var(--pct, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--bord); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sapin); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--sapin); margin-top: -8px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--sapin); }
.calc__res { position: sticky; top: 4.5rem; }
@media (max-width: 61.99em) { .calc__res { position: static; } .calc__res-cle { position: sticky; top: 3.8rem; z-index: 5; } }
.calc__res-cle { background: var(--surface); padding-bottom: .5rem; border-bottom: 1px solid var(--bord); margin-bottom: .8rem; }
.res__lib { font-size: .9rem; color: var(--texte-2); margin: 0; }
.res__val { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); font-weight: 600; color: var(--sapin); line-height: 1.1; font-variant-numeric: tabular-nums; margin: 0 0 .2rem; }
.res__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin: 0; }
.res__grille div { min-width: 0; }
.res__grille dt { font-size: .82rem; color: var(--texte-2); }
.res__grille dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.res__rien { margin: 1rem 0 0; font-size: .82rem; color: var(--sapin); font-weight: 600; }
.res__alerte { margin: .8rem 0 0; padding: .6rem .8rem; border-radius: 8px; background: var(--attention-pale); color: var(--texte); font-size: .9rem; }
.jauge { margin: 1rem 0 .3rem; }
.jauge__barre { height: 10px; border-radius: 5px; background: var(--bord); overflow: hidden; }
.jauge__barre span { display: block; height: 100%; width: 0; background: var(--sapin); border-radius: 5px; transition: width .2s; }
.jauge__barre[data-niveau="moyen"] span { background: var(--ocre); }
.jauge__barre[data-niveau="haut"] span { background: var(--attention); }
.jauge__txt { font-size: .85rem; color: var(--texte-2); margin-top: .35rem; }
.graphe { margin: 1rem 0 .4rem; }
.graphe svg { width: 100%; height: auto; display: block; }
.graphe__leg { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--texte-2); margin: .3rem 0 0; padding: 0; list-style: none; }
.graphe__leg li::before { content: ""; display: inline-block; width: .75rem; height: .75rem; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; background: var(--sapin); }
.graphe__leg li.leg-int::before { background: var(--ocre); }
.amort { margin: 1rem 0 0; }
.amort summary { cursor: pointer; font-weight: 650; padding: .4rem 0; }
.amort .tableau table { font-family: var(--mono); font-size: .8rem; }
.amort .tableau th, .amort .tableau td { text-align: right; padding: .4rem .6rem; white-space: nowrap; }
.amort .tableau th:first-child, .amort .tableau td:first-child { text-align: left; }
.calc__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.btn--petit { min-height: 2.5rem; padding: .45rem .9rem; font-size: .92rem; background: transparent; color: var(--sapin); cursor: pointer; font-family: inherit; }
.lignes-budget { display: grid; gap: .1rem; }
.lignes-budget .champ { margin-bottom: .7rem; }
.lignes-budget .champ__ligne { grid-template-columns: minmax(0, 1fr) auto; }
.lignes-budget label { margin: 0; font-weight: 500; }
.sansjs { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }
.js .sansjs { display: none; }

/* Pied */
.pied { background: var(--surface); border-top: 1px solid var(--bord); margin-top: 2rem; font-size: .93rem; }
.pied__grille { display: grid; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .pied__grille { grid-template-columns: repeat(3, 1fr); } .pied__marque { grid-column: 1 / -1; } }
@media (min-width: 62em) { .pied__grille { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .pied__marque { grid-column: auto; } }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .45rem; }
.pied a { color: var(--texte); text-decoration: none; }
.pied a:hover { color: var(--sapin); text-decoration: underline; }
.pied__titre { font-weight: 700; margin-bottom: .6rem; }
.pied__signature { color: var(--texte-2); margin: .3rem 0 .7rem; }
.pied__note { color: var(--texte-2); font-size: .85rem; max-width: 26rem; }
.marque--pied { font-size: 1.35rem; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1.5rem; border-top: 1px solid var(--bord); color: var(--texte-2); font-size: .85rem; }
.pied__bas p { margin: 0; }
.pied__bas ul { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

@media print {
  .bandeau, .pied, .calc__form, .calc__actions, .encart-outil, .doc__cote, .theme, .liees { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .calc { display: block; } .calc__res { border: 0; position: static; }
  .calc__res-cle { position: static; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
