/* ============================================================
   MIRIBEL-DROME.FR — « Feuille topographique » v2.0
   Almanach local + carte d'état-major : papier crème, encre
   bistre, courbes de niveau ocre, balisage GR rouge-blanc.
   (WordPress / Kadence override)
============================================================ */

:root {
  /* — noms hérités (référencés par le contenu publié : NE PAS renommer) — */
  --paper:        #f7f2e4;
  --paper-2:      #efe7d1;
  --paper-3:      #e4d8bc;
  --ink:          #2a2316;
  --ink-soft:     #443a26;
  --ink-mute:     #7c6d52;
  --chloro:       #47663b;   /* vert forêt (bois IGN) */
  --chloro-deep:  #2f4527;
  --copper:       #b23a26;   /* rouge balisage GR */
  --copper-soft:  #d05a35;
  --plum:         #35597a;   /* bleu rivière (l'Herbasse) */
  --rule:         rgba(42, 35, 22, 0.18);
  --rule-strong:  rgba(42, 35, 22, 0.45);

  /* — nouveaux jetons topographiques — */
  --topo:         #b98a4a;   /* bistre des courbes de niveau */
  --topo-soft:    rgba(185, 138, 74, 0.30);
  --fiche:        #fbf7ea;   /* fond des fiches/cartouches */
  --night:        #221b10;   /* footer carte de nuit */
  --night-ink:    #cfc1a0;
  --stamp:        rgba(178, 58, 38, 0.78); /* encre de tampon */

  --serif-display: 'Libre Caslon Display', 'Times New Roman', serif;
  --serif-body:    'Libre Caslon Text', Georgia, serif;
  --mono:          'IBM Plex Mono', ui-monospace, monospace;

  --col-w:        1280px;
  --gut:          clamp(1rem, 2.4vw, 2.4rem);

  --t-mini:       0.72rem;
  --t-meta:       0.82rem;
  --t-body:       1.05rem;
  --t-lede:       1.26rem;
  --t-h3:         clamp(1.35rem, 2.1vw, 1.75rem);
  --t-h2:         clamp(1.9rem, 3.4vw, 2.9rem);
  --t-display:    clamp(2.3rem, 4.4vw, 4.2rem);
  --t-display-hero: clamp(2.5rem, 5.2vw, 4.9rem);

  --ease:         cubic-bezier(.22, .61, .36, 1);
  --ease-out:     cubic-bezier(.16, .85, .25, 1);

  /* courbes de niveau (tuile SVG) */
  --topo-lines: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='620' viewBox='0 0 900 620'><g fill='none' stroke='%23b98a4a' stroke-width='1'><path opacity='.38' d='M120 610C40 520 30 420 90 340s180-90 260-40 90 170 40 250-190 120-270 60'/><path opacity='.30' d='M150 585C85 505 80 425 130 358s150-75 216-33 75 141 33 208-158 100-229 52'/><path opacity='.24' d='M185 552c-48-62-52-124-14-176s115-58 166-26 58 108 26 160-121 77-178 42'/><path opacity='.18' d='M225 512c-32-44-35-88-9-124s80-41 116-18 41 76 18 112-85 54-125 30'/><path opacity='.34' d='M660 40c90 20 150 90 150 170s-50 150-140 160-180-40-190-130S480 60 570 40s60-10 90 0'/><path opacity='.26' d='M655 85c70 16 116 70 116 132s-39 116-109 124-140-31-147-101 23-139 93-155 24-6 47 0'/><path opacity='.20' d='M650 130c50 12 83 50 83 94s-28 83-78 89-100-22-105-72 17-99 67-111'/><path opacity='.14' d='M646 174c32 8 53 32 53 60s-18 53-50 57-64-14-67-46 11-63 43-71'/><path opacity='.16' d='M-20 160C60 120 170 130 240 190s90 160 30 240'/><path opacity='.12' d='M-20 220c70-34 160-24 220 28s76 136 26 204'/><path opacity='.22' d='M420 640c-20-90 20-170 100-210s170-20 230 40'/></g></svg>");
}

/* ============================================================ KADENCE OVERRIDES */

/* Cacher header et footer Kadence — on injecte les nôtres via hooks */
body #masthead.site-header { display: none !important; }
body #colophon.site-footer { display: none !important; }
body { background: var(--paper) !important; }
body, .site-content, .content-bg, .site,
.entry-content,
.wp-site-blocks {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--serif-body) !important;
  font-size: var(--t-body);
  line-height: 1.68;
  font-feature-settings: "kern", "liga", "onum";
}

/* Casser le boxed Kadence */
body.content-style-boxed .site,
body .site {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
body .mib-issue-bar,
body .mib-masthead,
body .mib-mast-nav,
body .mib-footer { width: 100%; max-width: none; }

/* Home : containers pleine largeur */
body.home .site-container,
body.home .content-container,
body.home #primary,
body.home main {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
body.home article.page .entry-header { display: none !important; }
body.home .loop-entry .entry-header { display: block; margin: 0; }

/* Pages avec markup editorial */
body.page article > .entry-header h1.entry-title { display: none; }

/* Container lecture pour pages + articles */
body:not(.home):not(.archive) .entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.2rem var(--gut) 3rem;
}

/* ============================================================ TYPO BASE */

body, p, li, td {
  font-family: var(--serif-body);
  color: var(--ink);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif-display) !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  letter-spacing: 0.005em;
  line-height: 1.14;
}
em { font-style: italic; }
a { color: var(--chloro-deep); text-decoration-color: var(--topo-soft); text-underline-offset: 3px; transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease); }
a:hover { color: var(--copper); text-decoration-color: var(--copper); }
img { max-width: 100%; height: auto; }
::selection { background: var(--topo-soft); color: var(--ink); }

ul, ol { padding-left: 1.3rem; }
.entry-content ul li::marker { content: "▲  "; font-size: 0.62em; color: var(--topo); }
.entry-content .en-bref__list li::marker, .entry-content .faq-list li::marker, .en-bref__list li::marker { content: none; }
.entry-content ol li::marker { font-family: var(--mono); font-size: 0.82em; color: var(--copper); }

/* ============================================================ GRAIN + RÉTICULE */

.mib-grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.mib-cursor {
  position: fixed; top: 0; left: 0; z-index: 9991; pointer-events: none;
  width: 30px; height: 30px; border: 1px solid var(--stamp); border-radius: 50%;
  opacity: 0.65; transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.25s;
}
.mib-cursor::before, .mib-cursor::after {
  content: ""; position: absolute; background: var(--stamp);
}
.mib-cursor::before { left: 50%; top: -5px; width: 1px; height: 8px; transform: translateX(-50%); box-shadow: 0 26px 0 var(--stamp); }
.mib-cursor::after  { top: 50%; left: -5px; height: 1px; width: 8px; transform: translateY(-50%); box-shadow: 26px 0 0 var(--stamp); }
body.cursor-active .mib-cursor { width: 44px; height: 44px; opacity: 0.9; }
@media (hover: none), (prefers-reduced-motion: reduce) { .mib-cursor { display: none; } }

/* ============================================================ BARRE LÉGENDE */

.mib-issue-bar {
  background: var(--night); color: var(--night-ink);
  border-bottom: 1px solid rgba(185, 138, 74, 0.4);
  position: relative; z-index: 30;
}
.mib-bar-inner {
  max-width: var(--col-w); margin: 0 auto; padding: 0.5rem var(--gut);
  display: flex; align-items: center; gap: 1.6rem;
  font-family: var(--mono); font-size: var(--t-mini);
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden;
}
.mib-bar-issue { color: #e8dcba; }
.mib-bar-tag {
  border: 1px solid rgba(232, 220, 186, 0.5); padding: 0.1rem 0.55rem;
  color: #e8dcba; border-radius: 2px;
}
.mib-bar-route { opacity: 0.85; }
.mib-bar-weather { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; opacity: 0.85; }
.mib-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #7fae6d; display: inline-block;
  animation: mib-pulse 2.6s infinite var(--ease);
}
@keyframes mib-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================================================ MASTHEAD TOPO */

.mib-masthead { position: relative; background: var(--paper); overflow: hidden; }
.mib-topo, .mib-foot-topo {
  position: absolute; inset: -2% -2%; pointer-events: none;
  background-image: var(--topo-lines);
  background-size: 900px 620px;
}
.mib-topo { opacity: 0.55; }
.mib-masthead-inner {
  position: relative; max-width: var(--col-w); margin: 0 auto;
  padding: 2.2rem var(--gut) 1.6rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.mib-mast-left { display: flex; flex-direction: column; gap: 0.35rem; }
.mib-mast-kicker {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-soft);
  border-left: 3px solid var(--copper); padding-left: 0.6rem;
}
.mib-mast-since { font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.1em; color: var(--ink-mute); padding-left: 0.75rem; }

.mib-mast-logo { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-decoration: none; }
.mib-logo-coord {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.34em;
  color: var(--ink-mute); text-transform: uppercase;
}
h1.mib-logo-word { margin: 0; }
.mib-logo-word {
  font-family: var(--serif-display); font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.95; color: var(--ink); text-transform: uppercase;
  letter-spacing: 0.16em; margin-right: -0.16em; /* compense le tracking */
}
.mib-mast-logo:hover h1.mib-logo-word { margin: 0; }
.mib-logo-word { color: var(--chloro-deep); }
.mib-logo-rule { display: flex; align-items: center; gap: 0.55rem; width: min(340px, 60vw); }
.mib-logo-rule i { flex: 1; height: 3px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.mib-logo-rule b { color: var(--copper); font-size: 0.7rem; line-height: 1; }
.mib-logo-sub {
  font-family: var(--serif-display); font-style: italic; font-size: 1.12rem;
  color: var(--ink-soft); letter-spacing: 0.06em;
}

.mib-mast-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.mib-mast-search {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: 0.45rem 0.8rem;
  background: var(--fiche);
  transition: all 0.25s var(--ease);
}
.mib-mast-search:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mib-mast-scale em {
  display: block; font-family: var(--mono); font-style: normal; font-size: var(--t-mini);
  letter-spacing: 0.08em; color: var(--ink-mute);
  border-top: 2px solid var(--ink-soft); padding-top: 0.25rem;
}

/* Nav légende */
.mib-mast-nav { position: relative; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); background: var(--fiche); }
.mib-mast-nav::after {
  content: ""; display: block; height: 3px; border-bottom: 1px dotted var(--rule-strong);
}
.mib-mast-nav ol {
  max-width: var(--col-w); margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: stretch; gap: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.mib-mast-nav ol::-webkit-scrollbar { display: none; }
.mib-mast-nav li { display: flex; }
.mib-mast-nav a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  border-right: 1px dotted var(--rule);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.mib-mast-nav li:first-child a { border-left: 1px dotted var(--rule); }
.mib-mast-nav a:hover { background: var(--ink); color: var(--paper); }
.mib-nav-sep { flex: 1; }
.mib-nav-aside { font-style: italic; opacity: 0.85; }

/* Symboles de légende (par rubrique) */
.mib-sym { display: inline-block; width: 10px; height: 10px; flex: none; }
.mib-sym--pat   { background: var(--topo); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mib-sym--rando { background: var(--copper); border-radius: 50%; }
.mib-sym--terr  { background: var(--chloro); }
.mib-sym--tour  { background: var(--plum); transform: rotate(45deg) scale(0.86); }
.mib-sym--vie   { background: var(--ink-mute); height: 4px; margin-top: 3px; }

/* ============================================================ HOME — FICHES D'ALMANACH */

body.home .content-wrap.kadence-posts-list {
  max-width: var(--col-w); margin: 0 auto !important;
  padding: 2.6rem var(--gut) 3.4rem !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  list-style: none;
}
.kadence-posts-list > li.entry-list-item { display: flex; margin: 0; }
.kadence-posts-list > li.entry-list-item > article.loop-entry { flex: 1; }

article.loop-entry {
  position: relative;
  background: var(--fiche) !important;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--paper-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
article.loop-entry:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--paper-3); }

article.loop-entry .post-thumbnail { display: block; position: relative; border-bottom: 1px dotted var(--rule-strong); }
article.loop-entry .post-thumbnail img { display: block; width: 100%; filter: sepia(0.14) saturate(0.96); transition: filter 0.4s var(--ease); }
article.loop-entry:hover .post-thumbnail img { filter: sepia(0) saturate(1.04); }

article.loop-entry .entry-content-wrap { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

/* rubrique = symbole + mono */
.entry-taxonomies { order: -1; }
.entry-taxonomies .category-links a {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; position: relative; padding-left: 1rem;
}
.entry-taxonomies .category-links a::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; background: var(--topo);
}
.entry-taxonomies .category-link-village-patrimoine::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--topo) !important; }
.entry-taxonomies .category-link-randonnees::before { border-radius: 50%; background: var(--copper) !important; }
.entry-taxonomies .category-link-terroir-producteurs::before { background: var(--chloro) !important; }
.entry-taxonomies .category-link-drome-tourisme::before { transform: translateY(-50%) rotate(45deg) scale(0.86); background: var(--plum) !important; }
.entry-taxonomies .category-link-vie-pratique::before { height: 4px !important; background: var(--ink-mute) !important; }
.entry-taxonomies .category-link-actualites::before { background: var(--ink) !important; }
.entry-taxonomies .category-links a:hover { color: var(--copper); }

article.loop-entry h2.entry-title {
  font-size: 1.32rem !important; line-height: 1.22;
  margin: 0;
}
article.loop-entry h2.entry-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--topo-soft), var(--topo-soft)); background-repeat: no-repeat; background-size: 0% 38%; background-position: 0 82%; transition: background-size 0.35s var(--ease); }
article.loop-entry h2.entry-title a:hover { background-size: 100% 38%; color: var(--ink); }

/* méta = tampon daté */
article.loop-entry .entry-meta {
  font-family: var(--mono) !important; font-size: var(--t-mini) !important;
  letter-spacing: 0.08em; color: var(--ink-mute) !important; text-transform: uppercase;
}
article.loop-entry .entry-meta a { color: var(--ink-mute); text-decoration: none; }
article.loop-entry .entry-meta a:hover { color: var(--copper); }
.entry-meta .posted-on time.updated { display: none; }
article.loop-entry .posted-on time {
  display: inline-block; border: 1px solid var(--stamp); color: var(--stamp);
  border-radius: 2px; padding: 0.06rem 0.45rem; transform: rotate(-1.6deg);
  background: rgba(255, 255, 255, 0.35);
}
.entry-meta .meta-label { margin-right: 0.3em; opacity: 0.7; }

article.loop-entry .entry-summary { margin: 0; }
article.loop-entry .entry-summary p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink-soft); }

article.loop-entry .entry-footer, article.loop-entry footer { margin-top: auto; padding-top: 0.6rem; }
.post-more-link, a.post-more-link, .entry-footer a {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper); text-decoration: none;
  border-bottom: 1px dotted var(--copper);
  padding-bottom: 0.15rem;
}
.post-more-link:hover { color: var(--ink); border-color: var(--ink); }

/* Fiche vedette : le premier relevé occupe toute la largeur */
@media (min-width: 900px) {
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child { grid-column: 1 / -1; }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child > article.loop-entry {
    display: grid; grid-template-columns: 7fr 5fr; align-items: stretch;
  }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child .post-thumbnail {
    border-bottom: none; border-right: 1px dotted var(--rule-strong); height: 100%;
  }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child .post-thumbnail-inner { height: 100%; }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child .post-thumbnail img { height: 100%; object-fit: cover; }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child .entry-content-wrap { padding: 2rem 2.2rem; justify-content: center; gap: 0.9rem; }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child h2.entry-title { font-size: clamp(1.7rem, 2.6vw, 2.5rem) !important; }
  body.home:not(.paged) .kadence-posts-list > li.entry-list-item:first-child .entry-summary p { font-size: var(--t-lede); line-height: 1.5; }
}

/* ============================================================ ARCHIVES (catégories) */

body.archive .content-container, body.search .content-container {
  max-width: var(--col-w) !important; margin: 0 auto !important; padding: 0 var(--gut) 3rem !important;
}
body.archive .content-wrap.kadence-posts-list, body.search .content-wrap.kadence-posts-list {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  padding: 1.8rem 0 1rem !important;
  list-style: none; margin: 0;
}
body.archive .archive-header, body.search .entry-header {
  max-width: var(--col-w); margin: 0 auto; padding: 2.4rem var(--gut) 0;
}
body.archive .archive-title {
  font-size: var(--t-display) !important; line-height: 1.05; margin: 0 0 0.4rem;
}
body.archive .archive-title::before {
  content: "Rubrique — feuille locale";
  display: block; font-family: var(--mono); font-size: var(--t-mini);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper);
  margin-bottom: 0.7rem;
}
body.archive .archive-header p, body.archive .archive-description {
  font-style: italic; font-size: var(--t-lede); color: var(--ink-soft); max-width: 46em;
  border-bottom: 1px dotted var(--rule-strong); padding-bottom: 1.3rem;
}

/* ============================================================ ARTICLE SEUL */

body.single .content-container, body.page .content-container {
  max-width: none !important;
}
body.single .entry-header, body.page:not(.home) .entry-header {
  max-width: 860px; margin: 0 auto; padding: 2.8rem var(--gut) 0; text-align: center;
}
body.single .entry-header .entry-taxonomies { display: block; margin-bottom: 1rem; }
body.single .entry-title {
  font-size: var(--t-display) !important; line-height: 1.08; margin: 0 auto 1.2rem;
  max-width: 18em;
}
body.single .entry-title em { font-style: italic; color: var(--chloro-deep); }

/* cartouche de relevé */
body.single .entry-meta {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0;
  border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--fiche);
  font-family: var(--mono) !important; font-size: var(--t-mini) !important;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute) !important;
  padding: 0 !important; margin-bottom: 1.6rem;
}
body.single .entry-meta > span { padding: 0.5rem 0.9rem; border-right: 1px dotted var(--rule-strong); }
body.single .entry-meta > span:last-child { border-right: none; }
body.single .entry-meta a { color: var(--ink-soft); text-decoration: none; }
body.single .entry-meta a:hover { color: var(--copper); }
body.single .entry-meta-divider-dot span::after { content: none !important; }

/* photo à la une : tirage collé dans l'almanach */
body.single .post-thumbnail { max-width: 980px; margin: 0.4rem auto 0; padding: 0 var(--gut); }
body.single .post-thumbnail img {
  display: block; width: 100%;
  background: #fff; padding: 10px; box-sizing: border-box;
  border: 1px solid var(--rule-strong);
  box-shadow: 6px 6px 0 var(--paper-3);
  transform: rotate(-0.35deg);
}

/* corps d'article */
body.single .entry-content, body.page:not(.home) .entry-content { font-size: 1.08rem; }
body.single .entry-content > p:first-of-type::first-letter,
body.page:not(.home) .entry-content > p:first-of-type::first-letter {
  font-family: var(--serif-display); float: left;
  font-size: 3.6em; line-height: 0.82; padding: 0.08em 0.14em 0 0;
  color: var(--chloro-deep);
}
.entry-content h2 {
  font-size: var(--t-h2) !important; margin: 2.4em 0 0.7em;
  padding-bottom: 0.35em; border-bottom: 1px dotted var(--rule-strong);
  position: relative;
}
.entry-content h2::before {
  content: "▲"; color: var(--copper); font-size: 0.42em;
  position: absolute; bottom: -0.55em; left: 0; background: var(--paper); padding-right: 0.8em;
}
body.home .entry-content h2::before { background: transparent; }
.entry-content h3 { font-size: var(--t-h3) !important; margin: 1.8em 0 0.5em; font-style: italic; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content img.size-full, .entry-content img.size-large, .entry-content img.attachment-large {
  background: #fff; padding: 8px; border: 1px solid var(--rule-strong);
  box-shadow: 5px 5px 0 var(--paper-3);
}
.entry-content blockquote {
  margin: 1.6em 0; padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px double var(--topo);
  font-style: italic; font-size: 1.12em; color: var(--ink-soft);
}
.entry-content figcaption {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.06em;
  color: var(--ink-mute); padding-top: 0.5rem;
}

/* navigation article précédent/suivant + pagination */
.post-navigation, .pagination, .kadence-pagination {
  max-width: 860px; margin: 0 auto; padding: 1rem var(--gut) 2.4rem;
  font-family: var(--mono); font-size: var(--t-meta); letter-spacing: 0.06em;
}
.pagination .page-numbers, .kadence-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem; margin: 0 0.15rem;
  border: 1px solid var(--rule-strong); border-radius: 2px;
  color: var(--ink-soft); text-decoration: none; background: var(--fiche);
}
.pagination .page-numbers.current, .kadence-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--copper); color: var(--copper); }

/* ============================================================ BLOC EN BREF — BALISAGE GR */

.en-bref {
  position: relative;
  background: var(--fiche);
  border: 1px solid var(--rule-strong); border-radius: 2px;
  box-shadow: 4px 4px 0 var(--paper-3);
  padding: 1.2rem 1.4rem 1.2rem 1.9rem;
  margin: 1.8rem 0 2.2rem;
}
.en-bref::before {
  /* marque GR : barre blanche sur barre rouge */
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 9px;
  background: linear-gradient(to bottom, #f6f1e2 0 50%, var(--copper) 50% 100%);
  border-right: 1px solid var(--rule-strong);
}
.en-bref__head {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--t-meta); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px dotted var(--rule-strong); padding-bottom: 0.6rem; margin-bottom: 0.8rem;
}
.en-bref__head strong { font-weight: 600; color: var(--ink); }
.en-bref__pin { font-size: 1rem; }
.en-bref__sep { color: var(--topo); }
.en-bref__time { margin-left: auto; color: var(--ink-mute); font-size: var(--t-mini); }
.en-bref__lead { font-size: var(--t-lede); line-height: 1.5; font-style: italic; color: var(--ink-soft); margin: 0 0 0.8rem; }
.en-bref__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.en-bref__list li {
  padding: 0.15rem 0 0.15rem 0.2rem; font-size: 0.98rem; line-height: 1.5;
  border-bottom: 1px dotted var(--rule);
}
.en-bref__list li:last-child { border-bottom: none; }
.en-bref a { color: var(--chloro-deep); }
.en-bref a:hover { color: var(--copper); }

/* ============================================================ TABLE RECAP — TABLEAU D'ALMANACH */

.recap-table {
  width: 100%; border-collapse: collapse; margin: 1.4rem 0 2rem;
  font-size: 0.96rem; background: var(--fiche);
  border: 1px solid var(--rule-strong);
  box-shadow: 4px 4px 0 var(--paper-3);
}
.recap-table thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-weight: 500; font-size: var(--t-mini);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.65rem 0.9rem; text-align: left;
}
.recap-table td, .recap-table th { padding: 0.6rem 0.9rem; border-bottom: 1px dotted var(--rule-strong); vertical-align: top; }
.recap-table tbody tr:last-child td { border-bottom: none; }
.recap-table tbody tr:nth-child(even) td { background: rgba(185, 138, 74, 0.07); }
.recap-table td strong { color: var(--ink); }
.recap-table a { color: var(--chloro-deep); }
.recap-table a:hover { color: var(--copper); }

/* ============================================================ FAQ — CARNET DE TERRAIN */

.faq-wrap { margin: 2.6rem 0 1.4rem; }
.faq-wrap h2 { text-transform: none; }
.faq-intro { font-style: italic; color: var(--ink-soft); margin-top: -0.3rem; }
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq-item {
  border-bottom: 1px dotted var(--rule-strong);
  background: transparent;
}
.faq-item summary {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.95rem 0.2rem; cursor: pointer; list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .q { color: var(--copper); }
.faq-item .chev {
  color: var(--copper); font-size: 0.6rem; flex: none;
  transition: transform 0.3s var(--ease); transform-origin: center;
}
.faq-item[open] .chev { transform: rotate(90deg); }
.faq-item .q { font-family: var(--serif-display); font-size: 1.12rem; line-height: 1.3; }
.faq-answer { padding: 0 0.2rem 1.1rem 1.5rem; }
.faq-answer p { margin: 0 0 0.5em; }
.faq-hint {
  font-family: var(--mono); font-size: var(--t-meta); color: var(--ink-mute);
  border-left: 2px solid var(--topo); padding-left: 0.7rem; font-style: normal;
}

/* pages : blocs details natifs (église) */
.entry-content .wp-block-details {
  border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--fiche);
  padding: 0.85rem 1.1rem; margin: 0 0 0.8rem;
  box-shadow: 3px 3px 0 var(--paper-3);
}
.entry-content .wp-block-details summary {
  font-family: var(--serif-display); font-size: 1.1rem; cursor: pointer;
  list-style-position: outside; color: var(--ink);
}
.entry-content .wp-block-details summary::marker { color: var(--copper); font-size: 0.8em; }
.entry-content .wp-block-details[open] summary { border-bottom: 1px dotted var(--rule-strong); padding-bottom: 0.5rem; margin-bottom: 0.6rem; }

/* ============================================================ GALERIE PHOTOS */

.mib-photo-grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .mib-photo-grid { grid-template-columns: 1fr 1fr; } .mib-photo-grid figure:first-child { grid-column: 1 / -1; } }
.mib-photo-grid figure { margin: 0; }
.mib-photo-grid img {
  width: 100%; height: auto; display: block;
  background: #fff; padding: 9px; box-sizing: border-box;
  border: 1px solid var(--rule-strong);
  box-shadow: 5px 5px 0 var(--paper-3);
}
.mib-photo-grid figure:nth-child(odd) img { transform: rotate(-0.5deg); }
.mib-photo-grid figure:nth-child(even) img { transform: rotate(0.4deg); }
.mib-photo-grid figcaption {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.05em;
  color: var(--ink-mute); font-style: normal; padding-top: 0.55rem;
}
.mib-photo-grid figcaption::before { content: "— "; color: var(--topo); }

/* ============================================================ FOOTER — CARTE DE NUIT */

.mib-footer {
  position: relative; background: var(--night); color: var(--night-ink);
  margin-top: 3.5rem; overflow: hidden;
  border-top: 3px solid var(--copper);
}
.mib-footer::before {
  content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 3px;
  background: #f6f1e2; opacity: 0.85;
}
.mib-foot-topo { opacity: 0.14; filter: invert(0.9) sepia(0.4); }
.mib-footer-inner {
  position: relative; max-width: var(--col-w); margin: 0 auto;
  padding: 3rem var(--gut) 1.6rem;
}
.mib-foot-mast { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin-bottom: 2.4rem; text-align: center; }
.mib-foot-coord { font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75; }
.mib-footer h1.mib-logo-word { margin: 0; }
.mib-logo-word { color: #efe5c8; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.mib-foot-tag { font-style: italic; font-family: var(--serif-display); font-size: 1.02rem; opacity: 0.85; max-width: 42em; }
.mib-foot-gr { display: flex; flex-direction: column; width: 54px; margin-top: 0.7rem; }
.mib-foot-gr i { height: 5px; }
.mib-foot-gr i:first-child { background: #f6f1e2; }
.mib-foot-gr i:last-child { background: var(--copper); }

.mib-foot-cols {
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 2.4rem;
  border-top: 1px dotted rgba(207, 193, 160, 0.4); padding-top: 2rem;
}
.mib-foot-col h4 {
  font-family: var(--mono) !important; font-size: var(--t-mini) !important;
  letter-spacing: 0.2em; text-transform: uppercase; color: #e8dcba !important;
  margin: 0 0 0.9rem;
}
.mib-foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.mib-foot-col a {
  color: var(--night-ink); text-decoration: none; font-size: 0.96rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.mib-foot-col a:hover { color: var(--copper-soft); }
.mib-foot-col p { font-size: 0.92rem; line-height: 1.65; opacity: 0.9; margin: 0; }
.mib-footer p, .mib-footer li, .mib-footer span { color: var(--night-ink); }
.mib-foot-col p a { display: inline; text-decoration: underline; text-decoration-color: rgba(207,193,160,0.5); }

.mib-foot-base {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px dotted rgba(207, 193, 160, 0.4);
  margin-top: 2.2rem; padding-top: 1.1rem;
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.75;
}

/* ============================================================ RÉVÉLATION AU DÉFILEMENT */

.mib-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.mib-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mib-reveal { opacity: 1; transform: none; transition: none; }
  article.loop-entry, article.loop-entry:hover { transform: none; transition: none; }
}

/* ============================================================ DIVERS */

/* Formulaire de recherche */
.search-form, form.search-form { display: flex; gap: 0.5rem; max-width: 560px; }
.search-form input[type="search"] {
  flex: 1; padding: 0.7rem 0.9rem; border: 1px solid var(--rule-strong); border-radius: 2px;
  background: var(--fiche); font-family: var(--serif-body); font-size: 1rem; color: var(--ink);
}
.search-form .search-submit, .search-form button {
  padding: 0.7rem 1.1rem; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: var(--t-meta); letter-spacing: 0.1em; text-transform: uppercase;
  border: none; border-radius: 2px; cursor: pointer;
}
.search-form .search-submit:hover { background: var(--copper); }

/* Complianz : bannière dans la palette */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  background: var(--fiche) !important; color: var(--ink) !important;
  border: 1px solid var(--rule-strong) !important; border-radius: 2px !important;
  box-shadow: 6px 6px 0 var(--paper-3) !important;
  font-family: var(--serif-body) !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header .cmplz-title { font-family: var(--serif-display) !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-accept { background: var(--chloro-deep) !important; color: #fff !important; border-radius: 2px !important; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn.cmplz-deny { background: transparent !important; border: 1px solid var(--rule-strong) !important; color: var(--ink) !important; border-radius: 2px !important; }

/* Sommaire (easy-table-of-contents) */
#ez-toc-container, .ez-toc-v2_0_74, div.ez-toc-container-direction {
  background: var(--fiche) !important; border: 1px solid var(--rule-strong) !important;
  border-radius: 2px !important; box-shadow: 4px 4px 0 var(--paper-3) !important;
  padding: 1rem 1.2rem !important;
}
#ez-toc-container .ez-toc-title, .ez-toc-title {
  font-family: var(--serif-display) !important; font-size: 1.15rem !important; color: var(--ink) !important;
}
#ez-toc-container ul li, .ez-toc-list li { font-size: 0.95rem; }
#ez-toc-container ul li::marker { font-family: var(--mono); color: var(--copper); font-size: 0.8em; }
#ez-toc-container a, .ez-toc-list a { color: var(--ink-soft) !important; text-decoration: none; }
#ez-toc-container a:hover, .ez-toc-list a:hover { color: var(--copper) !important; }

/* Complianz : listes de liens sans puces, placeholders caches */
#cmplz-cookiebanner-container ul { list-style: none !important; padding: 0 !important; margin: 0.6rem 0 0 !important; }
#cmplz-cookiebanner-container li { margin: 0 0 0.25rem !important; }
#cmplz-cookiebanner-container li::marker { content: none !important; }
#cmplz-cookiebanner-container .cmplz-link.cmplz-hidden,
#cmplz-cookiebanner-container li:empty { display: none !important; }
#cmplz-cookiebanner-container .cmplz-links a { font-size: 0.85rem; color: var(--chloro-deep) !important; }
#cmplz-cookiebanner-container .cmplz-divider { border-color: var(--rule) !important; }
#cmplz-cookiebanner-container .cmplz-category { background: var(--paper-2) !important; border-radius: 2px; }

/* FAQ ajoutees (wp-block-details) : memes styles que les items natifs dans la liste */
.faq-list .wp-block-details { border: none; box-shadow: none; background: transparent; padding: 0; margin: 0; border-bottom: 1px dotted var(--rule-strong); }
.faq-list .wp-block-details summary { font-family: inherit; }
.faq-list .wp-block-details[open] summary { border-bottom: none; margin-bottom: 0; padding-bottom: 0.95rem; }

/* Related posts (intelly) */
.intelly-related-posts, .irp-related-posts { border-top: 1px dotted var(--rule-strong); margin-top: 2rem; padding-top: 1.4rem; }

/* ============================================================ RESPONSIVE */

@media (max-width: 1400px) {
  .mib-mast-nav a { padding: 0.85rem 0.7rem; font-size: 0.71rem; letter-spacing: 0.08em; gap: 0.45rem; }
}
@media (max-width: 1080px) {
  body.home .content-wrap.kadence-posts-list,
  body.archive .content-wrap.kadence-posts-list,
  body.search .content-wrap.kadence-posts-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .mib-masthead-inner { grid-template-columns: 1fr; padding: 1.6rem var(--gut) 1.2rem; }
  .mib-mast-left, .mib-mast-right { display: none; }
  .mib-bar-route { display: none; }
}
@media (max-width: 680px) {
  body.home .content-wrap.kadence-posts-list,
  body.archive .content-wrap.kadence-posts-list,
  body.search .content-wrap.kadence-posts-list { grid-template-columns: 1fr; }
  .mib-bar-weather { display: none; }
  .mib-foot-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .mib-foot-base { flex-direction: column; gap: 0.3rem; }
  body.single .entry-meta { display: flex; }
  .en-bref__time { margin-left: 0; }
}

/* Figures d articles + video (enrichissement images) */
.mib-fig { margin: 1.6rem 0 2rem; }
.mib-fig img {
  display: block; width: 100%; height: auto;
  background: #fff; padding: 9px; box-sizing: border-box;
  border: 1px solid var(--rule-strong);
  box-shadow: 5px 5px 0 var(--paper-3);
}
.mib-fig figcaption {
  font-family: var(--mono); font-size: var(--t-mini); letter-spacing: 0.05em;
  color: var(--ink-mute); padding-top: 0.55rem;
}
.mib-fig figcaption::before { content: "— "; color: var(--topo); }
.mib-video { margin: 1.4rem 0 2rem; }
.mib-video iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule-strong);
  background: var(--night); display: block;
  box-shadow: 5px 5px 0 var(--paper-3);
}
