/* PACE v2.3.9 — menus et bouton don en bleu,
   dropdown sans flèche ouvert au survol. Chargé en dernier. */
:root { --pace-ui-blue: #212863; --pace-ui-blue-dark: #171d49; --pace-ui-blue-soft: rgba(33, 40, 99, .08); }

/* ===== Menus : vert -> bleu ===== */
html body .pace-theme-header { border-bottom-color: rgba(33, 40, 99, .14) !important; }
html body .pace-theme-nav a,
html body .pace-theme-nav a:link,
html body .pace-theme-nav a:visited,
html body .pace-theme-nav a:focus,
html body .pace-nav-dropdown summary,
html body .pace-theme-header .pace-nav-dropdown > summary,
html body .pace-nav-dropdown-menu a,
html body .pace-nav-dropdown-menu a:link,
html body .pace-nav-dropdown-menu a:visited,
html body .pace-theme-header .pace-nav-dropdown-menu a { color: var(--pace-ui-blue) !important; }
html body .pace-theme-nav a:hover,
html body .pace-theme-nav a:active,
html body .pace-nav-dropdown[open] > summary,
html body .pace-nav-dropdown summary:hover,
html body .pace-nav-dropdown summary:active,
html body .pace-theme-header .pace-nav-dropdown > summary:hover { background: var(--pace-ui-blue-soft) !important; color: var(--pace-ui-blue) !important; }
html body .pace-nav-dropdown-menu a:hover,
html body .pace-nav-dropdown-menu a:active { background: #eef0f8 !important; border-color: #d5d9ee !important; color: var(--pace-ui-blue) !important; }
html body .pace-theme-nav-home::after { background: var(--pace-ui-blue) !important; }
html body .pace-nav-icon,
html body .pace-nav-dropdown-menu .pace-nav-dropdown-link > .pace-nav-icon { background: #eef0f8 !important; color: var(--pace-ui-blue) !important; }
html body .pace-nav-dropdown-label { color: #5f6590 !important; }
html body .pace-theme-nav a:focus-visible,
html body .pace-nav-dropdown summary:focus-visible,
html body .pace-header-actions a:focus-visible { outline-color: var(--pace-ui-blue) !important; }

/* ===== Bouton « Faire un don » : bleu ===== */
html body .pace-header-actions .pace-donation,
html body .pace-header-actions .pace-donation:link,
html body .pace-header-actions .pace-donation:visited { background: var(--pace-ui-blue) !important; color: #fff !important; }
html body .pace-header-actions .pace-donation:hover,
html body .pace-header-actions .pace-donation:active { background: var(--pace-ui-blue-dark) !important; color: #fff !important; }

/* ===== Dropdown : aucune flèche ===== */
html body .pace-nav-dropdown summary::after,
html body .pace-nav-dropdown[open] > summary::after { content: none !important; display: none !important; }
html body .pace-nav-dropdown summary::-webkit-details-marker { display: none !important; }
html body .pace-nav-arrow,
html body .pace-nav-dropdown-menu .pace-nav-dropdown-link > .pace-nav-arrow { display: none !important; }
html body .pace-nav-dropdown-menu .pace-nav-dropdown-link { grid-template-columns: 30px minmax(0, 1fr) !important; }
html body .pace-nav-dropdown-menu .pace-nav-dropdown-link:not(:has(.pace-nav-icon)) { grid-template-columns: minmax(0, 1fr) !important; }

/* Pont invisible : le menu ne se ferme pas quand la souris traverse l'espace sous « Stratégie » */
@media (hover: hover) and (min-width: 901px) {
  html body .pace-header-desktop .pace-nav-dropdown-menu::before { content: ""; height: 14px; left: 0; position: absolute; right: 0; top: -14px; }
}

/* ===== Page « Le Président » : cercle de la photo en vert, bande du texte en bleu ===== */
body.pace-page:is(.pace-page-mot-president, .pace-page-equipe) .president-photo {
  border-color: #0d5c2f !important;
  box-shadow: 0 0 0 4px rgba(13, 92, 47, .14), 0 16px 38px rgba(33, 40, 99, .2) !important;
}
body.pace-page:is(.pace-page-mot-president, .pace-page-equipe) .president-copy > p:first-child { border-left-color: var(--pace-ui-blue) !important; }

/* ===== Page « Équipe » : photo du directeur exécutif identique aux autres (vert, même taille) ===== */
body.pace-page.pace-page-equipe .team-card-lead .team-photo {
  aspect-ratio: 1 / 1 !important;
  border: 3px solid #0d5c2f !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 4px rgba(13, 92, 47, .1), 0 12px 26px rgba(33, 40, 99, .14) !important;
  flex: none !important;
  margin: 24px auto 0 !important;
  width: min(74%, 190px) !important;
}
body.pace-page.pace-page-equipe .team-card-lead .team-photo img { border-radius: 50% !important; object-position: center 12% !important; }

/* ===== Menu Réalisations : pôles, et leurs réalisations au survol ===== */
html body .pace-nav-pole { position: relative; }
html body .pace-nav-flyout {
  background: #fff;
  border: 1px solid #dfe2f1;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(33, 40, 99, .18);
  display: none;
  gap: 4px;
  max-width: 380px;
  min-width: 290px;
  padding: 10px;
  position: absolute;
  right: calc(100% + 6px);
  top: 0;
  z-index: 70;
}
html body .pace-nav-flyout::after { bottom: 0; content: ""; position: absolute; right: -14px; top: 0; width: 14px; }
html body .pace-nav-pole:hover > .pace-nav-flyout,
html body .pace-nav-pole:focus-within > .pace-nav-flyout { display: grid; }
html body .pace-nav-flyout a {
  border: 1px solid transparent;
  border-radius: 10px;
  display: block;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 9px 12px;
  text-decoration: none;
}
html body .pace-nav-flyout-empty { color: #5f6590; font-size: .84rem; font-style: italic; margin: 0; padding: 9px 12px; }
html body .pace-nav-pole:hover > .pace-nav-dropdown-link { background: #eef0f8 !important; border-color: #d5d9ee !important; }
/* Téléphone et tablette : réalisations listées sous le pôle */
html body .pace-responsive-menu-panel .pace-nav-flyout {
  background: transparent; border: 0; border-left: 2px solid #d5d9ee; border-radius: 0; box-shadow: none;
  display: grid; margin: 2px 0 8px 22px; max-width: none; min-width: 0; padding: 0 0 0 8px; position: static;
}
html body .pace-responsive-menu-panel .pace-nav-flyout::after { display: none; }

/* ===== Pages stratégie : statistiques centrées quel que soit le nombre de cartes ===== */
html body.pace-page .pi-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ===== Filtre des réalisations par pôle ===== */
html body .pace-realisations-filter { margin-bottom: 28px; }
html body .pace-realisations-filter a[aria-current="page"] { background: var(--pace-ui-blue) !important; color: #fff !important; }
html body .pace-realisations-empty { text-align: center; }

/* ===== v2.4.5 — Menu déroulant : le texte reste dans le cadre ===== */
html body .pace-nav-dropdown-menu { box-sizing: border-box; min-width: 0 !important; width: min(440px, calc(100vw - 32px)) !important; }
html body .pace-nav-dropdown-menu a,
html body .pace-nav-flyout a,
html body .pace-theme-nav .pace-nav-dropdown-menu a { overflow-wrap: anywhere; white-space: normal !important; }
html body .pace-nav-dropdown-menu .pace-nav-dropdown-link { line-height: 1.35; min-width: 0; }
html body .pace-nav-dropdown-menu .pace-nav-dropdown-link > span:not(.pace-nav-icon) { min-width: 0; white-space: normal; }
html body .pace-nav-dropdown-menu .pace-nav-icon { align-self: start; flex: none; }
html body .pace-nav-pole { min-width: 0; }
html body .pace-nav-flyout { box-sizing: border-box; max-width: min(380px, calc(100vw - 32px)); width: max-content; }

/* ===== v2.4.6 — Toutes les cartes comme les cartes de pôle de l'accueil ===== */
html body .pace-home-card,
html body .page-image-card,
html body .page-news-card,
html body .page-list-card,
html body .page-value,
html body .page-map-card,
html body .contact-card,
html body .about-card,
html body .recruitment-post,
html body .recruitment-example {
  background: #fff !important;
  border: 1px solid rgba(221, 232, 224, .9) !important;
  border-top: 4px solid var(--pace-ui-blue) !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 34px rgba(23, 60, 53, .07) !important;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, border-color .3s ease !important;
}
html body .pace-home-card:hover,
html body .page-image-card:hover,
html body .page-news-card:hover,
html body .page-list-card:hover,
html body .page-value:hover,
html body .page-map-card:hover,
html body .contact-card:hover,
html body .about-card:hover,
html body .recruitment-post:hover,
html body .recruitment-example:hover {
  border-color: rgba(33, 40, 99, .35) !important;
  border-top-color: var(--pace-ui-blue) !important;
  box-shadow: 0 25px 60px rgba(33, 40, 99, .18) !important;
  transform: translateY(-6px) !important;
}
html body .page-image-card > img,
html body .page-news-card > img,
html body .pace-home-card img { transition: transform .65s cubic-bezier(.2, .8, .2, 1) !important; }
html body .page-image-card:hover > img,
html body .page-news-card:hover > img,
html body .pace-home-card:hover img { transform: scale(1.045) !important; }
html body .page-image-card h3,
html body .page-news-card h3,
html body .page-list-card h3,
html body .page-value h3,
html body .pace-home-card h3 { color: var(--pace-ui-blue) !important; }
/* liens d'action : texte simple en gras, sans bouton */
html body .page-card-action,
html body .page-text-link,
html body .pace-home-card span {
  background: none !important;
  border-radius: 0 !important;
  color: var(--pace-ui-blue) !important;
  display: inline-flex;
  font-size: .92rem;
  font-weight: 750;
  gap: 4px;
  padding: 0 !important;
  transition: gap .2s ease;
}
html body .page-image-card:hover .page-card-action,
html body .page-news-card:hover .page-card-action,
html body .page-list-card:hover .page-text-link,
html body .page-card-action:hover,
html body .page-text-link:hover,
html body .pace-home-card:hover span { background: none !important; color: var(--pace-ui-blue) !important; gap: 8px; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html body .pace-home-card,
html body .page-image-card,
html body .page-news-card,
html body .page-list-card,
html body .page-value,
html body .page-map-card,
html body .contact-card,
html body .about-card,
html body .recruitment-post,
html body .recruitment-example { transition: none !important; }
  html body .pace-home-card:hover,
html body .page-image-card:hover,
html body .page-news-card:hover,
html body .page-list-card:hover,
html body .page-value:hover,
html body .page-map-card:hover,
html body .contact-card:hover,
html body .about-card:hover,
html body .recruitment-post:hover,
html body .recruitment-example:hover { transform: none !important; }
}

/* ===== v2.4.7 — Le mot du président, intégré à la page Notre équipe ===== */
html body .president-embed { margin-bottom: 72px; margin-top: 0; scroll-margin-top: 110px; }
html body .president-embed > .page-section-heading { margin-bottom: 24px; }

/* ===== v2.4.9 — Page Notre équipe : le nom du président visible dès l'arrivée ===== */
body.pace-page.pace-page-equipe .site-page-hero { margin-bottom: 24px !important; min-height: clamp(200px, 18vw, 250px) !important; }
body.pace-page.pace-page-equipe .site-page-shell { padding-top: 24px; }
body.pace-page.pace-page-equipe .president-embed { margin-bottom: 72px; }
body.pace-page.pace-page-equipe .president-section { align-items: center; gap: clamp(32px, 5vw, 64px); margin-bottom: 48px; }
body.pace-page.pace-page-equipe .president-figure { padding: 0; }
body.pace-page.pace-page-equipe .president-photo { aspect-ratio: 1 / 1 !important; border-radius: 50% !important; max-width: 240px !important; }
body.pace-page.pace-page-equipe .president-figure figcaption { margin-top: 14px; text-align: center; }
body.pace-page.pace-page-equipe .president-copy { height: min(58vh, 520px); }
body.pace-page.pace-page-equipe .team-section { margin-top: 8px; }
body.pace-page.pace-page-equipe .president-quote { margin-bottom: 0; margin-top: 0; }

/* ===== Téléphone et tablette (v2.18.7) : logo à gauche, puis icônes don, contact et menu hamburger à droite, sur une seule ligne ===== */
@media (max-width: 1179px) {
  html body .pace-theme-header { align-items: center !important; column-gap: 4px !important; display: grid !important; grid-template-areas: "brand actions menu" !important; grid-template-columns: minmax(0, 1fr) auto auto !important; padding: 8px 12px !important; row-gap: 0 !important; }
  html body .pace-theme-header .pace-theme-brand { grid-area: brand !important; min-width: 0; }
  html body .pace-theme-header .pace-theme-brand img { height: auto !important; max-height: 44px !important; max-width: 150px !important; width: auto !important; }
  html body .pace-theme-header .pace-header-actions { display: flex !important; gap: 2px !important; grid-area: actions !important; }
  html body .pace-theme-header .pace-responsive-menu { grid-area: menu !important; width: auto !important; }
  html body .pace-theme-header .pace-header-actions .pace-donation,
  html body .pace-theme-header .pace-header-actions .pace-donation:link,
  html body .pace-theme-header .pace-header-actions .pace-donation:visited,
  html body .pace-theme-header .pace-header-actions .pace-donation:hover,
  html body .pace-theme-header .pace-header-actions .pace-donation:active,
  html body .pace-theme-header .pace-header-actions .pace-donation:focus,
  html body .pace-theme-header .pace-header-actions .pace-contact,
  html body .pace-theme-header .pace-header-actions .pace-contact:link,
  html body .pace-theme-header .pace-header-actions .pace-contact:visited,
  html body .pace-theme-header .pace-header-actions .pace-contact:hover,
  html body .pace-theme-header .pace-header-actions .pace-contact:active,
  html body .pace-theme-header .pace-header-actions .pace-contact:focus { align-items: center !important; background: transparent !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important; color: var(--pace-ui-blue) !important; gap: 0 !important; height: 44px !important; justify-content: center !important; padding: 0 !important; width: 44px !important; }
  html body .pace-theme-header .pace-header-actions .pace-donation:hover,
  html body .pace-theme-header .pace-header-actions .pace-donation:active,
  html body .pace-theme-header .pace-header-actions .pace-contact:hover,
  html body .pace-theme-header .pace-header-actions .pace-contact:active { background: var(--pace-ui-blue-soft) !important; }
  html body .pace-theme-header .pace-header-actions svg { flex: 0 0 28px !important; height: 28px !important; width: 28px !important; }
  html body .pace-theme-header .pace-header-actions .pace-contact svg { stroke-width: 2.2 !important; }
  html body .pace-theme-header .pace-action-label,
  html body .pace-theme-header .pace-responsive-menu > summary > span { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
  html body .pace-theme-header .pace-responsive-menu > summary,
  html body .pace-theme-header .pace-responsive-menu[open] > summary { align-items: center !important; background: transparent !important; border: 0 !important; border-radius: 12px !important; color: var(--pace-ui-blue) !important; height: 44px !important; justify-content: center !important; padding: 0 !important; width: 44px !important; }
  html body .pace-theme-header .pace-responsive-menu[open] > summary { background: var(--pace-ui-blue-soft) !important; }
  html body .pace-theme-header .pace-responsive-menu > summary svg { height: 32px !important; stroke-width: 2.4 !important; width: 32px !important; }
  html body .pace-theme-header .pace-responsive-menu-panel { left: 12px !important; right: 12px !important; width: auto !important; }
}

/* Tablette : le panneau du menu s'ouvre sous le hamburger, aligné à droite, sans prendre tout l'écran */
@media (min-width: 701px) and (max-width: 1179px) {
  html body .pace-theme-header { padding: 8px 20px !important; column-gap: 8px !important; }
  html body .pace-theme-header .pace-responsive-menu-panel { left: auto !important; right: 16px !important; width: min(560px, calc(100vw - 32px)) !important; }
  html body .pace-theme-header .pace-responsive-menu-panel .pace-theme-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v2.18.8 — Hero téléphone (620 px et moins) : un seul bloc, la photo en format portrait (environ 25:36),
   avec un dégradé vert sombre en bas et le texte en blanc posé dessus.
   Tablette (621 px et plus) : inchangée, le texte reste sous la photo. */
@media (max-width: 620px) {
  .pace-home-hero-editorial { background: #06411c; display: grid !important; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
  .pace-home-hero-editorial > .pace-home-hero-mobile-photo,
  .pace-home-hero-editorial > .pace-home-hero-content { grid-column: 1; grid-row: 1; }
  .pace-home-hero-editorial > .pace-home-hero-mobile-photo { aspect-ratio: 25 / 36; min-height: 0; order: 0; position: relative; }
  .pace-home-hero-editorial > .pace-home-hero-mobile-photo img { aspect-ratio: auto; filter: brightness(.95) saturate(1.04); height: 76%; inset: 0 0 auto 0; object-fit: cover; object-position: 36% 0; position: absolute; width: 100%; }
  .pace-home-hero-editorial > .pace-home-hero-mobile-photo::after { background: linear-gradient(to top, #06411c 0%, #06411c 24%, rgba(6, 65, 28, .92) 34%, rgba(6, 65, 28, .6) 46%, rgba(6, 65, 28, 0) 62%); content: ""; inset: 0; pointer-events: none; position: absolute; }
  .pace-home-hero-editorial > .pace-home-hero-content { align-self: end; padding: 0 20px 24px; z-index: 2; }
  .pace-home-hero-editorial .page-eyebrow { display: none; }
  .pace-home-hero-editorial h1 { font-size: clamp(1.5rem, 6.7vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 10px; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
  .pace-home-hero-editorial h1 > span { display: block; }
  .pace-home-hero-editorial .pace-home-hero-highlight { color: var(--pace-home-yellow); }
  .pace-home-hero-editorial p:not(.page-eyebrow) { color: #fff; font-size: .88rem; line-height: 1.45; margin: 0 0 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
  .pace-home-hero-editorial .pace-home-hero-actions { flex-direction: row !important; flex-wrap: nowrap; gap: 10px; }
  .pace-home-hero-editorial .pace-home-hero-actions .pace-home-button { align-items: center; display: inline-flex; flex: 1 1 0; font-size: .88rem; justify-content: center; min-height: 44px; min-width: 0; padding: 0 12px; width: auto; }
}

/* v2.22.11 : bouton de langue FR / EN retiré. */

/* v2.22.6 : le texte du président défile aussi sur tablette et téléphone (une règle ≤ 900 px le laissait déborder de sa zone). */
@media (max-width: 900px) {
  html body.pace-page:is(.pace-page-mot-president, .pace-page-equipe) .president-copy {
    -webkit-overflow-scrolling: touch;
    height: min(70vh, 560px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto;
    touch-action: pan-y;
  }
}
@media (max-width: 720px) {
  html body.pace-page:is(.pace-page-mot-president, .pace-page-equipe) .president-copy {
    height: min(64vh, 520px) !important;
    padding: 24px 20px 56px;
  }
}

/* ===== v2.22.12 : page d'un article / d'un document — texte à plat (sans cadres), images propres, pas d'espace vide ===== */
html body .pace-single-article { background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; }
html body .pace-single-body { background: none !important; border: 0 !important; box-shadow: none !important; color: #2f3748; font-size: 1.12rem; line-height: 1.85; max-width: 760px; padding: 0 !important; margin-left: auto; margin-right: auto; }
html body .pace-single-body :where(div, section, article, aside, header, footer, p, span, ul, ol, li, figure, center, font, details, summary, form, fieldset) {
  background: none !important; background-color: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important;
  float: none !important; max-width: 100% !important; min-width: 0 !important; text-shadow: none !important;
}
html body .pace-single-body :where(div, section, article, aside, p, ul, ol, li, center, font) { padding-left: 0 !important; padding-right: 0 !important; width: auto !important; }
html body .pace-single-body :where(div, section, article, aside, p) { color: inherit; font-family: inherit !important; margin-left: 0 !important; margin-right: 0 !important; }
html body .pace-single-body :where(div, section, article, aside) { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
html body .pace-single-body p { font-size: inherit !important; line-height: inherit !important; margin: 0 0 1.25em !important; text-align: left !important; }
html body .pace-single-body ul, html body .pace-single-body ol { padding-left: 1.4em !important; }
html body .pace-single-body :where(h1, h2, h3, h4, h5, h6) { background: none !important; border: 0 !important; box-shadow: none !important; color: #212863 !important; font-family: inherit !important; padding: 0 !important; }
html body .pace-single-body h1 { font-size: 1.9rem !important; } html body .pace-single-body h2 { font-size: 1.55rem !important; } html body .pace-single-body h3 { font-size: 1.28rem !important; }
html body .pace-single-body :where(pre, code) { background: none !important; border: 0 !important; font-family: inherit !important; font-size: inherit !important; padding: 0 !important; white-space: normal !important; }
html body .pace-single-body hr { border: 0 !important; border-top: 1px solid #dfe5ef !important; margin: 2em 0 !important; }
/* Tableaux : lignes fines, plus de gros cadres */
html body .pace-single-body table { border-collapse: collapse !important; display: block; margin: 1.4em 0; max-width: 100% !important; overflow-x: auto; width: 100% !important; }
html body .pace-single-body :where(td, th) { background: none !important; border: 0 !important; border-bottom: 1px solid #e3e8f1 !important; padding: 10px 12px !important; vertical-align: top; }
html body .pace-single-body th { color: #212863; text-align: left; }
/* Citation : on garde un simple filet jaune */
html body .pace-single-body blockquote { background: none !important; border: 0 !important; border-left: 4px solid #ffca05 !important; border-radius: 0 !important; box-shadow: none !important; margin: 1.6em 0 !important; padding: 2px 0 2px 20px !important; }
/* Images du texte : centrées, arrondies, légendes discrètes */
html body .pace-single-body figure { margin: 1.8em 0 !important; text-align: center; }
html body .pace-single-body img { border-radius: 14px !important; display: block; height: auto !important; margin: 1.6em auto; max-width: 100% !important; width: auto; }
html body .pace-single-body figure img { margin: 0 auto; }
html body .pace-single-body figcaption, html body .pace-single-body .wp-caption-text { color: #6a7385; font-size: .92rem; line-height: 1.5; margin-top: 10px; }
html body .pace-single-body .alignleft, html body .pace-single-body .alignright { float: none !important; margin: 1.6em auto !important; }
html body .pace-single-body iframe, html body .pace-single-body embed, html body .pace-single-body object { border: 0 !important; max-width: 100% !important; }
html body .pace-single-body iframe[src*="youtube"], html body .pace-single-body iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto !important; width: 100% !important; }
/* Pas d'espace vide : paragraphes / blocs sans contenu, images en échec */
html body .pace-single-body :where(p, div, figure, span):empty, html body .pace-single-body p:has(> br:only-child), html body .pace-single-body .pace-img-failed { display: none !important; }
html body .pace-single-image:has(img.pace-img-failed) { display: none !important; }
html body .pace-single-image { margin: 0 0 30px !important; }
html body .pace-single-image img { display: block; height: auto; margin: 0 auto; max-height: 520px; object-fit: cover; width: 100%; }
html body .pace-single-body > :first-child { margin-top: 0 !important; }


/* ===== v2.22.14 : actualités / documentations — aucun cadre, aucun espace vide en haut (même avec le CSS d'un ancien plugin) ===== */
html body main.pace-single-content, html body main.pace-single-content > .pace-single-article, html body main.pace-single-content .pace-single-body {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important;
}
html body main.pace-single-content { padding-top: clamp(16px, 2.5vw, 32px) !important; padding-bottom: clamp(32px, 5vw, 64px) !important; margin-top: 0 !important; min-height: 0 !important; }
html body main.pace-single-content .pace-back-bar { margin: 0 0 14px !important; }
html body main.pace-single-content .pace-single-article { margin: 0 !important; min-height: 0 !important; width: auto !important; max-width: none !important; float: none !important; }
html body main.pace-single-content .pace-single-article > :first-child { margin-top: 0 !important; }
html body .pace-single-body, html body .pace-single-body * { min-height: 0 !important; }
html body .pace-single-body :where(div, section, article, aside, figure, p, center) { height: auto !important; position: static !important; float: none !important; transform: none !important; top: auto !important; inset: auto; max-width: 100% !important; }
html body .pace-single-body :where(.wp-block-spacer, .elementor-spacer, .vc_empty_space, .et_pb_divider, .wp-block-separator:empty) { display: none !important; }
html body .pace-single-body > :where(div, section, article, p, figure):first-child { padding-top: 0 !important; margin-top: 0 !important; }
html body .pace-single-body :where(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0 !important; }
html body .pace-single-body::before, html body .pace-single-body::after, html body .pace-single-article::before, html body .pace-single-article::after { content: none !important; display: none !important; }


/* ===== v2.22.17 : article du comité scientifique — images de l'article centrées, taille raisonnable ===== */
html body.pace-committee-page .pace-single-body img { display: inline-block !important; height: auto !important; margin: 10px !important; max-width: min(100%, 340px) !important; vertical-align: top; width: auto; }
html body.pace-committee-page .pace-single-body p:has(> img), html body.pace-committee-page .pace-single-body p:has(> a > img) { text-align: center !important; }

/* ===== v2.22.18 : comité — les images ne sont jamais masquées (ni par un effet d'apparition, ni par un échec de chargement) ===== */
html body.pace-committee-page .pace-single-body img, html body.pace-committee-page .pace-single-body img.pace-img-failed { display: inline-block !important; opacity: 1 !important; visibility: visible !important; min-width: 120px; min-height: 120px; background: #eef1f7; }
html body.pace-committee-page .pace-single-body a:has(> img) { display: inline-block !important; }


/* ===== v2.22.19 : actualités et documentations — page d'un article, listes et « Autres actualités », sur tablette et téléphone ===== */

/* Garde-fous (tous écrans) : jamais de défilement horizontal, mots et liens longs coupés proprement */
html body main.pace-single-content { box-sizing: border-box; overflow-x: hidden; overflow-x: clip; }
html body .pace-single-article h1 { hyphens: auto; overflow-wrap: break-word; }
html body .pace-single-body { overflow-wrap: break-word; word-wrap: break-word; }
html body .pace-single-body a { overflow-wrap: anywhere; }
html body .pace-single-body :where(pre) { overflow-x: auto; white-space: pre-wrap !important; }
html body .pace-single-body video { height: auto !important; max-width: 100% !important; }
html body .pace-single-body table { -webkit-overflow-scrolling: touch; }

/* ---------- Tablette (≤ 900 px) ---------- */
@media (max-width: 900px) {
  html body main.pace-single-content { max-width: 800px; padding-left: 24px !important; padding-right: 24px !important; }
  html body .pace-single-content h1 { font-size: clamp(1.6rem, 5.4vw, 2.2rem); line-height: 1.2; margin: 12px 0 20px; }
  html body .pace-single-content .page-eyebrow { font-size: .74rem; letter-spacing: .09em; line-height: 1.4; max-width: 100%; padding: 7px 14px; }
  html body .pace-back-button { min-height: 44px; }

  /* Image principale : entière (plus de recadrage), coins arrondis, ombre légère */
  html body .pace-single-image { margin: 0 0 22px !important; }
  html body .pace-single-image img { border-radius: 16px; box-shadow: 0 8px 22px rgba(20, 30, 70, .12); height: auto; max-height: none; object-fit: contain; width: 100%; }

  /* Texte : taille et interligne adaptés à la lecture sur écran tactile */
  html body .pace-single-body { font-size: 1.06rem; line-height: 1.75; margin-left: 0; margin-right: 0; max-width: 100%; }
  html body .pace-single-body h1 { font-size: 1.7rem !important; }
  html body .pace-single-body h2 { font-size: 1.45rem !important; margin-top: 1.6em; }
  html body .pace-single-body h3 { font-size: 1.22rem !important; }
  html body:not(.pace-committee-page) .pace-single-body img { margin: 1.2em auto; }
  html body .pace-single-body :where(td, th) { font-size: .95rem; }

  /* Document : le bouton « Ouvrir le document » passe juste sous le titre */
  html body .pace-single-article:has(> p > .page-button) { display: grid; grid-template-columns: minmax(0, 1fr); }
  html body .pace-single-article:has(> p > .page-button) > .page-eyebrow { align-self: start; justify-self: start; order: 0; }
  html body .pace-single-article:has(> p > .page-button) > h1 { order: 1; }
  html body .pace-single-article:has(> p > .page-button) > p:has(> .page-button) { margin: 0 0 22px; order: 2; }
  html body .pace-single-article:has(> p > .page-button) > .pace-single-image { order: 3; }
  html body .pace-single-article:has(> p > .page-button) > .pace-single-body { order: 4; width: 100%; }

  /* Listes : titres lisibles en entier, boutons faciles à toucher */
  html body .pace-card .pace-card-title a { -webkit-line-clamp: unset; display: inline; overflow: visible; }
  html body .pace-card .pace-card-link { min-height: 44px; }
  html body .pace-card-media img { object-position: center 30%; }
  html body .pace-card-badge { font-size: .7rem; left: 12px; max-width: calc(100% - 24px); padding: 6px 12px; top: 12px; }
  html body .pace-filter-row { gap: 12px; }
  html body .pace-filter input { flex: 1 1 100%; max-width: none; }

  /* « Autres actualités / Autres documents » : cartes en largeur, photo à gauche (tablette) */
  html body .pace-related { margin-top: 36px; padding-top: 26px; }
  html body .pace-related h2 { font-size: 1.4rem; }
  html body .pace-related .pace-feed-grid { gap: 16px; grid-template-columns: minmax(0, 1fr); }
}

/* Tablette seulement (601–900 px) : carte horizontale */
@media (min-width: 601px) and (max-width: 900px) {
  html body .pace-related .pace-feed-grid > .pace-card:not(.pace-card--text) { flex-direction: row; }
  html body .pace-related .pace-feed-grid > .pace-card .pace-card-media { aspect-ratio: auto; flex: 0 0 38%; min-height: 180px; }
  html body .pace-related .pace-feed-grid > .pace-card .pace-card-body { justify-content: center; }
}

/* ---------- Téléphone (≤ 620 px) ---------- */
@media (max-width: 620px) {
  html body main.pace-single-content { padding-left: 16px !important; padding-right: 16px !important; padding-top: 14px !important; }
  html body .pace-single-content h1 { font-size: clamp(1.45rem, 7vw, 1.8rem); margin: 10px 0 16px; }
  html body .pace-single-content .page-eyebrow { font-size: .7rem; padding: 6px 12px; }
  html body .pace-single-body { font-size: 1rem; line-height: 1.7; }
  html body .pace-single-body h1 { font-size: 1.5rem !important; }
  html body .pace-single-body h2 { font-size: 1.3rem !important; }
  html body .pace-single-body h3 { font-size: 1.15rem !important; }
  html body .pace-single-body p { margin-bottom: 1.1em !important; }
  html body .pace-single-body ul, html body .pace-single-body ol { padding-left: 1.25em !important; }
  html body .pace-single-body blockquote { margin: 1.3em 0 !important; padding-left: 16px !important; }
  html body .pace-single-body figcaption, html body .pace-single-body .wp-caption-text { font-size: .86rem; }
  html body .pace-single-body :where(td, th) { padding: 8px 10px !important; }
  html body .pace-single-image img { border-radius: 14px; }

  /* Boutons pleine largeur, faciles à toucher */
  html body .pace-single-content .page-button { align-items: center; box-sizing: border-box; display: flex; justify-content: center; min-height: 48px; padding: 13px 20px; text-align: center; width: 100%; }
  html body .pace-single-article > p:has(> .page-button) { margin-bottom: 20px; }

  /* Listes et « Autres actualités » : une colonne, photo en haut, texte aéré */
  html body .pace-card-media { aspect-ratio: 16 / 10; }
  html body .pace-card-body { padding: 16px 16px 18px; }
  html body .pace-card .pace-card-title { font-size: 1.05rem; }
  html body .pace-card-summary { -webkit-line-clamp: 5; }
  html body .pace-related .pace-feed-grid > .pace-card:not(.pace-card--text) { flex-direction: column; }
  html body .pace-related .pace-feed-grid > .pace-card .pace-card-media { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
}

/* ===== v2.22.19 (suite) : recrutement — plus d'exemple fictif, cartes de la liste et page d'un avis ===== */
html body .recruitment-example { display: none !important; }
html body .recruitment-list { align-items: stretch; }
html body .recruitment-list .recruitment-post { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; padding: 24px; }
html body .recruitment-list .recruitment-post h3 { color: #212863; font-size: 1.25rem; line-height: 1.3; margin: 0; }
html body .recruitment-list .recruitment-excerpt { color: #4a5068; line-height: 1.6; margin: 0; }
html body .recruitment-list .recruitment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
html body .recruitment-single .recruitment-apply { margin: 28px 0 0; }
@media (max-width: 620px) {
  html body .recruitment-list .recruitment-post { padding: 18px; }
  html body .recruitment-list .recruitment-actions .page-button { box-sizing: border-box; text-align: center; width: 100%; }
}


/* ===== v2.22.20 : actualités, documentations, comité — la page ne dépasse jamais l'écran du téléphone, plus d'espaces blancs, photos du comité en grille ===== */

/* A. Largeur : rien ne peut élargir la page (liens longs, images, tableaux, vidéos importés de l'ancien site) */
html, body { max-width: 100%; overflow-x: clip; }
html body .pace-single-article, html body .pace-single-body { min-width: 0; }
html body .pace-single-body, html body .pace-single-body * { box-sizing: border-box; }
html body .pace-single-body :where(div, section, article, p, ul, ol, li, blockquote, figure, table, h1, h2, h3, h4, h5, h6) { max-width: 100% !important; }
html body .pace-single-body :where(img, video, canvas, svg, iframe, embed, object, audio) { max-width: 100% !important; }
html body .pace-single-body :where(p, li, td, th, h1, h2, h3, h4, h5, h6, blockquote, figcaption, span) { overflow-wrap: break-word; }
html body .pace-single-body a { overflow-wrap: anywhere; word-break: break-word; }
html body .pace-single-body :where(span, strong, em, b, i, u, a, font) { white-space: normal !important; }

/* B. Largeur de lecture unique sur ordinateur : titre, image et texte alignés (plus de bandes blanches à droite du texte) */
html body main.pace-single-content { max-width: 860px; }
html body .pace-single-body { margin-left: 0; margin-right: 0; max-width: 100%; }
html body .pace-single-image img { width: 100%; }

/* C. Espaces blancs : marges plus serrées autour des images et des légendes */
html body .pace-single-body figure { margin: 1.1em 0 !important; }
html body:not(.pace-committee-page) .pace-single-body img { margin: 1.1em auto; }
html body .pace-single-body :where(h2, h3, h4) { margin-top: 1.4em !important; margin-bottom: .5em !important; }
html body .pace-single-body > :last-child { margin-bottom: 0 !important; }

/* D. Comité scientifique : photos rangées en grille régulière (3–4 par ligne sur ordinateur, 2 sur tablette, 1 sur petit téléphone) */
html body.pace-committee-page .pace-single-body { align-items: start; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
html body.pace-committee-page .pace-single-body > * { grid-column: 1 / -1; margin: 0 !important; min-width: 0; }
html body.pace-committee-page .pace-single-body > :is(p, div, figure, a):has(> img:only-child),
html body.pace-committee-page .pace-single-body > :is(p, div, figure):has(> a:only-child > img:only-child),
html body.pace-committee-page .pace-single-body > a:has(> img),
html body.pace-committee-page .pace-single-body > img { grid-column: auto; text-align: center; }
html body.pace-committee-page .pace-single-body > :is(p, div, figure, ul, ol):has(img ~ img),
html body.pace-committee-page .pace-single-body > :is(p, div, figure, ul, ol):has(a:has(> img) ~ a:has(> img)) { display: grid; gap: 18px; grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0 !important; }
html body.pace-committee-page .pace-single-body br { display: none; }
html body.pace-committee-page .pace-single-body img,
html body.pace-committee-page .pace-single-body img.pace-img-failed { border-radius: 14px !important; display: block !important; height: auto !important; margin: 0 !important; max-width: 100% !important; min-width: 0 !important; width: 100% !important; }
html body.pace-committee-page .pace-single-body a:has(> img) { display: block !important; }
html body.pace-committee-page .pace-single-body figcaption { margin-top: 8px; text-align: center; }
html body.pace-committee-page .pace-member-gallery { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 480px) {
  html body.pace-committee-page .pace-member-gallery--cards .pace-member-grid { grid-template-columns: minmax(0, 1fr); }
}


/* ===== v2.22.21 : police sur toutes les pages, tableaux de l'ancien site (colonne vide à gauche, cadre, texte coupé) ===== */
html body { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html body :where(button, input, select, textarea) { font-family: inherit; }

/* Mise en page issue des anciens tableaux : blocs souples, côte à côte sur grand écran, empilés dès que la place manque */
html body .pace-single-body .pace-layout { display: block; margin: 1.2em 0; }
html body .pace-single-body .pace-layout-row { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 18px 24px; margin: 0 0 18px; }
html body .pace-single-body .pace-layout-cell { flex: 1 1 280px; min-width: 0; }
html body .pace-single-body .pace-layout-cell > :first-child { margin-top: 0 !important; }
html body .pace-single-body .pace-layout-cell > :last-child { margin-bottom: 0 !important; }
html body .pace-single-body .pace-layout-cell img { max-width: 100% !important; }

/* Vrais tableaux de données : sans cadre épais, largeur de l'écran, défilement dans le tableau seulement */
html body .pace-single-body :where(table, thead, tbody, tfoot, tr) { background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; }
html body .pace-single-body table { border-spacing: 0; table-layout: auto; }

/* Filet de sécurité (texte déjà en cache) : tableau sans en-tête = cellules empilées sur tablette et téléphone */
@media (max-width: 900px) {
  html body .pace-single-body table:not(:has(th)) { display: block !important; overflow: visible !important; width: 100% !important; }
  html body .pace-single-body table:not(:has(th)) :where(thead, tbody, tfoot, tr, td) { border: 0 !important; display: block !important; padding: 0 !important; width: 100% !important; }
  html body .pace-single-body table:not(:has(th)) td:empty { display: none !important; }
  html body .pace-single-body table:not(:has(th)) td { margin: 0 0 14px !important; }
}
