/*
 * Approches 2026 — global front-end styles.
 *
 * Mobile-first. Single stylesheet for the homepage draft (header, hero,
 * "notre approche", the 6 (ACT) tiles, billets A.C.T., partners, footer).
 * Design tokens up top; sections below in source order. Reverse-engineered
 * from approches.fr (DNA kept: brand blue #3263ac + the (ACT) wordplay),
 * lightened to a single font (Roboto) and a clean responsive grid.
 */

/* ============================================================= TOKENS == */
:root {
  /* Brand */
  --act-blue:        #3263ac;   /* primary — titles, links, buttons (AA on white) */
  --act-blue-light:  #4db2ec;   /* accent — rules, hovers, the (ACT) highlight */
  --act-blue-dark:   #244a82;   /* hover / depth */
  --accent-alt:      #bc9600;   /* rgb(188,150,0) gold — secondary accent, used sparingly */

  /* Neutrals */
  --ink:    #1a1a1a;
  --text:   #333333;
  --muted:  #6b7280;
  --line:   #e5e7eb;
  --bg:     #ffffff;
  --bg-soft:#f5f7fa;
  --bg-dark:#1f2a44;            /* footer */
  --paper:  #f7f6f3;            /* off-white "broken white" — header band, soft surfaces */

  /* Type */
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-eyebrow: .8125rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.125rem, 1rem + .6vw, 1.375rem);
  --fs-h3:      clamp(1.25rem, 1.1rem + .8vw, 1.6rem);
  --fs-h2:      clamp(1.6rem, 1.3rem + 1.6vw, 2.4rem);
  --fs-h1:      clamp(2rem, 1.5rem + 3.2vw, 3.6rem);

  /* Space (8px base) */
  --sp-1:.5rem; --sp-2:1rem; --sp-3:1.5rem; --sp-4:2rem;
  --sp-5:3rem; --sp-6:4rem; --sp-7:6rem;

  /* Misc */
  --container: 1200px;
  --container-wide: 1440px;
  --radius: 8px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(31, 42, 68, .10);
  --shadow-lg: 0 18px 48px rgba(31, 42, 68, .16);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ============================================================== RESET == */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-dark); /* rubber-band / overscroll canvas (matches footer) — not the map */
  overscroll-behavior: none;        /* kill the extra elastic slide at top/bottom edges */
  overflow-x: clip;                 /* clip the off-canvas mobile drawer (position:fixed escapes body's clip) */
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh; /* sticky footer */
  overflow-x: clip; /* full-bleed elements (separators, heroes) never trigger horizontal scroll */
}
.site-main { flex: 1 0 auto; }

/* HOME only: world-map as a FIXED, viewport-sized layer behind the content.
   `cover` is relative to the viewport; position:fixed keeps it out of the flex
   flow. The home's white blocks float over it (spacers reveal the map — that is
   the home's intended look). */
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg-soft) url('../images/hero-bg.jpg') center / cover no-repeat;
}
/* Every other page: one clean off-white surface defined on the body — nothing
   bleeds through the spacers. Section breaks are explicit elements (styled <hr>). */
body:not(.home) { background: var(--paper); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--act-blue); text-decoration: none; }
a:hover { color: var(--act-blue-dark); }
h1, h2 { font-weight: 700; line-height: 1.15; color: #153b73; margin: 0 0 var(--sp-2); }
h3, h4, h5, h6 { font-weight: 700; line-height: 1.15; color: #194e9c; margin: 0 0 var(--sp-2); }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--sp-2); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--act-blue-light); outline-offset: 2px; }

/* ============================================================ LAYOUT == */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
.container--wide { max-width: var(--container-wide); }
/* Home: opaque white blocks over the map; the top margin is the transparent
   spacer that reveals the map between sections. */
.section { padding-block: var(--sp-6); background: var(--bg); margin-block-start: clamp(64px, 9vw, 110px); }
.section--soft { background: var(--bg-soft); }
/* Every other page: flat surface — sections inherit the body paper, no spacer. */
body:not(.home) .section { background: transparent; margin-block-start: 0; }
.section__head { margin-bottom: var(--sp-4); }
.section__head .eyebrow { margin-bottom: var(--sp-1); }
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--act-blue);
}

/* ============================================================ BUTTONS == */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em;
  font: inherit; font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn--primary { background: var(--act-blue); color: #fff; }
.btn--primary:hover { background: var(--act-blue-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--act-blue); border-color: var(--act-blue); }
.btn--ghost:hover { background: var(--act-blue); color: #fff; transform: translateY(-2px); }
.btn--gold { background: var(--accent-alt); color: #fff; }
.btn--gold:hover { background: #9c7d00; color: #fff; transform: translateY(-2px); }

/* ============================================================= HEADER == */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* Full-width "broken white" band (never pure white). Same everywhere —
     no transparent/pill state. */
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
/* Auto-hide: slides up out of view (toggled by nav.js on scroll-down). */
.site-header.is-hidden { transform: translateY(-100%); }
/* Menu open: kill any header transform so the fixed drawer anchors to the
   viewport (a transformed ancestor would otherwise offset/hide it). */
.nav-open .site-header { transform: none !important; }
/* Logged-in: sit below the WP admin bar (46px on mobile, 32px from 783px up).
   The mobile drawer opens from the header bottom, so offset it too. */
.admin-bar .site-header { top: 46px; }
.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
@media screen and (min-width: 783px) {
  .admin-bar .site-header { top: 32px; }
  .admin-bar .primary-nav { top: calc(var(--header-h) + 32px); }
}
/* Content stays centered at container width inside the full-width band. */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  min-height: var(--header-h);
}
.site-header__logo img { height: 40px; width: auto; }
.site-header__title { font-weight: 700; color: var(--ink); }

/* burger */
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* primary nav — mobile: off-canvas drawer */
.primary-nav {
  position: fixed; inset: var(--header-h) 0 0 auto;
  width: min(86vw, 360px);
  background: #fff;
  border-left: 1px solid var(--line);
  padding: var(--sp-3);
  transform: translateX(100%);
  transition: transform .25s var(--ease);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.primary-nav .menu > li > a { flex: 1 1 auto; min-width: 0; padding: .9em .2em; font-weight: 700; color: var(--ink); }
.primary-nav .submenu-toggle {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--act-blue);
  font: inherit; font-size: 1.4rem; line-height: 1;
}
.primary-nav .submenu-toggle::after { content: "+"; }
.primary-nav .submenu-toggle[aria-expanded="true"]::after { content: "\2013"; }
.primary-nav .sub-menu { flex-basis: 100%; max-height: 0; overflow: hidden; padding-left: var(--sp-2); transition: max-height .3s var(--ease); }
.primary-nav .sub-menu a { display: block; padding: .55em .2em; color: var(--text); font-weight: 500; font-size: .92rem; border-left: 4px solid transparent; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.primary-nav .sub-menu a:hover { color: var(--act-blue); background: var(--bg-soft); border-left-color: var(--act-blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.nav-cta { margin-top: var(--sp-3); }
.nav-cta .btn { width: 100%; justify-content: center; }

/* drawer backdrop */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 20, 35, .4);
  opacity: 0; visibility: hidden; transition: .25s var(--ease);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* =============================================================== HERO == */
/* The world-map background lives on <body> (fixed, cover). The hero is
   transparent and only adds a slight dark gradient — scoped to the hero, so the
   inter-section spacers reveal the raw map. White text over it. */
.hero {
  position: relative;
  padding-block: var(--sp-6);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(12, 16, 24, .55) 0%, rgba(12, 16, 24, .66) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: var(--sp-3); }
.hero__lead { font-size: var(--fs-lead); font-weight: 700; color: #fff; margin-bottom: var(--sp-3); }
.hero__text p { color: rgba(255, 255, 255, .92); }
.hero__themes-intro { font-weight: 700; color: #fff; margin-bottom: var(--sp-1); }
.hero__themes { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; grid-template-columns: 1fr; gap: .3rem 1.5rem; color: rgba(255, 255, 255, .9); }
.hero__themes li { position: relative; padding-left: 1.1em; line-height: 1.5; }
.hero__themes li::before { content: "—"; position: absolute; left: 0; color: rgba(255, 255, 255, .55); }
@media (min-width: 700px) { .hero__themes { grid-template-columns: 1fr 1fr; } }
/* Closing line + single CTA: centered combo. Stacks (2 lines) below 992px;
   text + button share one line on wide desktop. */
.hero__closing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); text-align: center; }
.hero__closing__text { margin: 0; max-width: 600px; font-size: var(--fs-lead); font-style: italic; color: #fff; text-wrap: balance; }
.hero__closing__btn { flex: 0 0 auto; }
@media (min-width: 768px) {
  .hero__closing { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center; gap: var(--sp-3); }
  /* Box hugs the wrapped text (2 lines) so the button sits right next to it. */
  .hero__closing__text { max-width: 34rem; text-align: center; }
}
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hero .btn--ghost:hover { background: #fff; color: var(--act-blue); border-color: #fff; }

/* ============================================================ CTA BAND == */
/* Two-column band (donation + newsletter) — its own section, white background. */
.cta-band { background: var(--bg); padding-block: var(--sp-5); }
.cta-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
/* Each CTA: text + button ALWAYS on one line (text grows, button fixed beside). */
.cta-card { display: flex; flex-direction: row; align-items: center; gap: var(--sp-3); }
.cta-card__text { flex: 1 1 auto; margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.cta-card .btn { flex: 0 0 auto; min-width: 10em; justify-content: center; } /* both buttons same width */
/* Stacked (<1200): light separation between the two CTAs. */
.cta-grid > .cta-card + .cta-card { border-top: 1px solid var(--line); padding-top: var(--sp-4); }
/* 2 columns only from 1200px; the separator becomes a vertical divider. */
@media (min-width: 1200px) {
  .cta-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .cta-grid > .cta-card + .cta-card { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: var(--sp-5); }
}

/* ==================================================== NOTRE APPROCHE == */
.approach__text { max-width: 65ch; }
.approach__text p { color: var(--text); }
.approach__themes { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-block; padding: .4em .9em;
  border: 1.5px solid var(--act-blue); border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--act-blue);
  background: #fff;
}

/* ======================================================= (ACT) TILES == */
.tiles {
  display: grid; gap: var(--sp-2);
  grid-template-columns: 1fr;
}
.tile {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.1) 80%, transparent 100%);
  transition: background .3s var(--ease);
}
.tile__body { position: absolute; left: 0; right: 0; top: 0; z-index: 2; padding: var(--sp-3); }
.tile__label { display: block; font-size: clamp(1.4rem, 1rem + 3.4vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; color: #fff; line-height: 1.05; }
.tile__label .act { color: var(--act-blue-light); }
.tile__desc { display: block; margin-top: .5rem; font-size: 1.05rem; line-height: 1.4; color: rgba(255, 255, 255, .92); }
.tile:hover img { transform: scale(1.06); }
.tile:focus-visible { outline-offset: 4px; }

/* ====================================================== BILLETS / NEWS == */
.news-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* Whole card clickable: the title link is stretched over the card. */
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__media { position: relative; overflow: hidden; flex: 0 0 auto; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: .5rem; }
.card__date { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--act-blue); }
.card__title { font-size: 1.15rem; margin: 0; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--act-blue); }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0; }
.section__foot { margin-top: var(--sp-4); text-align: center; }

/* ============================================================ PARTNERS == */
.partners { text-align: center; }
.partners__grid {
  display: grid; gap: var(--sp-2);
  grid-template-columns: 1fr; /* mobile: 1 par ligne */
  margin-top: var(--sp-4);
}
@media (min-width: 600px) { .partners__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.partner {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--sp-4); min-height: 196px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.partner:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner__logo { max-height: 124px; width: auto; object-fit: contain; }

/* ============================================================== FOOTER == */
.site-footer { background: var(--bg-dark); color: #cdd5e4; }
.site-footer a { color: #cdd5e4; }
.site-footer a:hover { color: #fff; }

/* Scroll-to-top float (shown past 500px via nav.js) */
.to-top {
  position: fixed; right: var(--sp-3); bottom: var(--sp-3); z-index: 40;
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius); background: var(--act-blue); color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease), background-color .15s var(--ease);
}
.to-top.is-visible { opacity: .85; visibility: visible; transform: translateY(0); }
.to-top:hover { opacity: 1; background: var(--act-blue-dark); }
.site-footer__inner { padding-block: var(--sp-6) var(--sp-4); display: grid; gap: var(--sp-4); }
.footer-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: var(--sp-2); }
.footer-brand p { color: #9aa6bd; max-width: 40ch; }
.footer-col h4 { color: #fff; font-size: 1rem; margin: 0 0 var(--sp-2); }
.footer-col li { margin-bottom: .5rem; }
.footer-social { display: flex; gap: .75rem; margin-top: var(--sp-2); }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: background-color .2s var(--ease);
}
.footer-social a:hover { background: var(--act-blue); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* newsletter */
.newsletter form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: var(--sp-2); }
.newsletter input[type="email"] {
  flex: 1 1 220px; min-width: 0;
  padding: .8em 1em; font: inherit;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  background: rgba(255,255,255,.06); color: #fff;
}
.newsletter input::placeholder { color: #8b97ae; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--sp-3);
  font-size: .85rem; color: #8b97ae;
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); justify-content: space-between;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--sp-2); top: var(--sp-2); z-index: 100; background: #fff; padding: .6em 1em; border-radius: var(--radius-sm); }

/* =============================================================== PAGE == */
/* Default hero (no featured image): solid dark band (same as the footer). */
.page-hero { position: relative; padding-block: var(--sp-5); background: var(--bg-dark); color: #fff; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { margin: 0; color: #fff; }
.page-hero__lead { margin: var(--sp-2) 0 0; font-size: var(--fs-lead); color: rgba(255, 255, 255, .85); }
/* Single event meta: date + place on their own lines, with icons. */
.event-meta { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: .4rem; }
.event-meta__row { display: inline-flex; align-items: center; gap: .55em; margin: 0; align-self: flex-start; font-size: .95rem; font-weight: 500; color: #153b73; background: var(--paper); padding: .35em .85em; border-radius: var(--radius-sm); }
.event-meta__row::before { content: ""; width: 1.05em; height: 1.05em; flex: 0 0 auto; background-color: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.event-meta__date::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); }
.event-meta__place::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }

/* Only when a per-page background image is set (Featured Image → --page-bg):
   dark band with white text. */
.page-hero--image { position: relative; color: #fff; padding-block: var(--sp-6); background: var(--bg-dark) center / cover no-repeat; background-image: var(--page-bg); display: flex; flex-direction: column; justify-content: center; min-height: var(--hero-min-height, auto); }
@media (max-width: 600px) { .page-hero--image { background-image: var(--page-bg-mobile, var(--page-bg)); } }
/* Overlay opacity is per-page tunable (--hero-overlay, default 1 = full CSS darkening). */
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: 0; opacity: var(--hero-overlay, 1); background: linear-gradient(160deg, rgba(12, 16, 24, .72) 0%, rgba(12, 16, 24, .9) 100%); }
.page-hero--image .page-hero__title { color: #fff; }
.page-hero--image .page-hero__lead { color: rgba(255, 255, 255, .92); }

/* Content = white blocks on the map, with transparent (map) spacers between. */
.page-content { margin-block-start: 0; background: transparent; padding-block: 0; } /* spacing is handled by the np-block padding */
.entry-content { background: transparent; }
/* Full-width white bands; content re-centered to the container width. */
.np-block { max-width: var(--container); margin-inline: auto; padding: var(--sp-6) var(--sp-4); scroll-margin-top: 100px; }
.np-block > :first-child { margin-top: 0; }
.np-block + .np-block { margin-top: var(--sp-3); }

/* Single post (veille document / billet) */
/* Faint wireframe world map behind every page hero, centred on Africa. */
.page-hero { overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../images/world-wire.svg?v=2") no-repeat 51% 58% / auto 500%;
  opacity: .1;
}
.post-hero__cats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 var(--sp-2); }
.post-hero__cat {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  padding: .25em .7em; border-radius: 3px; transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.post-hero__cat:hover { background: #fff; color: var(--act-blue); border-color: #fff; }
.post-hero__cat--type { background: var(--act-blue); border-color: var(--act-blue); }
.post-hero__cat--type:hover { background: var(--act-blue-dark); border-color: var(--act-blue-dark); color: #fff; }
.post-hero__meta { margin: var(--sp-2) 0 0; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.post-hero__meta .post-hero__sep { margin: 0 .4em; opacity: .6; }
.post-hero__author, .post-hero__date { display: inline-flex; align-items: center; gap: .4em; }
.post-hero__author::before, .post-hero__date::before {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.post-hero__author::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.post-hero__date::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/%3E%3C/svg%3E"); }
.single-cover { margin: 0 0 var(--sp-4); text-align: center; }
.single-cover img { display: inline-block; width: auto; max-width: 100%; max-height: 460px; border-radius: var(--radius); }
.single-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-5); }
.single-tag { font-size: .85rem; color: var(--act-blue); background: rgba(50, 99, 172, .08); padding: .2em .6em; border-radius: var(--radius-sm); }
.single-tag:hover { background: rgba(50, 99, 172, .16); }
.single-back { margin-top: var(--sp-4); }
.single-back a { color: var(--act-blue); font-weight: 600; }

/* Core button block → brand button. Scoped under .entry-content so it beats
   `.entry-content a` (which would otherwise force the link colour + underline). */
.entry-content .wp-block-button__link {
  display: inline-block; background: var(--act-blue); color: #fff;
  padding: .7em 1.5em; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
  transition: background-color .15s var(--ease);
}
.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus { background: var(--act-blue-dark); color: #fff; text-decoration: none; }
.entry-content .wp-block-button__link::after { content: none; }
.wp-block-buttons { margin-top: var(--sp-4); }

/* Rich Gutenberg content (columns / images / captions) */
.entry-content .wp-block-columns { margin-block: var(--sp-4); gap: var(--sp-4); align-items: flex-start; }
.entry-content .wp-block-column { min-width: 0; }
.entry-content figure { margin: 0; }
.entry-content .wp-block-image { margin-block: var(--sp-3); }
.entry-content .wp-block-image img { margin: 0; height: auto; max-width: 100%; border-radius: var(--radius); }
.entry-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .5rem; }

/* Audio block (podcast) — mise en valeur : encart de marque + lecteur pleine largeur. */
.entry-content .wp-block-audio {
  margin: var(--sp-4) 0; padding: var(--sp-3);
  background: rgba(50, 99, 172, .06); border: 1px solid rgba(50, 99, 172, .2);
  border-left: 4px solid var(--act-blue); border-radius: var(--radius);
}
.entry-content .wp-block-audio::before { content: "🎧 Écouter l’épisode"; display: block; font-weight: 700; color: var(--act-blue); margin-bottom: var(--sp-2); }
.entry-content .wp-block-audio audio { width: 100%; display: block; }

/* Mentions légales : titres plus compacts, sections aérées, titre collé à son texte,
   padding-top minimal (le 1er h2 est dans .wp-block-group__inner-container → reset en descendant). */
.page-mentions-legales .np-block { padding-top: var(--sp-6); }
.page-mentions-legales .entry-content h2 { font-size: 1.4rem; margin: var(--sp-6) 0 var(--sp-1); }
.page-mentions-legales .np-block h2:first-child { margin-top: 0; }

.entry-content h2 { font-size: var(--fs-h2); margin: 0 0 var(--sp-2); }
.entry-content h3 { font-size: var(--fs-h3); margin: var(--sp-4) 0 var(--sp-1); }
.entry-content p { margin: 0 0 var(--sp-2); }
.entry-content ul { margin: 0 0 var(--sp-3); padding-left: 1.25em; list-style: disc; }
.entry-content li { margin-bottom: .4rem; }
.entry-content a { color: var(--act-blue); text-decoration: underline; }
.entry-content a[target="_blank"]::after {
  content: ""; display: inline-block; width: .72em; height: .72em; margin-left: .25em; vertical-align: -.06em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7zM19 19H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7zM19 19H5V5h7V3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Reference/source links ("Lien vers …") upgraded to gold CTA buttons. */
.entry-content a.content-cta {
  display: inline-flex; align-items: center; margin: var(--sp-1) 0;
  padding: .5em 1.1em; background: var(--accent-alt); color: #fff;
  font-weight: 700; text-decoration: none; line-height: 1.25;
  border-radius: var(--radius);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.entry-content a.content-cta:hover { background: #9e7e00; color: #fff; transform: translateY(-1px); }

/* Gutenberg File block: download button in brand gold (matches the CTA). */
.entry-content a.wp-block-file__button {
  display: inline-block; margin: 0; padding: .5em 1.1em;
  background: var(--accent-alt); color: #fff; opacity: 1;
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.entry-content a.wp-block-file__button:hover,
.entry-content a.wp-block-file__button:focus { background: #9e7e00; color: #fff; opacity: 1; transform: translateY(-1px); }

.entry-content img { border-radius: var(--radius); margin: var(--sp-3) auto; }
/* Agenda / podcast single: show the (darkened-in-hero) cover in full at the top. */
.entry-content .cover-inline { display: block; width: 100%; max-width: 800px; height: auto; margin: 0 auto var(--sp-4); border-radius: var(--radius); }

/* --- Contact page: native form + info panel --- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.contact-heading { margin: 0 0 var(--sp-3); font-size: 1.3rem; }
.contact-field { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 var(--sp-3); }
.contact-field label { font-weight: 600; font-size: .95rem; }
.contact-field input, .contact-field textarea {
  width: 100%; font: inherit; padding: .6em .8em; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--act-blue); box-shadow: 0 0 0 3px rgba(50, 99, 172, .15); }
.contact-field textarea { resize: vertical; min-height: 150px; }
.contact-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { margin: 0; }
.contact-notice { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); margin: 0 0 var(--sp-3); }
.contact-notice--ok { background: rgba(50, 99, 172, .1); color: var(--act-blue-dark); border: 1px solid var(--act-blue); }
.contact-notice--err { background: #fdecec; color: #a12626; border: 1px solid #e6b3b3; }
.contact-notice p { margin: .2em 0; }
.contact-side { display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-aside .contact-heading { padding-bottom: .5rem; border-bottom: 1px solid var(--act-blue-dark); }
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); }
.contact-aside--plain { background: #fff; }
.contact-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-info li { line-height: 1.5; }
.contact-info__label { display: block; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .2em; }
.contact-info a { color: var(--act-blue); }
.social-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.social-mini__link { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; transition: color .15s var(--ease); }
.social-mini__icon { flex: 0 0 auto; width: 1.35em; height: 1.35em; background-color: var(--brand); -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.social-mini__link:hover { color: var(--brand); }

/* --- Newsletter page --- */
.nl-card { max-width: 620px; margin: 0 auto; text-align: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5) var(--sp-4); }
.nl-intro { margin: 0 0 var(--sp-3); font-size: 1.1rem; color: var(--ink); }
.nl-form { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.nl-form input[type="email"] { flex: 1 1 260px; min-width: 0; font: inherit; padding: .65em .9em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.nl-form input[type="email"]:focus { outline: none; border-color: var(--act-blue); box-shadow: 0 0 0 3px rgba(50, 99, 172, .15); }
.nl-form .btn { flex: 0 0 auto; }
.nl-note { margin: var(--sp-3) 0 0; font-size: .85rem; color: var(--muted); }
/* Section break = an explicit, chosen element (Gutenberg "Séparateur" / <hr>),
   never a background showing through a gap. Default = short brand rule; the
   "wide" block style = full hairline. */
/* Section separator = Gutenberg "Séparateur" block, rendered like the prod row
   spacer: a full-bleed (edge-to-edge) teal band, 100px tall. */
.entry-content > hr,
.entry-content > .wp-block-separator,
.act-sep {
  border: 0; opacity: 1;
  height: var(--sep-h, 100px);
  width: 100vw; max-width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  background-color: var(--bg-dark);
}
@media (min-width: 992px) { .entry-content { --sep-h: 70px; } }

/* ============================================================= AGENDA == */
/* Month navigator — pills "month (count)" that smooth-scroll to the month anchor. */
.agenda-months { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-5); }
.agenda-months__pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .4em .75em; border: 1px solid rgba(50, 99, 172, .3); border-radius: var(--radius-sm);
  color: var(--act-blue); font-weight: 700; font-size: .9rem; text-transform: capitalize;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.agenda-months__pill:hover { background: var(--act-blue); color: #fff; border-color: var(--act-blue); }
.agenda-months__count {
  min-width: 1.5em; padding: 0 .35em; text-align: center; border-radius: 999px;
  background: rgba(50, 99, 172, .12); color: var(--act-blue); font-size: .78em; font-weight: 700; line-height: 1.6;
}
.agenda-months__pill:hover .agenda-months__count { background: rgba(255, 255, 255, .25); color: #fff; }
/* current calendar month: filled pill so it stands out */
.agenda-months__pill.is-current { background: var(--act-blue); color: #fff; border-color: var(--act-blue); }
.agenda-months__pill.is-current .agenda-months__count { background: rgba(255, 255, 255, .25); color: #fff; }
.agenda-back { display: inline-flex; margin-bottom: var(--sp-4); padding: .45em .95em; font-size: .9rem; }

.agenda-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }

/* Home flux slider (agenda / veille) — horizontal scroll, ~4 cards on desktop. */
.home-slider { display: flex; gap: var(--sp-3); overflow-x: auto; padding: 8px 2px var(--sp-3); scrollbar-width: thin; overscroll-behavior-x: contain; }
.home-slider > * { flex: 0 0 80%; }
@media (min-width: 700px) { .home-slider > * { flex: 0 0 46%; } }
@media (min-width: 992px) { .home-slider > * { flex: 0 0 calc((100% - 3 * var(--sp-3)) / 4); } }
/* Home veille cards: taller (more vertical) media. */
.home-slider .doc-card__media { aspect-ratio: 3 / 4; }

/* Slider wrapper (built by nav.js): edge fades + arrows when scrollable. */
.slider { position: relative; }
.slider::before, .slider::after { content: ""; position: absolute; top: 0; bottom: var(--sp-3); width: 52px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease); }
.slider::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.slider::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.slider.can-prev::before, .slider.can-next::after { opacity: 1; }
.slider__nav {
  position: absolute; top: calc(50% - 24px); z-index: 3; width: 40px; height: 40px; padding: 0;
  display: none; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #fff; color: var(--act-blue); box-shadow: var(--shadow-lg); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.slider__nav:hover { background: var(--act-blue); color: #fff; }
.slider__nav--prev { left: -6px; }
.slider__nav--next { right: -6px; }
@media (min-width: 992px) {
  .slider.can-prev .slider__nav--prev,
  .slider.can-next .slider__nav--next { display: inline-flex; }
}
.section--soft .slider::before { background: linear-gradient(90deg, var(--bg-soft), transparent); }
.section--soft .slider::after { background: linear-gradient(-90deg, var(--bg-soft), transparent); }

/* Month title bar: month name in front, big diaphanous year behind. */
.agenda-month {
  grid-column: 1 / -1; position: relative;
  margin: 60px 0 15px;
  scroll-margin-top: 90px;
  text-align: right; color: var(--act-blue); border-bottom: 2px solid var(--act-blue);
}
.agenda-month:first-child { margin-top: 0; }
.agenda-month__name { position: relative; z-index: 1; text-transform: uppercase; font-size: 28px; line-height: 32px; font-weight: 600; }
.agenda-month__year { position: absolute; right: 0; z-index: 0; text-transform: uppercase; font-size: 72px; line-height: 20px; font-weight: 600; opacity: .1; pointer-events: none; }

/* Event card */
.ev-card { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(31, 42, 68, .30); }
.ev-card__media { position: absolute; inset: 0; background: #cdd3da center / cover no-repeat; transition: transform .4s var(--ease); }
.ev-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.92) 100%); opacity: .9; transition: opacity .3s var(--ease); }
.ev-card:hover .ev-card__media { transform: scale(1.05); }
.ev-card:hover::after { opacity: 1; }
.ev-card__date { position: absolute; top: 0; right: 0; z-index: 2; background: #fff; color: var(--ink); padding: .5rem .9rem; text-align: center; border-bottom-left-radius: var(--radius); }
.ev-card__day { display: block; text-transform: uppercase; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.ev-card__num { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1; }
.ev-card__month { display: block; text-transform: uppercase; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.ev-card__badge { position: absolute; top: 0; left: 0; z-index: 2; background: var(--act-blue); color: #fff; padding: .45rem .9rem; font-size: 1.35rem; font-weight: 700; text-transform: uppercase; line-height: 1; border-bottom-right-radius: var(--radius); }
.ev-card__badge span { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .04em; }
.ev-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--sp-3); color: #fff; }
.ev-card__title { color: #fff; font-size: 1.15rem; line-height: 1.2; margin: 0; }
.ev-card__meta { display: block; margin-top: .35rem; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.agenda-empty { color: var(--ink); text-align: center; padding-block: var(--sp-5); }

/* Year navigation (past-year archives) */
.agenda-years { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid rgba(31, 42, 68, .12); text-align: center; }
.agenda-years__label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin-bottom: var(--sp-2); }
.agenda-years__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.agenda-years__item { display: inline-block; padding: .4rem .9rem; border-radius: var(--radius); font-weight: 700; color: var(--act-blue); border: 1px solid rgba(50, 99, 172, .3); text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease); }
a.agenda-years__item:hover { background: var(--act-blue); color: #fff; }
.agenda-years__item.is-active { background: var(--act-blue); color: #fff; border-color: var(--act-blue); }

/* ====================================================== VEILLE DOCUMENTAIRE == */
/* --- Veille search: hero bar + facet chips --- */
.veille-search { margin-bottom: var(--sp-5); }

/* Hero search bar: icon + input + submit, one rounded field. */
.veille-search__bar {
  display: flex; align-items: center; gap: .3rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .2rem .2rem .2rem .9rem; max-width: 500px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.veille-search__bar:focus-within { border-color: var(--act-blue); box-shadow: 0 0 0 3px rgba(50, 99, 172, .15); }
.veille-search__icon { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); }
.veille-search__bar input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit;
  font-size: .95rem; padding: .45em .2em; color: var(--ink);
}
.veille-search__bar input:focus { outline: none; }
.veille-search__btn { flex: 0 0 auto; border-radius: 999px; padding: .5em 1.1em; font-size: .9rem; border-width: 0; }

/* Facets as wrapping chips, each group led by its own instruction heading. */
.veille-facets { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-4); }
.veille-facet { margin: 0; min-width: 0; display: block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); font-size: .92rem; }
.veille-facet__label { display: inline-block; margin: 0 0 1rem; padding: .45em .9em; font-weight: 400; font-size: .82rem; color: var(--act-blue-dark); background: rgba(50, 99, 172, .1); border-radius: var(--radius); }
.veille-facet__label strong { font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.veille-checks { display: flex; flex-wrap: wrap; gap: .5rem; }

/* chip = the label pill; the real checkbox is visually hidden but focusable. */
.veille-check {
  position: relative;
  display: inline-flex; align-items: center; cursor: pointer;
  font-weight: 501; text-transform: uppercase; font-size: .8rem;
  line-height: 1; white-space: nowrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55em .95em;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.veille-check:hover { border-color: var(--act-blue); }
.veille-check input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.veille-check:has(input:focus-visible) { outline: 2px solid var(--act-blue); outline-offset: 2px; }
.veille-check span { display: inline-flex; align-items: center; gap: .4rem; }
.veille-check em { color: var(--muted); font-style: normal; font-size: .82em; }
/* active chip: filled, count softened, × removable affordance. */
.veille-check:has(input:checked) { background: var(--act-blue); border-color: var(--act-blue); color: #fff; font-weight: 600; }
.veille-check:has(input:checked) em { color: rgba(255, 255, 255, .75); }
.veille-check:has(input:checked) span::after { content: "×"; margin-left: .1em; font-size: 1.15em; line-height: 1; opacity: .85; }
.veille-reset {
  display: inline-flex; align-items: center; gap: .35em; margin-top: var(--sp-3);
  padding: .45em .95em; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer;
  color: #fff; background: var(--accent-alt); border: 1px solid var(--accent-alt); border-radius: 999px;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.veille-reset:hover { color: #fff; background: #9e7e00; border-color: #9e7e00; transform: translateY(-1px); }
.veille-reset[hidden] { display: none; }
.veille-reset span { font-size: 1.1em; line-height: 1; }
.veille-actions-bottom { text-align: center; margin-top: var(--sp-4); }

.veille-results__count { color: var(--muted); font-weight: 600; font-size: 1.35rem; margin-bottom: var(--sp-3); }
.veille-results__count strong { color: var(--ink); }
.veille-results__list { transition: opacity .15s var(--ease); }
.veille-results__list.is-loading { opacity: .45; pointer-events: none; }
.veille-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.doc-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.doc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
/* Whole card clickable: the title link is stretched over the card. */
.doc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.doc-card__media { display: block; position: relative; overflow: hidden; flex: 0 0 auto; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.doc-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc-card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: .45rem; }
/* Badges sit above the card's stretched link so they route to the veille. */
.doc-card__types { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .3rem; }
.doc-card__type, .doc-card__theme { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; padding: .15em .5em; border-radius: 3px; text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.doc-card__type { font-weight: 700; color: var(--act-blue); background: rgba(50, 99, 172, .1); }
.doc-card__type:hover { background: var(--act-blue); color: #fff; }
.doc-card__theme { font-weight: 600; color: var(--muted); background: transparent; border: 1px solid var(--line); }
.doc-card__theme:hover { color: var(--act-blue); border-color: var(--act-blue); }
.doc-card__title { font-size: 1.05rem; line-height: 1.25; margin: 0; }
.doc-card__title a { color: var(--ink); }
.doc-card__title a:hover { color: var(--act-blue); }
.doc-card__excerpt { font-size: .9rem; color: var(--text); margin: 0; }
.veille-empty { padding: var(--sp-5); text-align: center; color: var(--muted); }

/* Suivez-nous — encarts réseaux */
.social-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.social-card { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: var(--sp-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.social-card:hover { border-color: var(--brand, var(--act-blue)); box-shadow: var(--shadow); transform: translateY(-3px); }
.social-card__icon { width: 40px; height: 40px; flex: 0 0 auto; background-color: var(--brand, var(--act-blue)); -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; }
.social-card__name { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.social-card__desc { color: var(--text); font-size: .95rem; }
@media (min-width: 700px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.veille-pagination,
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: var(--sp-5); }
.pagination { margin-top: var(--sp-5); }
.veille-pagination .page-numbers,
.pagination .page-numbers { display: inline-flex; align-items: center; padding: .45em .8em; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--act-blue); text-decoration: none; }
.veille-pagination a.page-numbers:hover,
.pagination a.page-numbers:hover { background: var(--bg-soft); }
.veille-pagination .page-numbers.current,
.pagination .page-numbers.current { background: var(--act-blue); color: #fff; border-color: var(--act-blue); }
.veille-pagination .page-numbers.dots,
.pagination .page-numbers.dots { border: 0; padding-inline: .3em; }
@media (max-width: 600px) {
  .veille-pagination, .pagination .nav-links { gap: .3rem; }
  .veille-pagination .page-numbers,
  .pagination .page-numbers { padding: .3em .55em; font-size: .82rem; }
}
@media (min-width: 600px) { .veille-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .veille-grid { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 600px) { .agenda-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .agenda-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }

/* ========================================================= BREAKPOINTS == */
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .container { padding-inline: var(--sp-4); }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  /* partners: 7 equal cards (25% each) — 3 centered on row 1, 4 on row 2 (24-col grid) */
  .partners__grid { grid-template-columns: repeat(24, 1fr); }
  .partner { grid-column: span 6; }
  .partner:nth-child(1) { grid-column: 4 / span 6; }
  /* tiles (desktop): title at top; on hover the title slides up a touch and the
     legend slides in below it — same .3s speed */
  .tile__label { transition: transform .3s var(--ease); }
  .tile__desc { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .tile:hover .tile__label, .tile:focus-within .tile__label { transform: translateY(-4px); }
  .tile:hover .tile__desc, .tile:focus-within .tile__desc { opacity: 1; transform: translateY(0); }
  .tile:hover::after, .tile:focus-within::after { background: linear-gradient(180deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .6) 55%, rgba(0, 0, 0, .15) 100%); }
  .hero { padding-block: var(--sp-5) var(--sp-6); }

  /* desktop nav: horizontal, no drawer/burger */
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
  .site-header__inner { gap: var(--sp-4); }
  .primary-nav {
    position: static; width: auto; transform: none;
    background: none; border: 0; padding: 0; box-shadow: none; overflow: visible;
    display: flex; align-items: center; gap: var(--sp-3); flex: 1;
  }
  .primary-nav .menu { display: flex; align-items: center; gap: var(--sp-1); }
  .primary-nav .menu > li { border: 0; position: relative; display: block; }
  .primary-nav .submenu-toggle { display: none; }
  .primary-nav .menu > li > a { padding: .6em .7em; font-size: 1rem; border-radius: 6px; transition: background-color .15s var(--ease), color .15s var(--ease); }
  /* hover = faint brand-blue wash on the off-white band */
  .primary-nav .menu > li:hover > a,
  .primary-nav .menu > li:focus-within > a { background: rgba(50, 99, 172, .08); }
  /* chevron — clearly visible, follows the link colour */
  /* arrowhead chevron (CSS borders) — bigger, follows the link colour */
  .primary-nav .menu-item-has-children > a::after {
    content: ""; display: inline-block;
    width: .55em; height: .55em; margin-left: .5em;
    border: solid currentColor; border-width: 0 2px 2px 0;
    transform: rotate(45deg); vertical-align: .2em; opacity: .9;
  }
  .primary-nav .menu > li > a { color: var(--ink); }
  /* desktop dropdown */
  .primary-nav .sub-menu {
    display: block; position: absolute; top: calc(100% + 6px); left: 0;
    max-height: none; overflow: visible;
    min-width: 220px; width: max-content; max-width: min(92vw, 380px); padding: var(--sp-1) 0;
    background: #fff; border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  }
  /* invisible bridge so the cursor can cross the gap without losing hover */
  .primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .primary-nav .sub-menu.sub-menu--right { left: auto; right: 0; } /* flipped by nav.js to stay in the viewport */
  .primary-nav .menu > li:hover .sub-menu,
  .primary-nav .menu > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .primary-nav .sub-menu a { padding: .55em var(--sp-2); white-space: nowrap; }
  .nav-cta { margin: 0; }
  .nav-cta .btn { width: auto; }
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
    gap: var(--sp-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; animation: none !important; transition: none !important; }
}
