/* =====================================================================
   UGANC — compléments de style pour les pages dynamiques
   (s'ajoute à style.css du template sans le modifier)
   ===================================================================== */

/* Contenu riche issu de la base de données */
.page-content { font-size: 16px; line-height: 1.8; }
.page-content h2, .page-content h3, .page-content h4 { margin: 30px 0 15px; }
.page-content h4:first-child { margin-top: 0; }
.page-content p { margin-bottom: 18px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 20px; }
.page-content ul li, .page-content ol li { margin-bottom: 8px; }
.page-content img { max-width: 100%; height: auto; border-radius: 8px; }
.page-content blockquote {
  border-left: 4px solid var(--color-primary);
  background: #f7f8fa; padding: 18px 24px; margin: 25px 0; font-style: italic; border-radius: 0 8px 8px 0;
}
.page-content table { width: 100%; margin-bottom: 20px; border-collapse: collapse; }
.page-content table td, .page-content table th { border: 1px solid #e5e5e5; padding: 10px; }

/* Image principale d'une page */
.page-cover { border-radius: 10px; overflow: hidden; margin-bottom: 35px; }
.page-cover img { width: 100%; max-height: 420px; object-fit: cover; }

/* Encadré contact latéral */
.contact-box { background: #f7f8fa; border-radius: 10px; padding: 25px; }
.contact-box li { margin-bottom: 10px; word-break: break-word; }
.contact-box i { margin-right: 8px; }

/* Liste de documents téléchargeables */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 16px 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; background: #fff;
  transition: box-shadow .2s;
}
.doc-list li:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.doc-list .doc-icon { font-size: 26px; color: #c0392b; margin-right: 15px; }
.doc-list .doc-title { font-weight: 700; color: #222; }
.doc-list .doc-desc { font-size: 14px; color: #777; margin: 0; }
.doc-list .btn { white-space: nowrap; }

/* Offre de formation */
.formation-level { margin-bottom: 40px; }
.formation-level h4 { border-bottom: 2px solid #eee; padding-bottom: 12px; margin-bottom: 20px; }
.formation-list { list-style: none; padding: 0; margin: 0; }
.formation-list li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 15px;
  padding: 14px 0; border-bottom: 1px dashed #e5e5e5;
}
.formation-list .f-title { font-weight: 700; color: #222; }
.formation-list .f-meta { font-size: 14px; color: #777; }
.formation-list .f-badge {
  font-size: 12px; background: #f1f3f6; padding: 4px 10px; border-radius: 20px; white-space: nowrap; color: #444;
}

/* Filtres (boutons pilules) */
.uganc-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; padding: 0; list-style: none; }
.uganc-filters a {
  display: inline-block; padding: 8px 18px; border-radius: 30px; border: 1px solid #ddd; color: #333; font-weight: 700; font-size: 14px;
}
.uganc-filters a.active, .uganc-filters a:hover { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }

/* Cartes événement / agenda */
.event-card { display: flex; gap: 20px; background: #fff; border-radius: 10px; padding: 22px; box-shadow: 0 5px 25px rgba(0,0,0,.06); margin-bottom: 25px; }
.event-date {
  flex: 0 0 80px; height: 86px; border-radius: 10px; background: var(--color-secondary); color: #fff; text-align: center;
  display: flex; flex-direction: column; justify-content: center; line-height: 1.1;
}
.event-date .d { font-size: 30px; font-weight: 700; }
.event-date .m { font-size: 13px; text-transform: uppercase; }
.event-date .y { font-size: 12px; opacity: .8; }
.event-body h4 { font-size: 19px; margin-bottom: 8px; }
.event-meta { font-size: 14px; color: #777; margin-bottom: 8px; }
.event-meta span { margin-right: 15px; display: inline-block; }
.event-past .event-date { background: #9aa3b5; }
.agenda-month { margin: 35px 0 20px; font-size: 22px; text-transform: capitalize; }

/* Chiffres clés */
.stat-card { background: #fff; border-radius: 12px; padding: 35px 25px; text-align: center; box-shadow: 0 5px 25px rgba(0,0,0,.06); height: 100%; }
.stat-card .stat-icon { font-size: 40px; margin-bottom: 15px; display: block; }
.stat-card .stat-value { font-size: 42px; font-weight: 700; line-height: 1; margin-bottom: 10px; color: var(--color-secondary); }
.stat-card .stat-label { font-weight: 700; margin-bottom: 6px; }
.stat-card p { font-size: 14px; color: #777; margin: 0; }

/* Membres / anciens recteurs */
.member .member-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rector-card { text-align: center; margin-bottom: 30px; }
.rector-card img { width: 120px; height: 120px; object-fit: contain; border-radius: 50%; margin-bottom: 12px; background: #f1f3f6; }
.rector-card h6 { margin-bottom: 4px; font-size: 15px; }
.rector-card span { font-size: 13px; color: #777; display: block; }
.rector-card .periode { font-weight: 700; color: var(--color-secondary); }

/* Galerie */
.gallery-grid .gallery-item { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 30px; }
.gallery-grid .gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s; }
.gallery-grid .gallery-item:hover img { transform: scale(1.06); }
.gallery-grid .gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 15px; color: #fff; font-size: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* Partenaires */
.partner-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 25px; text-align: center; height: 100%; }
.partner-card img { max-height: 90px; max-width: 100%; object-fit: contain; margin-bottom: 15px; }
.partner-card h6 { font-size: 15px; margin: 0; }

/* Publications */
.pub-item { border-bottom: 1px solid #eee; padding: 22px 0; }
.pub-item h4 { font-size: 19px; margin-bottom: 8px; }
.pub-item .pub-meta { font-size: 14px; color: #777; }

/* Cartes composantes / centres */
.service-item .service-img img { width: 100%; height: 230px; object-fit: cover; }
.post-item .post-img img { width: 100%; height: 250px; object-fit: cover; }
.post-item-single .post-img img { height: auto; max-height: 520px; }
.widget-post-img img { width: 80px; height: 70px; object-fit: cover; }

/* Messages */
.alert-uganc { padding: 15px 20px; border-radius: 8px; margin-bottom: 25px; }
.alert-uganc.success { background: #e8f6ee; color: #1e7b45; }
.alert-uganc.error { background: #fdecea; color: #a8322b; }

.empty-state { text-align: center; padding: 50px 20px; color: #777; }
.empty-state i { font-size: 40px; display: block; margin-bottom: 15px; }

.sitemap-list li { margin-bottom: 6px; }
