/* ========================================================= */
/* 1. EN-TÊTE : logo + menu sur une seule ligne (inchangé)    */
/* ========================================================= */
.pkp_structure_head {
  background-color: #1a5276;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
  row-gap: 6px;
  padding: 8px 20px;
}

.pkp_site_name_wrapper img {
  max-height: 42px;
  width: auto;
  display: block;
  background-color: #1a5276;
  padding: 6px 10px;
  border-radius: 6px;
}

.pkp_navigation_primary_row {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

#navigationPrimary.pkp_navigation_primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
#navigationPrimary.pkp_navigation_primary > li > a {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  color: #ffffff;
  border-radius: 4px;
  white-space: nowrap;
}
#navigationPrimary.pkp_navigation_primary > li > a:hover,
#navigationPrimary.pkp_navigation_primary > li.current > a {
  background-color: rgba(255,255,255,0.18);
}

.pkp_search {
  margin-left: auto;
  white-space: nowrap;
}

.pkp_navigation_user > ul > li > a {
  color: #ffffff;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
}
.pkp_navigation_user > ul > li > a:hover {
  background-color: rgba(255,255,255,0.18);
}
.pkp_navigation_user ul ul {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  padding: 6px 0;
  min-width: 190px;
  border: none;
  margin-top: 6px;
}
.pkp_navigation_user ul ul li a {
  color: #2c2c2c !important;
  padding: 10px 18px !important;
  font-size: 14px;
  font-weight: 500;
}
.pkp_navigation_user ul ul li a:hover {
  background-color: #f2f6f9;
  color: #1a5276 !important;
}

/* ========================================================= */
/* 2. LISTE DES ARTICLES : carrousel horizontal (droite→gauche)*/
/*    (:has() cible automatiquement le bon conteneur parent)   */
/* ========================================================= */
:has(> .obj_article_summary) {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 10px 4px 20px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;           /* Firefox : barre native cachée   */
}
:has(> .obj_article_summary)::-webkit-scrollbar {
  display: none;                   /* Chrome/Edge : barre native cachée */
}

.obj_article_summary {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 0 0 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.obj_article_summary:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.obj_article_summary .coverImage { margin: 0 0 14px; }
.obj_article_summary .coverImage img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.obj_article_summary .title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 16px 8px;
  color: #1a5276;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.obj_article_summary .title a { color: inherit; text-decoration: none; }

.obj_article_summary .authors { margin: 0 16px 6px; font-size: 13px; color: #5c5c5c; }
.obj_article_summary .pages { margin: 0 16px 12px; font-size: 12px; color: #8a8a8a; }

.obj_article_summary .galleys_links { margin: auto 16px 0; padding: 0; list-style: none; }
.obj_article_summary .galleys_links a {
  display: inline-block;
  padding: 6px 14px;
  background: #1a5276;
  color: #ffffff !important;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
}
.obj_article_summary .galleys_links a:hover { background: #123a54; }

/* ==== Boutons flèche gauche/droite ajoutés par le script ==== */
.inrab-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inrab-carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #1a5276;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.inrab-carousel-btn:hover { background: #123a54; }

/* ========================================================= */
/* 3. Masquer la mention "Platform & workflow by OJS / PKP"   */
/* ========================================================= */
.pkp_brand_footer {
  display: none !important;
}
img[alt*="OJS"],
img[alt*="PKP"],
img[alt*="Powered by"] {
  display: none !important;
}
