/* ═══════════════════════════════════════════════════
   BCET — accueil.css
   Page d'accueil — styles complets
═══════════════════════════════════════════════════ */

/* ── Hero Slider ── */
.hero-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--navy);
}
.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hs-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hs-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease;
}
.hs-slide.active .hs-img {
  transform: scale(1);
}
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,25,60,.82) 0%, rgba(10,25,60,.45) 60%, rgba(10,25,60,.15) 100%);
}
.hs-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 80px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 60px;
}
.hs-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hs-titre {
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1.25;
  margin-bottom: 14px;
}
.hs-titre span { color: var(--orange); }
.hs-extrait {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  max-width: 480px;
}
.hs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.hs-cta:hover { background: var(--orange-600); }

.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  backdrop-filter: blur(4px);
}
.hs-nav:hover { background: rgba(255,255,255,.25); }
.hs-prev { left: 20px; }
.hs-next { right: 20px; }

.hs-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hs-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  border: none;
  cursor: pointer;
  transition: all .3s;
}
.hs-dot.active {
  background: var(--orange);
  width: 40px;
}

/* ── Stat ticker ── */
.stat-ticker {
  display: flex;
  align-items: stretch;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 var(--gutter);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--sp-3) var(--sp-5);
  border-right: 1px solid var(--gray-100);
  flex: 1;
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon.orange { background: var(--orange-lt); color: var(--orange); }
.stat-icon.green  { background: var(--green-lt);  color: var(--green); }
.stat-icon.navy   { background: var(--navy-lt);   color: var(--navy); }
.stat-icon.yellow { background: var(--yellow-lt); color: var(--yellow); }
.stat-icon svg    { width: 18px; height: 18px; }
.stat-val   { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.stat-delta { font-size: 11.5px; margin-top: 3px; }
.stat-delta.up { color: var(--green); }
.stat-delta.dn { color: var(--red); }
.stat-cta { font-size: 11.5px; color: var(--orange); margin-top: 3px; }

/* ── Main grid ── */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--gap-lg);
  padding: var(--section-y) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Section head ── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
.section-title svg { color: var(--orange); }

/* ── Contrôles carrousel ── */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.car-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all .15s;
}
.car-btn:hover { background: var(--navy); border-color: var(--navy); color: white; }
.car-pause {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all .15s;
}
.car-pause:hover { background: var(--orange); border-color: var(--orange); color: white; }
.car-pause svg { width: 14px; height: 14px; }
.car-btn svg   { width: 14px; height: 14px; }

/* ════════════════════════════════════════
   CARROUSEL ÉVÉNEMENTS — effet hero slider
════════════════════════════════════════ */
#carousel-wrap {
  position: relative;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  background: var(--navy);
}

.event-card {
  position: absolute !important;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
  display: block !important;
}

.event-card.active {
  opacity: 1;
  pointer-events: auto;
}

/* Image fond avec effet zoom */
.event-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.event-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.event-card.active .event-img-wrap img {
  transform: scale(1);
}

/* Overlay dégradé bas → haut */
.event-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,20,50,.95) 0%,
    rgba(10,20,50,.55) 45%,
    rgba(10,20,50,.15) 100%
  );
  z-index: 1;
}

/* Badge catégorie */
.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 12px;
  border-radius: 20px;
  color: white;
}

/* Corps — glisse du bas vers le haut */
.event-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--card-p);
  transform: translateY(8px);
  transition: transform .7s ease;
}

.event-card.active .event-body {
  transform: translateY(0);
}

.event-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.65);
  margin-bottom: 8px;
}
.event-date svg  { stroke: rgba(255,255,255,.5); flex-shrink: 0; }
.event-date time { color: rgba(255,255,255,.65); }

.event-title {
  font-size: 17px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 8px;
}

.event-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: white;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.event-link:hover { background: var(--orange-600); }

/* Dots carrousel événements */
.car-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}
.car-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.car-dot.active {
  background: var(--orange);
  width: 40px;
}

/* Couleurs bg badges événements */
.bg-navy   { background: var(--navy); }
.bg-green  { background: var(--green); }
.bg-orange { background: var(--orange); }
.bg-yellow { background: var(--yellow); }
.bg-red    { background: var(--red); }
.bg-teal   { background: var(--teal); }
.bg-purple { background: var(--purple); }

/* ── All link ── */
.all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 14px;
  transition: gap .15s;
}
.all-link:hover { gap: 10px; }

/* ── Sidebar publications ── */
.pub-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.pub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.pub-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}
.pub-accent {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}
.pub-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray-500);
}
.pub-name  { font-size: 13px; font-weight: 600; color: var(--navy); }
.pub-count { font-size: 11.5px; color: var(--gray-500); margin-top: 2px; }
.pub-arrow { margin-left: auto; color: var(--gray-300); flex-shrink: 0; }
.pub-item:hover .pub-arrow { color: var(--orange); }

.pub-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  border-radius: 10px;
  padding: 13px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  transition: background .15s;
}
.pub-cta-btn:hover { background: var(--orange-600); }

/* ── Indicateurs économiques ── */
.indicators-section {
  background: var(--gray-50);
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--gray-200);
}
.ind-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  max-width: 1400px;
  margin: 0 auto;
}
.ind-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--card-p);
  box-shadow: var(--sh-sm);
}
.ind-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.ind-flag {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.ind-flag.ci    { background: var(--orange-lt); color: var(--orange); }
.ind-flag.globe { background: var(--navy-lt);   color: var(--navy); }
.ind-card-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ind-card-sub   { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

.ind-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.ind-kpi {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
}
.ind-kpi.orange { background: var(--orange-lt); border-color: rgba(249,115,22,.2); }
.ind-kpi.green  { background: var(--green-lt);  border-color: rgba(22,163,74,.2); }
.ind-kpi.navy   { background: var(--navy-lt);   border-color: rgba(30,58,95,.15); }
.ind-kpi.yellow { background: var(--yellow-lt); border-color: rgba(245,158,11,.2); }
.ind-kpi-label  { font-size: 10.5px; color: var(--gray-500); margin-bottom: 4px; }
.ind-kpi-val    { font-size: 18px; font-weight: 800; color: var(--gray-900); }
.ind-kpi-delta  { font-size: 11px; margin-top: 3px; }
.ind-kpi-delta.up { color: var(--green); }
.ind-kpi-delta.dn { color: var(--red); }
.ind-see-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.ind-see-all:hover { text-decoration: underline; }

.ind-hr { border: none; border-top: 1px solid var(--gray-100); margin: 14px 0; }

.reg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.reg-item:last-child { border-bottom: none; }
.reg-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.reg-badge.uemoa  { background: var(--blue-100); color: var(--blue-800); }
.reg-badge.cedeao { background: var(--green-lt); color: var(--green-dk); }
.reg-badge.int    { background: var(--purple-100); color: var(--purple-700); }
.reg-title { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* ── Tablette ── */
@media (max-width: 900px) {
  .main-grid, .ind-grid { grid-template-columns: minmax(0, 1fr); }
  .hs-content { margin-left: 0; padding: 0 76px; max-width: none; }

  /* Quatre chiffres en deux lignes de deux, au lieu d'une ligne coupée. */
  .stat-ticker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-100); padding: var(--sp-3) var(--gutter); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--gray-100); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── Téléphone ── */
@media (max-width: 640px) {
  .hero-slider { height: 440px; }
  /* Texte sur toute la largeur : le dégradé assombrit de haut en bas. */
  .hs-overlay { background: linear-gradient(180deg, rgba(10,25,60,.55) 0%, rgba(10,25,60,.88) 100%); }
  .hs-content { padding: 0 var(--gutter); top: calc(50% - 24px); }
  .hs-titre { font-size: 24px; margin-bottom: 10px; }
  .hs-extrait {
    font-size: 13.5px; line-height: 1.6; margin-bottom: var(--sp-4);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .hs-cta { padding: 11px 20px; font-size: 13px; }
  /* Flèches et points regroupés en bas, hors du texte. */
  .hs-nav { top: auto; bottom: 12px; transform: none; width: 40px; height: 40px; }
  .hs-prev { left: var(--gutter); }
  .hs-next { right: var(--gutter); }
  .hs-dots { bottom: 30px; }
  .hs-dot { position: relative; }
  .hs-dot::after { content: ''; position: absolute; inset: -12px -2px; }

  .stat-item { gap: 10px; padding: var(--sp-3) var(--sp-4); }
  .stat-icon { width: 32px; height: 32px; }
  .stat-val { font-size: 18px; }

  .ind-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-btn { position: relative; }
  .car-btn::after { content: ''; position: absolute; inset: -4px; }
}
.reg-meta  { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gray-400); margin-top: 4px; }