/* =========================================================
   NAIPO — ajustements WordPress
   (complète style.css, qui reste identique à la maquette v16.4)
   ========================================================= */

/* Barre d'administration WordPress : le header fixe passe dessous. */
.admin-bar .site-header.theme-dark { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header.theme-dark { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header.theme-dark { top: 0; }
}

/* Accessibilité : lien d'évitement. */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  z-index: 100000; top: 8px; left: 8px; padding: 12px 18px;
  background: var(--white); color: var(--anthracite);
}

/* Les boutons de la maquette (<button data-nav>) sont devenus des liens. */
#page-home .home-hero-actions a,
#page-home .home-outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box; /* comme un <button> */
  text-align: center;
}

/* Les groupes Gutenberg ne doivent rien ajouter à la mise en page d'origine. */
.site-page .wp-block-group { box-sizing: border-box; }
.site-page .is-layout-flow > * { margin-block-start: 0; }

/* Photos réelles dans les cartes de l'équipe. */
.core-team-photo.has-photo,
.about-team-group-photo.has-photo { padding: 0; overflow: hidden; }
.core-team-photo.has-photo img,
.about-team-group-photo.has-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}

/* Cartes partenaires sans lien. */
div.partner-card { cursor: default; }

/* Carte News sans image. */
.news-card-media:empty { min-height: 180px; }

/* Pagination des News. */
.naipo-pagination,
.news-listing .pagination { margin-top: 48px; }
.naipo-pagination ul,
.news-listing .nav-links {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.naipo-pagination .page-numbers,
.news-listing .nav-links .page-numbers {
  display: inline-flex; min-width: 40px; height: 40px; padding: 0 12px;
  align-items: center; justify-content: center;
  border: 1px solid var(--primary-dark); border-radius: var(--radius-pill);
  font: 700 14px/1 var(--font-sans); color: var(--anthracite);
}
.naipo-pagination .page-numbers.current,
.news-listing .nav-links .page-numbers.current {
  background: var(--primary-dark); color: var(--white);
}

/* Contenu des articles : éléments ajoutés depuis l'éditeur. */
.news-article-content .wp-block-image { margin: 32px 0; }
.news-article-content .wp-block-image img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.news-article-content .wp-block-image figcaption { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.news-article-content ul,
.news-article-content ol { padding-left: 1.25em; }
.news-article-content .news-article-callout p.home-kicker { margin: 0 0 8px; }

/* Pages sans blocs NAIPO (contenu libre). */
.naipo-prose {
  max-width: 820px; margin: 0 auto; padding: 72px 24px 96px;
  font: var(--type-body);
}
.naipo-prose > * + * { margin-top: 1em; }
.naipo-prose img { max-width: 100%; height: auto; }

.naipo-404-link { color: inherit; text-decoration: underline; }
