/* ===== PCT - Parti Congolais du Travail ===== */
/* Couleurs: Rouge #CC0001 | Vert #009A44 | Or #F5C518 */

:root {
  --rouge: #CC0001;
  --rouge-fonce: #990001;
  --vert: #009A44;
  --or: #F5C518;
  --or-fonce: #d4a800;
  --noir: #1a1a1a;
  --gris-fonce: #2c2c2c;
  --gris: #6c757d;
  --gris-clair: #f8f9fa;
  --blanc: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* overflow-x: clip ne crée pas de scroll container, donc les enfants peuvent toujours scroller horizontalement */
  overflow-x: clip;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--noir);
  background: var(--blanc);
}

img, video, iframe, svg, table {
  max-width: 100%;
}

/* ===== TOPBAR GOV ===== */
.topbar-gov {
  background: #1a1a1a;
  padding: 7px 0;
  font-size: 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1045;
}

/* ===== FIXED HEADER OFFSET ===== */
body {
  padding-top: 115px;
}
.topbar-gov a {
  color: #bbb;
  text-decoration: none;
  padding: 0 12px;
  border-right: 1px solid #444;
  transition: color .2s;
}
.topbar-gov a:last-child { border-right: none; }
.topbar-gov a:hover { color: #fff; }
.topbar-gov .lang {
  background: #CC0001;
  color: #fff !important;
  padding: 2px 10px !important;
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  border: none !important;
}
.topbar-gov .social-top a {
  color: #999;
  border: none;
  padding: 0 6px;
  font-size: 13px;
}
.topbar-gov .social-top a:hover { color: #fff; }

/* ===== NAVBAR WHITE GOV ===== */
.navbar-gov {
  background: #fff !important;
  padding: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.navbar-gov .navbar-brand { padding: 10px 0; }
.navbar-gov .nav-link {
  color: #333 !important;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 24px 15px !important;
  border-bottom: 3px solid transparent;
  transition: all 0.25s;
}
.navbar-gov .nav-link:hover,
.navbar-gov .nav-link.active,
.navbar-gov .nav-link.mega-active {
  color: #CC0001 !important;
  border-bottom-color: #CC0001;
}
.navbar-gov .navbar-toggler { border-color: #ddd; }

/* ===== MEGA MENU ===== */
#mainNav {
  position: fixed !important;
  top: 35px;
  left: 0;
  width: 100%;
  z-index: 1040;
  overflow: visible;
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 3px solid #CC0001;
  box-shadow: 0 15px 50px rgba(0,0,0,0.18);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  pointer-events: none;
}
.mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-col {
  padding: 28px 25px;
  border-right: 1px solid #f0f0f0;
}
.mega-col:last-child { border-right: none; }
.mega-section-title {
  font-size: 11px;
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #CC0001;
}
.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  color: #444;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  transition: all .18s;
}
.mega-link i { color: #CC0001; font-size: 10px; flex-shrink: 0; }
.mega-link:last-child { border-bottom: none; }
.mega-link:hover { color: #CC0001; padding-left: 6px; }
.mega-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: #444;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid #f5f5f5;
  transition: color .18s;
}
.mega-social-link:hover { color: #CC0001; }
.mega-featured-col { background: #fafafa; }
.mega-footer {
  border-top: 1px solid #eee;
  padding: 11px 0;
  background: #f8f9fa;
}
.mega-footer a {
  color: #CC0001;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: opacity .2s;
}
.mega-footer a:hover { opacity: 0.7; }
@media(max-width:991px){
  .mega-panel { display: none !important; }
}

/* ===== TOPBAR (legacy, kept for backwards compat) ===== */
.topbar {
  background: var(--rouge-fonce);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--or); }
.topbar .social-icons a {
  margin-left: 10px;
  font-size: 15px;
}

/* ===== NAVBAR ===== */
.navbar-pct {
  background: var(--rouge) !important;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.navbar-pct .navbar-brand img {
  height: 70px;
}
.navbar-pct .nav-link {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 20px 16px !important;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
.navbar-pct .nav-link:hover,
.navbar-pct .nav-link.active {
  color: var(--or) !important;
  border-bottom-color: var(--or);
  background: rgba(0,0,0,0.15);
}
.navbar-pct .dropdown-menu {
  background: var(--rouge-fonce);
  border: none;
  border-top: 3px solid var(--or);
  border-radius: 0 0 6px 6px;
  min-width: 220px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.navbar-pct .dropdown-item {
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.navbar-pct .dropdown-item:hover {
  background: rgba(255,255,255,0.1);
  border-left-color: var(--or);
  color: var(--or);
}
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { filter: invert(1); }

/* ===== HERO / CAROUSEL ===== */
.hero-section {
  background: linear-gradient(135deg, var(--rouge-fonce) 0%, var(--rouge) 50%, #8b0000 100%);
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="30" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="40" fill="rgba(255,255,255,0.03)"/></svg>') center/cover;
}
.hero-content { position: relative; z-index: 2; }
.hero-slogan {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--or);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-top: 15px;
}
.hero-leader-img {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid var(--or);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.hero-leader-placeholder {
  width: 200px;
  height: 250px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  border: 4px solid var(--or);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  text-align: center;
}
.hero-leader-placeholder i { font-size: 50px; margin-bottom: 8px; color: var(--or); }
.hero-leader-name {
  color: var(--or);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== BANDEAU TRICOLORE ===== */
.tricolor-bar {
  height: 6px;
  background: linear-gradient(to right, var(--vert) 33.33%, var(--or) 33.33%, var(--or) 66.66%, var(--rouge) 66.66%);
}

/* ===== SECTION TITLES ===== */
.section-title {
  position: relative;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  padding-bottom: 15px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--or);
  border-radius: 2px;
}
.section-title.centered { text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* ===== CARDS ===== */
.pct-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  overflow: hidden;
  height: 100%;
}
.pct-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.pct-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.pct-card .card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pct-card .card-img-placeholder i { font-size: 50px; color: rgba(255,255,255,0.4); }
.pct-card .card-body { padding: 20px; }
.pct-card .card-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.pct-card .card-title { font-size: 1rem; font-weight: 700; color: var(--noir); margin-bottom: 10px; }
.pct-card .card-text { font-size: 0.875rem; color: var(--gris); line-height: 1.6; }
.pct-card .card-footer { background: transparent; border-top: 1px solid #f0f0f0; padding: 12px 20px; }
.pct-card .card-date { font-size: 12px; color: var(--gris); }
.pct-card .card-date i { color: var(--or); margin-right: 5px; }

/* ===== BUTTONS ===== */
.btn-pct-rouge {
  background: var(--rouge);
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-pct-rouge:hover {
  background: var(--rouge-fonce);
  color: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204,0,1,0.4);
}
.btn-pct-or {
  background: var(--or);
  color: var(--noir);
  border: none;
  padding: 10px 28px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-pct-or:hover {
  background: var(--or-fonce);
  color: var(--noir);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245,197,24,0.5);
}
.btn-pct-outline {
  background: transparent;
  color: var(--rouge);
  border: 2px solid var(--rouge);
  padding: 8px 24px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-pct-outline:hover {
  background: var(--rouge);
  color: #fff;
}

/* ===== SECRETAIRE GENERAL ===== */
.sg-section { background: var(--gris-clair); }
.sg-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 5px solid var(--or);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.sg-photo-placeholder {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--rouge) 0%, var(--rouge-fonce) 100%);
  border-radius: 10px;
  border: 5px solid var(--or);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sg-photo-placeholder i { font-size: 80px; color: rgba(255,255,255,0.4); }
.sg-name { font-size: 1.5rem; font-weight: 800; color: var(--rouge); }
.sg-title { color: var(--gris); font-size: 0.9rem; font-style: italic; }
.sg-quote {
  border-left: 4px solid var(--or);
  padding: 15px 20px;
  background: rgba(245,197,24,0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--gris-fonce);
  line-height: 1.7;
}

/* ===== EVENEMENTS ===== */
.event-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--rouge);
  transition: all 0.3s;
}
.event-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.event-date-box {
  background: var(--rouge);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  min-width: 70px;
  flex-shrink: 0;
}
.event-date-day { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.event-date-month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event-title { font-weight: 700; font-size: 1rem; color: var(--noir); margin-bottom: 5px; }
.event-location { font-size: 0.85rem; color: var(--gris); }
.event-location i { color: var(--rouge); margin-right: 5px; }

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(135deg, var(--rouge-fonce) 0%, var(--rouge) 100%);
  padding: 60px 0 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.page-banner h1 { font-size: 2.5rem; font-weight: 900; text-transform: uppercase; }
.page-banner .breadcrumb { background: transparent; padding: 0; margin: 10px 0 0; }
.page-banner .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 13px; }
.page-banner .breadcrumb-item.active { color: var(--or); }
.page-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ===== SIDEBAR ===== */
.sidebar-menu { background: var(--gris-clair); border-radius: 10px; overflow: hidden; }
.sidebar-menu-title {
  background: var(--rouge);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-menu ul { list-style: none; padding: 10px 0; }
.sidebar-menu ul li a {
  display: block;
  padding: 10px 20px;
  color: var(--gris-fonce);
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
  background: rgba(204,0,1,0.06);
  border-left-color: var(--rouge);
  color: var(--rouge);
  font-weight: 600;
}

/* ===== STATS ===== */
.stats-section { background: var(--rouge); }
.stat-item { text-align: center; color: #fff; padding: 30px 20px; }
.stat-number { font-size: 3rem; font-weight: 900; color: var(--or); display: block; }
.stat-label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }

/* ===== FORMS ===== */
.pct-form-section { background: var(--gris-clair); }
.pct-form { background: #fff; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); padding: 40px; }
.pct-form .form-label { font-weight: 600; font-size: 14px; color: var(--gris-fonce); }
.pct-form .form-control, .pct-form .form-select {
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 14px;
  transition: border-color 0.3s;
}
.pct-form .form-control:focus, .pct-form .form-select:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 0.2rem rgba(204,0,1,0.1);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gris-fonce);
  color: rgba(255,255,255,0.85);
}
footer h5 {
  color: var(--or);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245,197,24,0.3);
}
footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--or); }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; font-size: 14px; }
footer ul li a::before { content: '›'; margin-right: 8px; color: var(--rouge); font-weight: 700; }
footer .contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 14px; }
footer .contact-item i { color: var(--or); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  margin-right: 8px;
  font-size: 15px;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--rouge); transform: translateY(-3px); }
.footer-bottom {
  background: var(--noir);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--or); }

/* ===== EMBLEME ===== */
.embleme-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
}
.embleme-icon {
  font-size: 3rem;
  color: var(--or);
  margin-bottom: 10px;
}

/* ===== NEWS ARTICLE ===== */
.article-meta { font-size: 13px; color: var(--gris); margin-bottom: 15px; }
.article-meta span { margin-right: 15px; }
.article-meta i { color: var(--rouge); margin-right: 5px; }
.article-tag {
  display: inline-block;
  background: var(--rouge);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--rouge), var(--vert));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--rouge);
  border: 3px solid var(--or);
  border-radius: 50%;
}
.timeline-year {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--rouge);
  margin-bottom: 5px;
}
.timeline-content { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }

/* ===== TABLE ===== */
.pct-table { border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
.pct-table thead { background: var(--rouge); color: #fff; }
.pct-table thead th { font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 14px 16px; border: none; }
.pct-table tbody td { padding: 13px 16px; font-size: 14px; vertical-align: middle; }
.pct-table tbody tr:hover { background: rgba(204,0,1,0.04); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  body { padding-top: 105px; }
  .hero-section { min-height: auto; padding: 40px 0; }
  .hero-slogan { font-size: 1.4rem; }
  .hero-leader-placeholder, .hero-leader-img { width: 150px; height: 190px; }
  .page-banner h1 { font-size: 1.8rem; }
  .pct-form { padding: 25px 20px; }
}
@media (max-width: 576px) {
  .topbar-gov .d-flex > div:first-child a { padding: 0 7px; font-size: 11px; }
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--rouge);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(204,0,1,0.4);
  transition: all 0.3s;
  z-index: 999;
}
#scrollTop:hover { background: var(--rouge-fonce); transform: translateY(-3px); }
#scrollTop.visible { display: flex; }
