/*
Theme Name: Alèt Enfo
Theme URI: https://aletenfo.com
Author: 
Author URI: https://lsvmediaproduction.com
Description: Thème ofisyèl Alèt Enfo — Nouvèl Ayiti ak mond lan nan tan reyèl. Thème nouvèl modèn ak branding navy & rouge.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://aletenfo.com/license
Text Domain: aletEnfo
Tags: news, blog, magazine, responsive, custom-colors, custom-logo, featured-images, Haiti, Creole
*/

/* ============================================
   ALÈT ENFO — DESIGN SYSTEM
   Koule: Navy #1a2340 | Rouge #e02020 | Blanc #ffffff
   ============================================ */

:root {
  --navy: #1a2340;
  --navy-light: #2d3a5c;
  --red: #e02020;
  --red-dark: #b01818;
  --white: #ffffff;
  --gray-50: #f8f8f8;
  --gray-100: #eeeeee;
  --gray-200: #dddddd;
  --gray-300: #bbbbbb;
  --gray-600: #666666;
  --gray-800: #333333;
  --text: #1a1a1a;
  --font-headline: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; }

/* ============================================
   TOPBAR
   ============================================ */
.ae-topbar {
  background: var(--navy);
  color: #aabbd0;
  padding: 6px 0;
  font-size: 12px;
}
.ae-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ae-topbar a { color: #aabbd0; margin-left: 16px; transition: color .2s; }
.ae-topbar a:hover { color: #fff; }
.ae-topbar .social-icons { display: flex; gap: 12px; }

/* ============================================
   HEADER
   ============================================ */
.ae-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 14px 0;
}
.ae-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ae-logo { display: flex; align-items: center; gap: 12px; }
.ae-logo img { height: 52px; width: auto; }
.ae-logo-text .site-name {
  font-family: var(--font-headline);
  font-size: 32px;
  color: var(--navy);
  letter-spacing: 1px;
  line-height: 1;
}
.ae-logo-text .site-name span { color: var(--red); }
.ae-logo-text .site-tagline {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* SEARCH */
.ae-header-search { display: flex; gap: 0; }
.ae-header-search input {
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-right: none;
  border-radius: 2px 0 0 2px;
  font-size: 13px;
  width: 220px;
  outline: none;
  font-family: var(--font-body);
}
.ae-header-search input:focus { border-color: var(--navy); }
.ae-header-search button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  font-family: var(--font-body);
  transition: background .2s;
}
.ae-header-search button:hover { background: var(--red-dark); }

/* ============================================
   NAVIGATION
   ============================================ */
.ae-navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ae-navbar .container {
  display: flex;
  align-items: center;
}
.ae-navbar ul {
  display: flex;
  align-items: center;
  flex: 1;
}
.ae-navbar ul li a {
  display: block;
  color: #ccd8e8;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 15px;
  letter-spacing: .3px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.ae-navbar ul li a:hover,
.ae-navbar ul li.current-menu-item > a {
  background: var(--red);
  color: #fff;
}
.ae-navbar .live-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ae-navbar .live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* Mobile hamburger */
.ae-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 12px 16px;
  cursor: pointer;
}

/* ============================================
   BREAKING NEWS TICKER
   ============================================ */
.ae-ticker {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 8px 0;
  overflow: hidden;
}
.ae-ticker .container { display: flex; align-items: center; gap: 14px; }
.ae-ticker-label {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ae-ticker-wrap {
  overflow: hidden;
  flex: 1;
}
.ae-ticker-text {
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-fluid { width: 100%; padding: 0 20px; }

/* ============================================
   HERO / FEATURED
   ============================================ */
.ae-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  margin: 20px 0;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.ae-hero-main { position: relative; overflow: hidden; min-height: 380px; }
.ae-hero-main .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.ae-hero-main .hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 40px 24px 24px;
}
.ae-hero-main .hero-cat {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}
.ae-hero-main .hero-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}
.ae-hero-main .hero-meta { font-size: 12px; color: rgba(255,255,255,.7); }

/* HERO SIDEBAR */
.ae-hero-sidebar {
  border-left: 3px solid var(--red);
  display: flex;
  flex-direction: column;
}
.ae-hero-sidebar .sidebar-hd {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
}
.ae-hero-sidebar .sidebar-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.ae-hero-sidebar .sidebar-item:hover { background: var(--gray-50); }
.ae-hero-sidebar .sidebar-thumb {
  width: 70px;
  height: 56px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.ae-hero-sidebar .sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ae-hero-sidebar .sidebar-cat {
  font-size: 10px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.ae-hero-sidebar .sidebar-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.ae-section-hd {
  display: flex;
  align-items: center;
  margin: 24px 0 14px;
  border-bottom: 2px solid var(--navy);
}
.ae-section-hd .label {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 1px;
  padding: 6px 20px;
  display: inline-block;
}
.ae-section-hd .label.red { background: var(--red); }
.ae-section-hd .view-all {
  margin-left: auto;
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding-bottom: 6px;
}
.ae-section-hd .view-all:hover { color: var(--navy); }

/* ============================================
   POST CARDS
   ============================================ */
.ae-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ae-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ae-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.ae-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--gray-200);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.ae-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.ae-card.politique { border-top-color: var(--navy); }
.ae-card.societe { border-top-color: var(--red); }
.ae-card.kilti { border-top-color: #c08020; }
.ae-card.espò { border-top-color: #207040; }
.ae-card.entènasyonal { border-top-color: #5050c0; }
.ae-card.karayib { border-top-color: #20a0a0; }

.ae-card .card-thumb {
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.ae-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ae-card:hover .card-thumb img { transform: scale(1.04); }
.ae-card .card-body { padding: 10px 12px 14px; }
.ae-card .card-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.ae-card .card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 8px;
}
.ae-card .card-meta {
  font-size: 11px;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* CARD LARGE (featured in grid) */
.ae-card.large .card-thumb { height: 200px; }
.ae-card.large .card-title { font-size: 16px; font-family: var(--font-serif); }

/* ============================================
   FEATURED DARK BLOCK
   ============================================ */
.ae-featured-dark {
  background: var(--navy);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.ae-featured-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px, transparent 0, transparent 8px);
}
.ae-featured-dark .badge {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  position: relative;
}
.ae-featured-dark .title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 10px;
  position: relative;
}
.ae-featured-dark .meta { font-size: 12px; color: #8899bb; position: relative; }

/* ============================================
   TRENDING / MOST READ
   ============================================ */
.ae-trending { background: var(--white); border: 1px solid var(--gray-100); }
.ae-trending .hd {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
}
.ae-trending .item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.ae-trending .item:last-child { border-bottom: none; }
.ae-trending .item:hover { background: var(--gray-50); }
.ae-trending .num {
  font-family: var(--font-headline);
  font-size: 32px;
  color: var(--gray-100);
  line-height: 1;
  flex-shrink: 0;
  width: 30px;
}
.ae-trending .item-cat {
  font-size: 10px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ae-trending .item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.ae-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}
.ae-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: 24px;
}

/* ============================================
   VIDEO CARDS
   ============================================ */
.ae-video-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.ae-video-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  opacity: .75;
  transition: opacity .3s;
}
.ae-video-card:hover img { opacity: .9; }
.ae-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 44px;
  height: 44px;
  background: rgba(224,32,32,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.ae-video-card:hover .ae-video-play {
  background: var(--red-dark);
  transform: translate(-50%, -60%) scale(1.08);
}
.ae-video-play::after {
  content: '';
  border-left: 14px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.ae-video-card .video-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 30px 12px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.ae-widget { background: var(--white); border: 1px solid var(--gray-100); margin-bottom: 20px; }
.ae-widget .widget-title {
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 16px;
}
.ae-widget .widget-body { padding: 16px; }
.ae-widget .widget-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}
.ae-widget .widget-item:last-child { border-bottom: none; }
.ae-widget .widget-thumb {
  width: 60px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.ae-widget .widget-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ae-widget .widget-item-title { font-size: 12px; font-weight: 600; line-height: 1.4; }
.ae-widget .widget-item-meta { font-size: 10px; color: var(--gray-300); margin-top: 4px; }

/* AD WIDGET */
.ae-ad-box {
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--gray-300);
  font-size: 12px;
  min-height: 120px;
}

/* ============================================
   SINGLE POST
   ============================================ */
.ae-post-header { margin-bottom: 24px; }
.ae-post-cat {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.ae-post-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
}
.ae-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-600);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}
.ae-post-meta .author { font-weight: 600; color: var(--navy); }
.ae-post-featured { width: 100%; margin-bottom: 24px; }
.ae-post-featured img { width: 100%; max-height: 460px; object-fit: cover; }
.ae-post-content {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
}
.ae-post-content p { margin-bottom: 20px; }
.ae-post-content h2 {
  font-family: var(--font-headline);
  font-size: 22px;
  color: var(--navy);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
}
.ae-post-content blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  background: var(--gray-50);
  font-style: italic;
  margin: 24px 0;
}
.ae-post-content img { max-width: 100%; margin: 20px auto; }

/* SHARE BAR */
.ae-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  margin: 24px 0;
}
.ae-share span { font-size: 12px; font-weight: 700; color: var(--gray-600); }
.ae-share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
  font-family: var(--font-body);
}
.ae-share-btn:hover { opacity: .85; }
.ae-share-btn.facebook { background: #1877f2; color: #fff; }
.ae-share-btn.twitter { background: #1da1f2; color: #fff; }
.ae-share-btn.whatsapp { background: #25d366; color: #fff; }

/* ============================================
   CATEGORY LABELS (colored dots)
   ============================================ */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.cat-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.cat-badge.politique { color: var(--navy); }
.cat-badge.societe { color: var(--red); }
.cat-badge.kilti { color: #c08020; }
.cat-badge.espò { color: #207040; }

/* ============================================
   PAGINATION
   ============================================ */
.ae-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 30px 0;
}
.ae-pagination a, .ae-pagination span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.ae-pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.ae-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ============================================
   FOOTER
   ============================================ */
.ae-footer {
  background: var(--navy);
  color: #8899bb;
  padding: 40px 0 0;
  margin-top: 40px;
}
.ae-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ae-footer .footer-logo {
  font-family: var(--font-headline);
  font-size: 30px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.ae-footer .footer-logo span { color: var(--red); }
.ae-footer .footer-desc {
  font-size: 12px;
  line-height: 1.7;
  opacity: .7;
  margin-bottom: 16px;
}
.ae-footer .footer-social { display: flex; gap: 8px; }
.ae-footer .social-btn {
  background: rgba(255,255,255,.1);
  color: #ccd8e8;
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .2s;
}
.ae-footer .social-btn:hover { background: var(--red); color: #fff; }
.ae-footer h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ae-footer ul li { margin-bottom: 8px; }
.ae-footer ul li a {
  font-size: 12px;
  color: #8899bb;
  opacity: .8;
  transition: color .15s, opacity .15s;
}
.ae-footer ul li a:hover { color: var(--red); opacity: 1; }
.ae-footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: .45;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .ae-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ae-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .ae-hero { grid-template-columns: 1fr; }
  .ae-hero-sidebar { border-left: none; border-top: 3px solid var(--red); }
  .ae-two-col { grid-template-columns: 1fr; }
  .ae-three-col { grid-template-columns: 1fr; }
  .ae-grid-4, .ae-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ae-navbar ul { display: none; }
  .ae-navbar ul.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); z-index: 200; }
  .ae-hamburger { display: block; }
  .ae-header .container { flex-wrap: wrap; }
  .ae-header-search { width: 100%; order: 3; }
  .ae-header-search input { flex: 1; }
  .ae-post-title { font-size: 22px; }
  .ae-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .ae-grid-4, .ae-grid-3, .ae-grid-2 { grid-template-columns: 1fr; }
  .ae-hero-main { min-height: 260px; }
  .ae-hero-main .hero-title { font-size: 18px; }
}
