/* AgriScope — design system commun aux cinq pages.
   Charte : vert profond, or du blé, ivoire, anthracite. Les trois teintes de données (blé, maïs, soja)
   sont validées pour les daltonismes dans les deux thèmes ; elles ne servent qu'aux données. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italique.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/plex-sans-italique.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --fond: #F8F7F2; --fond-2: #EFEDE4; --surface: #FFFFFF;
  --encre: #202523; --encre-2: #4B524E; --encre-3: #767D78;
  --trait: #DCD8CC; --trait-fort: #B9B4A6; --grille: #E8E5DB;
  --vert: #142D26; --vert-2: #57836E; --or: #D6AE60; --bleu: #647D91; --ivoire: #F8F7F2;
  --accent: #142D26; --sur-accent: #F8F7F2; --lien: #2E6A52; --kicker: #57836E;
  --ble: #B8862B; --mais: #0E7349; --soja: #4A7FC1;
  --voile-ble: rgba(184, 134, 43, .16); --voile-ble-2: rgba(184, 134, 43, .30);
  --ok: #2E7D4F; --alerte: #B3261E; --info: #4A6A80;
  --ombre: 0 1px 2px rgba(20, 45, 38, .06), 0 8px 24px rgba(20, 45, 38, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --large: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --fond: #0E1714; --fond-2: #13211C; --surface: #17261F;
    --encre: #EEECE4; --encre-2: #BFC3BA; --encre-3: #8A918A;
    --trait: #2A3A33; --trait-fort: #41544B; --grille: #1E2D27;
    --accent: #D6AE60; --sur-accent: #142D26; --lien: #D6AE60; --kicker: #D6AE60;
    --ble: #BA8B32; --mais: #1F7C4C; --soja: #5F8FD8;
    --voile-ble: rgba(214, 174, 96, .14); --voile-ble-2: rgba(214, 174, 96, .28);
    --ok: #5CC08A; --alerte: #FF8A80; --info: #9DB4C6;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fond: #0E1714; --fond-2: #13211C; --surface: #17261F;
  --encre: #EEECE4; --encre-2: #BFC3BA; --encre-3: #8A918A;
  --trait: #2A3A33; --trait-fort: #41544B; --grille: #1E2D27;
  --accent: #D6AE60; --sur-accent: #142D26; --lien: #D6AE60; --kicker: #D6AE60;
  --ble: #BA8B32; --mais: #1F7C4C; --soja: #5F8FD8;
  --voile-ble: rgba(214, 174, 96, .14); --voile-ble-2: rgba(214, 174, 96, .28);
  --ok: #5CC08A; --alerte: #FF8A80; --info: #9DB4C6;
  --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 17px/1.62 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; margin: 0; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: .98; font-weight: 560; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.04; }
h3 { font-size: 1.32rem; line-height: 1.2; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; }
a { color: var(--lien); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
.num, .mono, code, kbd, .tableau td.n, .tableau th.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
code { font-size: .86em; background: var(--fond-2); border: 1px solid var(--trait); border-radius: 4px; padding: .05em .35em; }
.cache-visuel { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--large); margin: 0 auto; padding: 0 32px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* textes éditoriaux */
.kicker { font: 500 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--kicker); margin-bottom: 14px; }
.lede { font-size: clamp(1.15rem, 1.9vw, 1.42rem); line-height: 1.5; color: var(--encre-2); max-width: 46ch; }
.texte { max-width: 66ch; }
.texte p, .texte li { color: var(--encre-2); }
.texte b, .texte strong { color: var(--encre); font-weight: 600; }
.note { font-size: .86rem; color: var(--encre-3); max-width: 75ch; }
.source { font: .74rem/1.5 var(--mono); color: var(--encre-3); margin-top: 8px; }
.chiffre { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.chiffre small { font-size: .42em; font-family: var(--sans); font-weight: 500; color: var(--encre-3); letter-spacing: 0; }
.alerte-texte { color: var(--alerte); } .ok-texte { color: var(--ok); }

/* -------------------------------------------------------- navigation */
.nav { position: sticky; top: 0; z-index: 40; background: var(--fond); border-bottom: 1px solid var(--trait); }
@supports (backdrop-filter: blur(10px)) { .nav { background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: blur(10px); } }
.nav-in { max-width: var(--large); margin: 0 auto; padding: 0 32px; height: 60px; display: flex; align-items: center; gap: 28px; }
.marque { font: 600 1.18rem/1 var(--serif); color: var(--encre); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.marque svg { width: 22px; height: 22px; }
.nav-liens { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-liens::-webkit-scrollbar { display: none; }
.nav-liens a { color: var(--encre-2); text-decoration: none; padding: 7px 11px; font-size: .9rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-liens a:hover { color: var(--encre); }
.nav-liens a[aria-current="page"] { color: var(--encre); border-bottom-color: var(--or); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icone-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--trait); background: transparent; cursor: pointer; color: var(--encre-2); }
.icone-btn:hover { color: var(--encre); border-color: var(--trait-fort); }
.icone-btn svg { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .nav-in { padding: 8px 16px 0; gap: 12px; flex-wrap: wrap; height: auto; }
  .nav-liens { order: 3; flex-basis: 100%; margin: 0 -8px; }
  .nav-actions { margin-left: auto; }
}

/* ------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--sur-accent); font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.fantome { background: transparent; color: var(--encre); border-color: var(--trait-fort); }
.btn.fantome:hover { border-color: var(--encre); }
.btn.petit { padding: 7px 14px; font-size: .88rem; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.puce { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--trait); background: transparent; font-size: .88rem; cursor: pointer; color: var(--encre-2); }
.puce:hover { border-color: var(--trait-fort); color: var(--encre); }
.puce[aria-pressed="true"] { background: var(--encre); color: var(--fond); border-color: var(--encre); }
.puce .pastille { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.groupe-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.champ label, .etiquette { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); margin-bottom: 6px; }
.champ input[type=number], .champ input[type=date], .champ select { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre); font-family: var(--mono); font-size: .92rem; }
.champ input[type=range] { width: 100%; accent-color: var(--ble); }

/* --------------------------------------------------------------- hero */
.hero { position: relative; background: var(--vert); color: var(--ivoire); overflow: hidden; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(56px, 9vh, 110px); }
.hero .kicker { color: var(--or); }
.hero h1 { max-width: 14ch; color: var(--ivoire); font-size: clamp(2.6rem, 5.8vw, 5rem); }
.hero h1 em { font-style: italic; color: var(--or); font-weight: 400; }
.hero .lede { color: rgba(248, 247, 242, .78); margin-top: 26px; }
.hero-bas { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-top: 34px; }
.hero-equipe { font: .8rem/1.7 var(--mono); color: rgba(248, 247, 242, .62); }
.hero-equipe b { color: var(--ivoire); font-weight: 500; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn { background: var(--or); border-color: var(--or); color: var(--vert); }
.hero .btn.fantome { background: transparent; color: var(--ivoire); border-color: rgba(248, 247, 242, .35); }
.hero-courbe { position: relative; z-index: 1; height: clamp(220px, 34vh, 360px); margin-top: 26px; }
.hero-courbe svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-courbe .ligne-hero { fill: none; stroke: var(--or); stroke-width: 1.6; stroke-linejoin: round; }
.hero-courbe .aire-hero { fill: url(#degrade-hero); }
.hero-courbe text { font: 500 11px var(--mono); fill: rgba(248, 247, 242, .7); letter-spacing: .04em; }
.hero-courbe .repere { stroke: rgba(248, 247, 242, .28); stroke-dasharray: 2 4; }
.hero-legende { position: absolute; right: 32px; bottom: 14px; z-index: 3; font: .7rem var(--mono); color: rgba(248, 247, 242, .55); }
.hero-courbe.anime .ligne-hero { stroke-dasharray: var(--longueur); stroke-dashoffset: var(--longueur); animation: tracer 2.4s cubic-bezier(.4, .1, .2, 1) .2s forwards; }
.hero-courbe.anime .aire-hero, .hero-courbe.anime .annot { opacity: 0; animation: fondu 1s ease 2.2s forwards; }
@media (max-width: 760px) { .hero-bas { grid-template-columns: 1fr; } .hero-legende { right: 16px; } }

/* ---------------------------------------------------------- sections */
.section { padding: clamp(64px, 10vw, 120px) 0; border-top: 1px solid var(--trait); }
.section.teinte { background: var(--fond-2); }
.entete-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: end; margin-bottom: 48px; }
.entete-section .lede { margin: 0; }
@media (max-width: 900px) { .entete-section { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.deux-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.deux-cols.inverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .deux-cols, .deux-cols.inverse { grid-template-columns: minmax(0, 1fr); } }

/* rangées de chiffres séparées par des filets (pas de cartes) */
.rangee { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--encre); }
.rangee > div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--trait); }
.rangee > div + div { padding-left: 24px; border-left: 1px solid var(--trait); }
.rangee .legende { color: var(--encre-2); font-size: .92rem; margin-top: 10px; max-width: 30ch; }
@media (max-width: 700px) { .rangee > div + div { border-left: 0; padding-left: 0; } }

/* trois céréales */
.cereales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--encre); }
.cereale { padding: 22px 24px 8px 0; }
.cereale + .cereale { padding-left: 24px; border-left: 1px solid var(--trait); }
.cereale h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cereale .code { font: .76rem var(--mono); color: var(--encre-3); }
.cereale .mini { height: 74px; margin: 14px 0 8px; }
.cereale .mini svg { width: 100%; height: 100%; display: block; }
.cereale p { font-size: .93rem; color: var(--encre-2); }
@media (max-width: 760px) { .cereales { grid-template-columns: minmax(0, 1fr); } .cereale + .cereale { padding-left: 0; border-left: 0; border-top: 1px solid var(--trait); } }

/* ------------------------------------------------------ scrollytelling */
.scrolly { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
.scrolly-graphe { position: sticky; top: 84px; height: calc(100vh - 116px); max-height: 640px; display: flex; flex-direction: column; justify-content: center; order: 2; }
.scrolly-etapes { order: 1; padding: 14vh 0 30vh; }
.etape-scroll { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .45s ease; }
.etape-scroll.active { opacity: 1; }
.etape-scroll .numero { font: 500 .74rem var(--mono); color: var(--encre-3); letter-spacing: .12em; }
.etape-scroll h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 8px 0 14px; }
.etape-scroll p { color: var(--encre-2); max-width: 40ch; }
.scrolly-titre { font: 500 .8rem var(--mono); color: var(--encre-2); letter-spacing: .04em; margin-bottom: 6px; min-height: 1.4em; }
@media (max-width: 900px) {
  .scrolly { grid-template-columns: minmax(0, 1fr); }
  .scrolly-graphe { top: 96px; height: 44vh; z-index: 2; background: var(--fond); order: 0; padding-bottom: 8px; border-bottom: 1px solid var(--trait); }
  .scrolly-etapes { padding: 4vh 0 20vh; }
  .etape-scroll { min-height: 62vh; }
}

/* ------------------------------------------------------------ graphes */
.viz { position: relative; width: 100%; }
.viz svg { display: block; overflow: visible; }
.viz text { font: 400 11px var(--mono); fill: var(--encre-3); }
.viz .grille { stroke: var(--grille); stroke-width: 1; }
.viz .axe-zero { stroke: var(--trait-fort); stroke-width: 1; }
.viz .serie { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.viz .serie.fine { stroke-width: 1.15; }
.viz .bande95 { fill: var(--voile-ble); }
.viz .bande80 { fill: var(--voile-ble-2); }
.viz .zone-fond { fill: var(--fond-2); }
.viz text.zone-texte { font-size: 10.5px; fill: var(--encre-3); }
.viz .marque { stroke: var(--encre-3); stroke-dasharray: 2 3; stroke-width: 1; }
.viz text.marque-texte { fill: var(--encre-2); font-size: 10.5px; }
.viz .croix { stroke: var(--encre-3); stroke-width: 1; }
.viz .point { stroke: var(--fond); stroke-width: 2; }
.viz .zone { fill: transparent; cursor: crosshair; }
.viz .selection { fill: var(--voile-ble-2); stroke: var(--ble); stroke-width: 1; }
.viz svg:focus-visible { outline: 2px solid var(--or); outline-offset: 4px; border-radius: 4px; }
.viz.anime .serie { stroke-dasharray: var(--longueur); stroke-dashoffset: var(--longueur); animation: tracer 1.3s cubic-bezier(.3, .7, .2, 1) forwards; }
.viz.fondu svg { animation: fondu .45s ease; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.bulle { position: absolute; top: 6px; z-index: 5; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; pointer-events: none; box-shadow: var(--ombre); white-space: nowrap; }
.bulle .t { font: .72rem var(--mono); color: var(--encre-3); margin-bottom: 3px; }
.bulle .l { display: flex; align-items: center; gap: 7px; }
.bulle .l i { width: 12px; height: 2px; border-radius: 1px; }
.bulle .l b { font: 500 12.5px var(--mono); }
.bulle .l span { color: var(--encre-2); }
.viz-outils { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 4px; }
.viz-outils button { font: .72rem var(--mono); padding: 4px 9px; border-radius: 6px; border: 1px solid var(--trait); background: transparent; color: var(--encre-3); cursor: pointer; }
.viz-outils button:hover { color: var(--encre); border-color: var(--trait-fort); }
.viz-cadre:fullscreen { background: var(--fond); padding: 32px; overflow: auto; }
.legende-viz { display: flex; flex-wrap: wrap; gap: 16px; font-size: .86rem; color: var(--encre-2); margin: 6px 0 4px; }
.legende-viz span { display: inline-flex; align-items: center; gap: 7px; }
.legende-viz i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }

/* --------------------------------------------------------- tableaux */
.tableau { overflow-x: auto; }
.tableau table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tableau th { font: 500 .7rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--encre); vertical-align: bottom; }
.tableau td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--trait); vertical-align: top; }
.tableau td.n, .tableau th.n { text-align: right; padding-left: 14px; }
.tableau tr.retenu td { font-weight: 600; background: var(--voile-ble); }
.tableau tr.retenu td:first-child { box-shadow: inset 3px 0 0 var(--ble); padding-left: 10px; }
.tableau caption { caption-side: bottom; text-align: left; font: .74rem/1.5 var(--mono); color: var(--encre-3); padding-top: 8px; }

/* ----------------------------------------------- glossaire et équations */
.terme { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; border-bottom: 1px dotted var(--encre-3); }
.terme:hover, .terme:focus-visible { border-bottom-color: var(--or); }
.popover { position: absolute; z-index: 60; max-width: 320px; background: var(--vert); color: var(--ivoire); border-radius: 10px; padding: 12px 14px; font-size: .88rem; line-height: 1.5; box-shadow: var(--ombre); }
.popover b { color: var(--or); font-family: var(--serif); font-size: 1rem; display: block; margin-bottom: 4px; font-weight: 600; }
.equation { font-family: var(--serif); font-style: italic; font-size: 1.18rem; padding: 12px 0 12px 18px; border-left: 2px solid var(--or); margin: 14px 0; color: var(--encre); overflow-x: auto; }
.equation .lib { font: normal .76rem/1.5 var(--mono); color: var(--encre-3); display: block; margin-top: 4px; }

/* ------------------------------------------------- onglets et détails */
.onglets { display: flex; border-bottom: 1px solid var(--trait); overflow-x: auto; scrollbar-width: none; }
.onglets button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 20px 12px 0; margin-right: 18px; cursor: pointer; text-align: left; color: var(--encre-3); white-space: nowrap; }
.onglets button .lettre { font: 500 .7rem var(--mono); letter-spacing: .1em; display: block; }
.onglets button .nom { font: 600 1.06rem var(--serif); color: var(--encre-2); }
.onglets button[aria-selected="true"] { border-bottom-color: var(--or); }
.onglets button[aria-selected="true"] .nom { color: var(--encre); }
.panneau[hidden] { display: none; }
details.pli { border-top: 1px solid var(--trait); }
details.pli:last-of-type { border-bottom: 1px solid var(--trait); }
details.pli summary { cursor: pointer; padding: 13px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.pli summary::-webkit-details-marker { display: none; }
details.pli summary::after { content: "+"; font: 400 1.2rem var(--mono); color: var(--encre-3); }
details.pli[open] summary::after { content: "−"; }
details.pli > div { padding: 0 0 16px; color: var(--encre-2); }

/* -------------------------------------------------------- figures */
figure { margin: 0; }
.figure-rapport { cursor: zoom-in; border: 1px solid var(--trait); background: #fff; display: block; padding: 0; width: 100%; }
.figure-rapport img { display: block; width: 100%; height: auto; }
figcaption { font-size: .84rem; color: var(--encre-3); margin-top: 8px; }
dialog.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; overflow: visible; }
dialog.visionneuse::backdrop { background: rgba(10, 18, 15, .88); }
dialog.visionneuse img { display: block; max-width: 100%; max-height: 84vh; background: #fff; }
dialog.visionneuse p { color: var(--ivoire); font-size: .9rem; margin: 10px 0 0; }
dialog.visionneuse .fermer { position: absolute; top: -44px; right: 0; color: var(--ivoire); border-color: rgba(248, 247, 242, .4); }

/* ---------------------------------------------------- page intérieure */
.page-tete { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--trait); }
.page-tete h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 18ch; }
.page-tete .lede { margin-top: 22px; }

/* --------------------------------------------------------- statuts */
.verdict { display: inline-flex; align-items: center; gap: 7px; font: 500 .78rem var(--mono); padding: 3px 9px; border-radius: 4px; border: 1px solid currentColor; }
.verdict.ok { color: var(--ok); } .verdict.alerte { color: var(--alerte); } .verdict.neutre { color: var(--encre-3); } .verdict.info { color: var(--info); }

/* --------------------------------------------------------- pied */
.pied { border-top: 1px solid var(--trait); padding: 48px 0 64px; color: var(--encre-3); font-size: .86rem; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.pied b { color: var(--encre); font-weight: 600; }
.pied a { color: var(--encre-2); }
.pied .marque { margin-bottom: 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------- apparition au défilement */
.revele { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.revele.visible { opacity: 1; transform: none; }

/* transitions entre pages (navigateurs qui les gèrent) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revele { opacity: 1; transform: none; }
  .viz.anime .serie, .hero-courbe.anime .ligne-hero { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* =====================================================================
   Accueil : photographie, contexte, céréales, conclusions, accès
   ===================================================================== */
.hero { min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); display: flex; flex-direction: column; }
.hero-fond { position: absolute; inset: 0; z-index: 0; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
/* voile photographique pour la lisibilité du titre, pas un effet décoratif */
.hero-fond::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 45, 38, .80) 0%, rgba(20, 45, 38, .52) 42%, rgba(14, 30, 25, .94) 100%); }
.hero-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero-cote { align-self: start; padding-top: 4px; }
.hero-cote .lede { margin-top: 0; max-width: 32ch; }
.hero-cote .hero-actions { flex-wrap: nowrap; }
@media (max-width: 1100px) { .hero-cote .hero-actions { flex-wrap: wrap; } }
.hero .wrap.hero-texte { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; }
.hero-courbe { margin-top: clamp(16px, 3vh, 36px); height: clamp(170px, 26vh, 300px); }
.hero-courbe .annot line { stroke: rgba(248, 247, 242, .5); }
.hero-courbe .annot text { fill: var(--ivoire); }
.hero-courbe .annot .valeur { font: 500 13px var(--mono); fill: var(--or); }
.credit-photo { position: absolute; left: 32px; bottom: 12px; z-index: 3; font: .68rem var(--mono); color: rgba(248, 247, 242, .5); }
.credit-photo a { color: inherit; }
@media (max-width: 900px) { .hero-grille { grid-template-columns: minmax(0, 1fr); gap: 20px; } .credit-photo { left: 16px; } .hero-legende { display: none; } }

.contexte { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contexte .grand { font-family: var(--serif); font-size: clamp(4.4rem, 10vw, 8.6rem); line-height: .86; font-weight: 400; letter-spacing: -.04em; font-variation-settings: "opsz" 144; }
.contexte .grand small { display: block; font: 500 .8rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); margin-top: 14px; }
.contexte figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
@media (max-width: 900px) { .contexte { grid-template-columns: minmax(0, 1fr); } .contexte figure img { aspect-ratio: 16 / 10; } }

/* bande de fourchette historique (minimum, maximum, dernier prix) */
.plage { position: relative; height: 26px; margin: 6px 0 4px; }
.plage::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; border-top: 1px solid var(--trait-fort); }
.plage i { position: absolute; top: 6px; width: 2px; height: 13px; background: var(--encre); }
.plage span { position: absolute; top: 18px; font: .7rem var(--mono); color: var(--encre-3); }
.plage span.d { right: 0; }

.interlude { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--ivoire); overflow: hidden; isolation: isolate; }
.interlude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.interlude::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 30, 25, .1) 30%, rgba(14, 30, 25, .86) 100%); }
.interlude blockquote { margin: 0; padding-bottom: clamp(48px, 9vh, 96px); font: 400 clamp(2rem, 4.6vw, 3.8rem)/1.06 var(--serif); letter-spacing: -.02em; max-width: 18ch; font-variation-settings: "opsz" 144; }
.interlude blockquote em { color: var(--or); }
.interlude .credit-photo { left: auto; right: 32px; }

.constats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--encre); }
.constats > div { padding: 26px 24px 26px 0; }
.constats > div + div { padding-left: 24px; border-left: 1px solid var(--trait); }
.constats .q { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3); min-height: 3em; }
.constats .chiffre { margin: 14px 0 12px; }
.constats p { font-size: .94rem; color: var(--encre-2); margin: 0; }
@media (max-width: 1000px) { .constats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .constats > div:nth-child(3) { padding-left: 0; border-left: 0; } .constats > div { border-bottom: 1px solid var(--trait); } }
@media (max-width: 600px) { .constats { grid-template-columns: minmax(0, 1fr); } .constats > div + div { padding-left: 0; border-left: 0; } }

.entrees { border-top: 1px solid var(--encre); }
.entrees a { display: grid; grid-template-columns: 90px minmax(0, 5fr) minmax(0, 6fr) 40px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--trait); text-decoration: none; color: var(--encre); transition: background .2s ease; }
.entrees a:hover { background: var(--fond-2); }
.entrees .n { font: 500 .76rem var(--mono); color: var(--encre-3); letter-spacing: .1em; }
.entrees h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; }
.entrees p { margin: 0; color: var(--encre-2); }
.entrees .fl { font: 1.4rem var(--serif); color: var(--encre-3); transition: transform .2s ease; }
.entrees a:hover .fl { transform: translateX(6px); color: var(--encre); }
@media (max-width: 760px) { .entrees a { grid-template-columns: minmax(0, 1fr) 30px; gap: 6px 12px; } .entrees .n { grid-column: 1 / -1; } .entrees p { grid-column: 1; } }

/* barres horizontales (Viz.barres) */
.barres { display: grid; gap: 10px; }
.barre { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 5fr) 72px; gap: 14px; align-items: center; font-size: .9rem; }
.barre-nom small { display: block; font: .7rem var(--mono); color: var(--encre-3); }
.barre-piste { position: relative; height: 14px; background: var(--grille); border-radius: 0 3px 3px 0; }
.barre-rempli { position: absolute; inset: 0 auto 0 0; background: var(--encre-3); border-radius: 0 3px 3px 0; }
.barre.surligne .barre-rempli { background: var(--ble); }
.barre.surligne .barre-nom { font-weight: 600; }
.barre-ref { position: absolute; top: -4px; bottom: -4px; border-left: 1.5px dashed var(--encre); }
.barre-val { text-align: right; font-size: .86rem; }

/* =====================================================================
   Laboratoire
   ===================================================================== */
.labo-onglets { position: sticky; top: 61px; z-index: 20; background: var(--fond); margin-top: 8px; }
.module { padding: 44px 0 24px; }
.module-tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: end; margin-bottom: 26px; }
.module-tete h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.module-tete p { margin: 0; color: var(--encre-2); max-width: 58ch; }
@media (max-width: 900px) { .module-tete { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.controles { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; padding: 16px 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--trait); margin-bottom: 18px; }
.controles .champ { min-width: 140px; }
.controles .champ.etroit { min-width: 120px; max-width: 160px; }
.controles fieldset { border: 0; padding: 0; margin: 0; }
.controles legend { padding: 0; }
.case { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--encre-2); cursor: pointer; margin-right: 12px; }
.case input { accent-color: var(--ble); }
.grille-labo { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.grille-labo.egale { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .grille-labo, .grille-labo.egale { grid-template-columns: minmax(0, 1fr); } }
.encadre { border-top: 1px solid var(--encre); padding-top: 14px; }
.encadre h3 { font-size: 1.1rem; margin-bottom: 8px; }
.encadre p, .encadre li { font-size: .92rem; color: var(--encre-2); }
.interpretation { border-left: 2px solid var(--or); padding: 4px 0 4px 16px; color: var(--encre-2); font-size: .95rem; max-width: 70ch; }
.interpretation b { color: var(--encre); }
.liste-evenements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--encre); margin-bottom: 22px; }
.liste-evenements button { text-align: left; background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 16px 14px 0; cursor: pointer; color: var(--encre-2); }
.liste-evenements button + button { padding-left: 16px; border-left: 1px solid var(--trait); }
.liste-evenements button .d { display: block; font: 500 .72rem var(--mono); color: var(--encre-3); letter-spacing: .06em; }
.liste-evenements button .t { font: 600 1.08rem/1.25 var(--serif); }
.liste-evenements button[aria-pressed="true"] { border-bottom-color: var(--or); color: var(--encre); }
@media (max-width: 800px) { .liste-evenements { grid-template-columns: repeat(2, minmax(0, 1fr)); } .liste-evenements button:nth-child(3) { padding-left: 0; border-left: 0; } }
.carte-dm td.n { font-size: .82rem; }
.carte-dm td.sig { background: var(--voile-ble-2); font-weight: 600; }
.resultats-risque { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--encre); margin-bottom: 16px; }
.resultats-risque > div { padding: 14px 16px 14px 0; }
.resultats-risque > div + div { padding-left: 16px; border-left: 1px solid var(--trait); }
.resultats-risque .v { font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.resultats-risque .v small { font: 500 .8rem var(--mono); color: var(--encre-3); }
.resultats-risque .s { font: .76rem var(--mono); color: var(--encre-3); margin-top: 4px; }
@media (max-width: 800px) { .resultats-risque { grid-template-columns: repeat(2, minmax(0, 1fr)); } .resultats-risque > div:nth-child(3) { padding-left: 0; border-left: 0; } }
.jeu-barre { display: flex; justify-content: space-between; gap: 12px; font: .82rem var(--mono); color: var(--encre-3); margin-bottom: 6px; }
.jeu-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.jeu-actions .btn { min-width: 170px; justify-content: center; }
.verdict-manche { font: 600 1.15rem var(--serif); min-height: 1.6em; margin: 14px 0 6px; }
.verdict-manche.gagne { color: var(--ok); } .verdict-manche.perdu { color: var(--alerte); }
.score-modeles { width: 100%; border-collapse: collapse; font-size: .9rem; }
.score-modeles td { padding: 8px 0; border-bottom: 1px solid var(--trait); }
.score-modeles td.n { text-align: right; font-family: var(--mono); }
.signe { font-family: var(--mono); font-weight: 500; }
.signe.ok { color: var(--ok); } .signe.ko { color: var(--alerte); }
.radio-scenarios { display: grid; gap: 2px; }
.radio-scenarios label { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--trait); cursor: pointer; font-size: .92rem; text-transform: none; letter-spacing: 0; color: var(--encre); font-family: var(--sans); }
.radio-scenarios label small { font: .78rem var(--mono); color: var(--encre-3); }
.radio-scenarios input { accent-color: var(--ble); }
.champ label.case { display: inline-flex; font: 400 .88rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--encre-2); margin: 0 12px 0 0; }
.page-tete.compacte { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.page-tete.compacte .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.page-tete.compacte .lede { margin: 0; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
@media (max-width: 900px) { .page-tete.compacte .wrap { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* =====================================================================
   Intelligence artificielle
   ===================================================================== */
.ia-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 1000px) { .ia-grille { grid-template-columns: minmax(0, 1fr); } }
.etat-agent { display: inline-flex; align-items: center; gap: 8px; font: .8rem var(--mono); color: var(--encre-3); }
.etat-agent::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--encre-3); }
.etat-agent.en-ligne::before { background: var(--ok); }
.fil { display: flex; flex-direction: column; gap: 18px; margin: 18px 0; max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.fil:empty { display: none; }
.msg-q { align-self: flex-end; max-width: 80%; background: var(--vert); color: var(--ivoire); padding: 10px 16px; border-radius: 16px 16px 4px 16px; }
.msg-r { border-left: 2px solid var(--or); padding: 2px 0 2px 16px; }
.msg-r p { margin: 0 0 8px; }
.msg-r .meta { font: .74rem var(--mono); color: var(--encre-3); margin-bottom: 6px; }
.msg-r.attente { color: var(--encre-3); font-style: italic; border-left-color: var(--trait); }
.controle { display: inline-flex; gap: 8px; align-items: center; font: 500 .8rem var(--mono); margin-top: 4px; }
.controle.ok { color: var(--ok); } .controle.alerte { color: var(--alerte); } .controle.neutre { color: var(--encre-3); }
.saisie { display: flex; gap: 8px; margin-top: 8px; }
.saisie input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre); }
.transparence { position: sticky; top: 84px; border-top: 1px solid var(--encre); padding-top: 14px; }
.pipeline { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: p; }
.pipeline > li { counter-increment: p; position: relative; padding: 0 0 16px 34px; border-left: 1px solid var(--trait); margin-left: 11px; }
.pipeline > li:last-child { border-left-color: transparent; }
.pipeline > li::before { content: counter(p); position: absolute; left: -12px; top: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--fond); border: 1px solid var(--trait-fort); font: 500 .72rem/21px var(--mono); text-align: center; color: var(--encre-3); }
.pipeline > li.fait::before { background: var(--vert); border-color: var(--vert); color: var(--ivoire); }
.pipeline .t { font-weight: 600; font-size: .95rem; }
.pipeline .c { font-size: .86rem; color: var(--encre-2); }
.pipeline pre { font: .74rem/1.45 var(--mono); background: var(--fond-2); border: 1px solid var(--trait); border-radius: 6px; padding: 8px 10px; margin: 6px 0 0; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.audit { border-top: 1px solid var(--encre); }
.audit-ligne { display: grid; grid-template-columns: 120px minmax(0, 5fr) minmax(0, 6fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--trait); }
.audit-ligne .type { font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.audit-ligne .type.reel { color: var(--ok); } .audit-ligne .type.simule { color: var(--info); }
.audit-ligne .affirmation { font: italic 400 1.12rem/1.45 var(--serif); color: var(--encre); }
.audit-ligne .affirmation::before { content: "« "; } .audit-ligne .affirmation::after { content: " »"; }
.audit-ligne .src { font: .72rem var(--mono); color: var(--encre-3); margin-top: 6px; display: block; }
.audit-ligne h4 { margin: 0 0 4px; font-size: .78rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); font-weight: 500; }
.audit-ligne p { margin: 0 0 6px; color: var(--encre-2); font-size: .94rem; }
@media (max-width: 900px) { .audit-ligne { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.banc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.banc textarea { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--trait-fort); background: var(--surface); color: var(--encre); font: 1rem/1.5 var(--sans); resize: vertical; }
@media (max-width: 900px) { .banc { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Notre recherche
   ===================================================================== */
.parcours { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.sommaire-lateral { position: sticky; top: 84px; align-self: start; padding-top: 48px; }
.sommaire-lateral ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--trait); }
.sommaire-lateral a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--encre-3); text-decoration: none; font-size: .88rem; }
.sommaire-lateral a .n { font: 500 .7rem var(--mono); margin-right: 8px; }
.sommaire-lateral a.actif { color: var(--encre); border-left-color: var(--or); }
.progression { height: 2px; background: var(--trait); margin-bottom: 14px; } .progression i { display: block; height: 100%; background: var(--or); width: 0; }
@media (max-width: 1000px) { .parcours { grid-template-columns: minmax(0, 1fr); } .sommaire-lateral { display: none; } }
.etape-r { padding: 56px 0; border-top: 1px solid var(--trait); scroll-margin-top: 70px; }
.etape-r:first-child { border-top: 0; }
.etape-r .num { font: 500 .76rem var(--mono); color: var(--encre-3); letter-spacing: .12em; }
.etape-r h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 6px 0 18px; max-width: 26ch; }
.raisonnement { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--trait); }
.raisonnement span { flex: 1 1 150px; padding: 12px 18px 12px 0; font-size: .9rem; color: var(--encre-2); position: relative; }
.raisonnement span + span { padding-left: 22px; }
.raisonnement span + span::before { content: "→"; position: absolute; left: 2px; top: 12px; color: var(--or); font-family: var(--mono); }
.raisonnement span:last-child { color: var(--encre); font-weight: 600; }
.etape-r .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 20px; }
.chronologie text { font: 11px var(--mono); fill: var(--encre-2); }
.chronologie .apprentissage { fill: var(--vert-2); } .chronologie .validation { fill: var(--or); } .chronologie .test { fill: var(--soja); } .chronologie .neutre { fill: var(--trait); }

/* =====================================================================
   Coulisses : schéma d'architecture interactif
   ===================================================================== */
.flux { display: grid; grid-template-columns: repeat(9, auto); align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--trait); padding: 22px 0; overflow-x: auto; }
.flux button { background: var(--surface); border: 1px solid var(--trait-fort); border-radius: 10px; padding: 12px 14px; cursor: pointer; text-align: left; min-width: 120px; color: var(--encre); }
.flux button .r { display: block; font: 500 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-3); }
.flux button .n { font: 600 1rem var(--serif); }
.flux button[aria-pressed="true"] { border-color: var(--or); box-shadow: inset 0 0 0 1px var(--or); }
.flux .fl { font: 1.1rem var(--mono); color: var(--or); text-align: center; }
.flux .fl small { display: block; font-size: .6rem; color: var(--encre-3); }
.detail-noeud { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr)); gap: 28px; padding: 22px 0; }
.detail-noeud h3 { font-size: 1.5rem; }
.detail-noeud ul { margin: 0; padding-left: 18px; color: var(--encre-2); font-size: .92rem; }
@media (max-width: 1000px) { .flux { grid-template-columns: minmax(0, 1fr); justify-content: stretch; } .flux .fl { transform: rotate(90deg); } .detail-noeud { grid-template-columns: minmax(0, 1fr); } }
.equipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--encre); }
.equipe div { padding: 18px 18px 18px 0; } .equipe div + div { padding-left: 18px; border-left: 1px solid var(--trait); }
.equipe b { font: 600 1.15rem var(--serif); display: block; } .equipe span { font: .76rem var(--mono); color: var(--encre-3); }
@media (max-width: 800px) { .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } .equipe div:nth-child(3) { padding-left: 0; border-left: 0; } }
.refs { columns: 2 320px; column-gap: 40px; padding-left: 18px; color: var(--encre-2); font-size: .9rem; }
.refs li { margin-bottom: 8px; break-inside: avoid; }

/* =====================================================================
   Mode soutenance : les variables du thème sont redéfinies pour le fond vert
   ===================================================================== */
.soutenance { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #142D26; color: #F8F7F2;
  --fond: #142D26; --fond-2: #1A382F; --surface: #1B3A31; --encre: #F8F7F2; --encre-2: rgba(248, 247, 242, .82); --encre-3: rgba(248, 247, 242, .6);
  --trait: rgba(248, 247, 242, .18); --trait-fort: rgba(248, 247, 242, .35); --grille: rgba(248, 247, 242, .1); --ble: #D6AE60; --mais: #6FBF8E; --soja: #8FB4E8;
  --accent: #D6AE60; --sur-accent: #142D26; --lien: #D6AE60; --kicker: #D6AE60; --voile-ble: rgba(214, 174, 96, .18); --voile-ble-2: rgba(214, 174, 96, .32); }
.soutenance[hidden] { display: none; }
.st-barre { height: 3px; background: rgba(248, 247, 242, .12); } .st-barre i { display: block; height: 100%; background: #D6AE60; transition: width .3s ease; }
.st-tete { display: flex; justify-content: space-between; align-items: center; padding: 18px 40px; font: .78rem var(--mono); color: rgba(248, 247, 242, .6); letter-spacing: .08em; }
.st-tete .actions { display: flex; gap: 8px; }
.st-tete button { background: transparent; border: 1px solid rgba(248, 247, 242, .3); color: #F8F7F2; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: .8rem var(--sans); }
.st-scene { flex: 1; overflow: auto; padding: 0 clamp(20px, 6vw, 96px) 24px; display: flex; flex-direction: column; justify-content: center; }
.st-scene h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); max-width: 20ch; margin: 8px 0 18px; color: #F8F7F2; }
.st-scene .lede { color: rgba(248, 247, 242, .8); max-width: 54ch; }
.st-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.st-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 1px solid rgba(248, 247, 242, .3); margin-top: 22px; }
.st-chiffres div { padding: 16px 16px 0 0; } .st-chiffres b { font: 500 clamp(1.7rem, 2.8vw, 2.5rem)/1.05 var(--serif); color: #D6AE60; display: block; margin-bottom: 6px; white-space: nowrap; }
.st-chiffres span { font-size: .9rem; color: rgba(248, 247, 242, .75); }
.st-pied { display: flex; justify-content: space-between; align-items: center; padding: 16px 40px 22px; }
.st-pied button { background: #D6AE60; color: #142D26; border: 0; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; }
.st-pied button:disabled { opacity: .35; cursor: default; }
.st-pied .points { display: flex; gap: 6px; } .st-pied .points i { width: 8px; height: 8px; border-radius: 50%; background: rgba(248, 247, 242, .25); } .st-pied .points i.on { background: #D6AE60; }
.st-demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid rgba(248, 247, 242, .3); margin-top: 24px; }
.st-demos a { padding: 18px 18px 18px 0; color: #F8F7F2; text-decoration: none; border-bottom: 1px solid rgba(248, 247, 242, .15); }
.st-demos a b { font: 600 1.2rem var(--serif); display: block; color: #D6AE60; } .st-demos a span { font-size: .88rem; color: rgba(248, 247, 242, .75); }
.st-scene img { max-width: 100%; max-height: 52vh; background: #fff; display: block; }
@media (max-width: 900px) { .st-grille { grid-template-columns: minmax(0, 1fr); } .st-tete, .st-pied { padding-left: 16px; padding-right: 16px; } }

/* logo : emblème détouré + mot-symbole aux couleurs du logo */
.marque .embleme { width: 30px; height: 30px; display: block; }
.marque .mot { font: 600 1.22rem/1 var(--serif); letter-spacing: -.01em; }
.marque .agri { color: #1D4D33; } .marque .scope { color: #A47A2A; }
:root[data-theme="dark"] .marque .agri { color: #EEECE4; } :root[data-theme="dark"] .marque .scope { color: #D6AE60; }
:root[data-theme="dark"] .marque .embleme { background: #F8F7F2; border-radius: 50%; padding: 2px; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .marque .agri { color: #EEECE4; }
  :root:where(:not([data-theme="light"])) .marque .scope { color: #D6AE60; }
  :root:where(:not([data-theme="light"])) .marque .embleme { background: #F8F7F2; border-radius: 50%; padding: 2px; }
}

/* ---------------------------------------------------------------- documents */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); }
.doc { display: flex; flex-direction: column; gap: 14px; }
.doc .kicker { margin: 10px 0 0; }
.doc h2 { margin: 0; }
.doc .texte { color: var(--encre-2); }
.doc-apercu { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden;
  padding: clamp(18px, 4vw, 40px);
  background: var(--fond-2); border: 1px solid var(--trait); border-radius: 6px; }
.doc-apercu img { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 10px 30px rgba(20, 45, 38, .18);
  transition: transform .2s ease; }
.doc-apercu:hover img { transform: translateY(-3px); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 900px) { .docs { grid-template-columns: minmax(0, 1fr); } }
