/*
 * Duhamel 2026 — « signalétique de sentier ».
 * Identité : logo (pancarte de bois : rouille, forêt, lac), vert #7EB851, gris #575756, Source Sans.
 * Voix propre à Duhamel (et non au gabarit municipal) : titres en Roboto Slab, angles francs, en-tête forêt,
 * liens rapides en panneaux indicateurs, courbes de niveau des lacs, balises de sentier (rouille).
 * Le vert d'origine sert d'accent sur fond forêt (6,1:1) et de surface; en texte sur blanc : #3F6B25 (6,3:1).
 * Corps 400, cibles ≥ 44 px, focus visible. Ordinateur ≥ 1100 px : méga-menu; en dessous : bouton « Menu ».
 */
:root {
  --dh-vert: #7EB851;
  --dh-vert-clair: #A9D48A;
  --dh-vert-texte: #3F6B25;
  --dh-vert-fonce: #2E5119;
  --dh-foret: #1E2D1F;
  --dh-foret-2: #2A3D2B;
  --dh-rouille: #A4460F;
  --dh-rouille-fonce: #86380A;
  --dh-papier: #F6F3EC;
  --dh-lac: #D9E6E4;
  --dh-bleu: #DBE5F1; /* bleu des tableaux de l'ancien site */
  --dh-ardoise: #575756;
  --dh-encre: #1B1F1A;
  --dh-doux: #4A4C48;
  --dh-ligne: #DDD7CB;
  --dh-champ: #858A7F;
  --dh-titres: "Roboto Slab", Rockwell, Georgia, serif;
  --dh-font: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --dh-wrap: 1240px;
  --dh-gutter: clamp(16px, 4vw, 40px);
  --dh-scale: 1;
}
html { font-size: calc(16px * var(--dh-scale)); scroll-padding-top: 150px; }
body { margin: 0; font-family: var(--dh-font); font-size: 1.125rem; line-height: 1.6; color: var(--dh-encre); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
a { color: var(--dh-vert-texte); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--dh-vert-fonce); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100000; background: #fff; color: var(--dh-encre); padding: 12px 18px; outline: 3px solid var(--dh-rouille); }
:focus-visible { outline: 3px solid var(--dh-rouille); outline-offset: 3px; }
.dh-top :focus-visible, .dh-footer :focus-visible, .mm-l3 :focus-visible, .dh-hero :focus-visible { outline-color: #F2B28A; }
h1, h2, h3, h4, h5 { font-family: var(--dh-titres); line-height: 1.15; color: var(--dh-encre); text-wrap: balance; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.dh-wrap { max-width: var(--dh-wrap); margin-inline: auto; padding-inline: var(--dh-gutter); box-sizing: content-box; }
.dh-chevron { flex: none; transition: transform .2s ease; }
[aria-expanded=true] > .dh-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ en-tête (un seul bloc forêt) */
.dh-site-header { position: sticky; top: 0; z-index: 9999; }
.dh-top { background: var(--dh-foret); color: #fff; border-bottom: 4px solid var(--dh-vert); }
.dh-util { border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.dh-util__inner { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-height: 36px; }
.dh-util__menu { display: flex; flex-wrap: wrap; gap: 0 20px; list-style: none; margin: 0; padding: 0; }
.dh-util__menu a { display: inline-block; padding: 6px 0; color: #D5DBD3; text-decoration: none; }
.dh-util__menu a:hover, .dh-util__menu a[aria-current] { color: #fff; text-decoration: underline; }
.dh-textsize { display: flex; align-items: center; gap: 4px; padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .16); color: #D5DBD3; }
.dh-textsize__label { font-size: .85rem; margin-right: 6px; }
.dh-textsize button { min-width: 34px; height: 26px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; font: inherit; font-weight: 700; font-size: .85rem; color: #fff; cursor: pointer; }
.dh-textsize button:hover { background: rgba(255, 255, 255, .12); }

.dh-bar { position: relative; }
.dh-bar__inner { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.dh-logo { flex: none; align-self: flex-start; margin-top: 10px; margin-bottom: -26px; position: relative; z-index: 2; }
.dh-logo a { display: block; background: #fff; padding: 8px 10px 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.dh-logo img { display: block; width: 176px; height: auto; }
.dh-mega { flex: 1; align-self: stretch; }
.dh-mega__menu { display: flex; height: 100%; list-style: none; margin: 0; padding: 0; }
.mm-item { display: flex; }
.mm-toggle { display: flex; align-items: center; gap: 8px; font-family: var(--dh-titres); font-size: 1.12rem; font-weight: 600; color: #fff; background: none; border: 0; padding: 0 15px; cursor: pointer; position: relative; white-space: nowrap; }
.mm-toggle .dh-chevron { color: var(--dh-vert); }
.mm-toggle::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -4px; height: 4px; background: var(--dh-vert-clair); transform: scaleY(0); transform-origin: bottom; transition: transform .15s ease; }
.mm-toggle:hover, .mm-toggle[aria-expanded=true] { color: var(--dh-vert-clair); }
.mm-toggle:hover::after, .mm-toggle[aria-expanded=true]::after { transform: scaleY(1); }
.dh-bar__search { flex: 0 1 270px; }

/* recherche */
.duhamel-search__field { position: relative; display: flex; }
.duhamel-search input[type=search] { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--dh-encre); background: #fff; border: 1px solid var(--dh-champ); border-radius: 0; height: 44px; padding: 0 52px 0 14px; -webkit-appearance: none; appearance: none; }
.duhamel-search input[type=search]::placeholder { color: #6A6C67; }
.duhamel-search input[type=search]:focus { border-color: var(--dh-rouille); outline: 3px solid rgba(164, 70, 15, .35); outline-offset: 0; }
.duhamel-search button { position: absolute; right: 0; top: 0; bottom: 0; min-width: 44px; border: 0; background: var(--dh-vert-texte); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font: inherit; font-weight: 700; }
.duhamel-search button:hover { background: var(--dh-vert-fonce); }
.duhamel-search button svg { width: 18px; height: 18px; }
.dh-bar__search input[type=search] { border-color: #fff; }

/* méga-menu : deux volets (rubriques | sous-pages) */
.mm-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--dh-papier); color: var(--dh-encre); box-shadow: 0 30px 60px rgba(20, 28, 20, .28); max-height: calc(100vh - 140px); overflow-y: auto; overscroll-behavior: contain; }
.mm-panel:not([hidden]) { animation: dh-drop .16s ease-out; }
@keyframes dh-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mm-inner { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 330px; gap: 0 36px; padding-top: 34px; padding-bottom: 38px; min-height: max(240px, calc(var(--l3, 6) * 1.85rem + 3.5rem)); }
.mm-intro { padding-right: 8px; }
.mm-title { font-family: var(--dh-titres); font-size: 1.9rem; font-weight: 700; line-height: 1.05; margin: 0 0 16px; }
.mm-title::before { content: ""; display: block; width: 12px; height: 28px; background: var(--dh-rouille); margin-bottom: 14px; }
.mm-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 6px 14px; line-height: 1.25; background: var(--dh-foret); color: #fff; font-weight: 700; text-decoration: none; }
.mm-all::after { content: "→"; color: var(--dh-vert); }
.mm-all:hover { background: var(--dh-vert-texte); color: #fff; }
.mm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(var(--rows, 7), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 28px; align-content: start; border-top: 2px solid var(--dh-encre); }
.mm-l2 { border-bottom: 1px solid var(--dh-ligne); }
.mm-parent { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 10px 6px 0; color: var(--dh-encre); font-weight: 600; line-height: 1.25; text-decoration: none; transition: padding .12s ease; }
.mm-parent > span:first-child::first-letter { text-transform: uppercase; }
.mm-count { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 700; color: var(--dh-doux); }
.mm-count::after { content: "›"; }
.mm-parent:hover { color: var(--dh-rouille-fonce); }
.mm-parent:hover > span:first-child { text-decoration: underline; }
.mm-l2.is-active > .mm-parent { color: var(--dh-rouille-fonce); box-shadow: inset 4px 0 0 var(--dh-rouille); padding-left: 12px; }
.mm-l2.is-active .mm-count { color: var(--dh-rouille-fonce); }
.mm-parent[aria-current] { color: var(--dh-vert-texte); }
.mm-pane { grid-column: 3; background: var(--dh-foret) url(img/contours-clair.svg) center / cover; min-height: 240px; }
.mm-l3 { display: none; position: absolute; top: 34px; min-height: calc(100% - 72px); right: var(--dh-gutter); width: var(--dh-pane, 330px); box-sizing: border-box; padding: 20px 24px; background: var(--dh-foret); color: #fff; }
.mm-l2.is-active > .mm-l3 { display: block; }
/* Rubrique inactive : sous-pages masquées à l'œil seulement (restent lisibles au lecteur d'écran et atteignables au clavier;
   le focus active la rubrique et les rend visibles). */
.mm-l2:not(.is-active) > .mm-l3 { display: block; position: absolute !important; width: 1px !important; height: 1px; min-height: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mm-l2 > .mm-l3.is-measuring { display: block; visibility: hidden; position: absolute !important; width: var(--dh-pane, 330px) !important; height: auto; min-height: 0; padding: 20px 24px; clip: auto; white-space: normal; overflow: visible; }
/* Écran tactile large (pas de survol) : chaque rubrique montre ses sous-pages sous elle — aucun toucher ajouté. */
@media (hover: none) and (min-width: 1100px) {
  .mm-inner { grid-template-columns: 210px minmax(0, 1fr); min-height: 0 !important; }
  .mm-pane { display: none; }
  .mm-list { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mm-l2 > .mm-l3, .mm-l2:not(.is-active) > .mm-l3 { display: block; position: static !important; width: auto !important; height: auto; min-height: 0; clip: auto; white-space: normal; overflow: visible; padding: 0 0 10px 12px; background: none; color: var(--dh-encre); }
  .mm-l3__title, .mm-count { display: none; }
  .mm-l2.is-active > .mm-parent { box-shadow: none; padding-left: 0; color: var(--dh-encre); }
  .mm-child { color: var(--dh-doux); }
  .mm-child::before { color: var(--dh-rouille); }
}
/* Sans JavaScript : ouverture au survol et au clavier (focus), rubriques et sous-pages atteignables. */
body.dh-sans-js .mm-item:hover > .mm-panel[hidden], body.dh-sans-js .mm-item:focus-within > .mm-panel[hidden] { display: block; }
body.dh-sans-js .mm-l2:hover > .mm-l3, body.dh-sans-js .mm-l2:focus-within > .mm-l3 { position: absolute !important; width: var(--dh-pane, 330px) !important; height: auto; clip: auto; white-space: normal; padding: 20px 24px; z-index: 2; }
body.dh-sans-js .dh-mobile[hidden], body.dh-sans-js .dh-mobile [hidden] { display: block; }
body.dh-sans-js .dh-mobile { position: static; }
.mm-l3__title { font-family: var(--dh-titres); font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--dh-vert-clair); }
.mm-l3 ul { list-style: none; margin: 0; padding: 0; }
.mm-child { display: block; padding: 5px 0 5px 22px; text-indent: -22px; color: #fff; line-height: 1.3; text-decoration: none; }
.mm-child::before { content: "→"; display: inline-block; width: 22px; text-indent: 0; color: var(--dh-vert); }
.mm-child:hover, .mm-child:focus-visible { color: var(--dh-vert-clair); text-decoration: underline; }
.mm-child[aria-current] { color: var(--dh-vert-clair); font-weight: 700; }
.mm-panel .is-empty { color: var(--dh-encre); font-weight: 600; }

.dh-burger, .dh-mobile-search, .dh-mobile { display: none; }

/* ------------------------------------------------------------------ pages intérieures */
.dh-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 60px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.dh-main { grid-column: 2; grid-row: 1; min-width: 0; max-width: 820px; }
.dh-main:focus { outline: none; }
/* Colonne non fixe : aucune barre de défilement interne (elle coupait les pointes des panneaux). */
.dh-aside { grid-column: 1; grid-row: 1; }
.dh-aside--after { display: none; }

/* navigation de section */
.dh-subnav { margin-bottom: 28px; border-top: 4px solid var(--dh-foret); }
.dh-subnav__toggle { display: none; }
.dh-subnav__title { margin: 0; padding: 14px 0 10px; font-family: var(--dh-titres); font-size: 1.3rem; font-weight: 700; }
.dh-subnav__title a { color: var(--dh-encre); text-decoration: none; }
.dh-subnav__title a:hover { color: var(--dh-vert-texte); text-decoration: underline; }
.dh-subnav ul { list-style: none; margin: 0; padding: 0; }
.dh-subnav > ul > li { border-top: 1px solid var(--dh-ligne); }
.dh-subnav > ul > li > a, .dh-subnav > ul > li > span { display: block; padding: 9px 8px 9px 0; color: var(--dh-encre); font-size: 1rem; line-height: 1.3; text-decoration: none; }
.dh-subnav > ul > li > a:hover { color: var(--dh-vert-texte); text-decoration: underline; }
.dh-subnav > ul > li.is-open > a { font-weight: 700; }
.dh-subnav a[aria-current] { color: var(--dh-rouille-fonce) !important; font-weight: 700; box-shadow: inset 4px 0 0 var(--dh-rouille); padding-left: 12px !important; background: var(--dh-papier); }
.dh-subnav li ul { margin: 0 0 10px; padding-left: 14px; border-left: 2px solid var(--dh-ligne); }
.dh-subnav li li a { display: block; padding: 6px 8px; color: var(--dh-doux); font-size: .97rem; line-height: 1.3; text-decoration: none; }
.dh-subnav li li a:hover { color: var(--dh-vert-texte); text-decoration: underline; }

/* liens rapides (colonne) : panneaux indicateurs */
.dh-quick { margin-top: 26px; }
.dh-quick__title { font-family: var(--dh-titres); font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.dh-quick__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dh-quick__list a, .dh-quick__list span { display: block; padding: 9px 26px 9px 12px; background: var(--dh-foret); color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.25; text-decoration: none; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.dh-quick__list a:hover { background: var(--dh-vert-texte); color: #fff; }
.dh-quick__list a:focus-visible { clip-path: none; }

/* bandeau des avis */
.mext-notice-banner { background: var(--dh-papier); color: var(--dh-encre); border-top: 4px solid var(--dh-rouille); padding: 18px 18px 12px; position: relative; }
.mext-notice-banner ul { list-style: none; margin: 0; padding: 0; }
.mext-notice-banner__cat { margin: 0 0 6px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dh-rouille-fonce); }
.mext-notice-banner__cat strong { font-weight: 700; }
.mext-notice-banner__title { font-family: var(--dh-titres); color: var(--dh-encre); font-size: 1.08rem; font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
.mext-notice-banner .mext-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; width: auto; height: auto; background: none; color: var(--dh-vert-texte); font-weight: 700; text-decoration: underline; }
.mext-notice-banner .mext-arrow::before { content: "Lire l’avis"; }
.mext-notice-banner .mext-arrow::after { content: "→"; text-decoration: none; }
.mext-notice-banner__controls { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--dh-ligne); font-size: .85rem; color: var(--dh-doux); }
.mext-notice-banner__controls .mext-count { margin: 0 auto 0 0; order: -1; }
.mext-notice-banner__controls button { background: #fff; border: 1px solid var(--dh-champ); color: var(--dh-encre); min-width: 36px; height: 32px; cursor: pointer; font-size: .85rem; padding: 0; }
.mext-notice-banner__controls button:hover { border-color: var(--dh-rouille); color: var(--dh-rouille-fonce); }

/* Rotation des avis sans déplacement du contenu : tous les avis occupent la même case (hauteur du plus long);
   l'avis masqué garde sa place mais sort de la vue, du clavier et du lecteur d'écran (visibility: hidden). */
.mext-notice-banner ul { display: grid; }
.mext-notice-banner__item { grid-area: 1 / 1; }
.mext-notice-banner__item[hidden] { display: block; visibility: hidden; }

/* bandeau des avis publics (pages intérieures) */
.dh-strip { background: var(--dh-papier); border-bottom: 1px solid var(--dh-ligne); }
.dh-strip__inner { display: flex; align-items: stretch; gap: 20px; min-height: 58px; }
.dh-strip__label { flex: none; display: flex; align-items: center; margin: 0; padding: 0 16px; background: var(--dh-rouille); color: #fff; font-family: var(--dh-titres); font-size: .95rem; font-weight: 700; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); padding-right: 26px; }
.mext-notice-banner--bandeau { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; background: none; border: 0; padding: 8px 0; }
.mext-notice-banner--bandeau ul { flex: 1; min-width: 0; }
.mext-notice-banner--bandeau .mext-notice-banner__item, .mext-notice-banner--bandeau .mext-notice-banner__item[hidden] { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.mext-notice-banner--bandeau .mext-notice-banner__cat { display: none; }
.mext-notice-banner--bandeau .mext-notice-banner__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.mext-notice-banner--bandeau .mext-arrow { min-height: 28px; white-space: nowrap; }
.mext-notice-banner--bandeau .mext-notice-banner__controls { flex: none; margin: 0; padding: 0; border: 0; }
.mext-notice-banner--bandeau .mext-notice-banner__controls .mext-count { margin-right: 6px; }

/* ------------------------------------------------------------------ contenu */
.dh-ariane { font-size: .92rem; color: var(--dh-doux); margin: 0 0 16px; line-height: 1.4; }
.dh-ariane a { color: var(--dh-doux); }
.dh-ariane a:hover { color: var(--dh-vert-texte); }
.dh-ariane a[aria-current], .dh-ariane span[aria-current] { color: var(--dh-encre); font-weight: 600; text-decoration: none; }
.dh-ariane span[aria-hidden] { margin: 0 4px; color: #8E8A80; }
.dh-title, .dh-main h1 { font-family: var(--dh-titres); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 34px; padding-bottom: 20px; border-bottom: 1px solid var(--dh-ligne); position: relative; }
.dh-title::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 5px; background: var(--dh-rouille); }
.dh-text { font-weight: 400; max-width: 72ch; overflow-wrap: break-word; }
.dh-text > :first-child { margin-top: 0; }
.dh-text h2 { font-size: 1.7rem; font-weight: 700; margin: 1.7em 0 .5em; }
.dh-text h3 { font-size: 1.35rem; font-weight: 700; margin: 1.5em 0 .5em; }
.dh-text h4 { font-size: 1.15rem; font-weight: 700; margin: 1.2em 0 .4em; }
.dh-text h5 { font-size: 1.02rem; font-weight: 700; margin: 1em 0 .4em; }
.dh-text p { margin: 0 0 1em; }
.dh-text strong, .dh-text b { font-weight: 700; }
.dh-text a { color: var(--dh-vert-texte); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(63, 107, 37, .45); }
.dh-text a:hover { text-decoration-color: currentColor; color: var(--dh-vert-fonce); }
.dh-text ul { padding-left: 1.3em; margin: 0 0 1em; list-style: square; }
.dh-text ul li::marker { color: var(--dh-rouille); }
.dh-text li { margin: .25em 0; }
.dh-text ol { padding-left: 1.4em; }
.dh-text .mext-documents__list, .dh-text .mext-documents__list li, .dh-text .mext-notices, .dh-text .mext-list ul, .dh-text .mext-persons ul, .dh-text .mext-latest, .dh-text .mext-meetings ul, .dh-text .mext-meetings__upcoming ul, .dh-text .mext-pager ul { padding-left: 0; list-style: none; }
.dh-text .mext-list li, .dh-text .mext-persons li, .dh-text .mext-latest li { margin: 0; }
.dh-text blockquote { margin: 1.5em 0; padding: 16px 22px; background: var(--dh-papier); border-left: 5px solid var(--dh-rouille); }
.dh-text table { border-collapse: collapse; width: max-content !important; max-width: 100%; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0; border: 0; font-size: 1rem; }
.dh-text td, .dh-text th { border: 1px solid var(--dh-ligne); padding: 10px 16px; min-width: 140px; line-height: 1.35; vertical-align: top; font-weight: 400; text-align: left; }
.dh-text th, .dh-text thead td { background: var(--dh-papier); font-weight: 700; }
/* En-tête de tableau : bleu des tableaux de l'ancien site (repris des cellules colorées à la conversion). */
.dh-text thead th, .dh-text thead td { background: var(--dh-bleu); color: var(--dh-encre); }
.dh-text tbody tr:nth-child(even) td { background: #FBFAF6; }
.dh-text table p { margin: .3em 0; }
.dh-text .wp-block-table, .dh-text .dh-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dh-text hr { border: 0; border-top: 1px solid var(--dh-ligne); margin: 2em 0; }
/* Contenu hérité : 137 images de 63 pages imposent largeur ET hauteur en style en ligne (jusqu'à 8400 × 5100 px).
   La hauteur est forcée à « auto » pour garder les proportions quand l'image est ramenée à la largeur de la colonne. */
.dh-text img { max-width: 100% !important; height: auto !important; }
.dh-text iframe { max-width: 100%; border: 0; }
.dh-text .wp-block-file { margin: 0 0 .5em; }
.dh-text .wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
.dh-text .wp-block-file__button { display: none; }
/* Héritage de l'ancien CMS : colonnes Bootstrap et flottants, rendus lisibles sans retoucher le contenu. */
.dh-text .row { display: flex; flex-wrap: wrap; gap: 24px; }
.dh-text .row > [class*=col-] { flex: 1 1 260px; min-width: 0; }
.dh-text .clear, .dh-text .clearfix { clear: both; }
/* Cartes cliquables de l'ancien CMS (li.clickable : vignette + titre + flèche SVG) : 40 pages. Rendues en cartes compactes;
   la grande flèche d'origine est remplacée par une flèche de texte, toute la carte reste cliquable. */
.dh-text ul:has(> li.clickable) { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.dh-text li.clickable { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--dh-ligne); border-top: 3px solid var(--dh-foret); }
.dh-text li.clickable::marker { content: none; }
.dh-text li.clickable:hover { border-color: var(--dh-champ); border-top-color: var(--dh-rouille); }
.dh-text li.clickable .image img { display: block; width: 112px; aspect-ratio: 3 / 2; height: auto; object-fit: contain; background: var(--dh-papier); }
.dh-text li.clickable .detail h3, .dh-text li.clickable .detail .smaller { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.dh-text li.clickable a.plus { color: var(--dh-encre); text-decoration: none; }
.dh-text li.clickable a.plus::after { content: ""; position: absolute; inset: 0; }
.dh-text li.clickable a.plus h3::after { content: " →"; color: var(--dh-rouille); }
.dh-text li.clickable:hover a.plus h3 { text-decoration: underline; }
.dh-text li.clickable:has(a.plus:focus-visible) { outline: 3px solid var(--dh-rouille); outline-offset: 2px; }
.dh-text li.clickable a.plus:focus-visible { outline: none; }
.dh-text img.arrow, .dh-text #fleche-arrow { display: none; }

/* listes des composants municipaux : jamais de puces ni de retrait, dans le contenu ou hors du contenu */
.mext-pager ul, .mext-list > ul, .mext-notices, .mext-persons ul, .mext-latest, .mext-meetings ul, .mext-meetings__upcoming ul, .mext-documents__list { list-style: none; padding-left: 0; }

/* Contenus convertis en blocs (Outils › Mise à niveau Duhamel) : cartes, colonnes, images. */
.dh-text .dh-cartes { gap: 12px; margin: 24px 0; }
.dh-text .dh-carte { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dh-ligne); border-top: 3px solid var(--dh-foret); padding: 0 0 14px; }
.dh-text .dh-carte:hover { border-color: var(--dh-champ); border-top-color: var(--dh-rouille); }
.dh-text .dh-carte > * { margin-left: 14px; margin-right: 14px; }
.dh-text .dh-carte > .wp-block-image { margin: 0 0 12px; }
.dh-text .dh-carte .wp-block-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--dh-papier); }
.dh-text .dh-carte__date { margin-top: 0; margin-bottom: 2px; color: var(--dh-rouille-fonce); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dh-text .dh-carte h3 { margin-top: 0; margin-bottom: 6px; font-size: 1.08rem; line-height: 1.25; }
.dh-text .dh-carte h3 a { color: var(--dh-encre); text-decoration: none; }
.dh-text .dh-carte h3 a::after { content: ""; position: absolute; inset: 0; }
.dh-text .dh-carte:hover h3 a { text-decoration: underline; }
.dh-text .dh-carte h3 a:focus-visible { outline: none; }
.dh-text .dh-carte:has(h3 a:focus-visible) { outline: 3px solid var(--dh-rouille); outline-offset: 2px; }
.dh-text .dh-carte p { margin-bottom: 0; font-size: .95rem; color: var(--dh-doux); }
.dh-text .wp-block-columns { gap: 28px; margin: 24px 0; }
.dh-text .wp-block-image { margin: 0 0 1em; }
.dh-text .wp-block-image img { height: auto; }

/* fiches de contact */
.mext-persons ul { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mext-person { background: var(--dh-papier); border-top: 4px solid var(--dh-foret); padding: 22px; color: var(--dh-doux); }
.mext-person__name { font-family: var(--dh-titres); color: var(--dh-encre); font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
.mext-person__role { margin: 0 0 12px; line-height: 1.35; color: var(--dh-rouille-fonce); font-weight: 600; }
.mext-person__adr { margin: 0 0 8px; }
.mext-person__tel { margin: 0; }
.mext-person__tel a { color: var(--dh-encre); text-decoration: none; font-weight: 600; }
.mext-person__mail { margin: 4px 0 0; overflow-wrap: anywhere; }
.mext-person__mail a { color: var(--dh-vert-texte); font-weight: 600; }
.mext-person__photo { display: block; margin: 0 0 14px; max-width: 120px; }

/* documents */
.mext-documents { margin-top: 36px; }
.mext-documents h2 { font-size: 1.7rem; font-weight: 700; margin: 0 0 16px; }
.mext-documents__year { font-family: var(--dh-titres); font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; color: var(--dh-rouille-fonce); }
.mext-documents__list { margin: 0; border-top: 2px solid var(--dh-encre); }
.mext-documents__list li { margin: 0; border-bottom: 1px solid var(--dh-ligne); }
.mext-documents__list a { display: flex; align-items: center; gap: 14px; padding: 12px 8px; color: var(--dh-encre) !important; font-weight: 600; text-decoration: none !important; }
.mext-documents__list a::before { content: ""; flex: none; width: 20px; height: 24px; background: url(img/pdf.png) no-repeat center / contain; }
.mext-documents__list a:hover { background: var(--dh-papier); color: var(--dh-rouille-fonce) !important; }

/* séances */
.mext-meetings-block h2 { font-size: 1.7rem; font-weight: 700; margin: 40px 0 16px; }
.mext-meetings__upcoming { background: var(--dh-papier); border-left: 5px solid var(--dh-rouille); padding: 4px 24px 20px; margin-top: 24px; }
.mext-meetings__upcoming h2 { margin-top: 18px; font-size: 1.3rem; }
.mext-meetings > ul { border-top: 2px solid var(--dh-encre); }
.mext-meeting { padding: 18px 4px; border-bottom: 1px solid var(--dh-ligne); }
.mext-meeting__head { margin-bottom: 6px; color: var(--dh-doux); }
.mext-meeting__head .date { font-weight: 700; color: var(--dh-encre); }
.mext-meeting__agenda { display: inline-block; color: var(--dh-vert-texte); font-weight: 600; margin: 4px 0; }
.mext-meeting__minutes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.mext-meeting__minutes > span { color: var(--dh-doux); }
.mext-meeting__buttons { display: flex; gap: 8px; }
.mext-btn { display: inline-block; width: 44px; height: 44px; background: #fff no-repeat center / 22px; border: 1px solid var(--dh-champ); }
.mext-btn--pdf { background-image: url(img/eye-icon-proces-verbal.png); }
.mext-btn--audio, .mext-btn--video { background-image: url(img/speaker-icon-proces-verbal.png); }
.mext-btn:hover, .mext-btn:focus-visible { background-color: var(--dh-vert); border-color: var(--dh-vert-texte); }
.mext-pager ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.mext-pager a, .mext-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--dh-champ); color: var(--dh-encre); text-decoration: none; font-weight: 600; }
.mext-pager a:hover { border-color: var(--dh-rouille); color: var(--dh-rouille-fonce); }
.mext-pager span[aria-current] { background: var(--dh-foret); color: #fff; border-color: var(--dh-foret); }

/* avis publics */
.mext-notices { margin: 0; border-top: 2px solid var(--dh-encre); }
.mext-notice { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--dh-ligne); }
.mext-notice__title { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; }
.mext-notices--registry .mext-notice__title { font-size: 1.4rem; }
.mext-notice__prefix { color: var(--dh-rouille-fonce); }
.mext-notice__body > :last-child { margin-bottom: 0; }
.mext-notice__body a { color: var(--dh-vert-texte); font-weight: 600; }

/* nouvelles et événements */
.mext-list > ul { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--dh-encre); }
.mext-card { position: relative; }
.mext-card--row { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--dh-ligne); }
.mext-card--row .mext-card__image { flex: 0 0 220px; }
.mext-card--row .mext-card__image img, .mext-card--row .mext-card__placeholder { width: 220px; height: 147px; object-fit: contain; background: var(--dh-papier); display: block; }
.mext-card__placeholder { display: block; background: var(--dh-foret) url(img/contours-clair.svg) center / cover !important; }
.mext-card--row .mext-card__body { flex: 1; min-width: 0; }
.mext-card__date { color: var(--dh-rouille-fonce); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.mext-card__title { font-family: var(--dh-titres); font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin: 0 0 8px; }
.mext-card__title a { color: var(--dh-encre); text-decoration: none; }
.mext-card__title a::after { content: ""; position: absolute; inset: 0; }
.mext-card__title a:hover { color: var(--dh-vert-texte); text-decoration: underline; }
.mext-card__title a:focus-visible { outline: none; }
.mext-card:has(.mext-card__title a:focus-visible) { outline: 3px solid var(--dh-rouille); outline-offset: 4px; }
.mext-card__excerpt { color: var(--dh-doux); }
.mext-card__excerpt p { margin: 0; }
.mext-card .mext-arrow { display: none; }
.mext-button, .mext-back a { color: var(--dh-vert-texte); font-weight: 600; }
.mext-events__toggle { margin: 0 0 20px; }
.mext-events__heading { display: none; }
.mext-empty { font-size: 1.1rem; padding: 22px 24px; background: var(--dh-papier); border-left: 5px solid var(--dh-ligne); }
.mext-item-date { display: inline-block; margin: -14px 0 24px; padding: 4px 12px; background: var(--dh-foret); color: #fff; font-weight: 600; }
.mext-item-location { margin: -14px 0 20px; }
.mext-back { margin: 0 0 16px; }

/* partage */
.dh-share { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--dh-ligne); display: flex; align-items: center; gap: 16px; }
.dh-share__title { font-size: 1rem; font-weight: 700; margin: 0; }
.dh-share ul { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.dh-share a { display: block; width: 44px; height: 44px; background: #fff no-repeat center / 22px; border: 1px solid var(--dh-champ); }
.dh-share a:hover { border-color: var(--dh-rouille); }
.dh-share__facebook { background-image: url(img/icon-facebook.png) !important; }
.dh-share__twitter { background-image: url(img/icon-twitter.png) !important; }

/* recherche */
.dh-results .wp-block-post-template { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--dh-encre); }
.dh-results .wp-block-post-template > li { padding: 18px 0; border-bottom: 1px solid var(--dh-ligne); }
.dh-result__title { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.dh-result__title a { color: var(--dh-vert-texte); }
.dh-result__excerpt { color: var(--dh-doux); }
.dh-result__excerpt p { margin: 0; }
.dh-search-page { max-width: 620px; margin-bottom: 28px; }
.dh-search-page .wp-block-search__inside-wrapper { gap: 0; }
.dh-search-page input { height: 48px; border: 1px solid var(--dh-champ); border-radius: 0; padding: 0 14px; font: inherit; }
.dh-search-page button { background: var(--dh-vert-texte); color: #fff; border: 0; border-radius: 0; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }
.wp-block-query-pagination { margin-top: 28px; gap: 8px; }

/* formulaires (Forminator réglé sans style « none » : la présentation vient d'ici) */
.dh-text .forminator-ui.forminator-custom-form { font-family: var(--dh-font) !important; }
.dh-text .forminator-ui { max-width: 720px; margin-top: 8px; }
.forminator-ui .forminator-row { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 18px; }
.forminator-ui .forminator-col { flex: 1 1 100%; min-width: 0; }
.forminator-ui .forminator-col-6 { flex: 1 1 calc(50% - 10px); }
.forminator-ui .forminator-col-4 { flex: 1 1 calc(33.333% - 14px); }
.forminator-ui .forminator-col-3 { flex: 1 1 calc(25% - 15px); }
@media (max-width: 700px) { .forminator-ui .forminator-col-6, .forminator-ui .forminator-col-4, .forminator-ui .forminator-col-3 { flex-basis: 100%; } }
.forminator-ui .forminator-field { display: flex; flex-direction: column; gap: 6px; }
.forminator-ui .forminator-label, .forminator-ui .forminator-field > label { display: block; font-weight: 600; color: var(--dh-encre); line-height: 1.3; }
.forminator-ui .forminator-required { color: #A4261D; }
.forminator-ui input[type=text], .forminator-ui input[type=email], .forminator-ui input[type=tel], .forminator-ui input[type=number], .forminator-ui input[type=url], .forminator-ui input[type=date], .forminator-ui input[type=password], .forminator-ui select, .forminator-ui textarea {
  width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--dh-encre); background: #fff; border: 1px solid var(--dh-champ); border-radius: 0; }
.forminator-ui textarea { min-height: 140px; resize: vertical; }
.forminator-ui select { -webkit-appearance: none; appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B1F1A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; }
.forminator-ui select[multiple] { background-image: none; padding-right: 14px; min-height: 120px; }
.forminator-ui input:focus, .forminator-ui select:focus, .forminator-ui textarea:focus { border-color: var(--dh-rouille); outline: 3px solid rgba(164, 70, 15, .3); outline-offset: 0; }
.forminator-ui .forminator-description { font-size: .95rem; color: var(--dh-doux); }
.forminator-ui .forminator-checkbox, .forminator-ui .forminator-radio { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0; cursor: pointer; line-height: 1.4; }
.forminator-ui .forminator-checkbox input, .forminator-ui .forminator-radio input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dh-vert-texte); flex: none; }
.forminator-ui .forminator-checkbox-box, .forminator-ui .forminator-radio-bullet { display: none; }
.forminator-ui .forminator-error-message, .forminator-ui .forminator-field.forminator-has_error .forminator-description { color: #A4261D; font-weight: 600; font-size: .95rem; }
.forminator-ui .forminator-has_error input, .forminator-ui .forminator-has_error select, .forminator-ui .forminator-has_error textarea { border-color: #A4261D; }
.forminator-ui .forminator-response-message { margin: 0 0 20px; padding: 14px 18px; background: var(--dh-papier); border-left: 5px solid var(--dh-vert-texte); }
.forminator-ui .forminator-response-message.forminator-error { background: #FBECEA; border-left-color: #A4261D; }
.forminator-ui .forminator-response-message:empty, .forminator-ui .forminator-response-message[aria-hidden=true] { display: none; }
.forminator-ui .forminator-button, .forminator-ui button[type=submit] { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 28px; border: 0; background: var(--dh-foret); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.forminator-ui .forminator-button:hover { background: var(--dh-vert-texte); }
.forminator-ui .forminator-multi-upload, .forminator-ui .forminator-file-upload { padding: 16px; border: 2px dashed var(--dh-champ); background: var(--dh-papier); }
.forminator-ui input[type=file] { font: inherit; font-size: .95rem; }
.forminator-ui h1, .forminator-ui h2, .forminator-ui h3 { margin: 24px 0 12px; }
.ui-datepicker { font-family: var(--dh-font); }
.dh-form-actions { display: flex; gap: 12px; margin: 0 0 20px; }
.dh-print { background: #fff; border: 1px solid var(--dh-foret); color: var(--dh-foret); padding: 10px 18px; cursor: pointer; font: inherit; font-weight: 600; }
.dh-print:hover { background: var(--dh-papier); }

/* ------------------------------------------------------------------ accueil */
.dh-home:focus { outline: none; }
.dh-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; background: var(--dh-foret) var(--dh-hero) center 40% / cover no-repeat; color: #fff; isolation: isolate; }
.dh-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 30, 21, .86) 0%, rgba(20, 30, 21, .5) 42%, rgba(20, 30, 21, 0) 72%); }
.dh-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 55%; z-index: -1; background: url(img/contours-clair.svg) left center / cover; opacity: .38; -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent); mask-image: linear-gradient(90deg, #000 30%, transparent); }
.dh-hero--plain { background-color: var(--dh-foret); }
.dh-hero__inner { width: 100%; padding-top: 84px; padding-bottom: 116px; }
.dh-hero__title { font-family: var(--dh-titres); color: #fff; font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5rem); font-weight: 800; letter-spacing: -.015em; line-height: .95; margin: 0 0 30px; max-width: 12ch; }
.dh-hero__kicker { display: block; font-family: var(--dh-font); font-size: .3em; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dh-vert-clair); margin-bottom: 12px; }
.dh-hero__search { max-width: 620px; }
.duhamel-search__label { display: block; font-family: var(--dh-titres); font-size: 1.2rem; font-weight: 600; margin: 0 0 10px; color: #fff; }
.duhamel-search--accueil input[type=search] { height: 60px; font-size: 1.1rem; border: 0; padding: 0 150px 0 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.duhamel-search--accueil button { padding: 0 22px; font-size: 1.05rem; background: var(--dh-rouille); }
.duhamel-search--accueil button:hover { background: var(--dh-rouille-fonce); }

.dh-section-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 22px; }
.dh-section-title::before { content: ""; display: inline-block; vertical-align: -2px; width: 10px; height: 22px; background: var(--dh-rouille); margin-right: 12px; }

/* accès rapides : panneaux indicateurs compacts, largeur naturelle, rangées libres (aucune case vide ni orphelin de grille) */
.dh-quickaccess { position: relative; margin-top: -46px; z-index: 2; }
.dh-quickaccess__box { display: flex; align-items: flex-start; gap: 18px; padding: 16px 18px; background: #fff; box-shadow: 0 18px 40px rgba(20, 30, 21, .16); border-top: 4px solid var(--dh-vert); }
.dh-quickaccess .dh-section-title { flex: none; margin: 4px 0 0; font-size: 1.05rem; white-space: nowrap; }
.dh-quickaccess .dh-section-title::before { height: 16px; width: 8px; margin-right: 10px; vertical-align: -1px; }
.dh-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.dh-tile { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; box-sizing: border-box; padding: 6px 28px 6px 12px; background: var(--dh-foret); color: #fff; font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); transition: background-color .15s ease; }
.dh-tile__arrow { flex: none; color: var(--dh-vert); font-weight: 700; }
.dh-tile:hover { background: var(--dh-vert-texte); color: #fff; }
.dh-tile:hover .dh-tile__arrow { color: #fff; }
.dh-tile:focus-visible { clip-path: none; }

.dh-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 64px; padding-bottom: 88px; align-items: start; }
.mext-latest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px 28px; align-items: start; }
.mext-latest > li:first-child { grid-row: span 2; }
.mext-card--tile { display: flex; flex-direction: column; }
.mext-card--tile .mext-card__image img, .mext-card--tile .mext-card__placeholder { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: contain; background: var(--dh-papier); display: block; }
.mext-latest > li:not(:first-child) { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--dh-ligne); }
.mext-latest > li:not(:first-child) .mext-card__image img, .mext-latest > li:not(:first-child) .mext-card__placeholder { aspect-ratio: 1; object-fit: contain; }
.mext-card--tile .mext-card__body { padding: 14px 0 0; }
.mext-latest > li:not(:first-child) .mext-card__body { padding: 0; }
.mext-card--tile .mext-card__title { font-size: 1.15rem; margin: 2px 0 0; }
.mext-latest > li:first-child .mext-card__title { font-size: 1.5rem; }
.mext-latest__more { margin: 22px 0 0; }
.mext-latest__more a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; background: var(--dh-foret); color: #fff; font-weight: 700; text-decoration: none; }
.mext-latest__more a::after { content: "→"; color: var(--dh-vert); }
.mext-latest__more a:hover { background: var(--dh-vert-texte); color: #fff; }

.dh-home-cards { display: grid; gap: 18px; }
.dh-home-card--notice .mext-notice-banner { padding: 20px 22px 14px; }
.dh-home-card--notice .mext-notice-banner::before { content: "Avis publics"; display: block; font-family: var(--dh-titres); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.dh-home-card--notice .mext-notice-banner__title { font-size: 1.15rem; }
.dh-home-card--fire { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 180px; padding: 22px 24px; box-sizing: border-box; color: #fff; text-decoration: none; background: linear-gradient(0deg, rgba(20, 30, 21, .9), rgba(20, 30, 21, .3)), var(--dh-ardoise) url(img/sopfeu-map.jpg) center / cover; border-top: 4px solid var(--dh-rouille); }
.dh-home-card--fire:hover { color: #fff; }
.dh-home-card--fire:hover .dh-home-card__title { text-decoration: underline; }
.dh-home-card__icon { width: 34px; height: 40px; background: url(img/fire.svg) no-repeat center / contain; margin-bottom: auto; }
.dh-home-card__title { font-family: var(--dh-titres); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.dh-home-card__meta { font-size: .9rem; color: #E4E6E0; }

/* ------------------------------------------------------------------ pied de page */
.dh-footer { position: relative; isolation: isolate; background: var(--dh-foret); color: #DDE2DB; border-top: 6px solid var(--dh-vert); overflow: hidden; }
.dh-footer::before { content: ""; position: absolute; z-index: -1; right: -260px; bottom: -220px; width: 760px; height: 520px; background: url(img/contours-clair.svg) center / contain no-repeat; opacity: .45; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.dh-footer__inner { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.dh-footer__col { font-size: 1rem; }
.dh-footer__title { font-family: var(--dh-titres); color: var(--dh-vert-clair); font-size: 1.15rem; font-weight: 700; margin: 0 0 14px; }
.dh-footer__col p { margin: 0 0 14px; }
.dh-footer__col strong, .dh-footer__col strong a { font-weight: 700; color: #fff; }
.dh-footer__col a { color: #fff; }
.dh-footer__col .dh-footer__title ~ .dh-footer__title, .dh-footer__col p + .dh-footer__title { margin-top: 30px; }
.dh-footer__mail { color: #fff; font-weight: 600; }
.dh-footer__links { list-style: none; margin: 0 0 24px; padding: 0; }
.dh-footer__links a, .dh-footer__links span { display: inline-block; padding: 5px 0; color: #fff; text-decoration: none; line-height: 1.3; }
.dh-footer__links a::before { content: "→ "; color: var(--dh-vert); }
.dh-footer__links a:hover { text-decoration: underline; color: var(--dh-vert-clair); }
.dh-footer__logo-wrap { display: inline-block; margin: 0 10px 12px 0; vertical-align: top; }
.dh-footer__logo { display: block; background: #fff; padding: 8px; max-width: 140px; }
.dh-newsletter { background: var(--dh-foret-2); border-top: 4px solid var(--dh-vert); padding: 22px 24px; align-self: start; }
.dh-newsletter label { display: block; font-size: .92rem; color: #DDE2DB; margin-bottom: 4px; }
.dh-newsletter input, .dh-newsletter select { width: 100%; box-sizing: border-box; background: #fff; border: 1px solid transparent; color: var(--dh-encre); font: inherit; font-size: 1rem; height: 44px; padding: 0 12px; border-radius: 0; }
.dh-newsletter select { width: auto; min-width: 120px; }
.dh-newsletter p { margin: 0 0 14px; }
.dh-newsletter__submit { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; background: var(--dh-vert); color: var(--dh-foret); font: inherit; font-weight: 700; cursor: pointer; }
.dh-newsletter__submit::before { content: "M’inscrire"; }
.dh-newsletter__submit::after { content: "→"; }
.dh-newsletter__submit:hover { background: var(--dh-vert-clair); }
.dh-credits { background: #152016; color: #C3CAC1; font-size: .92rem; padding: 16px 0; }
.dh-credits a { color: #fff; }
.dh-credits .nobr { white-space: nowrap; }

/* ------------------------------------------------------------------ ordinateur étroit */
@media (min-width: 1100px) and (max-width: 1279px) {
  .dh-bar__inner { gap: 14px; }
  .dh-logo img { width: 150px; }
  .mm-toggle { font-size: 1.02rem; padding: 0 9px; gap: 6px; }
  .mm-toggle::after { left: 9px; right: 9px; }
  .dh-bar__search { flex: 1 1 200px; min-width: 190px; max-width: 240px; }
  .mm-inner { grid-template-columns: 170px minmax(0, 1fr) 290px; gap: 0 24px; }
  .mm-inner { --dh-pane: 290px; }
}

/* ------------------------------------------------------------------ tablette et mobile : bouton Menu */
@media (max-width: 1099px) {
  .dh-site-header { position: relative; }
  .dh-util { display: none; }
  .dh-mega, .dh-bar__search { display: none; }
  .dh-bar__inner { min-height: 68px; justify-content: space-between; }
  .dh-logo { margin: 8px 0 -18px; }
  .dh-logo a { padding: 6px 8px 4px; }
  .dh-logo img { width: 130px; }
  .dh-burger { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 2px solid var(--dh-vert); background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .dh-burger__bars, .dh-burger__bars::before, .dh-burger__bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; transition: transform .2s ease; }
  .dh-burger__bars::before, .dh-burger__bars::after { content: ""; position: absolute; left: 0; }
  .dh-burger__bars::before { top: -6px; }
  .dh-burger__bars::after { top: 6px; }
  .dh-burger[aria-expanded=true] { background: var(--dh-vert); color: var(--dh-foret); }
  .dh-burger[aria-expanded=true] .dh-burger__bars { background: transparent; }
  .dh-burger[aria-expanded=true] .dh-burger__bars::before, .dh-burger[aria-expanded=true] .dh-burger__bars::after { background: var(--dh-foret); }
  .dh-burger[aria-expanded=true] .dh-burger__bars::before { top: 0; transform: rotate(45deg); }
  .dh-burger[aria-expanded=true] .dh-burger__bars::after { top: 0; transform: rotate(-45deg); }
  .dh-mobile-search { display: block; padding: 28px var(--dh-gutter) 12px; background: var(--dh-papier); border-bottom: 1px solid var(--dh-ligne); }
  .home .dh-mobile-search { display: none; }
  html.dh-menu-open, html.dh-menu-open body { overflow: hidden; }
  .dh-mobile { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--dh-mobile-top, 148px); background: var(--dh-papier); overflow-y: auto; overscroll-behavior: contain; z-index: 99999; padding: 8px var(--dh-gutter) 40px; }
  .dh-mobile[hidden] { display: none; }
  .dh-mobile ul { list-style: none; margin: 0; padding: 0; }
  .mob-list { border-top: 2px solid var(--dh-encre); }
  .mob-u { border-bottom: 1px solid var(--dh-ligne); }
  .mob-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; background: none; border: 0; font-family: var(--dh-titres); font-size: 1.3rem; font-weight: 700; color: var(--dh-encre); text-align: left; cursor: pointer; padding: 0 4px; }
  .mob-toggle[aria-expanded=true] { color: var(--dh-rouille-fonce); }
  .mob-panel { padding: 0 0 14px !important; }
  .mob-row { display: flex; align-items: stretch; }
  .mob-link, .mob-all { flex: 1; display: flex; align-items: center; min-height: 48px; padding: 6px 10px; color: var(--dh-encre); text-decoration: none; font-size: 1.06rem; line-height: 1.3; }
  .mob-link:hover, .mob-all:hover { background: #fff; }
  .mob-all { color: var(--dh-vert-texte); font-weight: 700; }
  .mob-all::after { content: " →"; margin-left: 6px; }
  .mob-sub-toggle { flex: none; width: 48px; min-height: 48px; background: none; border: 0; color: var(--dh-doux); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
  .mob-sub-toggle[aria-expanded=true] { color: var(--dh-rouille-fonce); }
  .mob-l3 { margin: 4px 0 8px 12px !important; padding-left: 10px !important; border-left: 3px solid var(--dh-rouille); }
  .mob-l3 .mob-link { font-size: 1rem; color: var(--dh-doux); min-height: 44px; }
  .mob-flatlist { margin-top: 16px !important; display: grid; gap: 2px; }
  .mob-flat { display: flex; align-items: center; min-height: 48px; padding: 0 4px; font-size: 1.1rem; font-weight: 600; color: var(--dh-encre); text-decoration: none; }
  .mob-quick__title { margin: 24px 0 8px; font-family: var(--dh-titres); font-size: 1.05rem; font-weight: 700; color: var(--dh-encre); }
  .mob-quick { display: grid; gap: 5px; }
  .mob-quick a { display: flex; align-items: center; min-height: 48px; box-sizing: border-box; padding: 8px 30px 8px 14px; background: var(--dh-foret); color: #fff; text-decoration: none; font-weight: 600; line-height: 1.25; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }

  .dh-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .dh-main { grid-column: 1; grid-row: 2; max-width: none; }
  .dh-aside { grid-column: 1; grid-row: 1; position: static; max-height: none; overflow: visible; }
  .dh-aside__extras { display: none; }
  .dh-aside--after { display: block; grid-row: 3; }
  .dh-subnav { margin: 0; border-top: 4px solid var(--dh-foret); background: var(--dh-papier); }
  .dh-subnav__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--dh-encre); text-align: left; cursor: pointer; }
  .dh-subnav__title { display: none; }
  .dh-subnav > ul { padding: 0 14px 10px !important; }
  body:not(.dh-sans-js) .dh-subnav:not(.is-open) > ul { display: none; }
  .dh-home-grid { grid-template-columns: minmax(0, 1fr); }
  .dh-home-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .dh-footer__inner { grid-template-columns: 1fr 1fr; }
  .dh-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 1.0625rem; }
  .dh-quickaccess { margin-top: -36px; }
  .dh-quickaccess__box { flex-direction: column; gap: 10px; padding: 14px; }
  .dh-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .dh-tile { display: flex; justify-content: space-between; min-height: 44px; }
  .dh-strip__inner { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; padding-bottom: 6px; }
  .dh-strip__label { font-size: .85rem; min-height: 30px; }
  .mext-notice-banner--bandeau { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .mext-notice-banner--bandeau .mext-notice-banner__controls { justify-content: flex-end; }
  .dh-logo img { width: 112px; }
  .dh-hero { min-height: 0; }
  .dh-hero::after { width: 100%; }
  .dh-hero__inner { padding-top: 44px; padding-bottom: 88px; }
  .duhamel-search--accueil input[type=search] { padding-right: 64px; height: 56px; }
  .duhamel-search--accueil button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .duhamel-search--accueil button { padding: 0 16px; }
  .mext-latest { grid-template-columns: minmax(0, 1fr); }
  .mext-latest > li:first-child { grid-row: auto; }
  .mext-latest > li:not(:first-child) { grid-template-columns: 96px minmax(0, 1fr); }
  .mext-card--row { flex-direction: column; gap: 12px; }
  .mext-card--row .mext-card__image { flex-basis: auto; }
  .mext-card--row .mext-card__image img, .mext-card--row .mext-card__placeholder { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .dh-text td, .dh-text th { padding: 8px 12px; min-width: 120px; }
  .dh-footer::before { right: -380px; bottom: -260px; opacity: .3; }
  .dh-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
}

/* impression */
@media print {
  .dh-site-header, .dh-aside, .dh-site-footer, .dh-ariane, .dh-form-actions, .dh-share { display: none !important; }
  .dh-layout { display: block; padding: 0; }
  .dh-title::after { display: none; }
  .dh-text a { color: #000; }
}
.mext-meetings__upcoming .mext-empty { padding: 0; background: none; border: 0; font-size: 1rem; }
