/* ==========================================================================
   Mission Wallonne des Secteurs Verts - feuille de style unique (v3)
   Couleurs reprises de l'ancien site : vert-jaune du logo, fond blanc, grandes photos.
   Mobile first : styles de base = petits écrans ; @media (min-width: ...) = grands écrans.
   Polices Roboto + Montserrat hébergées localement (RGPD + performance). Les couleurs se changent dans :root.
   ========================================================================== */

/* ---------- 0. Polices (hébergées sur le site : aucun appel à Google, RGPD) ---------- */
@font-face { font-family: "Roboto"; font-weight: 300; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/roboto-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ---------- 1. Variables ---------- */
:root {
  --c-lime: #c2d500;          /* vert-jaune du logo et du bouton « Catalogue » */
  --c-lime-dark: #a9bb00;
  --c-olive: #667300;         /* liens et titres secondaires (contraste 5,6:1 sur blanc) */
  --c-ink: #232719;           /* menu en pilule, pied de page */
  --c-text: #2f3328;
  --c-muted: #5d6354;
  --c-bg: #ffffff;
  --c-tint: #f4f7de;          /* aplat lime très clair */
  --c-line: #e3e7cf;
  --radius: 10px;
  --maxw: 1160px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Montserrat", "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 92%; } /* 92 % = texte global un peu plus petit (tout est en rem) */
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-olive); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--c-ink); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; color: var(--c-ink); margin: 2em 0 0.55em; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin: 0; }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.005em; }
h4 { font-size: 1.08rem; letter-spacing: 0; }
h2 + h2, h2 + h3 { margin-top: 0.6em; }
.content > :first-child { margin-top: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }
strong { font-weight: 700; }
mark.todo { background: #fff0a8; padding: 0 0.3em; border-radius: 3px; font-weight: 700; }

:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--c-lime); }

.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; background: var(--c-ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) var(--radius); }
.skip-link:focus { top: 0; color: #fff; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.1rem; }

/* ---------- 3. En-tête : logo + menu en pilule claire et translucide ---------- */
.site-header { background: #fff; border-top: 6px solid var(--c-lime); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.9rem; }
.brand { display: inline-block; line-height: 0; flex: 1 1 0; min-width: 0; max-width: 360px; }
.brand-logo { height: 72px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }

.nav-toggle {
  font: inherit; font-weight: 700; cursor: pointer; flex: none; background: var(--c-lime); color: var(--c-ink);
  border: 0; border-radius: 999px; padding: 0.6rem 1.3rem;
}
.nav-toggle[aria-expanded="true"] { background: var(--c-lime-dark); }

/* Mobile : le menu s'ouvre en panneau clair sous l'en-tête */
.main-nav { display: none; background: var(--c-tint); border-top: 1px solid var(--c-line); }
.main-nav.nav-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { border-top: 1px solid var(--c-line); position: relative; display: flex; flex-wrap: wrap; align-items: stretch; margin: 0; }
.main-nav > ul > li:first-child { border-top: 0; }
.main-nav a { display: block; padding: 0.9rem 1.1rem; text-decoration: none; color: var(--c-ink); font-weight: 600; flex: 1; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--c-olive); }
.nav-home-icon { display: none !important; }
.main-nav .nav-cta a { background: var(--c-lime); color: var(--c-ink); text-align: center; }
.main-nav .nav-cta a:hover { background: var(--c-lime-dark); color: var(--c-ink); }
.sub-toggle { font: inherit; cursor: pointer; background: transparent; border: 0; border-left: 1px solid var(--c-line); padding: 0 1.1rem; color: var(--c-ink); }
.sub-toggle::after { content: "\25BE"; display: inline-block; transition: transform 0.15s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.submenu { display: none; width: 100%; background: #fff; }
.has-sub.open > .submenu { display: block; }
.submenu a { padding-left: 2.1rem; font-weight: 500; }

/* Bureau : pilule claire et translucide, sous le logo (ou à côté sur très grand écran) */
@media (min-width: 66rem) {
  .header-inner { padding-bottom: 0.5rem; }
  .nav-toggle { display: none; }
  .main-nav {
    display: block; position: relative; z-index: 60; width: fit-content; max-width: calc(100% - 2.2rem);
    margin: 0 auto 1.1rem; padding: 0.35rem; white-space: nowrap; border-radius: 999px;
    background: rgb(244 247 222 / 62%); border: 1px solid rgb(35 39 25 / 10%);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 8px 24px rgb(35 39 25 / 8%);
  }
  .main-nav > ul { display: flex; align-items: center; gap: 0.1rem; }
  .main-nav > ul > li { border: 0; flex-wrap: nowrap; align-items: center; }
  .main-nav a { padding: 0.6rem 0.9rem; font-size: 0.96rem; flex: none; border-radius: 999px; }
  .main-nav a:hover { background: rgb(255 255 255 / 70%); color: var(--c-ink); }
  .main-nav a[aria-current="page"] { background: #fff; color: var(--c-olive); }
  .nav-home-icon { display: block !important; }
  .nav-home-text { display: none !important; }
  .home-dot { width: 2.7rem; height: 2.7rem; padding: 0 !important; display: grid !important; place-items: center; background: var(--c-lime); border-radius: 50%; margin-right: 0.35rem; }
  .home-dot svg { fill: var(--c-ink); }
  .main-nav a.home-dot:hover, .main-nav a.home-dot[aria-current="page"] { background: var(--c-lime-dark); }
  .main-nav .nav-cta { margin-left: 0.35rem; }
  .main-nav .nav-cta a { background: var(--c-lime); color: var(--c-ink); padding: 0.6rem 1.2rem; }
  .main-nav .nav-cta a:hover { background: var(--c-ink); color: #fff; }
  .sub-toggle { border: 0; padding: 0 0.55rem 0 0; margin-left: -0.55rem; color: var(--c-muted); }
  .sub-toggle:hover { color: var(--c-ink); }
  .submenu {
    position: absolute; top: calc(100% + 0.7rem); left: 0; min-width: 20rem; width: auto; z-index: 60; background: #fff;
    border-radius: 16px; padding: 0.4rem; border: 1px solid var(--c-line); box-shadow: 0 18px 40px rgb(35 39 25 / 16%);
  }
  .main-nav .submenu a { color: var(--c-text); padding: 0.65rem 0.9rem; font-size: 0.95rem; font-weight: 500; border-radius: 10px; }
  .main-nav .submenu a:hover, .main-nav .submenu a[aria-current="page"] { background: var(--c-tint); color: var(--c-ink); }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; } /* zone de survol continue */
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }
}

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-block; padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: var(--c-ink); color: #fff; border: 2px solid var(--c-ink); cursor: pointer; font-family: inherit;
  font-size: 1rem; line-height: 1.3; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--c-olive); border-color: var(--c-olive); color: #fff; }
.btn-accent { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-ink); }
.btn-accent:hover { background: var(--c-lime-dark); border-color: var(--c-lime-dark); color: var(--c-ink); }
.btn-outline { background: transparent; color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.4rem; }

/* ---------- 5. Pages intérieures ---------- */
.page-head { padding-block: 1.6rem 0.5rem; }
@media (min-width: 66rem) { .page-head { padding-top: 2.2rem; } }
.page-head h1 { padding-bottom: 1.1rem; border-bottom: 4px solid var(--c-lime); display: inline-block; }
.breadcrumb { font-size: 0.9rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: #b9bfa6; }
.breadcrumb a { color: var(--c-muted); }
main { padding-bottom: 4rem; }
.page-body { padding-top: 2rem; }
.lead { font-size: 1.15rem; color: var(--c-muted); line-height: 1.55; }
.content { max-width: 50rem; }
.content.wide { max-width: none; }

.card, .panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.4rem; }
.panel-soft { background: var(--c-tint); border-color: transparent; }
.card h2, .card h3, .panel h2, .panel h3 { margin-top: 0; }
.two-cols { display: grid; gap: 1.25rem; margin-block: 2rem; }
@media (min-width: 48rem) { .two-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- 6. Accueil : grandes photos, titre sur fond blanc ---------- */
.strips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.strips li { margin: 0; position: relative; overflow: hidden; background: var(--c-tint); min-height: 200px; }
.strips li:last-child { grid-column: span 2; }
.strips figure { margin: 0; position: absolute; inset: 0; }
.strips img { width: 100%; height: 100%; object-fit: cover; }
.strips figcaption {
  position: absolute; left: 0.8rem; bottom: 0.8rem; padding: 0.3rem 0.9rem; border-radius: 999px;
  background: rgb(255 255 255 / 92%); color: var(--c-ink); font-weight: 700; font-size: 0.95rem;
}
@media (min-width: 48rem) {
  .strips { display: flex; height: clamp(320px, 38vw, 520px); }
  .strips li { flex: 1 1 0; min-height: 0; transition: flex-grow 0.4s ease; }
  .strips li:last-child { grid-column: auto; }
  .strips li:hover { flex-grow: 2.4; }
}

.intro { padding-block: 3rem 1rem; max-width: 48rem; }
.intro h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
.intro .lead { margin-top: 1rem; }

.paths { display: grid; gap: 1.25rem; margin-block: 2rem; }
@media (min-width: 48rem) { .paths { grid-template-columns: 1fr 1fr; } }
.path { padding: 2rem; border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.path h2 { margin: 0 0 0.6rem; font-size: 1.6rem; }
.path p { margin-bottom: 1.4rem; }
.path .btn { margin-top: auto; }
.path-formation { background: var(--c-lime); color: var(--c-ink); }
.path-formation .btn { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.path-formation .btn:hover { background: #000; border-color: #000; }
.path-prevention { background: var(--c-ink); color: #e9edd8; }
.path-prevention h2 { color: #fff; }
.path-prevention .btn { background: var(--c-lime); border-color: var(--c-lime); color: var(--c-ink); }
.path-prevention .btn:hover { background: #fff; border-color: #fff; }
.home-news { list-style: none; padding: 0; }
.home-news li { margin-bottom: 0.8rem; }

/* ---------- 7. Blocs de contenu ---------- */
.grid-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); padding: 0; list-style: none; margin: 1rem 0; }
.grid-cards > li { margin: 0; }
.thumb-card { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; }
.thumb-card img { border: 1px solid var(--c-line); border-radius: 6px; max-height: 18rem; width: auto; margin-inline: auto; background: #fff; }
.thumb-card h3 { font-size: 1.05rem; margin: 0; letter-spacing: 0; }
.thumb-card .btn { margin-top: auto; text-align: center; padding: 0.55rem 0.9rem; font-size: 0.95rem; }

.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-line); }
.news-item { padding: 1.4rem 0; border-bottom: 1px solid var(--c-line); margin: 0; }
.news-item h2, .news-item h3 { margin: 0.2rem 0 0.45rem; font-size: 1.4rem; }
.news-item h2 a, .news-item h3 a { text-decoration: none; color: var(--c-ink); }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--c-olive); text-decoration: underline; }
.news-item p { margin: 0; color: var(--c-muted); }
.meta { font-size: 0.9rem; color: var(--c-muted); }

.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.doc-list li { padding: 0.45rem 0 0.45rem 0.9rem; border-left: 3px solid var(--c-line); margin-bottom: 0.25rem; }
.doc-list li:hover { border-left-color: var(--c-lime); background: var(--c-tint); }
.file-type { font-size: 0.8rem; color: var(--c-muted); white-space: nowrap; }
.doc-columns { columns: 1; }
@media (min-width: 48rem) { .doc-columns { columns: 2; column-gap: 2rem; } .doc-columns li { break-inside: avoid; } }

details { border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: 0.7rem; background: #fff; }
details summary { cursor: pointer; padding: 0.9rem 1.1rem; font-weight: 700; color: var(--c-ink); }
details[open] summary { border-bottom: 1px solid var(--c-line); background: var(--c-tint); }
details > :not(summary) { margin-inline: 1.1rem; }
details > ul:last-child, details > p:last-child { margin-bottom: 1.1rem; }
details > :nth-child(2) { margin-top: 1.1rem; }

.table-wrap { overflow-x: auto; margin-block: 1.2rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; }
caption { text-align: left; font-weight: 700; padding: 0.8rem 1rem; color: var(--c-ink); }
th, td { border-top: 1px solid var(--c-line); padding: 0.65rem 1rem; text-align: left; vertical-align: top; }
thead th { background: var(--c-tint); border-top: 0; }

.figure-center { margin: 1.8rem 0; }
.figure-center img { margin-inline: auto; border-radius: var(--radius); border: 1px solid var(--c-line); }
.notice { border-left: 5px solid var(--c-lime); background: var(--c-tint); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin-block: 1.4rem; }
.notice p:last-child { margin-bottom: 0; }

/* Vidéos : YouTube n'est chargé qu'après un clic (voir assets/js/main.js) */
.video-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); list-style: none; padding: 0; }
.video-grid li { margin: 0; }
.video-frame { aspect-ratio: 16 / 9; background: var(--c-ink); border-radius: var(--radius); overflow: hidden; display: flex; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-load {
  flex: 1; border: 0; cursor: pointer; font: inherit; color: #fff; background: var(--c-ink); padding: 1rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.6rem; text-align: center; font-weight: 700;
}
.video-load:hover { background: #343a24; }
.video-load .play { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--c-lime); color: var(--c-ink); display: grid; place-items: center; font-size: 1.2rem; padding-left: 0.2rem; }
.video-load .hint { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }

/* ---------- 8. Pied de page ---------- */
.site-footer { background: var(--c-ink); color: #d6dbc2; padding-block: 2.5rem; font-size: 1rem; border-top: 6px solid var(--c-lime); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-lime); }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 0.6rem; letter-spacing: 0; }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid address { font-style: normal; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / 18%); font-size: 0.88rem; }

/* ---------- 9. Préférences utilisateur et impression ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .site-header .nav-toggle, .main-nav, .site-footer, .skip-link, .btn-row, .strips { display: none !important; }
  body { font-size: 11pt; }
  a { color: #000; }
}

/* ---------- 10. Accueil : colonne principale + colonne latérale (comme l'ancien site) ---------- */
.home-grid { display: grid; gap: 2rem; padding-top: 1rem; }
@media (min-width: 62rem) { .home-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; } }
.intro { padding-block: 2rem 0.5rem; max-width: none; }
.intro h1 { font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 600; }
.intro .tagline { color: var(--c-muted); font-size: 1.2rem; margin: 0.4rem 0 1.1rem; padding-bottom: 1.1rem; position: relative; }
.intro .tagline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 3px; background: var(--c-lime); }
.intro .lead { color: var(--c-text); font-size: 1.15rem; }
.home-blocks { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 48rem) { .home-blocks { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.home-block { display: flex; gap: 1rem; align-items: flex-start; }
.home-block h2 { margin: 0.2rem 0 0.7rem; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
.home-block p { color: var(--c-muted); }
.block-icon { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 2px solid var(--c-olive); color: var(--c-olive); display: grid; place-items: center; }
.home-aside { display: grid; gap: 1.5rem; align-content: start; padding-top: 1rem; }
.home-aside .panel { padding: 1.4rem 1.5rem; }
.home-aside .panel h2 { font-size: 1.7rem; font-weight: 600; }
.aside-cta {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem; min-height: 12rem; padding: 1.5rem;
  background: var(--c-lime); color: var(--c-ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; text-align: center; border-radius: 4px;
}
.aside-cta:hover { background: var(--c-lime-dark); color: var(--c-ink); }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.covers a { display: flex; flex-direction: column; gap: 0.6rem; text-align: center; text-decoration: none; font-size: 0.98rem; }
.covers img { width: 100%; height: auto; border: 1px solid var(--c-line); box-shadow: 0 4px 14px rgb(35 39 25 / 12%); }
.covers a:hover span { text-decoration: underline; }

/* ---------- 11. Bandeau vie privée ---------- */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 100; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.5rem;
  padding: 1rem 1.25rem; background: var(--c-ink); color: #fff; border-top: 4px solid var(--c-lime); box-shadow: 0 -6px 24px rgb(0 0 0 / 18%);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; max-width: 46rem; font-size: 0.98rem; }
.cookie-link { color: #fff; text-decoration: underline; font-size: 0.98rem; }
.cookie-link:hover { color: var(--c-lime); }
.cookie-ok { background: var(--c-lime); color: var(--c-ink); border: 0; border-radius: 999px; padding: 0.6rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; }
.cookie-ok:hover { background: var(--c-lime-dark); }
.cookie-ok:focus-visible, .cookie-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- 12. Centre de préférences (dialog) ---------- */
.prefs { width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 16px; overflow: hidden; color: var(--c-text); box-shadow: 0 20px 60px rgb(0 0 0 / 35%); }
.prefs[open] { display: flex; flex-direction: column; }
.prefs::backdrop { background: rgb(35 39 25 / 55%); backdrop-filter: blur(3px); }
.prefs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--c-ink); color: #fff; border-bottom: 4px solid var(--c-lime); }
.prefs-head h2 { margin: 0; font-size: 1.2rem; color: #fff; }
.prefs-close { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 0.3rem; }
.prefs-close:hover { color: var(--c-lime); }
.prefs-body { display: grid; grid-template-columns: 1fr; overflow-y: auto; flex: 1; background: #fff; }
@media (min-width: 40rem) { .prefs-body { grid-template-columns: 13rem 1fr; } }
.prefs-tabs { display: flex; gap: 0.4rem; padding: 0.8rem; background: var(--c-tint); }
@media (min-width: 40rem) { .prefs-tabs { flex-direction: column; } }
.prefs-tabs button { text-align: left; background: transparent; border: 0; border-radius: 999px; padding: 0.6rem 1rem; font: inherit; font-weight: 600; color: var(--c-ink); cursor: pointer; }
.prefs-tabs button:hover { background: #fff; }
.prefs-tabs button[aria-selected="true"] { background: var(--c-lime); }
.prefs-panels { padding: 1.4rem 1.5rem; min-height: 14rem; }
.prefs-panels h3 { margin: 0 0 0.8rem; font-size: 1.3rem; color: var(--c-ink); }
.prefs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.prefs-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius); }
.prefs-list small { display: block; color: var(--c-muted); margin-top: 0.2rem; }
.prefs-state { flex: none; font-size: 0.85rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--c-lime); color: var(--c-ink); }
.prefs-state.off { background: var(--c-line); color: var(--c-muted); }
.prefs-foot { padding: 0.9rem 1.4rem; background: var(--c-tint); border-top: 1px solid var(--c-line); text-align: right; }

/* ---------- 13. Bandeau « feuilles » des pages intérieures ---------- */
.page-head {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.2rem; min-height: 11rem; padding: 1.5rem 0 0;
  background: linear-gradient(rgb(10 35 8 / 30%), rgb(10 35 8 / 30%)), url("/assets/img/bandeau-feuilles.jpg") center / cover no-repeat, #3d8a2a;
}
@media (min-width: 48rem) { .page-head { min-height: 13.5rem; padding-top: 2.5rem; } }
.page-head h1 { display: block; border: 0; padding: 0; color: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: 0.01em; font-size: clamp(1.35rem, 4.4vw, 2.3rem); line-height: 1.15; text-shadow: 0 2px 14px rgb(0 0 0 / 40%); overflow-wrap: anywhere; }
.page-head .container { display: flex; flex-direction: column; gap: 1.4rem; padding-bottom: 0; }
.page-head .breadcrumb { order: 2; margin: 0; align-self: flex-start; background: rgb(35 39 25 / 72%); color: #fff; padding: 0.7rem 1rem; border-radius: 10px 10px 0 0; font-size: 0.9rem; font-weight: 600; max-width: 100%; }
.page-head .breadcrumb a { color: #fff; }
.page-head .breadcrumb li + li::before { color: var(--c-lime); }
.page-head h1 { order: 1; }
@media (min-width: 48rem) { .page-head .breadcrumb { padding: 0.9rem 1.4rem; font-size: 0.98rem; } }
.page-body { padding-top: 2.5rem; }

/* Texte plus aéré comme sur l'ancien site (tablette / ordinateur) */
.content { max-width: 56rem; }
@media (min-width: 48rem) { .content > p, .content > ul, .content > ol, .main-col > p, .main-col > ul { line-height: 1.9; } }

/* Tableau du conseil d'administration : lignes sobres, puis cartes empilées sur mobile */
.table-board { border: 0; border-radius: 0; background: transparent; }
.table-board table { min-width: 0; }
.table-board td { border-top: 1px solid var(--c-line); padding: 0.8rem 1rem 0.8rem 0; }
.table-board tr:last-child td { border-bottom: 1px solid var(--c-line); }
.table-board td:first-child { white-space: nowrap; padding-right: 1.5rem; }
@media (max-width: 47.99rem) {
  .table-board table, .table-board tbody, .table-board tr, .table-board td { display: block; width: 100%; }
  .table-board tr { padding: 0.8rem 0; border-top: 1px solid var(--c-line); }
  .table-board tr:last-child { border-bottom: 1px solid var(--c-line); }
  .table-board td { border: 0 !important; padding: 0.1rem 0; white-space: normal !important; }
  .table-board td:first-child { color: var(--c-olive); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
  .table-board td:first-child:empty { display: none; }
  .table-board td:nth-child(2) { font-weight: 700; color: var(--c-ink); }
  .table-board td:nth-child(3) { color: var(--c-muted); }
}

/* ---------- 14. Page Formations : titre d'introduction et titre du catalogue ---------- */
.content-title { margin-bottom: 1.6rem; }
.content-title h2 { margin: 0; font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 500; line-height: 1.25; letter-spacing: 0; }
.content-title .subtitle { margin: 0.5rem 0 0; padding-bottom: 1.1rem; position: relative; color: var(--c-muted); font-size: 1.1rem; }
.content-title .subtitle::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 3px; background: var(--c-lime); }
.content h2.cta-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-top: 2rem; letter-spacing: 0; }
.content h2.cta-title a { color: #8a9a00; text-decoration: none; }
.content h2.cta-title a:hover { color: var(--c-olive); text-decoration: underline; }

/* ---------- 15. Page Apprentissage : photos et sections repliables ---------- */
.content-title.solo h2 { padding-bottom: 1.1rem; position: relative; }
.content-title.solo h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 3px; background: var(--c-lime); }
.photo-pair { display: grid; gap: 1rem; margin-block: 1.5rem 2rem; }
@media (min-width: 40rem) { .photo-pair { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; } }
.photo-pair img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 4px 16px rgb(35 39 25 / 14%); }
@media (min-width: 40rem) { .photo-pair img { aspect-ratio: 1 / 1; object-fit: cover; } }

/* Accordéon : chaque <details> s'ouvre/se ferme au clic (sans JavaScript) */
.accordion { border: 1px solid var(--c-line); border-radius: var(--radius); background: #f8f8f6; overflow: hidden; margin-block: 1.5rem; }
.accordion details { border: 0; border-radius: 0; margin: 0; background: transparent; border-top: 1px solid var(--c-line); }
.accordion details:first-child { border-top: 0; }
.accordion summary { list-style: none; display: flex; align-items: flex-start; gap: 0.9rem; padding: 0.95rem 1.1rem; font-weight: 500; font-size: clamp(1.05rem, 2.6vw, 1.25rem); line-height: 1.3; color: #4a4f43; cursor: pointer; background: transparent; border: 0; }
.accordion details[open] > summary { background: transparent; border: 0; color: var(--c-ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; flex: none; width: 1.2rem; text-align: center; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--c-olive); }
.accordion details[open] > summary::before { content: "\2212"; }
.accordion summary:hover { background: #fff; }
.accordion summary:focus-visible { outline: 3px solid var(--c-olive); outline-offset: -3px; }
.accordion .acc-body { padding: 0.2rem 1.4rem 1.4rem 3.2rem; font-size: 1rem; }
@media (max-width: 40rem) { .accordion .acc-body { padding-left: 1.2rem; } }
.accordion .acc-body > :first-child { margin-top: 0; }
.accordion .acc-body > :last-child { margin-bottom: 0; }

/* ---------- 16. Flèche « retour en haut » ---------- */
.to-top { position: fixed; right: 1.1rem; bottom: calc(1.1rem + var(--bas-bandeau, 0px)); z-index: 90; width: 3.1rem; height: 3.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-lime); color: var(--c-ink); box-shadow: 0 4px 14px rgb(0 0 0 / 25%); transition: background 0.15s, transform 0.15s; }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--c-lime-dark); color: var(--c-ink); transform: translateY(-2px); }
.to-top:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
@media (min-width: 48rem) { .to-top { right: 1.75rem; bottom: calc(1.75rem + var(--bas-bandeau, 0px)); } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- 17. Page Outplacement : texte + encadré « Téléchargements » ---------- */
.with-aside { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .with-aside { grid-template-columns: minmax(0, 1fr) 19rem; gap: 3rem; } }
.main-col { max-width: 50rem; }
.main-col h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 500; line-height: 1.25; letter-spacing: 0; margin: 2rem 0 0.8rem; }
.main-col > h2:first-child { margin-top: 0; }
.main-col ul { margin-block: 0.6rem 1.2rem; }
.main-col li + li { margin-top: 0.25rem; }
.download-box { background: #efefec; border-radius: 12px; padding: 1.5rem 1.5rem 1.6rem; }
.download-box h2 { margin: 0 0 1rem; padding-bottom: 1rem; position: relative; font-size: 1.5rem; font-weight: 500; letter-spacing: 0; }
.download-box h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 3px; background: var(--c-lime); }
.download-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.download-box li { margin: 0; padding-left: 1rem; position: relative; font-size: 0.98rem; line-height: 1.45; }
.download-box li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--c-olive); }
@media (min-width: 62rem) { .download-box { position: sticky; top: 1.5rem; } }

/* ---------- 18. Page PreventAgri : bandeau « champ de blé » + menu latéral ---------- */
.page-head.ph-preventagri { background: linear-gradient(rgb(0 0 0 / 8%), rgb(0 0 0 / 8%)), url("/assets/img/bandeau-preventagri.jpg") center 6% / cover no-repeat, #b99a52; }
.ph-preventagri h1 { color: var(--c-lime); text-shadow: 0 2px 3px rgb(0 0 0 / 55%), 0 0 18px rgb(0 0 0 / 35%); }
.ph-preventagri .breadcrumb { background: rgb(88 68 38 / 72%); }
.side-stack { display: grid; gap: 1.5rem; }
.side-box { background: #efefec; border-radius: 14px; padding: 1.5rem 1.5rem 1.7rem; }
.side-box h2 { margin: 0 0 1rem; padding-bottom: 1rem; position: relative; font-size: 1.45rem; font-weight: 500; line-height: 1.25; letter-spacing: 0; }
.side-box h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 5.5rem; height: 3px; background: var(--c-lime); }
.side-menu, .side-menu ul { margin: 0; padding-left: 1.15rem; }
.side-menu { padding-left: 1.2rem; }
.side-menu li { margin: 0.28rem 0; font-size: 0.98rem; line-height: 1.4; }
.side-menu ul { margin-top: 0.28rem; list-style: circle; }
.side-news .center { text-align: center; margin: 0.5rem 0; }
.side-news .small { font-size: 0.9rem; color: var(--c-muted); }
.side-news img { display: inline-block; }
.main-col .content-title { margin-top: 0; }
.main-col > p > img { width: 100%; height: auto; border-radius: var(--radius); margin-block: 0.5rem; }
@media (min-width: 62rem) { .with-side { grid-template-columns: minmax(0, 1fr) 21rem; } .side-stack { position: sticky; top: 1.5rem; } }

/* ---------- 19. Bouton pilule « Je m'inscris » (newsletter) ---------- */
.btn-pill { display: inline-block; background: var(--c-lime); color: var(--c-ink); font-weight: 700; font-size: 1.1rem; line-height: 1; text-decoration: none; padding: 0.95rem 2.4rem; border-radius: 999px; border: 2px solid var(--c-lime); box-shadow: 0 3px 10px rgb(60 70 0 / 22%); transition: background 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn-pill:hover { background: var(--c-lime-dark); border-color: var(--c-lime-dark); color: var(--c-ink); transform: translateY(-2px); box-shadow: 0 6px 14px rgb(60 70 0 / 28%); }
.btn-pill:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.btn-pill-sm { font-size: 1rem; padding: 0.7rem 1.7rem; margin-block: 0.3rem; }
@media (prefers-reduced-motion: reduce) { .btn-pill { transition: none; } .btn-pill:hover { transform: none; } }

/* ---------- 20. Typographie proche de l'ancien site (Roboto 17 px pour le texte, Montserrat pour les titres) ---------- */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: 0; }
.page-head h1, .cta-title { font-weight: 700; }
.accordion .acc-body, .home-block p, .download-box li, .side-menu li { font-size: 1rem; }
.footer-title-link { color: inherit; text-decoration: none; }
.footer-title-link:hover { text-decoration: underline; }

/* ---------- 21. Page Formations Prévention : sections « sable » repliables ---------- */
.main-col h3 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); font-weight: 500; line-height: 1.25; margin: 2.2rem 0 0.9rem; }
.accordion-sand { background: #cdbfa5; border: 0; border-radius: 8px; margin-block: 1rem 2rem; }
.accordion-sand details { border-top: 1px solid rgb(255 255 255 / 55%); }
.accordion-sand details:first-child { border-top: 0; }
.accordion-sand summary { color: #2b2415; font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 2.4vw, 1.2rem); line-height: 1.35; padding: 1rem 1.2rem; }
.accordion-sand summary::before { color: #2b2415; }
.accordion-sand summary:hover, .accordion-sand details[open] > summary { background: #bfb092; color: #1f1a0e; }
.accordion-sand details[open] > summary { border: 0; }
.accordion-sand summary:focus-visible { outline: 3px solid #2b2415; outline-offset: -3px; }
.accordion-sand .acc-body { background: #faf7f0; color: var(--c-text); padding: 1.2rem 1.4rem 1.5rem 3.2rem; }
@media (max-width: 40rem) { .accordion-sand .acc-body { padding-left: 1.2rem; } }
.accordion-sand .acc-body img { width: min(100%, 214px); height: auto; border: 1px solid var(--c-line); box-shadow: 0 4px 14px rgb(35 39 25 / 14%); }
.accordion details > .acc-body { margin: 0; }

/* ---------- 22. Onglets verticaux (Accueil à la ferme) ---------- */
.tabs { margin-block: 2rem; }
.tabs .tab-panels > section { padding: 1.2rem 1.4rem; margin-bottom: 1rem; background: #f7f7f5; border: 1px solid var(--c-line); border-radius: 8px; }
.tabs .tab-title { margin: 0 0 0.6rem; font-size: 1.3rem; }
.tabs .tab-panels ul { margin-block: 0.4rem 1rem; }
.tabs .tab-panels li { margin: 0.35rem 0; }
.tabs .tablist { display: none; }
/* Avec JavaScript (classe is-ready) */
.tabs.is-ready .tab-title { position: absolute; left: -9999px; }
.tabs.is-ready { display: grid; border: 1px solid var(--c-line); border-radius: 8px; background: #f7f7f5; overflow: hidden; }
.tabs.is-ready .tablist { display: flex; flex-wrap: wrap; gap: 2px; padding: 0.6rem; background: #fff; }
.tabs.is-ready .tab-panels > section { margin: 0; border: 0; border-radius: 0; padding: 1.2rem 1.4rem 1.6rem; }
.tabs.is-ready .tab-panels > section[hidden] { display: none; }
.tablist button { font: inherit; font-size: 1rem; text-align: left; cursor: pointer; border: 0; border-radius: 6px; padding: 0.85rem 1.1rem; background: #cdbfa5; color: #2b2415; }
.tablist button:hover { background: #bfb092; }
.tablist button[aria-selected="true"] { background: #f7f7f5; font-weight: 700; box-shadow: inset 0 0 0 1px var(--c-line); }
.tablist button:focus-visible { outline: 3px solid #2b2415; outline-offset: 2px; }
@media (min-width: 48rem) {
  .tabs.is-ready { grid-template-columns: 15rem 1fr; }
  .tabs.is-ready .tablist { flex-direction: column; flex-wrap: nowrap; padding: 0; gap: 2px; background: transparent; border-right: 0; }
  .tabs.is-ready .tablist button { border-radius: 0; padding: 1.05rem 1.2rem; }
  .tabs.is-ready .tablist button:first-child { border-top-left-radius: 8px; }
  .tabs.is-ready .tablist button[aria-selected="true"] { box-shadow: none; margin-right: -1px; }
}
/* Dans les onglets : simples puces, comme sur l'ancien site */
.tabs .doc-list { list-style: disc; padding-left: 1.4rem; margin: 0.4rem 0 1.2rem; }
.tabs .doc-list li { border: 0; padding: 0; margin: 0.35rem 0; background: none; line-height: 1.6; }
.tabs .doc-list li:hover { background: none; }

/* ---------- 23. Page Diversification ---------- */
.main-col em { color: var(--c-text); }
.main-col > p > img.float-logo, .float-logo { float: right; width: min(190px, 40%); height: auto; margin: 0 0 0.8rem 1.5rem; border-radius: 0; }
@media (max-width: 40rem) { .float-logo { float: none; margin: 0.8rem auto; } }
.plan-center { text-align: center; margin-block: 1.5rem 2rem; }
.plan-center p { margin-bottom: 1rem; }
.plan-center img { margin-inline: auto; width: min(100%, 260px); height: auto; border: 1px solid var(--c-line); box-shadow: 0 4px 14px rgb(35 39 25 / 12%); }
.main-col h2.fiches-title { text-align: center; margin: 3rem 0 1.5rem; scroll-margin-top: 1rem; }
.fiches-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
.fiche-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1.3rem 1rem 1.4rem; text-align: center; background: #fff; border: 1px solid var(--c-lime); border-radius: 22px; transition: box-shadow 0.15s, transform 0.15s; }
.fiche-card:hover { box-shadow: 0 8px 22px rgb(60 70 0 / 16%); transform: translateY(-2px); }
.fiche-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; font-weight: 500; min-height: 4.1em; display: grid; align-items: center; }
.fiche-card a { margin-top: auto; }
.fiche-card img { width: 100%; max-width: 212px; height: auto; border: 1px solid var(--c-line); }
@media (prefers-reduced-motion: reduce) { .fiche-card { transition: none; } .fiche-card:hover { transform: none; } }

/* ---------- 24. Accueil : titre plus discret (texte global réduit) ---------- */
.intro h1 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 500; }


/* 25. Taille de texte alignée sur l'ancien site (Roboto Light, plus petit) */
html { font-size: 86%; }
body { font-weight: 300; font-size: 1.0625rem; }
strong, b, th { font-weight: 700; }
.main-col p, .main-col li { font-weight: 300; }

/* 26. Page Newsletters PreventAgri : grille de cartes */
.news-grid { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { border: 2px solid var(--c-lime); border-radius: 25px; padding: 1.4rem 1.2rem 1.2rem; text-align: center; background: #fff; display: flex; flex-direction: column; }
.news-month { margin: 0 0 .4rem; color: var(--c-muted); font-size: .95rem; }
.news-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin: 0 0 1rem; color: var(--c-ink); }
.news-card a { margin-top: auto; display: block; }
.news-card img { width: 100%; max-width: 254px; height: auto; margin: 0 auto; display: block; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.old-news { margin: 2rem 0; }
.old-news a { display: block; text-align: center; border: 2px solid var(--c-lime); border-radius: 25px; padding: 2.2rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--c-olive); text-decoration: none; }
.old-news a:hover { background: var(--c-tint); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } .old-news a { font-size: 1.4rem; } }

/* 27. Boîte à outils : cartes grises */
.tool-intro { margin-bottom: 2rem; color: var(--c-muted); }
.tool-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; align-items: stretch; }
.tool-card { flex: 1 1 240px; background: #efefef; padding: 2.2rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1.6rem; }
.tool-card h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.45rem; line-height: 1.25; margin: 0; color: var(--c-ink); }
.tool-card-text { justify-content: flex-start; gap: 1rem; }
.tool-card-text h2 { text-transform: none; font-size: 1.35rem; }
.tool-card-text p { margin: 0; color: var(--c-muted); line-height: 2; }
.tool-row-2 .tool-card-text:first-child { flex: 1.1 1 300px; justify-content: space-between; }
.tool-card-text:first-child h2 { margin-bottom: .2rem; }
.tool-card ul { margin: 0; padding-left: 1.2rem; text-align: left; }
.tool-card-text:last-child h2 { text-transform: uppercase; }
.btn-green { display: inline-block; background: linear-gradient(#7fbf55, #5aa032); color: #fff; font-weight: 400; padding: .75rem 1.6rem; border-radius: 4px; border: 1px solid #5a9a35; text-decoration: none; line-height: 1.2; }
.btn-green:hover, .btn-green:focus-visible { background: linear-gradient(#6fb147, #4d8f2a); color: #fff; }

/* 28. Documentation + OiRA */
.tool-row-left .tool-card { flex: 0 1 260px; }
.upper { text-transform: uppercase; }
.upper-h { text-transform: uppercase; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.3; margin: 2.2rem 0 1rem; color: var(--c-ink); }
.upper-h strong { font-weight: 700; }
.oira-grid { list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.oira-card { border: 1px solid var(--c-lime); border-radius: 22px; padding: 1.6rem 1.2rem 1.2rem; display: flex; flex-direction: column; align-items: center; text-align: left; background: #fff; }
.oira-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin: 0 0 1rem; align-self: center; }
.oira-card > img:not(.oira-banner) { width: 150px; height: auto; margin: 0 auto 1rem; }
.oira-card ul { margin: 0 0 1.2rem; padding-left: 1.2rem; align-self: stretch; }
.oira-card .oira-banner { width: 100%; max-width: 254px; height: auto; margin-top: auto; }
.oira-list { padding-left: 1.6rem; }
.oira-list li { margin-bottom: .5rem; }
@media (max-width: 900px) { .oira-grid { grid-template-columns: 1fr; } }
.oira-card h3 { text-align: center; }

/* 29. Kits sécurité : bandeau champ de pommes de terre (ancré en bas) + cartes */
.page-head.ph-preventagri.ph-kits { background: linear-gradient(rgb(0 0 0 / 6%), rgb(0 0 0 / 6%)), url("/assets/img/bandeau-kits.jpg") center bottom / cover no-repeat, #6d9a3c; }
.kits-title { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; margin: 0 0 1.5rem; }
.kits-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.kit-card { border: 1px solid var(--c-lime); border-radius: 22px; padding: 2rem 1.2rem 1.6rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.kit-card:nth-child(3), .kit-card:nth-child(5) { grid-column: 1 / -1; }
.kit-card:nth-child(5) { grid-column: auto; }
.kit-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin: 0 0 .8rem; color: var(--c-ink); }
.kit-hint { margin: 0 0 1.4rem; color: var(--c-lime-dark); }
.kit-card a { margin-top: auto; display: block; }
.kit-card img { display: block; margin: 0 auto; height: auto; max-width: 100%; }
@media (max-width: 700px) { .kits-grid { grid-template-columns: 1fr; } .kit-card:nth-child(n) { grid-column: auto; } }

/* 30. Contact */
.ph-sub { order: 1; margin: -.8rem 0 0; color: #fff; font-size: 1.1rem; text-shadow: 0 1px 8px rgb(0 0 0 / 50%); }
.contact-info { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.contact-info li { padding: .5rem 1rem 1rem; border-left: 1px solid var(--c-line); }
.contact-info li:first-child { border-left: 0; }
.contact-info svg { width: 22px; height: 22px; fill: #7a5c43; }
.contact-info h2 { font-family: var(--font-display); font-weight: 400; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin: .6rem 0 1.2rem; }
.contact-info p { margin: 0; color: var(--c-muted); }
.team-sketch { margin: 1rem 0 2rem; text-align: center; }
.team-sketch img { max-width: 100%; height: auto; }
.team-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.team-card { border: 1px solid #d9a23a; border-radius: 6px; padding: 2rem 1.4rem; text-align: center; background: #fff; }
.team-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 .4rem; color: var(--c-ink); }
.team-role { color: #8a8a8a; margin: 0 0 1.4rem; position: relative; padding-bottom: 1rem; }
.team-role::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 46px; border-top: 1px solid var(--c-olive); transform: translateX(-50%); }
.team-card p { margin: 0 0 1.2rem; color: var(--c-muted); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } .contact-info { grid-template-columns: 1fr; } .contact-info li { border-left: 0; border-top: 1px solid var(--c-line); } .contact-info li:first-child { border-top: 0; } }

/* 31. Liens utiles : cartes organisations */
.lu-title { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--c-text); margin: 2.6rem 0 1.4rem; }
.lu-title:first-child { margin-top: .5rem; }
.lu-card { display: grid; grid-template-columns: 210px 1fr; gap: 2rem; align-items: start; border: 1px solid var(--c-line); padding: 2.2rem 1.4rem 1.6rem; margin-bottom: 2rem; background: #fff; }
.lu-logo img { width: 100%; max-width: 210px; height: auto; display: block; }
.lu-text h3 { font-size: 1.05rem; font-weight: 700; margin: .6rem 0 1.4rem; }
.lu-text h3 a { color: var(--c-muted); text-decoration: underline; }
.lu-text p { margin: 0 0 1.2rem; text-align: justify; color: var(--c-muted); }
.lu-text p:last-child { margin-bottom: 0; text-align: left; overflow-wrap: anywhere; }
@media (max-width: 640px) { .lu-card { grid-template-columns: 1fr; gap: 1rem; } .lu-logo img { max-width: 160px; } .lu-text p { text-align: left; } }
.news-card h3 { font-weight: 400; font-size: 1.35rem; } .news-month { font-size: 1.05rem; color: var(--c-text); } .old-news a { font-weight: 400; color: var(--c-lime-dark); }

/* 32. Catalogue en ligne (iframe au clic) */
.iframe-consent { background: var(--c-tint); border: 1px solid var(--c-line); border-radius: 14px; padding: 1.6rem; margin-bottom: 2rem; text-align: center; }
.iframe-consent h2 { margin-top: 0; }
.iframe-consent .btn { cursor: pointer; font: inherit; font-weight: 700; border: 0; }
.main-col iframe, .content iframe, iframe[title^="Catalogue"] { display: block; width: 100%; height: 760px; border: 0; margin: 0 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 33. Catalogue : iframe affichée directement */
.catalogue-frame { display: block; width: 100%; max-width: 100%; height: 820px; border: 0; margin: 0 0 2rem; }
@media (max-width: 700px) { .catalogue-frame { height: 900px; } }
.catalogue-frame { width: 931px; max-width: 100%; margin: 0 auto 2rem; }
.content iframe.catalogue-frame, iframe.catalogue-frame { width: 931px; max-width: 100%; margin: 0 auto 2rem; display: block; }

/* 34. Catalogue : formulaire de connexion Galaxy (colonne gauche) + iframe (colonne droite), comme l'ancien site */
.catalogue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 2rem; align-items: start; }
.content .catalogue-layout iframe.catalogue-frame { width: 100%; max-width: 100%; margin: 0 0 2rem; height: 820px; }
.galaxy-login { display: flex; flex-direction: column; gap: .5rem; }
.galaxy-login label { font-weight: 700; color: var(--c-muted); margin-top: .8rem; }
.galaxy-login input[type="text"], .galaxy-login input[type="password"] { width: 100%; height: 3rem; border: 1px solid var(--c-line); padding: 0 .8rem; font: inherit; border-radius: 0; background: #fff; }
.galaxy-login input[type="submit"] { align-self: flex-start; margin-top: 1.8rem; background: #7a5c43; color: #fff; border: 0; padding: 1rem 2.2rem; font: inherit; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; }
.galaxy-login input[type="submit"]:hover, .galaxy-login input[type="submit"]:focus-visible { background: #5f4733; }
@media (max-width: 900px) { .catalogue-layout { grid-template-columns: 1fr; } .galaxy-login { max-width: 22rem; } }

/* 35. Actualités : liste paginée comme l'ancien site */
.post-item { padding: 0 0 2rem; margin: 0 0 2rem; border-bottom: 1px solid var(--c-line); }
.post-meta { font-size: .85rem; color: var(--c-muted); margin: 0 0 .5rem; letter-spacing: .02em; }
.post-meta .sep { color: var(--c-lime-dark); margin: 0 .35rem; }
.post-item h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; line-height: 1.3; margin: 0 0 .8rem; }
.post-item h2 a { color: var(--c-olive); text-decoration: none; }
.post-item h2 a:hover, .post-item h2 a:focus-visible { text-decoration: underline; }
.post-excerpt { margin: 0 0 1.2rem; }
.post-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.btn-read, .btn-share { display: inline-block; padding: .65rem 1.4rem; font: inherit; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; border: 0; cursor: pointer; text-decoration: none; }
.btn-read { background: var(--c-lime); color: var(--c-ink); }
.btn-read:hover, .btn-read:focus-visible { background: var(--c-lime-dark); }
.btn-share { background: #7a5c43; color: #fff; }
.btn-share:hover, .btn-share:focus-visible { background: #5f4733; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 1rem 0 2rem; }
.pg-num { display: inline-flex; min-width: 2.6rem; height: 2.6rem; padding: 0 .6rem; align-items: center; justify-content: center; background: #ece8e1; color: var(--c-ink); text-decoration: none; }
a.pg-num:hover, a.pg-num:focus-visible { background: #7a5c43; color: #fff; }
.pg-current { background: #7a5c43; color: #fff; }
.pg-gap { padding: 0 .3rem; color: var(--c-muted); }
.note-migration { background: var(--c-tint); border-left: 4px solid var(--c-lime); padding: .9rem 1.1rem; margin-top: 1.5rem; }
@media (max-width: 640px) { .post-item h2 { font-size: 1.15rem; } }

/* 36. Articles d'actualité repris de l'ancien site */
.news-article img { max-width: 100%; height: auto; }
.news-article p:has(> a > img:only-child), .news-article p:has(> img:only-child) { text-align: center; margin: 1.6rem 0; }
.news-article ul, .news-article ol { margin: 0 0 1.2rem 1.4rem; }
.news-article li { margin-bottom: .3rem; }
.news-article h2 { font-size: 1.2rem; }
.news-article a { overflow-wrap: anywhere; }

/* ---------- 37. Sous-menus de 2e niveau (Boîte à outils, Documentation) ---------- */
/* Petits écrans : les liens enfants s'affichent simplement en retrait sous leur parent. */
.submenu2 { list-style: none; margin: 0; padding: 0; }
.submenu2 a { padding-left: 3.4rem; font-weight: 500; font-size: 0.95rem; }
@media (min-width: 66rem) {
  .has-sub2 { position: relative; }
  /* Grand écran : le 2e niveau s'ouvre sur le côté au survol ou au clavier */
  .main-nav .has-sub2 > a::after { content: "\203A"; float: right; margin-left: 1.2rem; color: var(--c-muted); }
  .main-nav .submenu2 {
    display: none; position: absolute; top: -0.4rem; left: calc(100% - 0.2rem); min-width: 16rem; z-index: 61;
    background: #fff; border-radius: 16px; padding: 0.4rem; border: 1px solid var(--c-line); box-shadow: 0 18px 40px rgb(35 39 25 / 16%);
  }
  .main-nav .submenu2 a { padding: 0.65rem 0.9rem; }
  .has-sub2:hover > .submenu2, .has-sub2:focus-within > .submenu2 { display: block; }
}
