/* Moka Comptoir — style atelier */
:root {
  /* DA Moka Comptoir (02b, spec.art_direction) — tokens sémantiques */
  --primary: #2A1C15;
  --primary-hover: #3E2A20;
  --on-primary: #FFFFFF;
  --secondary: #3B4046;
  --secondary-hover: #4A5057;
  --bg: #EEEFEE;
  --surface: #F8F8F6;
  --text: #2A1C15;
  --text-secondary: #4A3B32;
  --text-strong: #1A110C;
  --text-muted: #5F5650;
  --text-faint: #B9BCBF;
  --fill: #E2E4E6;
  --border: #C8CCD0;
  --accent: #B4552D;
  --callout-bg: #F3E6D3;
  --callout-text: #6E3418;
  --callout-border: #D9B99A;
  --ink: #2A1C15;
  --ink-soft: #5F5650;
  --cream: #EEEFEE;
  --sand: #E2E4E6;
  --sand-deep: #C8CCD0;
  --terra: #B4552D;
  --terra-dark: #8F3F20;
  --terra-tint: #F3E6D3;
  --alu: #8A9097;
  --alu-light: #E9EBED;
  --ok: #2F7D4F;
  --ok-tint: #E2F2E8;
  --warn: #9A6200;
  --warn-tint: #FBEFD5;
  --no: #A32A2A;
  --no-tint: #F9E1E1;
  --white: #FFFFFF;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(42,28,21,.06), 0 8px 24px rgba(42,28,21,.07);
  --shadow-lg: 0 2px 4px rgba(42,28,21,.08), 0 18px 44px rgba(42,28,21,.14);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --font-title: 'Archivo Narrow', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 var(--s4); letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.3em; }
li { margin-bottom: var(--s2); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238,239,238,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--sand-deep); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--s4); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-title); font-size: 1.3rem; }
.logo strong { color: var(--terra); }
.logo:hover { color: var(--ink); }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--sand-deep); border-radius: var(--r-sm); padding: 8px; color: var(--ink); cursor: pointer; }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--sand-deep); padding: var(--s3) 20px var(--s5); box-shadow: var(--shadow); }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--sand); }
.main-nav a:hover, .main-nav a.is-active { color: var(--terra); }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s; font-family: inherit; line-height: 1.2; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px rgba(42,28,21,.25); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .92rem; }

/* Sections */
.section { padding: var(--s8) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #F8F8F6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a { color: #F0BCA2; }
.section__head { max-width: 720px; margin-bottom: var(--s6); }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--terra); margin-bottom: var(--s3); }
.section--ink .eyebrow { color: #E8A07E; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Hero */
.hero { padding: var(--s7) 0 var(--s8); background: radial-gradient(1200px 400px at 85% -10%, var(--sand) 0%, transparent 70%), var(--cream); }
.hero__grid { display: grid; gap: var(--s6); align-items: center; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--r); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero__chip { position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.95); border-radius: var(--r-sm); padding: 10px 14px; font-size: .88rem; box-shadow: var(--shadow); max-width: 260px; }
.hero__chip strong { display: block; font-family: var(--font-mono); color: var(--terra); font-size: 1.05rem; }
.page-hero { padding: var(--s6) 0 var(--s6); background: var(--sand); border-bottom: 1px solid var(--sand-deep); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: var(--s3); }
.page-hero .lead { max-width: 760px; margin-bottom: 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: .88rem; margin-bottom: var(--s4); color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; color: var(--alu); }
.breadcrumbs a { color: var(--ink-soft); }

/* Grilles et cartes */
.grid { display: grid; gap: var(--s5); }
.card { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow); }
.card h3 { margin-bottom: var(--s2); }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--terra); color: inherit; }
.card--link p { color: var(--ink-soft); font-size: .96rem; }
.card__more { margin-top: auto; padding-top: var(--s3); color: var(--terra); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; font-size: .95rem; }
.card__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--terra-tint); color: var(--terra); display: grid; place-items: center; margin-bottom: var(--s4); }
.card--img { padding: 0; overflow: hidden; }
.card--img img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.card--img .card__body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }

.tool-card { background: var(--ink); color: #F8F8F6; border-radius: var(--r); padding: var(--s6); position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s; }
.tool-card:hover { transform: translateY(-4px); color: #fff; }
.tool-card h3 { color: #fff; font-size: 1.5rem; }
.tool-card p { color: #C8CCD0; }
.tool-card .btn { align-self: flex-start; margin-top: auto; }
.tool-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(180,85,45,.55), transparent 70%); }
.tool-card--terra { background: var(--terra-dark); }
.tool-card--terra::after { background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--warn { background: var(--warn-tint); color: var(--warn); }
.badge--no { background: var(--no-tint); color: var(--no); }
.badge--neutral { background: var(--alu-light); color: var(--ink-soft); }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--sand-deep); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
table.spec { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 560px; }
table.spec th, table.spec td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--sand); }
table.spec thead th { background: var(--ink); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
table.spec tbody tr:last-child td, table.spec tbody tr:last-child th { border-bottom: 0; }
table.spec tbody tr:hover { background: var(--cream); }
table.spec .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.spec tbody th { font-weight: 600; }
.note { font-size: .88rem; color: var(--ink-soft); margin-top: var(--s3); }

/* Fiche technique */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin: var(--s5) 0; }
.fact { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--r); padding: var(--s4); }
.fact__v { font-family: var(--font-mono); font-size: 1.55rem; font-weight: 700; color: var(--terra); line-height: 1.1; }
.fact__v small { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.fact__k { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s7); font-size: 1.7rem; scroll-margin-top: 90px; }
.prose h3 { margin-top: var(--s5); }
.prose li::marker { color: var(--terra); font-weight: 700; }
.article-layout { display: grid; gap: var(--s6); padding: var(--s6) 0 var(--s8); }
.article-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin-bottom: var(--s5); }
.article-media img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.tldr { background: var(--white); border-left: 5px solid var(--terra); border-radius: var(--r-sm); padding: var(--s4) var(--s5); box-shadow: var(--shadow); margin-bottom: var(--s5); }
.tldr h2 { font-size: 1rem; margin: 0 0 var(--s2); font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--terra); }
.tldr ul { margin: 0; }
.callout { border-radius: var(--r-sm); padding: var(--s4) var(--s5); margin: var(--s5) 0; display: flex; gap: var(--s3); align-items: flex-start; }
.callout p { margin: 0; }
.callout--info { background: var(--sand); }
.callout--warn { background: var(--warn-tint); border: 1px solid #E8CD8F; }
.callout--danger { background: var(--no-tint); border: 1px solid #E8B0B0; }
.callout .ico { margin-top: 3px; }
.aside-box { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow); margin-bottom: var(--s4); }
.aside-box h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: var(--s3); }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin-bottom: var(--s2); }
.aside-box--cta { background: var(--terra-dark); color: #fff; border-color: var(--terra-dark); }
.aside-box--cta h2 { color: #fff; }
.aside-box--cta p { color: #F8E3DA; font-size: .95rem; }
.aside-box--cta .btn { background: #fff; color: var(--terra-dark); box-shadow: none; }
.sticky { position: static; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--r-sm); margin-bottom: var(--s3); }
.faq summary { cursor: pointer; padding: var(--s4) var(--s5); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--terra); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 var(--s5) var(--s4); color: var(--ink-soft); }
.faq__a p:last-child { margin-bottom: 0; }

/* Outils */
.tool { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow-lg); }
.tool__tabs { display: flex; gap: var(--s2); margin-bottom: var(--s5); flex-wrap: wrap; }
.tool__tab { background: var(--cream); border: 1px solid var(--sand-deep); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-family: inherit; font-size: .95rem; cursor: pointer; color: var(--ink); transition: .2s; }
.tool__tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s4); }
.field label { font-weight: 600; font-size: .92rem; }
.field select, .field input[type="number"], .field input[type="text"] { font: inherit; padding: 12px 14px; border: 1.5px solid var(--sand-deep); border-radius: var(--r-sm); background: var(--cream); color: var(--ink); width: 100%; min-height: 48px; }
.field select:focus, .field input:focus { border-color: var(--terra); outline: none; box-shadow: 0 0 0 3px var(--terra-tint); }
.field small { color: var(--ink-soft); }
.form-row { display: grid; gap: var(--s4); }
.radio-row { display: flex; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.result { background: var(--cream); border: 1px dashed var(--terra); border-radius: var(--r); padding: var(--s5); margin-top: var(--s4); }
.result[hidden] { display: none; }
.result__title { font-family: var(--font-title); font-size: 1.3rem; margin-bottom: var(--s3); }
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--sand-deep); flex-wrap: wrap; margin: 0; }
.result-list li:last-child { border-bottom: 0; }
.mono { font-family: var(--font-mono); }

/* Diagnostic */
.diag { background: var(--white); border: 1px solid var(--sand-deep); border-radius: var(--r); padding: var(--s5); box-shadow: var(--shadow-lg); }
.progress { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; margin-bottom: var(--s5); }
.progress__bar { height: 100%; background: var(--terra); width: 0; transition: width .35s; }
.diag__q { font-family: var(--font-title); font-size: 1.45rem; margin-bottom: var(--s4); }
.opts { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.opt { text-align: left; background: var(--cream); border: 1.5px solid var(--sand-deep); border-radius: var(--r-sm); padding: 14px 16px; font: inherit; cursor: pointer; color: var(--ink); transition: .2s; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.opt:hover { border-color: var(--terra); background: var(--terra-tint); }
.cause { border: 1px solid var(--sand-deep); border-radius: var(--r); padding: var(--s5); margin-bottom: var(--s4); background: var(--white); position: relative; }
.cause--top { border: 2px solid var(--terra); box-shadow: var(--shadow); }
.cause__rank { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--terra); font-weight: 700; margin-bottom: 4px; }
.cause h3 { margin-bottom: var(--s3); }
.cause dl { margin: 0 0 var(--s3); }
.cause dt { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-top: var(--s3); }
.cause dd { margin: 2px 0 0; }
.meter { height: 6px; border-radius: 999px; background: var(--sand); margin-bottom: var(--s3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--terra); }
.diag__actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.symptoms { display: grid; gap: var(--s3); }

/* Split / Z-pattern */
.split { display: grid; gap: var(--s6); align-items: center; }
.split img { border-radius: var(--r); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.overlap { margin-top: -56px; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
.stat { text-align: left; }
.stat strong { display: block; font-family: var(--font-title); font-size: 2.4rem; color: #E8A07E; line-height: 1; }
.stat span { font-size: .92rem; color: #C8CCD0; }
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--sand-deep); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; transition: .2s; }
.pill:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-tint); }
.pill--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: var(--s4); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--terra); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--font-mono); }

/* Footer */
.site-footer { background: var(--ink); color: #C8CCD0; padding: var(--s8) 0 var(--s5); margin-top: 0; }
.footer__grid { display: grid; gap: var(--s6); }
.footer__h { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--s3); }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list a, .site-footer a { color: #C8CCD0; text-decoration: none; }
.footer__list a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__txt { margin-top: var(--s4); font-size: .95rem; max-width: 340px; }
.logo--light { color: #fff; }
.logo--light:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: var(--s7); padding-top: var(--s5); font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* Reveal */
.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .split--rev > :first-child { order: 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .symptoms { grid-template-columns: 1fr 1fr; }
  .tool, .diag { padding: var(--s6); }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
  .main-nav ul { display: flex; gap: var(--s5); }
  .main-nav a { border: 0; padding: 8px 2px; font-size: .96rem; position: relative; }
  .main-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--terra); transition: width .25s; }
  .main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: var(--s8); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s8); }
  .sticky { position: sticky; top: 92px; }
  .section { padding: var(--s9) 0; }
}
/* === Outils rendus côté serveur (étape 05) — formulaires sans JavaScript === */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
fieldset.field { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
fieldset.field legend.diag__q { padding: 0; font-size: 1.15rem; }
label.opt { display: flex; align-items: center; gap: 10px; }
label.opt input { accent-color: var(--primary); }
label.opt:has(input:checked) { border-color: var(--terra); background: var(--terra-tint); }
.tool h2.diag__q { font-size: 1.3rem; }
.result .result-list a { font-weight: 600; }

/* ===== BLOC SOUS-MENU OUTILS — sans JavaScript (hover + focus-within) ===== */
.nav-item{position:relative;display:inline-flex;align-items:center}
.has-sub>a::after{content:"";display:inline-block;width:5px;height:5px;margin-left:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.has-sub::after{content:"";position:absolute;top:100%;left:0;right:0;height:18px}
.sub-nav{position:absolute;top:calc(100% + 18px);left:-16px;z-index:30;min-width:296px;flex-direction:column;gap:1px;padding:8px;background:var(--surface);border:1px solid var(--line);box-shadow:0 18px 34px rgba(31,58,77,.14);display:none}
.has-sub:hover>.sub-nav,.has-sub:focus-within>.sub-nav{display:flex}
.sub-nav a{display:block;padding:9px 12px;font-size:13px;font-weight:700;line-height:1.25;white-space:nowrap;border-left:2px solid transparent}
.sub-nav a small{display:block;margin-top:2px;font-family:var(--font-body);font-size:11px;font-weight:400;color:var(--text-muted)}
.sub-nav a:hover,.sub-nav a:focus{background:var(--fill);color:var(--primary);border-left-color:var(--primary)}
.sub-nav a:hover small,.sub-nav a:focus small{color:var(--text-secondary)}
.sub-nav-all{margin-top:5px;border-top:1px solid var(--line);padding-top:11px!important;color:var(--primary)}
@media(max-width:850px){
.nav-item{display:block}
.has-sub::after{display:none}
.has-sub>a::after{transform:rotate(45deg) translateY(-2px)}
.sub-nav{position:static;display:flex;min-width:0;margin:9px 0 4px 2px;padding:2px 0 2px 14px;border:0;border-left:2px solid var(--line);box-shadow:none;background:transparent;gap:0}
.sub-nav a{white-space:normal;padding:7px 0;font-size:13px;border-left:0}
.sub-nav a small{display:none}
.sub-nav a:hover,.sub-nav a:focus{background:transparent}
.sub-nav-all{padding-top:8px!important}
}

/* ===== ADAPTATION SOUS-MENU OUTILS (05b délégué) — front en tiroir sous 1024 px, pas 850 ===== */
:root { --line: var(--border); }
.main-nav .has-sub > a::after { position: static; left: auto; bottom: auto; width: 5px; height: 5px; background: none; transition: none; }
.main-nav .sub-nav a::after { display: none; }
.main-nav .sub-nav a { border-bottom: 0; }
@media (max-width: 1023px) {
  .nav-item { display: block; }
  .has-sub::after { display: none; }
  .sub-nav { position: static; display: flex; min-width: 0; margin: 4px 0 8px 2px; padding: 2px 0 2px 14px; border: 0; border-left: 2px solid var(--line); box-shadow: none; background: transparent; gap: 0; }
  .sub-nav a { white-space: normal; padding: 8px 0; border-left: 0; }
  .sub-nav a small { display: none; }
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
  .footer__grid > div:first-child { grid-column: auto; }
}

/* ===== BLOC LARGEUR UNIFIÉE — toutes les pages à la largeur de la home ===== */
/*
 * Posé par 06a2-largeur-contenu. Les sélecteurs ci-dessous ont été RELEVÉS
 * dans les feuilles réellement chargées par le front, pas devinés : c'est la
 * correction du défaut d'origine, où une liste de classes supposées rendait
 * le bloc inerte sans que rien ne le signale.
 *
 * Largeur de référence relevée sur `.container` : 1180 px.
 *
 * `!important` est délibéré. Une contrainte peut être déclarée dans une
 * feuille chargée APRÈS celle-ci, ou plus bas dans ce même fichier par un
 * bloc appendu ultérieurement : à spécificité égale elle gagnerait, et le
 * bloc serait posé, validé, et sans effet.
 *
 * Les contrôles de formulaire, les images et les cartes sont épargnés.
 *
 * Ce qui suit la borne « relevé automatique : fin » est CONSERVÉ au rejeu :
 * c'est là que vivent les règles tranchées à la main. N'écris rien au-dessus.
 */

/* --- relevé automatique : début --- */
.section__head{max-width:none!important}   /* styles.css : 720px */
.hero__chip{max-width:none!important}   /* styles.css : 260px */
.page-hero .lead{max-width:none!important}   /* styles.css : 760px */
.prose{max-width:none!important}   /* styles.css : 760px */
.footer__txt{max-width:none!important}   /* styles.css : 340px */
.source-list{max-width:none!important}   /* styles.css : 820px */

/* Grilles à deux colonnes relevées, NON collapsées d'office : une grille de
   cartes se collapserait à tort. À trancher au brief 06a2, puis à écrire
   SOUS la borne de fin ci-dessous. */
/*   .split { grid-template-columns: 1fr 1fr }  (styles.css) */
/*   .symptoms { grid-template-columns: 1fr 1fr }  (styles.css) */
/*   .hero__grid { grid-template-columns: 1.05fr .95fr }  (styles.css) */
/* --- relevé automatique : fin --- */

/* Règles tranchées à la main, conservées au rejeu de 06a2. */
/* Règles tranchées à la main, conservées au rejeu de 06a2. */
.content-narrow{max-width:none!important}
.content-narrow select,.content-narrow input[type=number],.content-narrow input[type=text]{max-width:520px}
.article-layout{width:min(1140px,calc(100% - 40px));margin-inline:auto}
.article-body{max-width:72ch}
.article-layout{width:min(100% - 28px,1140px)}
.resultat-ancre{scroll-margin-top: 96px; outline: none;}
html:has(#resultat[autofocus]){scroll-behavior: auto;}

/* ===== ENVELOPPE + OUVERTURE NORMÉE (couches 1 et 2 du gabarit) ===== */
.author-card{display:flex;gap:18px;align-items:flex-start;margin:0 0 22px;padding:20px 22px;background:var(--fill);border-left:3px solid var(--primary)}
.author-card .author-avatar{flex:0 0 auto;line-height:0}
.author-card .author-img{object-fit:cover}
.author-footer .author-card .author-img{width:88px;height:88px;object-fit:cover;border-radius:var(--radius-round, 50%)}
.author-footer .author-card .author-monogram{width:88px;height:88px;font-size:30px}
.author-name{margin:0;font-family:var(--font-heading);font-size:16px;font-weight:700;line-height:1.3}
.author-name a{color:var(--text-strong)}
.author-name a:hover{color:var(--primary)}
.author-job{display:block;margin-top:3px;font-size:11px;font-weight:400;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted)}
.author-legit{margin:11px 0 0;font-size:14.5px;line-height:1.5;font-weight:600;color:var(--text-strong)}
.author-bio{margin:7px 0 0;font-size:13.5px;line-height:1.55;color:var(--text-secondary)}
.author-links{margin:10px 0 0;font-size:13px}
.author-links a{color:var(--primary);font-weight:700;border-bottom:1px solid currentColor}
.page-dates{display:flex;flex-wrap:wrap;gap:6px 20px;margin:0 0 22px;font-size:12px;color:var(--text-muted)}
.page-dates time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-secondary)}
.method-note{margin:0 0 26px;padding:17px 19px;background:var(--callout-bg);border:1px solid var(--callout-border);border-left:3px solid var(--primary)}
.method-note-title{margin:0 0 6px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--callout-text)}
.method-note p:last-child{margin:0;font-size:14px;line-height:1.6;color:var(--callout-text)}
.opening{margin:0 0 34px}
.opening .answer{margin:0;padding:22px 24px;background:var(--secondary);color:var(--white);font-family:var(--font-heading);font-size:clamp(17px,1.9vw,20px);line-height:1.45;letter-spacing:-.2px}
.essentials{margin:0;padding:20px 24px;background:var(--surface);border:1px solid var(--border);border-top:0}
.essentials-title{margin:0 0 10px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted)}
.essentials ul{margin:0;padding:0;list-style:none}
.essentials li{position:relative;padding:7px 0 7px 22px;font-size:15px;line-height:1.5;color:var(--text)}
.essentials li::before{content:"";position:absolute;left:0;top:15px;width:8px;height:2px;background:var(--primary)}
.scope{margin:0;padding:14px 24px;background:var(--fill);border:1px solid var(--border);border-top:0;font-size:13.5px;line-height:1.55;color:var(--text-secondary)}
.scope span{font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted);margin-right:6px}
.scope a{color:var(--secondary);font-weight:700;border-bottom:1px solid currentColor}
.scope a:hover{color:var(--primary)}
.update-log{margin:0;padding:20px 22px;border-top:2px solid var(--secondary);background:var(--fill)}
.update-log-title{margin:0 0 9px;font-family:var(--font-heading);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted)}
.update-log ul{margin:0;padding:0;list-style:none}
.update-log li{padding:6px 0;font-size:13.5px;line-height:1.5;color:var(--text-secondary);border-bottom:1px solid var(--border)}
.update-log li:last-child{border-bottom:0}
.update-log time{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-weight:500;color:var(--text-strong)}
@media(max-width:640px){.author-card{padding:16px}.opening .answer{padding:18px}.essentials,.scope{padding:16px 18px}}

/* Signature de tête — identité et dates sur une seule ligne. Le parcours de
   l'auteur n'est pas ici : il se lit en pied, via .author-footer. */
.author-byline{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:0 0 26px;padding-bottom:14px;border-bottom:1px solid var(--border,#D3CEC1);font-size:13px;color:var(--text-secondary,#4A554D)}
.byline-author a{color:var(--secondary,#3A4A3F);font-weight:700;border-bottom:1px solid currentColor}
.byline-author a:hover{color:var(--primary,#A65E2E)}
.author-byline .page-dates{margin:0;gap:6px 18px}

/* Pied d'article — la carte auteur complète, détachée du corps du texte. */
.author-footer{margin:38px 0 22px;border-top:2px solid var(--secondary,#3A4A3F)}
.author-footer .author-card{margin:0}

/* Signature dans le hero d'article (blog) : le hero est un aplat sombre, la
   signature doit y passer en blanc. Sans cette règle, elle hérite des couleurs
   pensées pour un fond clair et devient illisible (contraste ~1,1:1). */
.guide-hero .author-byline,
.guide-hero .author-byline .page-dates,
.guide-hero .byline-author a,
.guide-hero .page-dates time{color:#FFFFFF}
.guide-hero .author-byline{border-bottom-color:rgba(255,255,255,.28)}

/* ===== SOURCES — liens sortants cités près de l'affirmation ===== */
.source-note a[rel~="nofollow"]{color:var(--secondary);font-weight:600;border-bottom:1px solid var(--text-faint)}
.source-note a[rel~="nofollow"]:hover{color:var(--primary);border-bottom-color:var(--primary)}
.tool-table a[rel~="nofollow"]{font-weight:600;text-decoration:none;border-bottom:1px solid var(--text-faint)}
.tool-table a[rel~="nofollow"]:hover{color:var(--primary);border-bottom-color:var(--primary)}
.source-list{list-style:none;margin:0;padding:0;max-width:820px}
.source-list li{padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.source-list li:last-child{border-bottom:0}
.source-list span{display:block;margin-top:2px;font-size:11px;color:var(--text-muted)}
