/* ===== Feuille de style OJS / OMP — LARSCED ===== */

/* 0. Bannière : même couleur que l'image, sur toute la largeur de la page */
.pkp_structure_head {
  background: #497d93 !important;
}
.pkp_site_name_wrapper,
.pkp_site_name {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.pkp_site_name .is_img,
.pkp_site_name a.is_img {
  display: block !important;
  width: 100% !important;
}
.pkp_site_name .is_img img,
.pkp_site_name img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
}

/* 0 bis. Zone du menu (Catalogue, À propos, Rechercher) : même couleur que la bannière */
.pkp_head_wrapper,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_search_wrapper {
  background-color: #497d93 !important;
}

/* 0 ter. Pied de page : même largeur que l'en-tête, fond uni sur toute la largeur */
.pkp_structure_footer_wrapper {
  background: #f1f1f1 !important;
}
.pkp_structure_footer {
  width: 100% !important;
  max-width: 1450px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
.pkp_footer_content {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 0 quater. Bloc personnalisé « Documents à télécharger » (titre centré, boutons bleu / gris) */
.pkp_block.block_custom .title,
.pkp_block.block_custom h2,
.block_custom .content h3 {
  font-family: Montserrat, Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  color: #6e6e6e !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Ligne jaune entre le titre et les boutons */
.block_custom .content hr.larsced-docs-line,
.block_custom .content hr {
  display: block !important;
  height: 3px !important;
  border: 0 !important;
  background: #f7bc4a !important;
  margin: 0 0 18px !important;
}

/* Fine ligne grise de fermeture du bloc */
.pkp_block.block_custom .content {
  border-bottom: 1px solid #8a8a8a !important;
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
}
.block_custom .content a[href$=".pdf"],
.block_custom .content a.larsced-doc-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 92% !important;
  min-height: 44px;
  margin: 0 auto 12px !important;
  padding: 8px 10px !important;
  box-sizing: border-box;
  background: #0e9ec1 !important;
  color: #ffffff !important;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-decoration: none !important;
  border: 0 !important;
}
.block_custom .content a[href$=".pdf"]:nth-of-type(even),
.block_custom .content a.larsced-doc-btn:nth-of-type(even) {
  background: #778899 !important;
}
.block_custom .content a[href$=".pdf"]:hover,
.block_custom .content a.larsced-doc-btn:hover {
  filter: brightness(.9);
  color: #ffffff !important;
}

/* 1. Masquer le logo « Platform & workflow by OJS / OMP / PKP » en pied de page */
.pkp_brand_footer,
.pkp_brand_footer *,
a[href*="aboutThisPublishingSystem"],
img[alt*="Platform"],
img[src*="/brand."] {
  display: none !important;
}

/* 2 bis. Pages de catégorie / série : le compteur « X titres » ne chevauche plus la description */
.pkp_structure_main .monograph_count,
.page_catalog_category .monograph_count,
.page_catalog_series .monograph_count,
.page_catalog .monograph_count {
  float: none !important;
  position: static !important;
  display: block !important;
  clear: both !important;
  width: auto !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 14px;
  color: #777;
}
/* La description commence toujours sous le compteur, sur toute la largeur */
.page_catalog_category .description,
.page_catalog_series .description {
  clear: both !important;
  overflow: visible;
}

/* 2. Justifier le texte courant de toutes les pages (accueil, À propos, catalogue, fiches...)
      et annuler l'italique imposé par le thème. L'en-tête, le menu, la barre latérale
      et le pied de page ne sont pas concernés. */
.pkp_structure_main p,
.pkp_structure_main li,
.pkp_structure_main dd,
.pkp_structure_main td,
.pkp_structure_main blockquote,
.pkp_structure_main .description,
.pkp_structure_main .abstract,
.pkp_structure_main .item.abstract .value,
.pkp_structure_main .page_content,
.pkp_structure_main .pkp_page_content,
.pkp_structure_main .page > div {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  font-style: normal !important;
}
/* Les mots volontairement mis en italique dans un texte restent en italique */
.pkp_structure_main p em, .pkp_structure_main p i,
.pkp_structure_main li em, .pkp_structure_main li i,
.pkp_structure_main cite {
  font-style: italic !important;
}
