/* Polices auto-hébergées (licence SIL Open Font License, voir assets/fonts/OFL-*.txt) : aucun appel à un serveur tiers. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.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;
}

/* Select Your Foil : palette océan sobre, Inter, responsive, mode sombre automatique. */
:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-soft: #f4f5f7;
  --text: #111111;
  --muted: #5c6370;
  --line: #e1e4e8;
  --brand: #111111;
  --brand-2: #1f4e79;
  --accent: #1f4e79;
  --accent-ink: #333a44;
  --band-relaxed: #1f7a4d;
  --band-comfortable: #4f9a3a;
  --band-high-aoa: #c58a12;
  --band-near-stall: #c85a18;
  --band-stall: #b3261e;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--brand); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 100; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.help { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.btn {
  display: inline-block; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600;
  background: var(--brand-2); color: #fff; border: 1px solid transparent; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; background: #16395a; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.brand-mark { width: 28px; height: 28px; color: var(--text); }
.nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.nav a { padding: .45rem .75rem; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.is-active { color: var(--brand-2); font-weight: 600; }
.nav .lang-switch { margin-left: .5rem; border: 1px solid var(--line); font-size: .85rem; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; padding: 8px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 760px) {
  .burger { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg-elev); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav .lang-switch { margin-left: 0; margin-top: .5rem; text-align: center; }
}

/* Sections */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; }
.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 3rem) 0 1rem; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 3.4rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; color: var(--text); }
.card-link:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--accent); }
.card-cta { margin-top: auto; color: var(--brand-2); font-weight: 600; }
.card-soon { opacity: .7; }
.tag { align-self: flex-start; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: var(--bg-soft); color: var(--muted); padding: .2rem .55rem; border-radius: 999px; }

/* Sélecteur */
.selector { padding-bottom: 3rem; }
.controls { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.field label, .usage-filter legend { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.field-row { display: flex; align-items: center; gap: .5rem; }
.unit { color: var(--muted); font-size: .9rem; }
select, input[type="number"] {
  font: inherit; color: var(--text); background: #fff; border: 1px solid #c9ced6; border-radius: 6px;
  padding: .6rem .75rem; width: 100%; min-height: 44px;
}
select:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.filters summary { cursor: pointer; padding: .8rem 1.25rem; font-weight: 600; }
.filters-inner { display: grid; gap: 1rem; grid-template-columns: minmax(180px, 240px) 1fr auto; align-items: end; padding: 0 1.25rem 1.25rem; }
@media (max-width: 760px) { .filters-inner { grid-template-columns: 1fr; } }
.usage-filter { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.usage-filter legend { padding: 0; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; font-size: .88rem; cursor: pointer; background: var(--bg); }
.chip:has(input:checked) { background: var(--brand-2); color: #fff; border-color: var(--brand-2); }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.check { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; }
.data-status { font-size: .9rem; color: var(--muted); margin: 1rem 0; }
.data-status.is-warning { color: var(--band-high-aoa); }

.results { display: grid; gap: 1.25rem; grid-template-columns: 280px 1fr; align-items: start; margin-top: 1rem; }
.results .table-section { grid-column: 1 / -1; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr; } }
.hypotheses, .summary { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.hypotheses dl { margin: 0; display: grid; gap: .6rem; }
.hypotheses dt { font-size: .8rem; color: var(--muted); }
.hypotheses dd { margin: 0; font-family: var(--mono); font-size: 1rem; }
.summary ul { margin: .25rem 0 .9rem; padding-left: 1.1rem; }
.summary li { margin: .15rem 0; }
.summary .rule { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; margin: .5rem 0 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.lift-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 840px; }
.lift-table th, .lift-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.lift-table th { position: sticky; top: 0; background: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); z-index: 1; }
.lift-table th.num, .lift-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.lift-table td.num { font-family: var(--mono); font-size: .9rem; }
.lift-table tbody tr:hover { background: var(--bg-soft); }
.lift-table tr.is-stall td { color: var(--muted); }
.lift-table .wing-name { font-weight: 600; color: var(--text); }
.lift-table .wing-size { color: var(--muted); font-weight: 400; }
.lift-table .wing-meta { font-size: .78rem; color: var(--muted); white-space: normal; }
.lift-table button.link { font: inherit; background: none; border: 0; color: var(--brand-2); cursor: pointer; padding: 0; font-size: .85rem; }
.lift-table button.link:hover { text-decoration: underline; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .45rem; vertical-align: -1px; }
.band-relaxed { background: var(--band-relaxed); }
.band-comfortable { background: var(--band-comfortable); }
.band-high-aoa { background: var(--band-high-aoa); }
.band-near-stall { background: var(--band-near-stall); }
.band-stall { background: var(--band-stall); }
.cl-cell { font-weight: 600; }
.warn { color: var(--band-stall); font-weight: 700; }
.legend { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.legend h3 { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.legend ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.price { font-weight: 600; color: var(--band-relaxed); }
.price-none { color: var(--muted); font-size: .85rem; }

/* Fiche aile */
.detail { border: 0; border-radius: var(--radius); padding: 0; max-width: min(720px, 94vw); width: 100%; background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
.detail::backdrop { background: rgba(5, 15, 30, .55); backdrop-filter: blur(2px); }
.detail-inner { padding: 1.5rem; }
.detail-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.detail-head h2 { margin-bottom: .2rem; }
.detail .close { font: inherit; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; color: var(--text); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin: 1rem 0; }
.detail-grid div { background: var(--bg-soft); border-radius: 8px; padding: .6rem .75rem; }
.detail-grid dt { font-size: .75rem; color: var(--muted); }
.detail-grid dd { margin: 0; font-family: var(--mono); }
.detail h3 { margin-top: 1.25rem; font-size: 1rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.plain-list { margin: 0; padding-left: 1.1rem; }
.detail .muted { color: var(--muted); font-size: .9rem; }

/* Prose */
.prose { padding: clamp(1.5rem, 4vw, 3rem) 0 3rem; max-width: 76ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.prose pre { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; overflow-x: auto; font-family: var(--mono); font-size: .88rem; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose .note { border-left: 3px solid var(--accent); background: var(--bg-elev); padding: .75rem 1rem; border-radius: 0 8px 8px 0; margin: 1rem 0; }
.prose dl.brands dt { font-weight: 600; margin-top: 1rem; }
.prose dl.brands dd { margin: .25rem 0 0; }
.prose .sources { font-size: .85rem; word-break: break-all; }
.status-yes { color: var(--band-relaxed); font-weight: 600; }
.status-partial { color: var(--band-high-aoa); font-weight: 600; }
.status-no { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding: 2rem 0; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.footer-inner { display: grid; gap: .75rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-copy { font-size: .82rem; margin: 0; }

/* Pages racine / 404 */
.root-page { display: grid; min-height: 100vh; place-items: center; }
.root-choice { text-align: center; padding: 2rem; }
.root-choice .btn { margin: .25rem; }
.root-choice hr { border: 0; border-top: 1px solid var(--line); margin: 2rem auto; width: 60%; }

/* Comparateur de profils */
.compare { padding: 2rem 0 3rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.compare-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; align-items: start; margin-bottom: 1rem; }
.compare-form .field-small { grid-column: 1 / -1; max-width: 280px; }
@media (max-width: 760px) { .compare-form { grid-template-columns: 1fr; } }
.compare-wing { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 1rem 1.25rem 1.25rem; margin: 0; display: grid; gap: .6rem; }
.compare-wing legend { font-weight: 700; color: var(--brand); padding: 0 .4rem; }
.compare-wing label { display: grid; gap: .25rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.compare-wing input { font-weight: 400; color: var(--text); }
.compare-table { min-width: 0; }
.compare-table th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .93rem; color: var(--text); font-weight: 500; position: static; background: none; }
.compare-table tr.is-key td { font-weight: 700; color: var(--text); }
.compare-table tr.is-key { background: var(--bg-soft); }

/* Fiche aile : contenu défilant, bouton Fermer toujours accessible */
.detail { max-height: 90vh; overflow: auto; }
.detail-head { position: sticky; top: 0; background: var(--bg-elev); padding-bottom: .5rem; z-index: 2; }

/* Page unique : comparateur */
.comparator { padding-bottom: 3rem; }
.cmp-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
@media (max-width: 960px) { .cmp-grid { grid-template-columns: 1fr 1fr; } .cmp-grid .params { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cmp-grid { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 1rem 1.25rem 1.25rem; margin: 0; display: grid; gap: .7rem; box-shadow: var(--shadow); }
.panel legend { font-weight: 700; color: var(--brand); padding: 0 .4rem; }
.panel label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.panel .field-row { display: flex; align-items: center; gap: .5rem; }
.panel .help { font-weight: 400; }
.panel .source { margin: 0; font-size: .8rem; color: var(--muted); }
.table-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.75rem 0 .75rem; }
.table-head h2 { margin: 0; }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }
.compare-table th[scope="col"] { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--text); white-space: normal; border-bottom: 2px solid var(--text); }
.compare-table td.num { white-space: normal; }
.inline-input { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--mono); }
.inline-input input { width: 5.5rem; min-height: 36px; padding: .3rem .5rem; text-align: right; font-family: var(--mono); }
.inline-input em { font-style: normal; font-family: var(--font); font-size: .75rem; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: .1rem .5rem; }
.inline-input em[hidden] { display: none; }
.default-mark { font-style: normal; font-size: .75rem; color: var(--muted); background: var(--bg-soft); border-radius: 999px; padding: .1rem .5rem; margin-left: .35rem; }
.default-mark[hidden] { display: none; }
.formulas { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: .6rem 1.25rem; font-size: .9rem; color: var(--muted); }
.formulas summary { cursor: pointer; font-weight: 600; color: var(--text); }
.legal summary { cursor: pointer; font-weight: 600; }
.legal p { margin: .5rem 0 0; font-size: .85rem; }

/* Comparateur sur petit écran : tableau à trois colonnes qui tient dans la largeur */
@media (max-width: 640px) {
  .compare-table { font-size: .82rem; table-layout: fixed; width: 100%; }
  .compare-table th[scope="row"] { width: 34%; white-space: normal; padding-left: .5rem; }
  .compare-table th, .compare-table td { padding: .5rem .4rem; }
  .compare-table td.num { font-size: .8rem; }
  .inline-input { flex-wrap: wrap; justify-content: flex-end; gap: .2rem; }
  .inline-input input { width: 3.6rem; min-height: 32px; padding: .2rem .3rem; }
  .inline-input em, .default-mark { display: none; }
  .table-head { flex-wrap: wrap; }
}

/* Sans menu burger : le sélecteur de langue reste dans l'en-tête sur mobile */
@media (max-width: 760px) {
  .nav, .nav.is-open { position: static; display: flex; flex-direction: row; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav .lang-switch { margin: 0; }
}

/* Curseurs */
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.slider output { font-family: var(--mono); font-weight: 600; color: var(--text); font-size: .95rem; }
input[type="range"] { width: 100%; margin: .2rem 0; accent-color: #111; height: 28px; cursor: pointer; }

/* Tableaux légèrement grisés */
.table-scroll { background: #f7f8fa; }
.lift-table th { background: #fff; }
.lift-table tbody tr:hover { background: #eef0f3; }
.compare-table tr.is-key { background: #eceef1; }
.coef { max-width: none; padding-top: 0; }
.coef > * { max-width: 76ch; }
.coef h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.coef pre { margin: .75rem 0; }
.capped { color: var(--band-near-stall); background: #fdf1e9; }

/* Schémas */
.diagram { margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; padding: .75rem; }
.diagram svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.diagram figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; line-height: 1.45; }

/* Fond gris clair sur tous les blocs : Aile A, Aile B, Paramètres, tableau de résultats */
.panel, .table-scroll, .lift-table th, .compare-table th[scope="col"] { background: #f3f4f6; }
.panel select, .panel input[type="number"] { background: #fff; }
.compare-table tr.is-key { background: #e7e9ec; }
.lift-table tbody tr:hover { background: #eceef1; }
.panel { box-shadow: none; }

/* Trois ailes + paramètres */
.cmp-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cmp-grid-4 { grid-template-columns: 1fr 1fr; } .cmp-grid-4 .params { grid-column: 1 / -1; } }
@media (max-width: 640px) { .cmp-grid-4 { grid-template-columns: 1fr; } }
.compare-table.no-c .col-c { display: none; }
@media (max-width: 640px) { .compare-table th[scope="row"] { width: 28%; } }

/* Légende sous le tableau */
.legend-box { margin-top: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f3f4f6; padding: .6rem 1.25rem; }
.legend-box summary { cursor: pointer; font-weight: 600; }
.legend-list { margin: .75rem 0 .25rem; display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; font-size: .9rem; }
.legend-list dt { font-weight: 600; }
.legend-list dd { margin: 0; color: var(--text); line-height: 1.5; }
@media (max-width: 640px) { .legend-list { grid-template-columns: 1fr; gap: .15rem; } .legend-list dd { margin-bottom: .6rem; } }

.panel { padding-top: 1.25rem; }

/* Respiration entre les blocs de sélection, le tableau et la légende */
.comparator .table-scroll { margin-top: 2rem; }
.comparator .legend-box { margin-top: 1.5rem; }

/* Graphique coefficient requis selon la vitesse */
.chart { margin: 1.5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: #f3f4f6; padding: 1rem 1.25rem 1.1rem; }
.chart figcaption { font-size: .9rem; margin-bottom: .5rem; }
.chart figcaption .help { display: block; margin-top: .2rem; }
.chart-wrap { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart-grid { stroke: #d9dde3; stroke-width: 1; }
.chart-tick { font-size: 11px; fill: var(--muted); }
.chart-axis { font-size: 11px; fill: var(--muted); font-weight: 600; }
.chart-band { font-size: 10px; fill: var(--muted); }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart-label { font-size: 12px; font-weight: 700; fill: var(--text); }
.chart-now { stroke: #111; stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart-cross { stroke: #111; stroke-width: 1; opacity: .5; }
.chart-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; font-size: .82rem; box-shadow: var(--shadow); white-space: nowrap; }
.chart-tip[hidden] { display: none; }
.chart-legend { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: .85rem; }
.chart-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.chart-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: .3rem; }

/* Bascule coefficient / poids porté */
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .5rem; }
.chart-head figcaption { margin-bottom: 0; }
.segmented { display: inline-flex; border: 1px solid #c9ced6; border-radius: 999px; overflow: hidden; flex-shrink: 0; background: #fff; }
.seg { font: inherit; font-size: .85rem; font-weight: 600; padding: .4rem .9rem; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.seg.is-on { background: #111; color: #fff; }
.chart-line.is-dashed { stroke-dasharray: 6 4; }
.chart-line.is-dotted { stroke-dasharray: 2 4; }
.chart-weight { stroke: #111; stroke-width: 1.5; }
.chart-styles { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .8rem; color: var(--muted); }
.chart-styles li { display: inline-flex; align-items: center; gap: .4rem; }
.chart-styles svg { width: 28px; height: 10px; }
@media (max-width: 640px) { .chart-head { flex-direction: column; } }

.chart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex-shrink: 0; }
#chart-wings[hidden] { display: none; }
.seg[hidden] { display: none; }
@media (max-width: 640px) { .chart-controls { align-items: flex-start; } }

.chart-ref { stroke: #b8bec7; stroke-width: 1; stroke-dasharray: 2 3; }
.chart-dot { stroke: #fff; stroke-width: 1.5; }
.lift-table .sub { display: block; font-family: var(--font); font-size: .78rem; color: var(--muted); font-weight: 400; }

.price-link { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.price-link:hover { text-decoration: underline; }

/* Choix des lignes du tableau : deuxième ligne de l'en-tête, dépliable */
.rows-row th { text-align: left; text-transform: none; letter-spacing: 0; font-size: .85rem; position: static; background: #eceef1; padding: .35rem .75rem; border-bottom: 1px solid var(--line); white-space: normal; }
.rows-picker summary { cursor: pointer; font-weight: 600; color: var(--muted); }
.rows-list { display: flex; flex-wrap: wrap; gap: .4rem .6rem; padding: .6rem 0 .4rem; }
.rows-list .chip { background: #fff; }
.rows-list .chip:has(input:checked) { background: #111; border-color: #111; color: #fff; }
.compare-table tr[hidden] { display: none; }


/* Onglets FrontWings | Setup sous l'en-tête */
.tabs-bar { background: #fff; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: .25rem; }
.tab { display: inline-block; padding: .9rem 1.25rem; font-weight: 600; font-size: 1.05rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { text-decoration: none; background: var(--bg-soft); color: var(--text); }
.tab.is-active { color: var(--text); border-color: #111; }
@media (max-width: 640px) { .tab { flex: 1; text-align: center; padding: .8rem .5rem; } }

/* Page Setup : panneaux à trois colonnes, schéma du foil, éléments, filtres */
.cmp-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .cmp-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cmp-grid-3 { grid-template-columns: 1fr; } }
.schematic { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .75rem; align-items: start; }
.setup-diagram { width: 96px; max-width: 100%; height: auto; display: block; }
.setup-diagram .part { fill: #cfd4db; stroke: #5c6370; stroke-width: 1.2; cursor: pointer; transition: fill .15s; }
.setup-diagram .part:hover { fill: #b9c0ca; }
.setup-diagram .part.is-current { fill: #1f4e79; stroke: #111; stroke-width: 1.6; }
.setup-diagram .part.is-missing { fill: #fff; stroke-dasharray: 3 2; }
.setup-diagram .part.is-off { display: none; }
.setup-diagram .part[data-part="tail"] { fill: #e6e9ee; }
.parts { display: grid; gap: .3rem; min-width: 0; }
.part-btn { font: inherit; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; cursor: pointer; display: grid; gap: .1rem; color: var(--text); min-width: 0; }
.part-btn:hover { border-color: #9aa3ae; }
.part-btn.is-current { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
.part-btn .part-name { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.part-btn .part-pick { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.part-btn .part-sub { font-size: .78rem; color: var(--muted); font-weight: 400; }
.part-btn .part-sub:empty { display: none; }
.part-controls { display: grid; gap: .6rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.part-controls[hidden] { display: none; }
.part-controls label[hidden], .part-controls .seg[hidden] { display: none; }
.segmented-wide { justify-self: start; }
.part-controls .integrated { margin: 0; }
.setup-pick.is-empty .schematic, .setup-pick.is-empty .part-controls, .setup-pick.is-empty .source { display: none; }
.setup-table tr.is-unused { display: none; }
.setup-table td.is-partial { color: var(--band-high-aoa); }
.setup-link { display: inline-block; font-size: .85rem; font-weight: 600; justify-self: start; }
.setup-link[hidden] { display: none; }

/* Page Stab : frontwing de référence, fuselage et cale dans le panneau des paramètres */
.ref-wing { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.ref-title { font-size: .85rem; font-weight: 600; color: var(--text); }

/* Page Stab : une marque pour toute la page, au-dessus des stabs */
.brand-panel { grid-column: 1 / -1; }
.brand-panel select { max-width: 320px; }

/* Mention « en construction », petite, centrée tout en haut */
.wip-bar { display: flex; justify-content: center; padding: .3rem 1rem; background: #fff; }
.wip { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; background: #fff6e0; border: 1px solid #f0d58a; border-radius: 999px; padding: .15rem .7rem; }
.wip::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #e0a100; }

/* FrontWings et Stab : poids et vitesse sur une ligne, juste au-dessus du tableau */
.sliders-row { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 2rem; align-items: end; }
.sliders-row .setup-note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .sliders-row { grid-template-columns: 1fr; } }
#stab .table-scroll, #comparator .table-scroll { margin-top: 1rem; }
.params .ref-wing:first-child { border-top: 0; padding-top: 0; }
