/* ==========================================================
   Tourbière Lab — styles.css
   Esthétique « laboratoire de jardinier »
   ========================================================== */
:root {
  --primary: #3F5A3A;
  --primary-dark: #33492F;
  --primary-deep: #2A3A27;
  --secondary: #DCE5CF;
  --secondary-soft: #E8E3D4;
  --bg: #F3EFE4;
  --surface: #FAF8F2;
  --ink: #26301F;
  --muted: #5D6857;
  --line: #D8D1BF;
  --peat: #2A3A27;
  --peat-soft: #E6EBDD;
  --red: #A6322E;
  --red-soft: #F6E7E3;
  --amber: #B7791F;
  --amber-soft: #FDF3DC;
  --ok: #2F7D4F;
  --ok-soft: #E4F4EA;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(38,48,31,.06), 0 8px 24px rgba(38,48,31,.07);
  --shadow-lg: 0 2px 4px rgba(38,48,31,.06), 0 20px 48px rgba(42,58,39,.16);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 104px;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--peat); margin: 0 0 var(--s4); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(63,90,58,.32); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost:hover { background: var(--secondary-soft); color: var(--primary-dark); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { background: var(--secondary); color: var(--primary-deep); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-src  { background: var(--secondary-soft); color: var(--primary-deep); }
.badge-lab  { background: var(--peat-soft); color: var(--peat); }
.badge-tool { background: var(--amber-soft); color: #7A4F0C; }
.badge-red  { background: var(--red-soft); color: #8F241D; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--s3); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243,239,228,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { 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; font-family: var(--font-head); font-size: 1.35rem; color: var(--peat); font-weight: 500; }
.logo b { font-weight: 700; color: var(--primary); margin-left: 2px; }
.logo-light { color: #fff; }
.logo-light b { color: var(--secondary); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .dd-btn { display: block; padding: 9px 13px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .94rem; background: none; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.nav a:hover, .dd-btn:hover, .nav a.active { background: var(--secondary-soft); color: var(--primary-deep); }
.has-dd { position: relative; }
.dd { position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px !important; display: none !important; flex-direction: column; align-items: stretch !important; }
.has-dd:hover .dd, .has-dd.open .dd, .has-dd:focus-within .dd { display: flex !important; }
.dd a em { display: block; font-size: .82rem; color: var(--muted); font-style: italic; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--peat); border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: 12px 20px 20px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .dd { position: static; box-shadow: none; border: 0; background: var(--bg); margin: 4px 0 8px; }
  .has-dd:hover .dd { display: none !important; }
  .has-dd.open .dd { display: flex !important; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-peat { background: var(--peat); color: #E8F0EA; }
.section-peat h2, .section-peat h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--s7); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-peat .section-head p { color: #BFD3C6; }
.center { text-align: center; margin-inline: auto; }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s8) 0 var(--s9); background:
  radial-gradient(900px 400px at 85% 0%, rgba(220,229,207,.60), transparent 70%),
  radial-gradient(600px 300px at 0% 100%, rgba(166,50,46,.10), transparent 70%), var(--bg); overflow: hidden; }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; isolation: isolate; }
.hero h1 em::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 10px; background: var(--secondary); z-index: -1; border-radius: 4px; }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .86rem; font-weight: 500; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg) var(--radius-lg) 120px var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.float-card { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px; font-size: .88rem; border: 1px solid var(--line); }
.float-card strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--primary); line-height: 1.1; }
.float-card.fc1 { left: -18px; bottom: 56px; }
.float-card.fc2 { right: -10px; top: 28px; }
@media (max-width: 600px) { .float-card.fc1 { left: 8px; } .float-card.fc2 { right: 8px; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-ph { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, var(--peat) 0%, #2f6b4a 55%, var(--secondary) 160%); color: #fff; }
.card-ph svg { opacity: .9; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-body p { color: var(--muted); font-size: .96rem; margin-bottom: 8px; }
.card-meta { font-size: .84rem; color: var(--primary-dark); font-weight: 600; margin-top: auto; }
.latin { font-style: italic; color: var(--muted); font-size: .92rem; }

.pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: var(--s5); }
.pillar .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary); color: var(--primary-deep); margin-bottom: var(--s3); }
.pillar p { color: #CFE0D5; margin: 0; }

.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; position: relative; }
.tool-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.tool-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--secondary-soft); color: var(--primary); display: grid; place-items: center; }
.tool-card h3 { margin: 6px 0 0; }
.tool-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.tool-card .go { margin-top: auto; padding-top: var(--s3); font-weight: 600; color: var(--primary-dark); font-size: .92rem; }

/* ---------- Split / feature ---------- */
.split { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 var(--s5); }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 4px; 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 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Month widget ---------- */
.month-now { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; border-radius: var(--radius-lg); padding: var(--s6); display: grid; gap: var(--s5); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .month-now { grid-template-columns: .8fr 1.6fr; align-items: center; padding: var(--s7); } }
.month-now h2 { color: #fff; margin-bottom: 8px; }
.month-now p { color: #E6EBDD; margin: 0; }
.month-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.month-list li { background: rgba(255,255,255,.12); border-radius: 12px; padding: 12px 16px; font-size: .94rem; display: grid; gap: 2px; }
.month-list li strong { font-family: var(--font-head); font-size: 1.02rem; }
.month-list a { color: #fff; font-weight: 600; }

/* ---------- Page head / breadcrumb ---------- */
.page-head { padding: var(--s7) 0 var(--s6); background: linear-gradient(180deg, var(--secondary-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: var(--s4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--primary); }
.breadcrumb a { color: var(--muted); }
.head-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s4); }

/* ---------- Article ---------- */
.article-layout { display: grid; gap: var(--s7); padding: var(--s7) 0 var(--s8); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.toc { position: sticky; top: 92px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); font-size: .92rem; }
.toc h2 { font-size: 1rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.toc .toc-cta { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
@media (max-width: 999px) { .toc { position: static; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: var(--s7); padding-top: var(--s3); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s5); }
.prose p, .prose li { font-size: 1.04rem; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow); margin: var(--s5) 0; }
.prose figure { margin: var(--s5) 0; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: -12px; }

.callout { border-left: 4px solid var(--primary); background: var(--secondary-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.callout > :last-child { margin-bottom: 0; }
.callout strong.t { display: block; font-family: var(--font-head); color: var(--primary-deep); margin-bottom: 4px; font-size: 1.05rem; }
.callout-warn { border-color: var(--red); background: var(--red-soft); }
.callout-warn strong.t { color: #8F241D; }
.callout-lab { border-color: var(--peat); background: var(--peat-soft); }
.callout-lab strong.t { color: var(--peat); }

.data-table-wrap { overflow-x: auto; margin: var(--s5) 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--secondary-soft); color: var(--primary-deep); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; color: var(--peat); }

.fiche { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s6); box-shadow: var(--shadow); }
.fiche header { background: var(--peat); color: #fff; padding: 14px var(--s5); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.fiche header h2 { margin: 0; color: #fff; font-size: 1.15rem; padding: 0; }
.fiche dl { margin: 0; display: grid; }
.fiche .row { display: grid; gap: 4px; padding: 12px var(--s5); border-bottom: 1px solid var(--line); }
.fiche .row:last-child { border-bottom: 0; }
@media (min-width: 640px) { .fiche .row { grid-template-columns: 200px 1fr auto; align-items: center; gap: var(--s4); } }
.fiche dt { font-weight: 700; color: var(--peat); font-size: .92rem; }
.fiche dd { margin: 0; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 0 var(--s5); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); }

.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: var(--s5); margin-top: var(--s7); }
.sources h2 { font-size: 1.1rem; margin-top: 0 !important; }
.sources li { font-size: .9rem !important; }

.related { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--s5); }
.related a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .2s, transform .2s; display: block; }
.related a:hover { border-color: var(--primary); transform: translateY(-2px); }
.related small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Instruments (outils) ---------- */
.instrument { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.instrument-head { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; padding: var(--s4) var(--s5); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.instrument-head h2 { color: #fff; font-size: 1.15rem; margin: 0; font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.instrument-head .led { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--secondary); font-weight: 700; }
.instrument-head .led::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 10px #4ADE80; }
.instrument-body { padding: var(--s5); display: grid; gap: var(--s6); }
@media (min-width: 900px) { .instrument-body.two { grid-template-columns: 1fr 1fr; padding: var(--s6); } }
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font-weight: 600; font-size: .92rem; color: var(--peat); }
.field small { color: var(--muted); font-size: .82rem; }
.field input, .field select, .field textarea { font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(63,90,58,.14); }
.field-row { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.result-panel { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: var(--s5); align-self: start; }
.result-panel h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: var(--s3); }
.readout { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--primary-deep); }
.readout small { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.verdict { border-radius: var(--radius); padding: var(--s4); margin: var(--s4) 0; font-size: .96rem; }
.verdict strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 2px; }
.v-ok { background: var(--ok-soft); color: #1C5C37; border: 1px solid #B6E0C6; }
.v-warn { background: var(--amber-soft); color: #7A4F0C; border: 1px solid #F0D79A; }
.v-bad { background: var(--red-soft); color: #8F241D; border: 1px solid #F1B9B3; }
.gauge { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #2F7D4F 0%, #2F7D4F 17%, #8DB84A 25%, #E0B03A 45%, #D9772F 60%, #C8382F 80%, #C8382F 100%); margin: var(--s5) 0 6px; }
.gauge .marker { position: absolute; top: -7px; width: 4px; height: 28px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); transition: left .4s; }
.gauge-scale { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.stat b { font-family: var(--font-head); font-size: 1.5rem; color: var(--primary-deep); }
.note { font-size: .86rem; color: var(--muted); }
.log-list { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 6px; font-size: .88rem; }
.log-list li { display: flex; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

/* ---------- Calendrier ---------- */
.cal-controls { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--s5); }
.month-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.month-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--line); border-radius: var(--radius); padding: var(--s4) var(--s5); position: relative; }
.month-card h3 { margin-bottom: 4px; display: flex; justify-content: space-between; align-items: center; font-size: 1.15rem; text-transform: capitalize; }
.month-card .phase { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.month-card p { font-size: .93rem; color: var(--ink); margin: 6px 0 0; }
.month-card .zone-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.month-card.current { box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg); }
.month-card.current::after { content: 'Ce mois-ci'; position: absolute; top: -13px; right: 14px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ph-dormance { border-top-color: #5B8DEF; } .ph-dormance .phase { color: #2F5FC4; }
.ph-reveil { border-top-color: #8DB84A; } .ph-reveil .phase { color: #5C8A1C; }
.ph-croissance { border-top-color: #2F7D4F; } .ph-croissance .phase { color: #2F7D4F; }
.ph-pic { border-top-color: #E0B03A; } .ph-pic .phase { color: #96690A; }
.ph-preparation { border-top-color: #D9772F; } .ph-preparation .phase { color: #A6500F; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .84rem; margin: var(--s4) 0 var(--s5); list-style: none; padding: 0; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }

/* ---------- Diagnostic ---------- */
.cause-list { display: grid; gap: var(--s4); margin-top: var(--s4); }
.cause { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); display: grid; gap: 8px; border-left: 6px solid var(--primary); }
.cause.p-forte { border-left-color: var(--red); }
.cause.p-moyenne { border-left-color: #E0B03A; }
.cause.p-faible { border-left-color: #8DB84A; }
.cause h3 { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 1.1rem; }
.cause .tag { font-family: var(--font-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); font-weight: 700; }
.cause dl { margin: 0; display: grid; gap: 6px; font-size: .96rem; }
.cause dt { font-weight: 700; color: var(--peat); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.cause dd { margin: 0 0 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--peat); color: #CFE0D5; padding-top: var(--s8); margin-top: var(--s8); }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding-bottom: var(--s6); }
.footer-brand { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-title { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--s4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #CFE0D5; text-decoration: none; }
.site-footer a:hover { color: var(--secondary); text-decoration: underline; }
.footer-brand p { font-size: .94rem; margin-top: var(--s3); max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: var(--s5) 0; font-size: .84rem; }
.footer-bottom p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); border-radius: var(--radius-lg); color: #fff; padding: var(--s7) var(--s6); display: grid; gap: var(--s4); text-align: center; justify-items: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #E6EBDD; max-width: 560px; margin: 0; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: var(--s9) 0; }
.nf .big { font-family: var(--font-head); font-size: clamp(5rem, 18vw, 10rem); color: var(--primary); line-height: 1; }

/* ---------- 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:hover, a.card:hover, .tool-card:hover { transform: none; }
}

/* ---------- Print (calendrier) ---------- */
@media print {
  .site-header, .site-footer, .cal-controls, .no-print, .toc { display: none !important; }
  body { background: #fff; }
  .month-card { break-inside: avoid; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* ===== 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 (front tourbierelab) — drawer à 960px, liens hors pastille ===== */
.nav .sub-nav a{border-radius:6px}
@media(max-width:960px){
.nav .nav-item{display:block}
.nav .has-sub::after{display:none}
.nav .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}
.nav .sub-nav a{white-space:normal;padding:7px 0;border-left:0}
.nav .sub-nav a small{display:none}
}

/* ===== 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-lead{max-width:none!important}   /* styles.css : 560px */
.page-head p.lead{max-width:none!important}   /* styles.css : 760px */
.prose{max-width:none!important}   /* styles.css : 760px */
.footer-brand p{max-width:none!important}   /* styles.css : 340px */
.cta-band p{max-width:none!important}   /* styles.css : 560px */
.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)}

/* ===== OUTILS 05c — rendu serveur : ancre de résultat sous le header sticky ===== */
#resultat{scroll-margin-top:96px;outline:none;height:0}
html:has(#resultat[autofocus]){scroll-behavior:auto}
.tool-form{margin-bottom:var(--s5)}
.tool-form .btn{margin-top:var(--s3)}
.result-panel h3{margin-top:var(--s4)}

/* ===== 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 (front tourbierelab) =====
   Le bloc enveloppe suppose les tokens melodine et un --secondary FONCÉ ; ici --secondary
   est un accent CLAIR (#DCE5CF). Tokens manquants déclarés, couleurs sombres explicites. */
:root{--fill:#E8E3D4;--border:#D8D1BF;--white:#FFFFFF;--text:#26301F;--text-strong:#182014;--text-secondary:#434D3C;--text-muted:#5D6857;--text-faint:#B7B2A2;--font-heading:'Fraunces',Georgia,serif;--font-mono:ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;--callout-bg:#F6E7E3;--callout-text:#6E211E;--callout-border:#E2C2BA}
.opening .answer{background:#2A3A27;color:#FFFFFF}
.byline-author a{color:#2A3A27}
.byline-author a:hover{color:#3F5A3A}
.scope a{color:#2A3A27}
.update-log{border-top-color:#2A3A27}
.author-footer{border-top-color:#2A3A27}
.source-note a[rel~="nofollow"]{color:#2A3A27}
.prose .opening ul,.prose .essentials ul{padding-left:0}

/* ===== HERO PLEINE SECTION (accueil) — image en fond bord à bord, texte sur voile ===== */
.hero.hero-full{position:relative;overflow:hidden;display:flex;align-items:center;min-height:clamp(560px,82vh,780px);padding:var(--s9) 0 calc(var(--s9) + 24px);background:#2A3A27}
.hero-full .hero-bg{position:absolute;inset:0;z-index:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;border-radius:0;box-shadow:none}
.hero-full::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(24,32,20,.88) 0%,rgba(24,32,20,.70) 48%,rgba(24,32,20,.30) 100%)}
.hero-full .hero-full-inner{position:relative;z-index:2;width:min(1180px, 100% - 40px);margin-inline:auto;flex:0 0 auto}
.hero-full .hero-copy{max-width:640px}
.hero-full .eyebrow{color:#DCE5CF}
.hero-full h1{color:#FFFFFF}
.hero-full h1 em{color:#FFFFFF}
.hero-full h1 em::after{background:#A6322E;opacity:.85}
.hero-full .hero-lead{color:#E9EDE3;max-width:600px!important}
.hero-full .btn-ghost{color:#FFFFFF;border-color:rgba(255,255,255,.7)}
.hero-full .btn-ghost:hover{background:rgba(255,255,255,.14);color:#FFFFFF}
.hero-full .hero-chips li{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);color:#FFFFFF}
.hero-full .hero-stats{display:flex;flex-wrap:wrap;gap:12px;margin-top:var(--s5)}
.hero-full .hero-stats .float-card{position:static;max-width:240px}
@media (max-width:700px){.hero-full::before{background:rgba(24,32,20,.78)}.hero.hero-full{min-height:0}}

/* ===== PAGES LÉGALES PLEINE LARGEUR — même largeur de contenu que les autres pages ===== */
.prose.legal-prose{max-width:none}
