@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* =========================================================
   Theme 5 (Classy-style) — African Journal of Perinatology
   Référence : thème "Classy" pour OJS 3 (openjournaltheme.com)
   Structure : en-tête filigrané > barre de menu incrustée >
               cartes blanches sur fond gris > footer en carte
   ========================================================= */

:root {
  --c-bg: #eef0f4;
  --c-card: #ffffff;
  --c-line: #e5e8ec;
  --c-blue: #2b6cb0;
  --c-blue-soft: #4a90c2;
  --c-blue-dark: #1d4f85;
  --c-navy: #1b2f45;
  --c-magenta: #d81b8f;
  --c-magenta-dark: #a81070;
  --c-magenta-soft: #fbe6f3;
  --c-magenta-hover: #f6d2e9;
  --c-purple: #8e4a91;
  --c-purple-dark: #6f3a72;
  --c-purple-soft: #f2e8f3;
  --c-ink: #333a42;
  --c-text: #4a5361;
  --c-muted: #8a94a3;
  --c-panel-row: #fbe6f3;
  --c-panel-row-hover: #f6d2e9;
  --c-maxw: 1180px;
  --c-radius: 2px;
  --c-shadow: 0 1px 2px rgba(27, 47, 69, .06);
  --c-font: 'Mulish', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,
.pkp_structure_page {
  font-family: var(--c-font) !important;
  color: var(--c-text);
  background: var(--c-bg) !important;
  line-height: 1.75;
}
a { color: var(--c-magenta-dark); text-decoration: none; }
a:hover { color: var(--c-magenta); }
h1, h2, h3, h4, h5 { font-family: var(--c-font); color: var(--c-ink); }
img { max-width: 100%; height: auto; }

/* =========================================================
   1. EN-TÊTE FILIGRANÉ
   Le fond couvre la ligne de marque ET la barre de menu :
   le filigrane reste visible de part et d'autre de la barre.
   ========================================================= */

.pkp_structure_head {
  background:
    linear-gradient(rgba(255, 255, 255, .70), rgba(255, 255, 255, .80)),
    url('../images/header-bg.jpg') center 35% / cover no-repeat #f2f5f8 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  position: relative;
}

.pkp_head_wrapper {
  max-width: var(--c-maxw); margin: 0 auto;
  padding: 0 !important; width: auto !important;
}
.pkp_site_name_wrapper {
  display: flex; align-items: center; gap: 24px;
  padding: 24px 16px 22px !important;
  min-height: 0 !important; height: auto !important; /* annule la hauteur fixe du parent */
  width: auto !important; float: none !important;
}

/* Bloc de marque : image unique (icône + titre + slogan) */
.c_logo { flex: none; display: block; max-width: 100%; }
.c_logo img { height: 78px; width: auto; display: block; }

.c_actions { margin-left: auto; display: flex; gap: 10px; flex: none; }
.c_btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; border: 1px solid #dfe4ea; border-radius: 4px;
  color: var(--c-ink); font-weight: 600; font-size: 14px;
  padding: 10px 18px;
  transition: border-color .15s ease, color .15s ease;
}
.c_btn .fa { color: var(--c-magenta); }
.c_btn:hover { border-color: var(--c-magenta); color: var(--c-magenta-dark); }

/* =========================================================
   2. BARRE DE MENU INCRUSTÉE
   Bande transparente pleine largeur + bloc blanc à la largeur
   du conteneur : le filigrane apparaît à gauche et à droite.
   ========================================================= */

.c_navbar { background: transparent; }
.c_navbar_in {
  max-width: var(--c-maxw); margin: 0 auto;
  background: #ffffff;
  display: flex; align-items: center;
  padding: 0 16px;
  box-shadow: 0 1px 2px rgba(27, 47, 69, .07);
}

.c_nav { display: flex; align-items: center; }
.c_nav a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--c-ink); font-weight: 600; font-size: 15px;
  padding: 15px 22px;
  transition: color .15s ease, background .15s ease;
}
.c_nav a .fa { font-size: 14px; color: var(--c-magenta); transition: color .15s ease; }
.c_nav a:hover,
.c_nav a:hover .fa { color: var(--c-magenta-dark); }
.c_nav a:hover { background: var(--c-magenta-soft); }
.c_nav a.active { background: var(--c-magenta-soft); color: var(--c-magenta-dark); box-shadow: inset 0 -3px 0 var(--c-magenta); }
.c_nav a.active .fa { color: var(--c-magenta); }

/* Recherche repliée : lien "Search" qui déplie le champ */
.c_search { margin-left: auto; display: flex; align-items: center; }
.c_search_toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; cursor: pointer;
  color: var(--c-ink); font-family: var(--c-font); font-weight: 600; font-size: 15px;
  padding: 14px 16px;
}
.c_search_toggle:hover { color: var(--c-magenta-dark); }
.c_search_field {
  width: 0; padding: 0; border: 0; opacity: 0;
  font-family: var(--c-font); font-size: 14px; color: var(--c-ink);
  background: #f6f8fa; border-radius: 3px;
  transition: width .25s ease, opacity .2s ease, padding .25s ease;
}
.c_search.is_open .c_search_field {
  width: 210px; opacity: 1; padding: 8px 12px;
  border: 1px solid #dfe4ea; margin-right: 4px;
}
.c_search_field:focus { outline: none; border-color: var(--c-magenta); }

/* =========================================================
   3. STRUCTURE DE CONTENU
   ========================================================= */

.pkp_structure_content {
  max-width: var(--c-maxw); margin: 0 auto; padding: 16px 16px 40px;
  background: transparent; width: auto !important;
}
.pkp_structure_main,
.pkp_structure_main:first-child:last-child {
  width: 100% !important; max-width: 100% !important; float: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
  box-shadow: none !important; background: transparent !important;
}
.pkp_structure_main:before, .pkp_structure_main:after { display: none !important; }

/* Aucun element ne doit faire deborder la page lateralement */
.pkp_structure_page { overflow-x: hidden; }
.c_card_body table { display: block; width: 100%; overflow-x: auto; }

.c_layout { display: grid; grid-template-columns: 1fr 292px; gap: 15px; align-items: start; }

/* =========================================================
   4. CARTES
   ========================================================= */

.c_card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--c-radius); box-shadow: var(--c-shadow);
  margin-bottom: 15px; overflow: hidden;
}
.c_card > .c_card_title {
  font-size: 24px; font-weight: 400; color: var(--c-ink);
  margin: 0; padding: 26px 26px 0; line-height: 1.3; letter-spacing: .1px;
}
.c_card > .c_card_title::after {
  content: ""; display: block; margin-top: 15px; height: 2px; width: 56%;
  background: linear-gradient(90deg, var(--c-magenta) 0%, var(--c-magenta) 80%, rgba(216, 27, 143, 0) 100%);
}
.c_card_body { padding: 22px 26px 26px; }
.c_card_body p { text-align: justify; margin: 0 0 14px; font-size: 15px; line-height: 1.8; }

/* Bloc couverture + métadonnées, sous les paragraphes (comme Classy) */
.c_meta { display: grid; grid-template-columns: 172px 1fr; gap: 26px; align-items: start; margin-top: 22px; }
.c_meta_info p { text-align: left; margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.c_quicklinks { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.c_quicklinks a { color: var(--c-magenta-dark); font-size: 15px; }
.c_quicklinks a:hover { text-decoration: underline; }

/* Diaporama, au format de la couverture du journal */
.c_ss { position: relative; border-radius: var(--c-radius); overflow: hidden; aspect-ratio: 186 / 264; border: 1px solid var(--c-line); }
.c_ss_slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.c_ss_slide.is-active { opacity: 1; }
.c_ss_dots { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; z-index: 2; }
.c_ss_dots button { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .3); margin: 0 4px; padding: 0; cursor: pointer; }
.c_ss_dots button.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .c_ss_slide { transition: opacity .2s ease; } }

/* =========================================================
   5. NUMÉRO COURANT / ARTICLES
   ========================================================= */

.c_issue_id { font-weight: 700; font-size: 17px; color: var(--c-ink); margin: 0 0 14px; }
.obj_article_summary { border-bottom: 1px solid var(--c-line); padding: 20px 0; }
.obj_article_summary:last-child { border-bottom: 0; }
.obj_article_summary .title a { color: var(--c-magenta-dark) !important; font-size: 16px; font-weight: 700; line-height: 1.5; }
.obj_article_summary .title a:hover { color: var(--c-magenta) !important; text-decoration: underline; }
.obj_article_summary .authors,
.obj_article_summary .meta { color: var(--c-muted); font-size: 13.5px; }
.obj_article_summary .galleys_links { margin-top: 12px; padding: 0; list-style: none; }
.obj_article_summary .galleys_links li { display: inline-block; margin: 6px 8px 0 0; }
.obj_article_summary .galleys_links a {
  display: inline-flex; align-items: center; gap: 7px;
  background: #ffffff; color: var(--c-magenta-dark) !important;
  border: 1px solid #cfe0ee; border-radius: 3px;
  font-size: 13px; font-weight: 600; padding: 7px 18px;
  transition: background .15s ease, border-color .15s ease;
}
.obj_article_summary .galleys_links a:hover { background: var(--c-magenta-soft); border-color: var(--c-magenta); }
.c_read_more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  border: 1px solid #cfe0ee; border-radius: 3px; padding: 9px 20px;
  color: var(--c-magenta-dark); font-weight: 600; font-size: 14px;
  transition: background .15s ease;
}
.c_read_more:hover { background: #eef6fc; }

/* =========================================================
   6. BARRE LATÉRALE
   ========================================================= */

/* Panneau de liens : lignes rosées (couleurs du logo) séparées par des filets blancs.
   Pas de bordure extérieure : les lignes touchent le bord, comme sur Classy. */
.c_menu { padding: 0; margin-bottom: 15px; border-radius: var(--c-radius); overflow: hidden; }
.c_menu a {
  display: flex; align-items: center; gap: 15px;
  padding: 15px 22px; color: var(--c-magenta-dark); font-weight: 600; font-size: 15px;
  background: var(--c-panel-row); border-bottom: 1px solid #ffffff;
  transition: background .15s ease, padding-left .15s ease;
}
.c_menu a:last-child { border-bottom: 0; }
.c_menu a .fa { width: 18px; text-align: center; color: var(--c-magenta); font-size: 15px; }
.c_menu a:hover { background: var(--c-panel-row-hover); padding-left: 28px; color: var(--c-magenta); }

/* En-tête de panneau : dégradé rosé, texte magenta centré */
.c_panel_head {
  background: linear-gradient(180deg, #f9edf6 0%, #f0dcec 100%);
  color: var(--c-magenta-dark); text-align: center;
  font-weight: 700; font-size: 15px; padding: 14px 18px;
  border-bottom: 1px solid var(--c-line);
}
.c_editor { display: flex; gap: 13px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--c-line); }
.c_editor:last-child { border-bottom: 0; }
.c_editor img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-line); flex: none; }
.c_editor .name { font-weight: 700; color: var(--c-ink); font-size: 13.5px; line-height: 1.4; }
.c_editor .role { color: var(--c-magenta-dark); font-size: 12.5px; font-weight: 600; }
.c_editor .aff { color: var(--c-muted); font-size: 12px; }

.c_visitors { padding: 16px 18px; text-align: center; }
.c_visitors_title { font-weight: 700; color: var(--c-ink); font-size: 14px; margin-bottom: 10px; text-align: left; }
.c_visitors img { max-width: 100%; height: auto; }

/* Encart Registration */
.c_note { padding: 16px 18px 18px; }
.c_note p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; text-align: left; }
.c_note p:last-child { margin-bottom: 0; }
.c_note .c_mail { font-weight: 700; font-style: italic; color: var(--c-magenta-dark); word-break: break-word; }

/* Blocs natifs d'OJS (Keywords, Registration…) intégrés à notre colonne :
   ils prennent l'apparence de nos panneaux au lieu du style par défaut. */
.c_ojs_blocks { display: block; }
.c_side .pkp_block {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--c-radius); box-shadow: var(--c-shadow);
  margin: 0 0 15px; padding: 0; overflow: hidden;
  width: auto; float: none; clear: both;
}
.c_side .pkp_block .title,
.c_side .pkp_block > h2,
.c_side .pkp_block > h3 {
  background: linear-gradient(180deg, #f9edf6 0%, #f0dcec 100%);
  color: var(--c-magenta-dark); text-align: center;
  font-weight: 700; font-size: 15px; padding: 14px 18px; margin: 0;
  border-bottom: 1px solid var(--c-line);
}
.c_side .pkp_block .content { padding: 16px 18px; font-size: 14px; line-height: 1.7; }
.c_side .pkp_block .content ul { list-style: none; margin: 0; padding: 0; }
.c_side .pkp_block .content li { margin-bottom: 9px; }
.c_side .pkp_block .content a { color: var(--c-magenta-dark); }
.c_side .pkp_block .content a:hover { color: var(--c-magenta); text-decoration: underline; }
.c_side .pkp_block img { max-width: 100%; height: auto; }

/* =========================================================
   7. PIED DE PAGE
   Le thème parent impose text-align:center et une largeur fixe
   sur .pkp_structure_footer : on les annule ici.
   ========================================================= */

/* Un seul bloc violet continu : la carte et le bandeau de licence
   partagent le même fond, séparés par un simple filet. */
.pkp_structure_footer_wrapper {
  background: var(--c-purple) !important;
  color: #ebdaec; margin-top: 26px;
  border-top: 4px solid var(--c-magenta);
}
.pkp_structure_footer {
  max-width: var(--c-maxw); margin: 0 auto; padding: 0 16px;
  width: auto !important; text-align: left !important;
}
.c_footer_card {
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  padding: 34px 20px 26px; margin: 0;
}
.c_footer_grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; }
.c_footer_col { text-align: left; }
.c_footer_col h4 { color: #ffffff; font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid rgba(255,255,255,.28); }
.c_footer_col p { font-size: 14.5px; margin: 0 0 8px; color: #ebdaec; }
.c_footer_col ul { list-style: none; margin: 0; padding: 0; }
.c_footer_col li { margin-bottom: 9px; }
.c_footer_col a { color: #f6e4f7; font-size: 14.5px; }
.c_footer_col a:hover { color: #ffffff; text-decoration: underline; }

.c_footer_strip {
  background: transparent; color: #d9c2db; font-size: 12.5px;
  text-align: center; padding: 16px 36px 18px; line-height: 1.8;
  max-width: var(--c-maxw); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.20);
}
.c_footer_strip p { max-width: none; margin: 0 auto 4px; text-align: center; }
.c_footer_strip p:last-child { margin-bottom: 0; }
.c_footer_strip a { color: #ffffff; text-decoration: underline; }
.c_cc { height: 20px; width: auto; vertical-align: -5px; margin: 0 5px; }
.pkp_footer_content { padding: 0 20px 20px; font-size: 13px; color: #d9c2db; text-align: left; }
.pkp_brand_footer { display: none; }

/* Boutons de partage et autres sorties de plugins : meme fond violet,
   colles au pied de page, sans marge parasite ni bande blanche. */
.c_footer_social {
  background: var(--c-purple);
  margin: 0; padding: 0 16px 20px; text-align: center;
}
/* Aucun filet au-dessus des boutons : le bloc doit prolonger le violet
   sans rupture, quelle que soit la bordure posee par le plugin. */
.c_footer_social,
.c_footer_social > *:first-child,
.c_footer_social .shariff,
.c_footer_social .shariff > *:first-child {
  border-top: 0 !important; box-shadow: none !important; margin-top: 0 !important;
}
.c_footer_social > * { margin-top: 0 !important; }
.c_footer_social .shariff { max-width: var(--c-maxw); margin: 0 auto !important; }
.c_footer_social .shariff ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.c_footer_social .shariff li { margin: 0 !important; }

/* =========================================================
   8. DIVERS
   ========================================================= */

.pkp_site_nav_toggle { display: none; }

@keyframes c5In { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pkp_structure_main { animation: c5In .35s ease both; }


/* =========================================================
   8 bis. SOMMAIRE DU NUMÉRO
   La couverture du numéro est flottante dans le gabarit d'OJS :
   sans confinement, les rubriques suivantes sont repoussées
   sous elle et créent de grands vides. flow-root la contient.
   ========================================================= */

.obj_issue_toc .heading,
.obj_issue_toc .issue_head { display: flow-root; }
.obj_issue_toc .heading::after,
.obj_issue_toc .issue_head::after { content: ""; display: table; clear: both; }

.obj_issue_toc .cover,
.obj_issue_toc .issue_cover { float: left; margin: 0 24px 14px 0; max-width: 180px; }
.obj_issue_toc .cover img,
.obj_issue_toc .issue_cover img { display: block; width: 100%; height: auto; }

.obj_issue_toc .published { margin: 0 0 10px; font-size: 14.5px; }
.obj_issue_toc .sections { clear: both; }
.obj_issue_toc .section { clear: both; margin: 0; padding: 0; }
.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3,
.obj_issue_toc .section_title {
  margin: 22px 0 6px; padding-bottom: 8px; font-size: 15px;
  letter-spacing: .4px; color: var(--c-muted);
  border-bottom: 1px solid var(--c-line);
}
.obj_issue_toc .section > ul { margin: 0; padding: 0; list-style: none; }

/* Resserre les fiches d'article et supprime le vide sous les boutons */
.obj_article_summary { padding: 15px 0; margin: 0; }
.obj_article_summary > .galleys,
.obj_article_summary .galleys_links { margin: 10px 0 0; padding: 0; }
.obj_article_summary .galleys_links li { margin: 6px 8px 0 0; }
.obj_article_summary .galleys_links li:last-child { margin-bottom: 0; }
.obj_article_summary .obj_galley_link,
.obj_article_summary .galleys_links a {
  background: #ffffff; color: var(--c-magenta-dark) !important;
  border: 1px solid var(--c-magenta); border-radius: 3px;
  font-size: 13px; font-weight: 600; padding: 7px 18px;
  display: inline-flex; align-items: center; gap: 7px;
}
.obj_article_summary .obj_galley_link:hover,
.obj_article_summary .galleys_links a:hover { background: var(--c-magenta-soft); }
/* =========================================================
   9. RESPONSIVE
   ========================================================= */

/* Tablette : menu replié en panneau superposé */
@media (max-width: 1024px) {
  .c_navbar_in { flex-wrap: wrap; position: relative; padding: 6px 12px; }

  /* Annule le position:absolute imposé au bouton par le thème parent */
  .pkp_site_nav_toggle {
    position: static; z-index: auto; box-shadow: none;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 40px; padding: 0;
    border: 1px solid var(--c-line); border-radius: 3px;
    background: #ffffff; cursor: pointer;
  }
  .pkp_site_nav_toggle:focus { outline: 2px solid var(--c-magenta); box-shadow: none; }
  .pkp_site_nav_toggle span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; background: none;
  }
  .pkp_site_nav_toggle::before { content: "\2630"; font-size: 20px; line-height: 1; color: var(--c-ink); }
  .pkp_site_nav_toggle.is-open::before { content: "\2715"; }

  /* Le menu se superpose au contenu, jamais derrière */
  .c_nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
    flex-direction: column; align-items: stretch;
    background: #ffffff; border-top: 1px solid var(--c-line);
    box-shadow: 0 14px 28px rgba(27, 47, 69, .22);
    padding: 0;
  }
  .c_nav.open { display: flex; }
  .c_nav a { padding: 15px 18px; border-bottom: 1px solid var(--c-line); }
  .c_nav a:last-child { border-bottom: 0; }
  .c_nav a.active { box-shadow: inset 3px 0 0 var(--c-magenta); }

  .c_search { margin-left: auto; }
  .c_search.is_open .c_search_field { width: 150px; }
}

/* La colonne latérale passe sous le contenu */
@media (max-width: 980px) {
  .c_layout { grid-template-columns: 1fr; }
  .c_footer_grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pkp_site_name_wrapper { flex-wrap: wrap; }
  .c_logo img { height: 62px; }
}

/* La couverture passe au-dessus des métadonnées */
@media (max-width: 760px) {
  .c_meta { grid-template-columns: 1fr; gap: 20px; }
  .obj_issue_toc .cover, .obj_issue_toc .issue_cover { max-width: 130px; margin: 0 16px 12px 0; }
  .c_ss { max-width: 240px; margin: 0 auto; }
}

/* Téléphone */
@media (max-width: 640px) {
  .c_logo img { height: auto; width: 100%; max-width: 215px; }
  .pkp_structure_head, .pkp_head_wrapper { padding: 0 !important; }
  .pkp_site_name_wrapper { padding: 12px 14px !important; gap: 10px; flex-wrap: nowrap; }
  .c_actions { flex: none; margin-left: auto; gap: 6px; }
  .c_btn { padding: 8px 12px; font-size: 12.5px; }
  .c_logo { flex: 0 1 auto; min-width: 0; }
  .pkp_structure_content { padding: 12px 12px 30px; }
  .c_card > .c_card_title { font-size: 19px; padding: 20px 20px 0; }
  .c_card > .c_card_title::after { width: 80%; }
  .c_card_body { padding: 18px 20px 22px; }
  .c_footer_grid { grid-template-columns: 1fr; gap: 24px; }
  .c_footer_card { padding: 24px 22px 18px; }
  .c_search_toggle .c_search_label { display: none; }
  .c_search.is_open .c_search_field { width: 130px; }
  .c_navbar_in { padding: 3px 10px; }
  .pkp_site_nav_toggle { width: 40px; height: 36px; }
  .c_search_toggle { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pkp_structure_main { animation: none; }
  .c_btn, .c_submit, .c_menu a, .c_search_field { transition: none; }
}

/* =========================================================
   10. SURCHARGES FINALES
   Placées en fin de fichier : elles l'emportent sur les règles
   du thème parent d'OJS, qui gagnaient jusqu'ici en spécificité.
   ========================================================= */

/* --- Boutons de téléchargement en style "secondaire" --- */
a.obj_galley_link,
.obj_article_summary a.obj_galley_link,
.obj_article_summary .galleys_links a,
.galleys_links a.obj_galley_link {
  background: #6c757d !important;
  color: #ffffff !important;
  border: 1px solid #6c757d !important;
  border-radius: 4px !important;
  font-weight: 600 !important; font-size: 13px !important;
  padding: 8px 18px !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  box-shadow: none !important;
  transition: background .15s ease, border-color .15s ease;
}
a.obj_galley_link:hover,
.obj_article_summary a.obj_galley_link:hover,
.obj_article_summary .galleys_links a:hover,
.galleys_links a.obj_galley_link:hover {
  background: #5a6268 !important; border-color: #545b62 !important; color: #ffffff !important;
}
a.obj_galley_link .fa,
.obj_article_summary .galleys_links a .fa { color: #ffffff !important; }

/* --- Titre des blocs OJS réellement centré --- */
.c_side .pkp_block .title,
.c_side .pkp_block > h2,
.c_side .pkp_block > h3,
.c_side .pkp_block > .title {
  display: block !important; width: 100% !important;
  margin: 0 !important; padding: 14px 10px !important;
  text-align: center !important; text-indent: 0 !important;
  float: none !important;
}
/* Le nuage de mots ne doit pas déborder du panneau */
.c_side .pkp_block .content { max-width: 100%; overflow: hidden; }
.c_side .pkp_block .content > * { max-width: 100%; }

/* --- Nuage de mots-clés : teintes de la charte au lieu des couleurs
   aléatoires du plugin. Le !important prime sur les styles en ligne
   posés par son JavaScript. Cinq tons alternés gardent l'effet nuage. --- */
.c_side .pkp_block .content { padding: 18px 14px 20px; text-align: center; }
.c_side .pkp_block .content a,
.c_side .pkp_block .content span { line-height: 1.5; }

.c_side .pkp_block .content a:nth-of-type(5n+1),
.c_side .pkp_block .content span:nth-of-type(5n+1) { color: var(--c-magenta) !important; }
.c_side .pkp_block .content a:nth-of-type(5n+2),
.c_side .pkp_block .content span:nth-of-type(5n+2) { color: var(--c-purple) !important; }
.c_side .pkp_block .content a:nth-of-type(5n+3),
.c_side .pkp_block .content span:nth-of-type(5n+3) { color: var(--c-magenta-dark) !important; }
.c_side .pkp_block .content a:nth-of-type(5n+4),
.c_side .pkp_block .content span:nth-of-type(5n+4) { color: var(--c-purple-dark) !important; }
.c_side .pkp_block .content a:nth-of-type(5n+5),
.c_side .pkp_block .content span:nth-of-type(5n+5) { color: #b06fb3 !important; }

.c_side .pkp_block .content a:hover,
.c_side .pkp_block .content span:hover { color: var(--c-magenta) !important; text-decoration: underline; }

/* Si le plugin rend le nuage en SVG, on colore aussi le texte SVG */
.c_side .pkp_block svg text:nth-of-type(2n+1) { fill: var(--c-magenta) !important; }
.c_side .pkp_block svg text:nth-of-type(2n) { fill: var(--c-purple) !important; }
.c_side .pkp_block svg { max-width: 100%; height: auto; }

/* --- Centrage définitif du titre des blocs OJS ---
   text-align ne suffisait pas (text-indent / élément invisible inséré
   par le plugin). Flexbox centre la boîte elle-même, sans y être sensible. --- */
.c_side .pkp_block .title,
.c_side .pkp_block > h2,
.c_side .pkp_block > h3,
.c_side .pkp_block > .title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  text-indent: 0 !important;
  padding: 14px 10px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}
/* Tout élément placé avant le texte ne doit pas décaler le centrage */
.c_side .pkp_block .title::before,
.c_side .pkp_block > h2::before,
.c_side .pkp_block > h3::before { content: none !important; display: none !important; }
.c_side .pkp_block .title > *,
.c_side .pkp_block > h2 > *,
.c_side .pkp_block > h3 > * { margin: 0 !important; padding: 0 !important; float: none !important; }
