:root {
      --paper: #FFFFFF;
      --sheet: #F6F9F9;
      --head: #EDF3F3;
      --grid: #E1ECEC;
      --grid-strong: #C9DADB;
      --field: #789498;
      --ink: #052C32;
      --text: #1E3B40;
      --muted: #4F6669;
      --primary: #1F5159;
      --primary-700: #163E45;
      --accent: #17C2B1;
      --accent-700: #12A797;
      --accent-ink: #0A7268;
      --accent-050: #E3F7F4;
      --display: #072F35;
      --display-digit: #5EE6D6;
      --danger: #B3261E;
      --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
      --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
      --cell: 28px;
      --container: 1200px;
      --gutter: 16px;
      --header-h: 64px;
      --sheet-grid: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
      --key-shadow: inset 0 -3px 0 rgba(5, 44, 50, .22);
    }
    @media (min-width: 768px) { :root { --gutter: 32px; } }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
    body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.68; color: var(--text); background: var(--paper); overflow-x: hidden; }
    img { max-width: 100%; height: auto; }
    a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
    a:hover { color: var(--accent-ink); }
    :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
    h1, h2, h3 { font-family: var(--font-head); color: var(--ink); margin: 0; }
    p { margin: 0 0 1.1em; }
    .enveloppe { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
    .raccourci-renvoi { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 700; }
    .raccourci-renvoi:focus { top: 8px; color: #fff; }
    .chiffre, .tnum { font-variant-numeric: tabular-nums; }

    .touche { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; font: 500 1rem/1.2 var(--font-head); text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background-color .15s, transform .15s; }
    .touche:active { transform: translateY(1px); }
    .touche-couleur { background: var(--accent); color: var(--ink); box-shadow: var(--key-shadow); }
    .touche-couleur:hover { background: var(--accent-700); color: var(--ink); }
    .touche-couleur::after { content: "="; font-weight: 700; padding-left: 10px; border-left: 1px solid rgba(5, 44, 50, .3); }
    .touche-ink { background: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35); }
    .touche-ink:hover { background: var(--primary); color: #fff; }
    .touche-contour { background: var(--paper); color: var(--ink); border-color: var(--ink); }
    .touche-contour:hover { background: var(--head); color: var(--ink); }
    .touche-mini { padding: 9px 14px; font-size: .9rem; }
    .surtitre { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 600 .74rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
    .surtitre::before { content: ""; width: 10px; height: 10px; background: var(--accent); }

    .lieu-haut { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--grid-strong); }
    .haut-dedans { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
    .blason { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
    .blason-pictomarque { width: 30px; height: 30px; flex: none; display: block; }
    .blason-appellation { font: 600 1rem/1.1 var(--font-head); letter-spacing: -.01em; white-space: nowrap; }
    .blason-by { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--grid-strong); font-size: .82rem; color: var(--muted); }
    .blason-by img { height: 14px; width: auto; display: block; }
    .majeur-circulation ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
    .majeur-circulation a:not(.touche) { display: block; padding: 8px 12px; font: 500 .92rem var(--font-head); color: var(--text); text-decoration: none; border: 1px solid transparent; }
    .majeur-circulation a:not(.touche):hover { border-color: var(--accent); background: var(--accent-050); color: var(--ink); }
    .majeur-circulation li:last-child { margin-left: 8px; }

    .circulation-interrupteur { display: none; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--grid-strong); border-radius: 0; background: var(--paper); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
    .circulation-interrupteur span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .circulation-interrupteur[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-050); }
    .circulation-interrupteur[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .circulation-interrupteur[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .circulation-interrupteur[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    @media (max-width: 959px) {
      .haut-dedans { flex-wrap: nowrap; }
      .circulation-interrupteur { display: flex; }
      .majeur-circulation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--grid-strong); box-shadow: 0 12px 24px rgba(5, 44, 50, .08); }
      .majeur-circulation.etat-deplie { display: block; }
      .majeur-circulation ul { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
      .majeur-circulation a:not(.touche) { padding: 13px 12px; font-size: 1rem; border-color: transparent transparent var(--grid) transparent; }
      .majeur-circulation li:last-child { margin: 12px 0 0; }
      .majeur-circulation .touche { display: flex; width: 100%; }
    }
    @media (max-width: 479px) { .blason-by { display: none; } }
    @media (min-width: 960px) {
      .haut-dedans { flex-wrap: nowrap; min-height: var(--header-h); padding-top: 0; padding-bottom: 0; }
    }

    .vitrine { position: relative; background-color: var(--sheet); background-image: var(--sheet-grid); background-size: var(--cell) var(--cell); border-bottom: 1px solid var(--grid-strong); overflow: hidden; }
    .sheet-cols { display: flex; height: 26px; background: var(--head); border-bottom: 1px solid var(--grid-strong); overflow: hidden; }
    .sheet-cols span { flex: 0 0 112px; display: grid; place-items: center; font: 500 .72rem var(--font-head); color: var(--muted); border-right: 1px solid var(--grid-strong); }
    .sheet-cols span:first-child { flex-basis: 44px; }
    .sheet-cols span.etat-active { background: var(--accent-050); color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); }
    .vitrine-quadrillage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 48px; align-items: start; }
    @media (min-width: 960px) { .vitrine-quadrillage { grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); gap: 56px; padding-top: 52px; padding-bottom: 64px; } }
    .fx-barre { display: flex; align-items: stretch; max-width: 100%; margin: 0 0 22px; background: var(--paper); border: 1px solid var(--grid-strong); font: 400 .88rem/1.3 var(--font-head); color: var(--text); }
    .fx-barre .fx-cotation { flex: none; padding: 8px 10px; min-width: 50px; text-align: center; background: var(--head); border-right: 1px solid var(--grid-strong); color: var(--muted); font-weight: 500; }
    .fx-barre .fx { flex: none; padding: 8px 10px; border-right: 1px solid var(--grid-strong); font-style: italic; font-weight: 600; color: var(--accent-ink); }
    .fx-barre code { flex: 1 1 auto; min-width: 0; padding: 8px 12px; font: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fx-barre code b { color: var(--accent-ink); font-weight: 600; }
    .vitrine h1 { font-weight: 600; font-size: clamp(2rem, 1.2rem + 3vw, 3.3rem); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 20px; }
    .vitrine .resume { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); color: var(--text); max-width: 36em; margin: 0 0 24px; }
    .jetons { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; border-left: 1px solid var(--grid-strong); border-top: 1px solid var(--grid-strong); width: fit-content; max-width: 100%; }
    .jetons li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font: 500 .86rem/1.3 var(--font-head); color: var(--ink); background: var(--paper); border-right: 1px solid var(--grid-strong); border-bottom: 1px solid var(--grid-strong); }
    .jetons li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translateY(-2px); flex: none; }
    @media (max-width: 559px) { .jetons { width: 100%; } .jetons li { flex: 1 1 100%; } }

    .vitrine-ledger { display: none; max-width: 560px; background: var(--paper); border: 1px solid var(--ink); font: 400 .82rem/1.2 var(--font-head); color: var(--text); }
    @media (min-width: 560px) { .vitrine-ledger { display: block; } }
    .hl-row { display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.3fr); }
    .hl-row > span { padding: 7px 8px; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hl-row > span:last-child { border-right: 0; text-align: right; }
    .hl-row > span:first-child { background: var(--head); color: var(--muted); text-align: center; }
    .hl-sommet > span { background: var(--head); color: var(--muted); font-weight: 500; text-align: center !important; }
    .hl-row .f { color: var(--accent-ink); }
    .hl-total > span { border-bottom: 0; border-top: 3px double var(--ink); font-weight: 600; color: var(--ink); }
    .hl-total > span:last-child { background: var(--accent-050); outline: 2px solid var(--accent); outline-offset: -2px; position: relative; }

    .vitrine-aile { position: relative; }
    .hs-saisie-vignette { position: relative; background: var(--paper); border: 1px solid var(--ink); padding: 0 22px 24px; box-shadow: 8px 8px 0 rgba(5, 44, 50, .08); }
    @media (min-width: 560px) { .hs-saisie-vignette { padding: 0 30px 30px; } }
    .hs-saisie-vignette::after { content: ""; position: absolute; right: -6px; bottom: -6px; width: 11px; height: 11px; background: var(--accent); border: 2px solid var(--paper); }
    .saisie-tab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -22px 22px; padding: 0 0 0 22px; background: var(--head); border-bottom: 1px solid var(--grid-strong); font: 500 .76rem/1 var(--font-head); color: var(--muted); }
    @media (min-width: 560px) { .saisie-tab { margin: 0 -30px 24px; padding-left: 30px; } }
    .saisie-tab span:last-child { padding: 10px 14px; background: var(--paper); color: var(--ink); border-left: 1px solid var(--grid-strong); box-shadow: inset 0 3px 0 var(--accent); margin-bottom: -1px; }
    .saisie-titrage { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 8px; }
    .saisie-inferieur { margin: 0 0 20px; color: var(--muted); font-size: .98rem; }

    .hs-saisie-vignette [data-lead-form] { --lf-accent: var(--accent); --lf-accent-ink: var(--ink); --lf-ink: var(--ink); --lf-muted: var(--muted); --lf-line: var(--field); --lf-bg: #FFFFFF; --lf-error: var(--danger); --lf-radius: 0px; --lf-font: var(--font-body); min-height: 300px; }
    .hs-saisie-vignette .lf-step-title, .hs-saisie-vignette .lf-btn { font-family: var(--font-head); }

    .volet { padding: 64px 0; }
    @media (min-width: 960px) { .volet { padding: 88px 0; } }
    .volet-sommet { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 0 0 28px; }
    .volet-titrage { font-weight: 600; font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; }
    .volet-introduction { color: var(--muted); max-width: 44em; margin: 10px 0 0; }
    .compartiment-contexte { display: inline-flex; align-items: stretch; border: 1px solid var(--grid-strong); font: 400 .82rem/1 var(--font-head); color: var(--text); background: var(--paper); }
    .compartiment-contexte > span { padding: 9px 10px; }
    .compartiment-contexte .fx { font-style: italic; font-weight: 600; color: var(--accent-ink); border-right: 1px solid var(--grid-strong); }
    .compartiment-contexte strong { padding: 9px 12px; background: var(--display); color: var(--display-digit); font-weight: 600; font-size: .95rem; }

    #confiance { border-bottom: 1px solid var(--grid-strong); }
    .sigle-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--grid-strong); border-left: 1px solid var(--grid-strong); }
    @media (min-width: 560px) { .sigle-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    @media (min-width: 800px) { .sigle-sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    @media (min-width: 1080px) { .sigle-sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
    .sigle-sheet li { display: grid; place-items: center; height: 96px; padding: 16px 20px; background: var(--paper); border-right: 1px solid var(--grid-strong); border-bottom: 1px solid var(--grid-strong); transition: background-color .15s, box-shadow .15s; }
    .sigle-sheet li:hover { background: var(--accent-050); box-shadow: inset 0 0 0 2px var(--accent); }
    .sigle-sheet img { max-height: 52px; max-width: 140px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; mix-blend-mode: multiply; transition: filter .15s, opacity .15s; }
    .sigle-sheet li:hover img { filter: none; opacity: 1; }

    .texte-conteneur { background: var(--paper); }
    .texte-trame { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: calc(860px + var(--gutter) * 2); }
    .sheet-tabs { border-bottom: 1px solid var(--grid-strong); background: var(--paper); }
    .sheet-tabs:not(:has(li)) { display: none; }
    .sheet-tabs ol { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; counter-reset: tab; }
    .sheet-tabs li { counter-increment: tab; flex: none; }
    .sheet-tabs a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font: 500 .88rem/1.2 var(--font-head); color: var(--text); text-decoration: none; background: var(--head); border: 1px solid var(--grid-strong); border-bottom: 0; margin-right: -1px; white-space: nowrap; }
    .sheet-tabs a::before { content: counter(tab, decimal-leading-zero); color: var(--accent-ink); font-weight: 600; font-size: .78rem; }
    .sheet-tabs a:hover { background: var(--paper); box-shadow: inset 0 3px 0 var(--accent); color: var(--ink); }
    @media (min-width: 960px) { .sheet-tabs { position: sticky; top: var(--header-h); z-index: 20; } }
    .texte { max-width: 800px; counter-reset: sec; }
    .texte-introduction { font-size: 1.14rem; color: var(--ink); padding: 0 0 22px; margin: 0 0 8px; border-bottom: 3px double var(--ink); }
    .texte-introduction p:last-child { margin-bottom: 0; }
    .texte-volet { counter-increment: sec; padding: 40px 0 8px; }
    .texte-volet > h2 { display: flex; align-items: baseline; gap: 14px; font-weight: 600; font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.1rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 18px; }
    .texte-volet > h2::before { content: counter(sec, decimal-leading-zero); flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 34px; padding: 0 6px; transform: translateY(-4px); font: 600 .9rem/1 var(--font-head); color: var(--accent-ink); background: var(--head); border: 1px solid var(--grid-strong); box-shadow: inset 0 -2px 0 var(--accent); }
    .texte h3 { font-weight: 600; font-size: clamp(1.18rem, 1.08rem + .4vw, 1.35rem); line-height: 1.3; color: var(--primary); margin: 30px 0 10px; }
    .texte ul, .texte ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
    .texte ul > li { position: relative; padding-left: 24px; margin: 0 0 .5em; }
    .texte ul > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--accent); }
    .texte ol:not(.etapes) { counter-reset: li; }
    .texte ol:not(.etapes) > li { counter-increment: li; position: relative; padding-left: 38px; margin: 0 0 .6em; }
    .texte ol:not(.etapes) > li::before { content: counter(li); position: absolute; left: 0; top: .1em; width: 26px; height: 26px; display: grid; place-items: center; font: 600 .82rem/1 var(--font-head); color: var(--ink); background: var(--head); border: 1px solid var(--grid-strong); }
    .texte strong { color: var(--ink); }
    .texte blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--accent); background: var(--sheet); font-style: italic; }
    .texte-remarque { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--grid-strong); font-size: .9rem; color: var(--muted); }

    .matrice-conteneur { margin: 1.5em 0 1.8em; overflow-x: auto; border: 1px solid var(--ink); background: var(--paper); -webkit-overflow-scrolling: touch; }
    .matrice-conteneur table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; counter-reset: col; }
    .matrice-conteneur caption { caption-side: bottom; padding: 10px 14px; text-align: left; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--grid-strong); background: var(--sheet); }
    .matrice-conteneur thead th { counter-increment: col; padding: 0 14px 10px; text-align: left; vertical-align: bottom; font: 600 .82rem/1.3 var(--font-head); letter-spacing: .02em; color: var(--ink); background: var(--head); border-right: 1px solid var(--grid-strong); border-bottom: 2px solid var(--ink); }
    .matrice-conteneur thead th::before { content: counter(col, upper-alpha); display: block; margin: 0 -14px 9px; padding: 4px 0; text-align: center; font-weight: 500; font-size: .7rem; color: var(--muted); border-bottom: 1px solid var(--grid-strong); }
    .matrice-conteneur th, .matrice-conteneur td { padding: 11px 14px; border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); vertical-align: top; text-align: left; }
    .matrice-conteneur tr > :last-child { border-right: 0; }
    .matrice-conteneur tbody th { font: 500 .94rem/1.4 var(--font-head); color: var(--ink); background: var(--sheet); }
    .matrice-conteneur tbody tr:hover td { background: var(--accent-050); }
    .matrice-conteneur td.chiffre, .matrice-conteneur th.chiffre { text-align: right; white-space: nowrap; }
    .matrice-conteneur tfoot td, .matrice-conteneur tfoot th { font: 600 .96rem var(--font-head); color: var(--ink); border-top: 3px double var(--ink); background: var(--sheet); }

    .formula { margin: 1.8em 0; border: 1px solid var(--ink); background: var(--paper); }
    .formula-barre { display: flex; align-items: stretch; border-bottom: 1px solid var(--grid-strong); background: var(--paper); }
    .formula-barre .fx { flex: none; display: grid; place-items: center; width: 48px; font: italic 600 1rem var(--font-head); color: var(--accent-ink); background: var(--head); border-right: 1px solid var(--grid-strong); }
    .formula-expr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 14px 16px; font: 500 1.02rem/1.35 var(--font-head); color: var(--ink); }
    .f-term { padding: 4px 10px; background: var(--sheet); border: 1px solid var(--grid-strong); }
    .f-term.etat-result { background: var(--accent-050); border: 2px solid var(--accent); }
    .f-op { font-weight: 700; font-size: 1.2rem; color: var(--accent-ink); }
    .formula-example { margin: 0; padding: 6px 16px; font-variant-numeric: tabular-nums; }
    .f-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 9px 0; border-bottom: 1px dashed var(--grid-strong); }
    .f-row:last-child { border-bottom: 0; }
    .f-libelle { color: var(--muted); }
    .f-grandeur { font: 500 1rem var(--font-head); color: var(--ink); text-align: right; }
    .f-row.f-total { border-top: 3px double var(--ink); border-bottom: 0; margin-top: -1px; }
    .f-row.f-total .f-libelle { color: var(--ink); font-weight: 700; }
    .f-row.f-total .f-grandeur { font-size: 1.2rem; font-weight: 700; color: var(--accent-ink); }
    .formula-remarque { margin: 0; padding: 10px 16px; font-size: .86rem; color: var(--muted); background: var(--sheet); border-top: 1px solid var(--grid-strong); }

    .planche-display { display: grid; grid-template-columns: minmax(0, 1fr); margin: 2em 0; background: var(--display); color: #DCEBEC; border: 1px solid var(--ink); box-shadow: 8px 8px 0 rgba(5, 44, 50, .1); }
    @media (min-width: 640px) { .planche-display { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
    .planche-screen { padding: 22px 22px 18px; text-align: right; background-image: linear-gradient(rgba(94, 230, 214, .06) 1px, transparent 1px); background-size: 100% 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
    @media (min-width: 640px) { .planche-screen { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, .12); } }
    .planche-libelle { display: block; text-align: left; font: 500 .72rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #9FC0C3; margin: 0 0 12px; }
    .planche-valeur { display: block; font: 600 clamp(2.4rem, 1.6rem + 3.4vw, 3.8rem)/1 var(--font-head); letter-spacing: -.02em; color: var(--display-digit); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
    .planche-unit { display: block; margin-top: 8px; font: 400 .95rem var(--font-head); color: #C6DCDE; }
    .planche-ecriture { padding: 22px; font-size: 1rem; }
    .planche-ecriture p { margin: 0 0 .7em; }
    .planche-ecriture p:last-child { margin-bottom: 0; }
    .planche-ecriture strong { color: #fff; }
    .planche-ecriture a { color: var(--display-digit); }

    .texte .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1.6em 0; padding: 0; list-style: none; border-top: 1px solid var(--grid-strong); border-left: 1px solid var(--grid-strong); }
    .texte .stats li { padding: 16px 18px; margin: 0; border-right: 1px solid var(--grid-strong); border-bottom: 1px solid var(--grid-strong); background: var(--paper); }
    .texte .stats li::before { display: none; }
    .releve-valeur { display: block; font: 600 clamp(1.7rem, 1.4rem + 1vw, 2.2rem)/1.05 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
    .releve-libelle { display: block; margin-top: 6px; font-size: .92rem; color: var(--muted); line-height: 1.4; }

    .texte ol.etapes { counter-reset: step; margin: 1.6em 0 1.8em; padding: 0; list-style: none; border-left: 1px solid var(--grid-strong); }
    .etapes > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 18px; padding: 0 0 22px 0; margin: 0; }
    .etapes > li::before { content: counter(step); grid-row: 1 / span 2; display: grid; place-items: center; width: 48px; height: 48px; margin-left: -1px; font: 600 1.3rem/1 var(--font-head); color: var(--ink); background: var(--accent); box-shadow: var(--key-shadow); }
    .etapes > li:not(:last-child)::after { content: "+"; position: absolute; left: 14px; top: 54px; width: 20px; text-align: center; font: 700 .95rem/1 var(--font-head); color: var(--accent-ink); }
    .etapes > li:last-child::before { background: var(--ink); color: var(--display-digit); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .4); }
    .palier-titrage { display: block; font: 600 1.08rem/1.35 var(--font-head); color: var(--ink); padding-top: 12px; margin: 0 0 4px; }
    .etapes p { margin: 0; color: var(--text); }

    .bulle { position: relative; margin: 1.6em 0; padding: 18px 20px 18px 22px; background: var(--sheet); border: 1px solid var(--grid-strong); border-left: 4px solid var(--accent); }
    .bulle::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--accent) transparent transparent; }
    .bulle-libelle { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 .74rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
    .bulle p:last-child { margin-bottom: 0; }
    .bulle.etat-remarque { border-left-color: var(--ink); background: var(--paper); }
    .bulle.etat-remarque::after { border-color: transparent var(--ink) transparent transparent; }
    .bulle.etat-remarque .bulle-libelle { color: var(--ink); }

    .appel-lisere { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; margin: 2.2em 0; padding: 22px; background: var(--accent-050); border: 1px solid var(--grid-strong); border-top: 4px double var(--ink); }
    @media (min-width: 720px) { .appel-lisere { grid-template-columns: minmax(0, 1fr) auto; padding: 24px 28px; } }
    .appel-titrage { display: block; font: 600 1.2rem/1.3 var(--font-head); color: var(--ink); margin: 0 0 6px; }
    .appel-lisere p { margin: 0; color: var(--text); }

    #qui-sommes-nous { background-color: var(--sheet); background-image: var(--sheet-grid); background-size: var(--cell) var(--cell); border-top: 1px solid var(--grid-strong); border-bottom: 1px solid var(--grid-strong); }
    .presentation { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
    @media (min-width: 900px) { .presentation { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
    .presentation-ecriture { background: var(--paper); border: 1px solid var(--grid-strong); padding: 26px; }
    .presentation-ecriture h2 { margin-bottom: 16px; }
    .presentation-constats { background: var(--paper); border: 1px solid var(--ink); }
    .constats-file { margin: 0; padding: 0; list-style: none; counter-reset: fact; }
    .constats-file li { counter-increment: fact; display: grid; grid-template-columns: 44px minmax(0, 1fr); border-bottom: 1px solid var(--grid); }
    .constats-file li::before { content: counter(fact); display: grid; place-items: center; font: 500 .8rem var(--font-head); color: var(--muted); background: var(--head); border-right: 1px solid var(--grid-strong); }
    .constats-file li span { padding: 14px 16px; }
    .mentions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px; background: var(--sheet); }
    .mentions img { height: 56px; width: auto; mix-blend-mode: multiply; }

    .interrogations-sheet { max-width: 960px; border: 1px solid var(--ink); background: var(--paper); counter-reset: faq; }
    .interrogations-sheet details { counter-increment: faq; border-bottom: 1px solid var(--grid-strong); }
    .interrogations-sheet details:last-child { border-bottom: 0; }
    .interrogations-sheet summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 34px; gap: 0 14px; align-items: center; padding: 0 16px 0 0; cursor: pointer; list-style: none; font: 500 1.04rem/1.4 var(--font-head); color: var(--ink); }
    .interrogations-sheet summary::-webkit-details-marker { display: none; }
    .interrogations-sheet summary::before { content: counter(faq); align-self: stretch; display: grid; place-items: center; min-height: 60px; font: 500 .8rem var(--font-head); color: var(--muted); background: var(--head); border-right: 1px solid var(--grid-strong); }
    .interrogations-sheet summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; font: 600 1.15rem/1 var(--font-head); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); box-shadow: var(--key-shadow); transition: background-color .15s; }
    .interrogations-sheet summary:hover::after { background: var(--accent-050); }
    .interrogations-sheet summary > * { margin: 0; }
    .interrogations-sheet details > summary { min-height: 60px; }
    .interrogations-sheet details[open] > summary { background: var(--accent-050); box-shadow: inset 0 0 0 2px var(--accent); }
    .interrogations-sheet details[open] > summary::before { background: var(--accent); color: var(--ink); border-right-color: var(--accent); }
    .interrogations-sheet details[open] > summary::after { content: "\2212"; background: var(--accent); }
    .interrogations-sheet details > :not(summary) { margin: 0; padding: 16px 20px 6px 58px; }
    .interrogations-sheet details > :not(summary) p { margin: 0 0 .9em; }
    @media (max-width: 479px) { .interrogations-sheet summary { grid-template-columns: 36px minmax(0, 1fr) 32px; gap: 0 10px; font-size: .98rem; } .interrogations-sheet details > :not(summary) { padding-left: 18px; } }

    .lieu-colophon { background: var(--ink); color: #B7CFD1; border-top: 6px double var(--accent); font-size: .95rem; }
    .colophon-quadrillage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 40px; }
    @media (min-width: 860px) { .colophon-quadrillage { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
    .colophon-blason { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #fff; font: 600 1.05rem var(--font-head); }
    .colophon-blason img { height: 15px; width: auto; filter: brightness(0) invert(1); }
    .lieu-colophon h2 { font: 500 .74rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--display-digit); margin: 0 0 14px; }
    .lieu-colophon ul { margin: 0; padding: 0; list-style: none; }
    .lieu-colophon li { margin: 0 0 8px; }
    .lieu-colophon a { color: #fff; }
    .lieu-colophon a:hover { color: var(--display-digit); }
    .lieu-colophon .touche-couleur { color: var(--ink); }
    .status-barre { background: #031E23; border-top: 1px solid rgba(255, 255, 255, .1); font: 400 .8rem/1.3 var(--font-head); color: #9FC0C3; }
    .status-barre .enveloppe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 10px; padding-bottom: 10px; }
    .status-barre p { margin: 0; }
    .status-barre .ready::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); }

    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

    [data-lead-form] .lf-native-step + .lf-native-step { display: none; }

    [data-lead-form] .lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
    [data-lead-form] .lf-native-step { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
    [data-lead-form] .lf-native .lf-step-title { display: block; margin: 0 0 12px; padding: 0; font-weight: 600; }
    [data-lead-form] .lf-native .lf-grid { display: grid; gap: 12px; }
    [data-lead-form] .lf-native .lf-field { margin: 0; padding: 0; border: 0; min-width: 0; }
    [data-lead-form] .lf-native .lf-label, [data-lead-form] .lf-native .lf-field legend { display: block; margin: 0 0 5px; font-size: .875rem; font-weight: 600; }
    [data-lead-form] .lf-native .lf-input { display: block; width: 100%; box-sizing: border-box; padding: 11px 12px; font: inherit; font-size: 1rem; border: 1px solid var(--lf-line, #d5dae3); border-radius: var(--lf-radius, 6px); background: var(--lf-bg, #fff); color: inherit; }
    [data-lead-form] .lf-native textarea.lf-input { min-height: 96px; }
    [data-lead-form] .lf-native .lf-check { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; }
    [data-lead-form] .lf-native .lf-check input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; }
    [data-lead-form] .lf-native .lf-btn { display: block; width: 100%; padding: 14px 18px; font: inherit; font-size: 1rem; font-weight: 700; border: 0; border-radius: var(--lf-radius, 6px); cursor: pointer; background: var(--lf-accent, #ff9e24); color: var(--lf-accent-ink, #14213d); }
