@charset "utf-8";
/* calcul-imc.info : feuille de style principale (design system v1.0) */

:root {
  --green: #426B49;
  --green-dark: #35573B;
  --sage: #769779;
  --green-light: #EAF1E7;
  --bg: #F8FAF7;
  --surface: #FFFFFF;
  --text: #202820;
  --text-muted: #4E5A4F;
  --border: #DCE4DA;
  --field: #F1F5EF;
  --error: #B3261E;
  --warn-bg: #FDF4DC;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(32, 40, 32, .04), 0 8px 24px rgba(32, 40, 32, .05);
  --shadow-lg: 0 2px 4px rgba(32, 40, 32, .03), 0 16px 40px rgba(32, 40, 32, .08);

  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

/* Couleurs des catégories d'IMC (pastille claire / segment de jauge) */
[data-cat="under"]  { --pill: #E3EEE0; --gauge: #CFE0CB; }
[data-cat="normal"] { --pill: #D3E6CD; --gauge: #9CC593; }
[data-cat="over"]   { --pill: #FBF0C6; --gauge: #F1DA86; }
[data-cat="ob1"]    { --pill: #FBE0CB; --gauge: #F3BC90; }
[data-cat="ob2"]    { --pill: #F9D6D2; --gauge: #EDA198; }
[data-cat="ob3"]    { --pill: #F4C3BF; --gauge: #DE827B; }
[data-cat="child"]  { --pill: #E8EFE6; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; color: var(--text); }
h1, h2 { font-family: var(--font-title); font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.1875rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }
@media (min-width: 1024px) { .container { padding-inline: 48px; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 247, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: 8px 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 24px rgba(32, 40, 32, .06);
}

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav-link {
  display: block; padding: 14px 4px;
  color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-link:hover { color: var(--green); }
.nav-link[aria-current="page"] { color: var(--green); }
.nav-cta { margin-top: 20px; width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 28px;
    position: static; padding: 0; border: 0; background: none; box-shadow: none;
  }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-link { position: relative; padding: 8px 14px; border: 0; font-size: .9375rem; }
  .nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -4px;
    height: 2px; border-radius: 2px; background: var(--green);
  }
  .nav-cta { margin: 0; width: auto; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-light); color: var(--green-dark); }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: .9375rem; }
.btn-lg { min-height: 56px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Fil d'Ariane, en-têtes de page ---------- */
.breadcrumb { padding-top: 24px; font-size: .875rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
  content: ""; width: 6px; height: 6px; margin-right: 4px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .55;
}
.breadcrumb a { color: var(--text); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.eyebrow {
  display: block; margin: 28px 0 12px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green);
}

.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 62ch; }

.page-hero { position: relative; overflow: hidden; padding-bottom: 32px; }
.page-hero .container { position: relative; display: grid; gap: 24px; align-items: center; }
.page-hero-text { position: relative; z-index: 1; padding-bottom: 8px; }
.hero-art { display: none; }

@media (min-width: 768px) {
  .page-hero .container { grid-template-columns: 7fr 5fr; }
  .hero-art { display: block; width: 100%; max-width: 420px; margin-left: auto; }
}

/* ---------- Sections, grilles, cartes ---------- */
.section { padding: 28px 0; }
@media (min-width: 1024px) { .section { padding: 40px 0; } }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head p { color: var(--text-muted); }

.grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-wide-left { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .span-2 { grid-column: span 2; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .card { padding: 28px 32px; } }
.card > :last-child { margin-bottom: 0; }
.card--tint { background: var(--green-light); border-color: #D2E1CD; box-shadow: none; }

.card-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
  font: 600 1.25rem/1.3 var(--font-body);
}
.card-title .icon { width: 30px; height: 30px; color: var(--green); stroke-width: 1.6; }
.card-title small { display: block; font-size: .9375rem; font-weight: 500; color: var(--text-muted); }

.muted { color: var(--text-muted); }
.small { font-size: .875rem; }

.check-list, .dot-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li, .dot-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23426B49' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.dot-list li::before {
  content: ""; position: absolute; left: 5px; top: .6em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--sage);
}

.num-list { list-style: none; counter-reset: step; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.num-list li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.num-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--green-light); color: var(--green-dark); font-weight: 600;
}

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: var(--green-light); font-size: .9375rem;
}
.notice .icon { color: var(--green); margin-top: 1px; }
.notice p:last-child { margin-bottom: 0; }
.notice--warn { background: var(--warn-bg); }
.notice--warn .icon { color: #8A5A00; }

.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; }
.toc a {
  display: inline-block; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-size: .9375rem;
}
.toc a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Formule ---------- */
.formula {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 20px 24px; margin-bottom: 16px;
  border-radius: 16px; background: var(--green-light);
  font-size: 1.375rem; font-weight: 600;
}
.fraction { display: inline-flex; flex-direction: column; align-items: center; font-weight: 500; }
.fraction span { padding: 4px 8px; }
.fraction span:first-child { border-bottom: 2px solid var(--text); }

.pill-value {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: var(--green-light); color: var(--green-dark); font-weight: 700;
}

/* ---------- Tableaux ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
caption { text-align: left; padding: 14px 16px 0; font-weight: 600; }
th, td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--field); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.cell-pill {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  background: var(--pill, var(--green-light)); font-weight: 600; white-space: nowrap;
}
.table-note { margin-top: 12px; font-size: .875rem; color: var(--text-muted); }

/* ---------- Calculateur ---------- */
.calc-hero { position: relative; overflow: hidden; padding-bottom: 32px; }
.calc-hero .container { position: relative; display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) {
  .calc-hero .container { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .calc-intro { padding-top: 8px; }
}

.hero-circle {
  position: absolute; z-index: 0; pointer-events: none;
  width: 720px; height: 720px; border-radius: 50%;
  background: var(--green-light); opacity: .7;
  right: -260px; top: -220px;
}

.trust-list { margin-top: 24px; }
.calc-art { display: none; }
@media (min-width: 1024px) { .calc-art { display: block; width: 300px; margin-top: 24px; } }

.calc-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) { .calc-card { padding: 32px; margin-top: 28px; } }
.calc-card h2 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.calc-card .form-intro { font-size: .9375rem; color: var(--text-muted); margin-bottom: 20px; }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.form-grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field label, .field .label { display: block; margin-bottom: 8px; font-weight: 600; }
.input-group {
  display: flex; align-items: stretch;
  background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-group:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(66, 107, 73, .2); }
.input-group input {
  flex: 1; min-width: 0; width: 100%;
  padding: 13px 14px; border: 0; background: transparent;
  font: 500 1.125rem var(--font-body); color: var(--text);
}
.input-group input:focus { outline: none; }
.input-group input::placeholder { color: #6B776C; font-weight: 400; }
.input-unit {
  display: flex; align-items: center; padding: 0 14px;
  background: var(--field); border-left: 1px solid var(--border);
  color: var(--text-muted); font-size: .9375rem;
}
.field-hint { margin: 6px 0 0; font-size: .8125rem; color: var(--text-muted); }
.field-error { margin: 6px 0 0; font-size: .875rem; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }
.field.has-error .input-group { border-color: var(--error); }
.field.has-error .input-group:focus-within { box-shadow: 0 0 0 3px rgba(179, 38, 30, .18); }

.disclosure { margin-top: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.disclosure-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 16px; border: 0; border-radius: 14px; background: none;
  font: 600 1rem/1.4 var(--font-body); color: var(--text); text-align: left; cursor: pointer;
}
.disclosure-toggle:hover { background: var(--field); }
.disclosure-toggle .icon { color: var(--green); }
.disclosure-toggle .chev { margin-left: auto; width: 20px; height: 20px; transition: transform .2s; }
.disclosure-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.disclosure-toggle small { font-weight: 400; color: var(--text-muted); }
.disclosure-body { display: grid; gap: 16px; padding: 0 16px 18px; }
.disclosure-body[hidden] { display: none; }
.disclosure-body p { margin: 0; font-size: .875rem; color: var(--text-muted); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 600; }

.segmented { display: flex; flex-wrap: wrap; gap: 10px; }
.segmented label { position: relative; display: inline-flex; margin: 0; font-weight: 500; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--surface); cursor: pointer;
}
.segmented input:checked + span { background: var(--green-light); border-color: var(--green); color: var(--green-dark); }
.segmented input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.calc-submit { margin-top: 24px; }
.privacy-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; font-size: .8125rem; color: var(--text-muted); text-align: center; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--green); }
.form-alert { margin-top: 16px; }
.form-alert:empty { display: none; }

/* ---------- Résultat ---------- */
.result { padding: 8px 0 24px; }
.result[hidden] { display: none; }
.result-title { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem); }
.result-title:focus { outline: none; }

.result-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .result-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } }

.result-summary { text-align: center; }
.result-kicker { margin: 0; font-size: 1.125rem; font-weight: 500; }
.result-value {
  margin: 4px 0 12px;
  font-family: var(--font-title); font-weight: 600;
  font-size: clamp(4.25rem, 3rem + 6vw, 6rem); line-height: 1;
  color: var(--green);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  background: var(--pill, var(--green-light)); font-weight: 600;
}
.badge .icon { width: 20px; height: 20px; }

.result-facts { list-style: none; margin: 24px 0 0; padding: 0; text-align: left; }
.result-facts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 2px; border-top: 1px solid var(--border);
}
.result-facts span { color: var(--text-muted); }

.gauge { margin: 4px 0 28px; }
.gauge-track { position: relative; padding-top: 46px; }
.gauge-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; }
.gauge-bar span { display: block; height: 100%; background: var(--gauge); }
.gauge-bar span + span { border-left: 2px solid var(--surface); }
.gauge-marker {
  position: absolute; top: 0; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.gauge-marker b {
  padding: 4px 10px; border-radius: 8px;
  background: var(--text); color: #fff; font-size: .875rem; font-weight: 600; white-space: nowrap;
}
.gauge-marker i { display: block; width: 3px; height: 34px; margin-top: 2px; border-radius: 2px; background: var(--text); }
.gauge-ticks { position: relative; height: 22px; margin-top: 6px; font-size: .75rem; color: var(--text-muted); }
.gauge-ticks span { position: absolute; top: 0; transform: translateX(-50%); }

.result-body h3 { margin-top: 24px; }
.result-body h3:first-child { margin-top: 0; }
.result-body .notice + .notice { margin-top: 12px; }
.result-actions { margin-top: 24px; }

/* ---------- Profils ---------- */
.profile-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.25rem; }
.profile-card h3 .icon { width: 30px; height: 30px; color: var(--green); stroke-width: 1.6; }
.tag {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--green-light); color: var(--green-dark);
  font-size: .875rem; font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-item { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.faq-item[hidden] { display: none; }
.faq-item summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-weight: 600; border-radius: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { flex: none; color: var(--green); }
.faq-item summary .chev { flex: none; margin-left: auto; width: 20px; height: 20px; transition: transform .2s; }
.faq-item[open] { border-color: #C9D8C5; }
.faq-item[open] summary { background: var(--green-light); border-radius: 16px 16px 0 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-answer { padding: 14px 18px 18px; }
@media (min-width: 768px) { .faq-answer { padding-left: 56px; } }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Mentions légales ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem); }
.prose h2:first-child { margin-top: 0; }

/* ---------- Sources ---------- */
.sources { font-size: .875rem; color: var(--text-muted); }
.sources h2 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--text); }
.sources ol { display: grid; gap: 6px; padding-left: 1.4em; }
.updated { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; color: var(--text-muted); }
.updated .icon { width: 18px; height: 18px; color: var(--green); }

/* Adresse e-mail affichée en image (non cliquable) */
.email-img { display: inline-block; height: 1.21em; width: auto; vertical-align: -.24em; }

/* ---------- Pied de page ---------- */
.site-footer {
  margin-top: 40px; padding: 48px 0 24px;
  background: var(--surface); border-top: 1px solid var(--border);
  font-size: .9375rem;
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-text { max-width: 44ch; margin-top: 12px; color: var(--text-muted); }
.footer-title { margin: 0 0 12px; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--text-muted);
}
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .calc-art, .hero-art, .hero-circle, .result-actions { display: none !important; }
  body { background: #fff; }
  .card, .calc-card { box-shadow: none; }
}

/* Tableau empilé sur mobile */
@media (max-width: 639px) {
  .table-stack thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .table-stack tr {
    display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
  }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { display: block; padding: 0; border: 0; }
  .table-stack td:first-child { grid-row: span 2; }
  .table-stack td[data-label]::before { content: attr(data-label) "\00a0: "; color: var(--text-muted); }
}

/* ---------- Ajouts : page unique + calculateur enfant ---------- */
.page-toc { padding-top: 8px; }
.faq-single { max-width: 880px; }
@media (min-width: 1024px) { .grid-2-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.live-preview {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 12px;
  background: var(--green-light); text-align: center; font-size: 1.0625rem;
}
.live-preview strong { color: var(--green-dark); font-size: 1.25rem; }

.age-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

#echelle tbody tr.is-current { background: var(--green-light); }
#echelle tbody tr.is-current th::after {
  content: "Votre résultat"; display: inline-block; margin-left: 8px; padding: 1px 10px;
  border-radius: 999px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 600;
}

.table-weights { min-width: 600px; }
.table-weights th[scope="row"] { position: sticky; left: 0; background: var(--surface); white-space: nowrap; }
.table-weights td { white-space: nowrap; }
.table-iotf { font-size: .875rem; }
.table-iotf caption { font-size: 1rem; padding-bottom: 8px; }

.chart { margin: 0 0 8px; }
.chart-box { position: relative; width: 100%; }
.chart figcaption { margin-top: 8px; font-size: .8125rem; color: var(--text-muted); }
.iotf-chart { display: block; width: 100%; height: auto; font-family: var(--font-body); touch-action: pan-y; }
.iotf-chart .zone { fill: var(--pill); }
.iotf-chart .grid { stroke: rgba(32, 40, 32, .08); stroke-width: 1; }
.iotf-chart .axis { stroke: var(--border); stroke-width: 1; }
.iotf-chart .curve { fill: none; stroke: #6B776C; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.iotf-chart .tick { font-size: 12px; fill: var(--text-muted); font-variant-numeric: tabular-nums; }
.iotf-chart .curve-label { font-size: 12px; font-weight: 600; fill: var(--text-muted); }
.iotf-chart .zone-label { font-size: 12px; fill: var(--text); fill-opacity: .72; }
.iotf-chart .axis-title { font-size: 12px; fill: var(--text-muted); }
.iotf-chart .point { fill: var(--text); stroke: #fff; stroke-width: 2.5; }
.iotf-chart .point-label {
  font-size: 14px; font-weight: 700; fill: var(--text);
  paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round;
}
.iotf-chart .crosshair { stroke: var(--text); stroke-width: 1; stroke-opacity: .45; }
.iotf-chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip {
  position: absolute; top: 6px; transform: translateX(-50%); z-index: 2;
  display: grid; gap: 2px; padding: 8px 12px; border-radius: 10px;
  background: var(--text); color: #fff; font-size: .8125rem; line-height: 1.4;
  white-space: nowrap; pointer-events: none; box-shadow: var(--shadow);
}
.chart-tip[hidden] { display: none; }

@media print {
  body.has-result main > section:not(.result),
  body.has-result .page-toc,
  .chart-tip { display: none !important; }
}

/* ---------- Page FAQ ---------- */
.faq-page { display: grid; gap: 24px; padding-top: 8px; padding-bottom: 24px; }
.faq-page > * { min-width: 0; }
@media (min-width: 1024px) {
  .faq-page { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
  .faq-aside { position: sticky; top: 96px; }
}
.faq-group { margin-bottom: 32px; scroll-margin-top: 96px; }
.faq-group h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem); margin-bottom: 16px; }

.link-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 4px 32px; }
@media (min-width: 768px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-list a {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.link-list a::before {
  content: ""; flex: none; width: 7px; height: 7px;
  border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg);
}
.link-list a:hover { color: var(--green); text-decoration: underline; }

.live-preview > span { display: block; }
.live-preview .preview-waist {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px; font-size: .9375rem; color: var(--text-muted);
}
.live-preview .preview-waist:first-child { margin-top: 0; }
.live-preview .preview-waist .icon { width: 18px; height: 18px; color: var(--green); }
.live-preview .preview-waist.is-high { color: #6B4700; font-weight: 600; }
.live-preview .preview-waist.is-high .icon { color: #8A5A00; }
