/* Polices auto-hébergées (sous-ensemble latin), téléchargées depuis Google Fonts le 2026-10-04. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/BricolageGrotesque-0.woff2) format('woff2');
  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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/BricolageGrotesque-0.woff2) format('woff2');
  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: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/Figtree-1.woff2) format('woff2');
  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: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/Figtree-1.woff2) format('woff2');
  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: 'Figtree';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/Figtree-1.woff2) format('woff2');
  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: 'Figtree';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/Figtree-1.woff2) format('woff2');
  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;
}
/* calculchevalfiscal.fr — « tableau de bord » : bandeau vert nuit, compteur à aiguille, accent citron vert.
   Titres Bricolage Grotesque, texte Figtree. Bannière flottante permanente (carte en bas à droite, barre sur mobile). */
:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --ink: #12201b;
  --muted: #5b6a63;
  --line: #e0e6df;
  --night: #0f1d18;
  --night-2: #183229;
  --night-ink: #eef5ef;
  --lime: #b8f03e;
  --lime-dark: #8fcb12;
  --green: #0c8a5c;
  --soft: #e9f3e4;
  --code: #eef2ec;
  --shadow: 0 1px 2px rgba(18, 32, 27, .05), 0 14px 34px -16px rgba(18, 32, 27, .28);
  --radius: 18px;
  --display: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1310; --surface: #121d19; --ink: #e6efe9; --muted: #9aaba3; --line: #22322b;
    --night: #070e0b; --night-2: #12251e; --green: #6fdba6; --soft: #17271f; --code: #17221e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1310; --surface: #121d19; --ink: #e6efe9; --muted: #9aaba3; --line: #22322b;
  --night: #070e0b; --night-2: #12251e; --green: #6fdba6; --soft: #17271f; --code: #17221e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -16px rgba(0,0,0,.7); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.7 var(--body); padding-bottom: 40px; }
.shell { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
a { color: var(--green); text-underline-offset: 3px; font-weight: 600; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: .3rem 0 .8rem; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2.6rem 0 .8rem; font-weight: 800; }
.muted, .note { color: var(--muted); font-size: .9rem; }
:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 2px; }

/* En-tête */
.mast { background: var(--night); color: var(--night-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; border-bottom: 1px solid rgba(255,255,255,.06); }
.mast-in { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--night-ink); text-decoration: none; }
.logo { width: 36px; height: 36px; }
.logo rect { fill: #24423a; }
.brand-txt { font: 800 1.15rem/1 var(--display); letter-spacing: -.02em; }
.brand-txt b { color: var(--lime); }
.brand-txt em { font-style: normal; opacity: .55; }
.mast-nav { display: flex; gap: 4px; margin-left: auto; }
.mast-nav a { color: #cfe0d6; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.mast-nav a:hover { background: rgba(184, 240, 62, .12); color: var(--lime); }
.mast-link { background: var(--lime); color: #12201b; font-weight: 800; padding: 10px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.mast-link:hover { background: #cbff5c; color: #12201b; }

/* Bandeau d'accueil */
.hero { color: var(--night-ink); padding: 54px 0 64px; position: relative; overflow: hidden;
  background: radial-gradient(700px 360px at 90% 0, rgba(184, 240, 62, .18), transparent 65%), radial-gradient(600px 300px at 0 100%, rgba(12, 138, 92, .35), transparent 70%), linear-gradient(160deg, var(--night), var(--night-2)); }
.hero-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 44px; align-items: center; }
.eyebrow { display: inline-block; margin: 0; font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.hero .standfirst { color: #bcd0c4; font-size: 1.15rem; }
.pagehead { background: linear-gradient(160deg, var(--night), var(--night-2)); color: var(--night-ink); padding: 40px 0 46px; }
.pagehead .eyebrow { color: var(--lime); }
.pagehead h1 { max-width: 820px; }
.standfirst { font-size: 1.12rem; margin: 0; max-width: 680px; }

/* Calculateur */
.calc { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 20px 22px 22px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65); }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 5px; border-radius: 999px; margin-bottom: 18px; overflow-x: auto; }
.tabs button { font: 700 .9rem/1 var(--body); background: none; border: 0; padding: 11px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; border-radius: 999px; flex: 1; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--lime); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.calc label { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--muted); }
.calc input, .calc select { font: 700 1.2rem/1.2 var(--body); padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); min-width: 0; }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--green); }
.unit-in { display: flex; gap: 8px; }
.unit-in input { flex: 1; }
.result { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 18px; }
.result-cv { position: relative; }
.gauge { width: 100%; height: auto; display: block; }
.g-track, .g-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.g-track { stroke: var(--line); }
.g-fill { stroke: var(--lime-dark); stroke-dasharray: 100; stroke-dashoffset: 68; transition: stroke-dashoffset .6s cubic-bezier(.3, 1.4, .5, 1); }
.g-ticks line { stroke: var(--muted); stroke-width: 1.5; }
.g-ticks text { fill: var(--muted); font: 700 9px var(--body); text-anchor: middle; }
.g-needle { transform-origin: 100px 104px; transform: rotate(-33deg); transition: transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.g-needle path { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.g-needle circle { fill: var(--ink); }
.g-val { margin: 2px 0 0; text-align: center; font: 800 2.4rem/1 var(--display); }
.g-val small { font-size: .9rem; color: var(--muted); margin-left: 3px; }
.result-detail { min-width: 0; overflow-wrap: anywhere; }
.result-detail p { margin: 6px 0; font-size: .92rem; color: var(--muted); }
.result-price { font-size: 1rem !important; color: var(--ink) !important; }
.result-price strong { font: 800 1.5rem/1 var(--display); color: var(--green); }
.result-price label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.result-price select { font-size: .92rem; padding: 7px 10px; max-width: 100%; }
.calc-out { font-size: 1rem; margin: 14px 0 0; }
article .calc { box-shadow: var(--shadow); }

/* Mise en page des chapitres */
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 50px; padding-top: 36px; padding-bottom: 60px; }
.toc { position: sticky; top: 84px; background: var(--surface); border-radius: var(--radius); padding: 18px 12px; box-shadow: var(--shadow); font-size: .93rem; }
.toc-t { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--muted); margin: 0 10px 8px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: c -1; }
.toc li { counter-increment: c; }
.toc a { display: flex; gap: 8px; padding: 7px 10px; color: var(--ink); text-decoration: none; border-radius: 10px; font-weight: 500; }
.toc li + li a::before { content: counter(c); color: var(--muted); font-weight: 700; min-width: 1.3em; }
.toc a:hover { background: var(--soft); }
.toc a[aria-current] { background: var(--ink); color: var(--lime); font-weight: 700; }
.toc a[aria-current]::before { color: var(--lime) !important; }
.main { max-width: 760px; min-width: 0; }
.main article > :first-child { margin-top: 0; }
.lead { font-size: 1.2rem; }
article ul, article ol { padding-left: 1.3em; }
article li { margin-bottom: .4em; }
.chap { display: none; }

.formula { background: var(--night); color: var(--night-ink); border-radius: 16px; padding: 18px 22px; margin: 1.3rem 0; font: 700 1.05rem/1.5 var(--mono); overflow-x: auto; }
.f-label { display: block; font: 800 .7rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--lime); margin-bottom: 10px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; margin-bottom: 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px; border-radius: 10px; background: var(--lime); color: #12201b; display: grid; place-items: center; font: 800 .95rem/1 var(--display); }

.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); margin: 1rem 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); display: table; }
.tbl th { text-align: left; background: var(--soft); padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tbl td { border-top: 1px solid var(--line); padding: 10px 14px; font-variant-numeric: tabular-nums; }

.encart { display: grid; gap: 4px; background: linear-gradient(135deg, var(--night), var(--night-2)); color: var(--night-ink); padding: 24px 26px; margin: 2rem 0; border-radius: 20px; position: relative; overflow: hidden; }
.encart::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 18px solid rgba(184, 240, 62, .2); }
.encart-t { font: 800 1.35rem/1.2 var(--display); margin: 0; }
.encart p { margin: 0 0 12px; color: #bcd0c4; }
.encart-btn { justify-self: start; background: var(--lime); color: #12201b; font-weight: 800; padding: 12px 20px; border-radius: 999px; text-decoration: none; position: relative; z-index: 1; }

.chapters { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.chapters a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); height: 100%; transition: transform .15s; }
.chapters a:hover { transform: translateY(-2px); }
.chapters .n { font: 800 1.05rem/1 var(--display); color: #12201b; background: var(--lime); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; }
.chapters strong { display: block; line-height: 1.3; }
.chapters em { font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 500; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.6rem; }
.next a { display: block; padding: 16px 18px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-weight: 700; }
.next a.r { text-align: right; grid-column: 2; }
.next small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.colophon { background: var(--night); color: #a9bdb2; padding: 30px 0 140px; font-size: .9rem; }
.colophon strong { color: var(--night-ink); }
.colophon a { color: var(--lime); }

/* Bannière flottante : barre en bas de l'écran, toujours visible */
.float-ban { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 0 12px calc(14px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.float-in { pointer-events: auto; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico q btn" "ico main btn" "ico sub legal"; column-gap: 18px; align-items: center; text-decoration: none; color: var(--night-ink); background: linear-gradient(150deg, #12201b, #1e3d31); border-radius: 22px; padding: 14px 16px 12px 16px; box-shadow: 0 24px 60px -18px rgba(5, 15, 10, .8), 0 0 0 2px rgba(184, 240, 62, .6); animation: ban-in .5s ease-out both; }
.float-in::before { content: "4×"; grid-area: ico; width: 64px; height: 64px; border-radius: 18px; background: var(--lime); color: #12201b; display: grid; place-items: center; font: 800 1.6rem/1 var(--display); }
.fb-q { grid-area: q; font-size: .92rem; color: #bcd0c4; font-weight: 500; }
.fb-q b { color: #fff; }
.fb-main { grid-area: main; font: 800 clamp(1.15rem, 2.6vw, 1.55rem)/1.15 var(--display); letter-spacing: -.02em; }
.fb-main b { color: var(--lime); }
.fb-sub { grid-area: sub; font-size: .88rem; color: #bcd0c4; font-weight: 500; }
.fb-btn { grid-area: btn; text-align: center; background: var(--lime); color: #12201b; font-weight: 800; padding: 14px 22px; border-radius: 999px; white-space: nowrap; animation: ban-pulse 2.4s ease-in-out infinite; }
.fb-legal { grid-area: legal; font-size: .68rem; color: #8ea89b; text-align: center; font-weight: 500; margin-top: 4px; }
.float-in:hover .fb-btn { background: #cbff5c; }
@keyframes ban-in { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ban-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 240, 62, .55); } 50% { box-shadow: 0 0 0 10px rgba(184, 240, 62, 0); } }
@media (prefers-reduced-motion: reduce) { .float-in, .fb-btn { animation: none; } .g-needle, .g-fill, .chapters a { transition: none; } }


@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mast-nav { display: none; }
  .mast-link { margin-left: auto; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 26px; }
  .side { order: 2; margin-top: 2rem; }
  .toc { position: static; }
  .next { grid-template-columns: 1fr; }
  .next a.r { grid-column: auto; }
  .float-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q btn" "main btn" "legal legal"; column-gap: 12px; padding: 12px 14px 8px; border-radius: 18px; }
  .float-in::before { display: none; }
  .fb-q { font-size: .8rem; }
  .fb-main { font-size: 1.1rem; }
  .fb-sub { display: none; }
  .fb-btn { padding: 11px 14px; font-size: .88rem; }
}
@media (max-width: 520px) {
  .result { grid-template-columns: minmax(0, 1fr); }
  .result-cv { max-width: 240px; margin: 0 auto; width: 100%; }
  .brand-txt em { display: none; }
  .brand-txt { font-size: 1rem; }
  .mast-link { padding: 8px 12px; font-size: .85rem; }
  .tabs button { padding: 10px; font-size: .82rem; }
}

/* Bouton de commande du calculateur */
.calc-cta { display: inline-block; margin-top: 10px; background: var(--ink); color: var(--lime); font-weight: 800; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.calc-cta b { color: #fff; }
.calc-cta:hover { background: var(--green); color: #fff; }

/* Questions fréquentes */
.faq details { background: var(--surface); border-radius: 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.3rem/1 var(--display); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Audit 2026-10 : résultat détaillé, outils, étape suivante */
.r-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.r-facts div { background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.r-facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.r-facts dd { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
@media (max-width: 520px) { .r-facts { grid-template-columns: 1fr; } }
.r-warn { color: var(--ink) !important; background: rgba(184, 240, 62, .14); border-radius: 10px; padding: 8px 10px; }
.calc-next { display: inline-block; background: var(--lime); color: #12201b; font-weight: 800; padding: 11px 18px; border-radius: 999px; text-decoration: none; }
.calc-next:hover { background: #cbff5c; color: #12201b; }
.r-main a { color: inherit; }
.encart a { color: var(--lime); }
.encart-s { font-size: .9rem; }
.tools { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tools a { display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; }
.tools a:hover { border-color: var(--lime-dark); }
.tools em { font-style: normal; font-size: .88rem; color: var(--muted); }
