/*
Theme Name: Cités Bénin
Theme URI: https://citesbenin.bj
Author: Cités Bénin
Description: Thème officiel de Cités Bénin – Au cœur des communes qui bougent
Version: 1.0
License: GNU General Public License v2
Text Domain: cites-benin
*/

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

:root {
  --navy: #0A1D3D;
  --green: #128A3A;
  --orange: #F28C1B;
  --light: #F2F4F7;
  --dark: #333333;
  --white: #ffffff;
  --green-light: #e8f5ee;
  --orange-light: #fef3e2;
  --navy-light: #e8ecf3;
  --border: #e2e6ed;
  --text-muted: #6b7280;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(10,29,61,0.07);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* ── NAVBAR ── */
nav#site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10,29,61,0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
}

.site-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}

.nav-menu a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  white-space: nowrap;
  display: block;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-menu .current-menu-item > a { color: var(--orange); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 10px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  background: #0d2349;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 500px; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s, color 0.15s;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.07); color: var(--orange); }

/* ── TICKER ── */
.ticker {
  background: var(--green);
  padding: 6px 0;
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ticker-label {
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  margin-right: 16px;
  flex-shrink: 0;
}
.ticker-content {
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── PAGE HERO (archive/single) ── */
.page-hero {
  background: var(--navy);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
}
.page-hero .category-label {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

/* ── MAIN LAYOUT ── */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.content-area { min-width: 0; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--navy);
}
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.section-link {
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.section-link:hover { color: var(--navy); }

/* ── ARTICLE GRID ── */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.25s;
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(10,29,61,0.12);
  border-color: var(--green);
}
.article-card-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0A4D2A, #128A3A);
}
.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-card-body { padding: 1rem; }
.article-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.article-card-tag::before {
  content: '';
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}
.article-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  font-family: 'Lora', serif;
  font-style: italic;
}
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ── CATEGORY COLORS ── */
.tag-actualites { color: var(--navy); }
.tag-reportages { color: var(--green); }
.tag-analyses   { color: #7c3aed; }
.tag-tribune    { color: #b45309; }
.tag-agenda     { color: #0891b2; }
.tag-opportunites { color: #dc2626; }

/* ── SINGLE POST ── */
.single-post-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 2rem;
}
.single-post-header { padding: 2rem; border-bottom: 1px solid var(--border); }
.single-post-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}
.single-post-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.single-post-featured {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.single-post-content {
  padding: 2rem;
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin: 2rem 0 1rem;
}
.single-post-content blockquote {
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  background: var(--green-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy);
}

/* ── TRIBUNE CARD ── */
.tribune-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.tribune-card::before {
  content: '❝';
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 80px;
  color: rgba(242,140,27,0.15);
  font-family: Georgia, serif;
}
.tribune-card:hover { background: #0d2349; transform: translateY(-2px); }
.tribune-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 10px;
  display: block;
}
.tribune-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 12px;
  font-family: 'Lora', serif;
  font-style: italic;
}
.tribune-author { display: flex; align-items: center; gap: 10px; }
.tribune-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.tribune-author-name { font-weight: 600; color: var(--white); display: block; font-size: 12px; }
.tribune-author-role { font-size: 11px; color: rgba(255,255,255,0.7); }

/* ── SIDEBAR ── */
.sidebar { min-width: 0; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.widget-header {
  background: var(--navy);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-header-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.widget-body { padding: 1rem; }

/* ── NEWSLETTER WIDGET ── */
.newsletter-widget {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2349 100%);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.newsletter-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.newsletter-sub { font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input {
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  text-align: center;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-btn {
  padding: 10px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #d97a0f; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.stat-item { flex: 1; text-align: center; padding: 0 1rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 22px; font-weight: 800; color: var(--navy); display: block; }
.stat-number span { color: var(--orange); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }

/* ── FOOTER ── */
footer#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-tagline { font-size: 12px; margin: 8px 0 16px; color: rgba(255,255,255,0.5); }
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2rem 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--navy);
  background: var(--white);
  transition: all 0.2s;
}
.pagination .current, .pagination a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-menu, .nav-search-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: block; }
  .site-main { grid-template-columns: 1fr; padding: 1.25rem 1rem; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-bar { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .single-post-title { font-size: 20px; }
}
