:root {
  --primary: #24493D;
  --primary-dark: #1B3A30;
  --primary-soft: #E7EEE9;
  --secondary: #E7EEE9;
  --secondary-2: #CFDDD4;
  --accent: #86630F;
  --accent-dark: #6F520C;
  --accent-bright: #E3B23C;
  --ink: #1E2A25;
  --muted: #55625C;
  --line: #D8D2C3;
  --bg: #F4F1EA;
  --bg-soft: #EAE5D9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 58, 48, .10);
  --shadow-sm: 0 2px 10px rgba(27, 58, 48, .08);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 104px;
  --font-head: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* DA batonord (02b) : --secondary reste une teinte CLAIRE de fond (usage du gabarit) ;
     la couleur secondaire de la charte (#86630F, jaune balise assombri AA) porte --accent. */
  --callout-bg: #F8EDCF; --callout-text: #5C4410; --callout-border: #E3C77A;
  --surface: #FBF9F4; --text-strong: #121A16;
}

*, *::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.7; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); margin: 0 0 var(--s2); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: var(--s5); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s2); }
i[data-lucide], .lucide { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,249,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: var(--s2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand b { color: var(--primary); }
.brand-light { color: #fff; } .brand-light b { color: var(--secondary-2); }
.main-nav { display: flex; align-items: center; gap: var(--s3); }
.main-nav ul { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--primary); border-bottom-color: var(--accent-bright); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: var(--s3) 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: var(--s1); }
  .main-nav a:not(.btn) { display: block; padding: 10px 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* Hero accueil */
.hero { background: linear-gradient(160deg, var(--secondary) 0%, #fff 70%); padding: var(--s6) 0 var(--s7); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s5); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: var(--s1); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.hero .lede { margin-bottom: var(--s3); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--primary); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 28px 28px 120px 28px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -12px; bottom: -28px; background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); max-width: 260px; font-size: .92rem; line-height: 1.45; border-left: 5px solid var(--accent-bright); }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero-badge { left: -40px; } }

/* Sections */
.section { padding: var(--s6) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: var(--s4); }
.section-head h2 { margin-top: 0; }
.grid-3 { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--secondary-2); color: var(--ink); }
.card h3 { margin: 4px 0 4px; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card-foot { margin-top: auto; padding-top: var(--s2); color: var(--primary); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.tag { display: inline-block; align-self: flex-start; background: var(--secondary); color: var(--primary-dark); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: var(--s4); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pillar .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary); color: #fff; display: grid; place-items: center; margin-bottom: var(--s2); }
.pillar .icon i { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.5rem; }
.pillar ul { list-style: none; padding: 0; margin: var(--s2) 0 var(--s3); display: grid; gap: 8px; }
.pillar li a { display: flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 500; }
.pillar li a:hover { text-decoration: underline; }
.pillar .btn { margin-top: auto; align-self: flex-start; }
.pillar:nth-child(2) .icon { background: var(--accent); }
.pillar:nth-child(3) .icon { background: var(--primary-dark); }

/* Diagrammes */
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); margin: var(--s4) 0; box-shadow: var(--shadow-sm); }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: var(--s2); border-top: 1px dashed var(--line); padding-top: var(--s1); }
.diagram { width: 100%; height: auto; }
.diagram-narrow { max-width: 560px; margin-inline: auto; }
.svg-label { font: 600 13px var(--font-body); fill: #1E2A25; }
.svg-cap { font: 700 15px var(--font-body); fill: #1E2A25; }
.svg-sub { font: 500 12.5px var(--font-body); fill: #55625C; }
.svg-num { font: 700 16px var(--font-body); fill: #fff; }
.fig-pair { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); counter-reset: t; }
.timeline li { position: relative; padding: var(--s3) var(--s3) var(--s3) 84px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: t; }
.timeline li::before { content: counter(t); position: absolute; left: var(--s3); top: var(--s3); width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 1.2rem var(--font-head); display: grid; place-items: center; }
.timeline h3 { margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } .timeline li { padding: 84px var(--s3) var(--s3); } }

/* Page hero article */
.page-hero { background: linear-gradient(160deg, var(--secondary), #fff 80%); padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3rem); }
.breadcrumb { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); }
.breadcrumb a { color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; margin-top: var(--s2); }

.article-layout { display: grid; gap: var(--s5); padding: var(--s5) 0 var(--s6); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } .sidebar { position: sticky; top: 92px; align-self: start; } }

.prose { max-width: 760px; min-width: 0; }
.prose h2 { padding-top: var(--s1); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 var(--s2); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s3) 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--secondary); font-weight: 700; color: var(--primary-dark); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: var(--s3) 0; }
.table-wrap table { margin: 0; min-width: 560px; }

.callout { border-left: 5px solid var(--primary); background: var(--secondary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--s2) var(--s3); margin: var(--s3) 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong.t { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 4px; }
.callout-warn { border-color: var(--accent-bright); background: #F8EDCF; }
.callout-source { border-color: var(--primary-dark); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--primary-dark); }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.crosslist { list-style: none; padding: 0 !important; }
.crosslist li { padding-left: 32px; position: relative; }
.crosslist li::before { content: '×'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; line-height: 20px; font-weight: 700; margin-top: 6px; }

.prose img { border-radius: var(--radius); }
.photo { margin: var(--s4) 0; }
.photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Sidebar */
.sidebar { display: grid; gap: var(--s2); }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); background: #fff; }
.side-box h2 { font-size: 1.05rem; margin: 0 0 var(--s1); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--muted); } .toc a:hover { color: var(--primary); text-decoration: underline; }
.side-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.side-cta { background: var(--primary); border-color: var(--primary); color: #fff; }
.side-cta h2 { color: #fff; } .side-cta p { color: #DCE7E0; font-size: .95rem; }
.side-cta .btn { width: 100%; justify-content: center; }

/* Widgets */
.widget { background: #fff; border: 2px solid var(--secondary-2); border-radius: 22px; padding: var(--s4); box-shadow: var(--shadow); margin: var(--s4) 0; }
.widget h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.widget form, .widget .w-form { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; }
.widget label { font-weight: 600; font-size: .9rem; display: grid; gap: 6px; }
.widget input, .widget select { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.widget input:focus, .widget select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--secondary-2); }
.w-result { margin-top: var(--s3); padding: var(--s3); background: var(--secondary); border-radius: var(--radius); display: none; }
.w-result.show { display: block; }
.w-big { font: 700 2.6rem var(--font-head); color: var(--primary); line-height: 1; }
.w-big small { font-size: 1.1rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.w-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: var(--s2); }
.w-grid div { background: #fff; border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.w-grid b { display: block; font-size: 1.3rem; font-family: var(--font-head); color: var(--primary-dark); }
.quiz-opts { display: grid; gap: 8px; margin: var(--s2) 0; }
.quiz-opts label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.quiz-opts label:has(input:checked) { border-color: var(--primary); background: var(--secondary); }
.quiz-opts input { width: auto; accent-color: var(--primary); }

/* FAQ */
.faq { display: grid; gap: 10px; margin: var(--s2) 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--s3); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); }

/* Bandeau santé */
.band { background: var(--primary-dark); color: #fff; border-radius: 28px; padding: var(--s5); display: grid; gap: var(--s3); }
.band h2 { color: #fff; margin-top: 0; }
.band p { color: #DCE7E0; }
@media (min-width: 900px) { .band { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.band-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.band-list li { background: rgba(255,255,255,.08); padding: 12px 16px; border-radius: 12px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }

/* Étapes */
.steps-list { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: var(--s2); }
.steps-list > li { counter-increment: step; position: relative; padding: var(--s2) var(--s3) var(--s2) 68px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps-list > li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 1rem var(--font-head); display: grid; place-items: center; }
.steps-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps-list p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: #16302A; color: #C9D6CF; padding: var(--s6) 0 var(--s3); margin-top: var(--s6); }
.site-footer a { color: #E6EEE9; text-decoration: none; } .site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer h2 { font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin: 0 0 var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer p { font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s4); padding-top: var(--s3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); 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; } .btn, .card { transition: none; } }

.notfound { text-align: center; padding: var(--s7) 0; }
.notfound .big { font: 700 7rem var(--font-head); color: var(--secondary-2); line-height: 1; }
/* === BLOC OUTILS 05 (batonord) — ancre de résultat + formulaires sans JS === */
.outil-ancre { scroll-margin-top: 96px; outline: none; height: 0; }
html:has(#resultat[autofocus]) { scroll-behavior: auto; }
.widget fieldset.quiz-opts { border: 0; padding: 0; margin: 0 0 var(--s2); grid-column: 1 / -1; }
.widget fieldset.quiz-opts legend { font-weight: 700; margin-bottom: 8px; }
.widget .quiz-form { grid-template-columns: 1fr; }
.widget form .btn { justify-self: start; }
.w-result .table-wrap table { width: 100%; border-collapse: collapse; background: #fff; }
.w-result .table-wrap th, .w-result .table-wrap td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
/* === FIN BLOC OUTILS 05 === */

/* ===== 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}
}

/* ===== RACCORD SOUS-MENU OUTILS (batonord) — tokens absents du gabarit + nav du builder ===== */
:root { --fill: #EAE5D9; --text-muted: #55625C; --text-secondary: #3A4842; }
.main-nav .sub-nav a { padding: 9px 12px; font-size: 13px; border-bottom: 0; border-left: 2px solid transparent; color: var(--ink); }
.main-nav .sub-nav a:hover, .main-nav .sub-nav a:focus { border-left-color: var(--primary); color: var(--primary); }
.main-nav .has-sub > a { border-bottom: 2px solid transparent; }
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 920px) {
  .nav-item { display: block; }
  .has-sub::after { display: none; }
  .sub-nav { position: static; display: flex; min-width: 0; margin: 4px 0 4px 2px; padding: 2px 0 2px 14px; border: 0; border-left: 2px solid var(--line); box-shadow: none; background: transparent; gap: 0; }
  .main-nav .sub-nav a { white-space: normal; padding: 7px 0; border-left: 0; }
  .sub-nav a small { display: none; }
}
/* ===== FIN RACCORD SOUS-MENU OUTILS ===== */

/* ===== 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 --- */
.lede{max-width:none!important}   /* styles.css : 62ch */
.section-head{max-width:none!important}   /* styles.css : 720px */
.diagram-narrow{max-width:none!important}   /* styles.css : 560px */
.page-hero h1{max-width:none!important}   /* styles.css : 20ch */
.prose{max-width:none!important}   /* styles.css : 760px */
.source-list{max-width:none!important}   /* styles.css : 820px */
/* --- relevé automatique : fin --- */

/* 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)}
.prose .reponse-directe{font-size: 1.12rem; color: var(--text-strong, #121A16);}
.prose .points-cles{background: var(--surface, #FBF9F4); border: 1px solid var(--line); border-left: 5px solid var(--accent-bright); border-radius: var(--radius-sm); padding: var(--s2) var(--s3) var(--s2) var(--s5);}
.prose .perimetre{color: var(--muted); font-size: .97rem;}
.prose .a-lire li{margin-bottom: 6px;}

/* ===== 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)}

/* ===== RACCORD ENVELOPPE (batonord) — le gabarit emploie --secondary comme teinte CLAIRE :
   les éléments du bloc enveloppe qui la prenaient pour une couleur sombre passent sur --primary. ===== */
:root { --white: #FFFFFF; --border: #D8D2C3; --font-heading: var(--font-head); --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.byline-author a { color: var(--primary); }
.byline-author a:hover { color: var(--primary-dark); }
.opening { margin: 0 0 var(--s4); }
.opening .answer { background: var(--primary); color: #FFFFFF; }
.scope a { color: var(--primary); }
.update-log { border-top-color: var(--primary); margin-top: var(--s3); }
.author-footer { margin-top: var(--s4); }
/* ===== FIN RACCORD ENVELOPPE ===== */
