/* ============================================================
   AE-Congo — Thème global professionnel
   ============================================================ */

:root {
  --aec-primary: #14532d;        /* Vert forêt profond */
  --aec-primary-light: #1e7a43;
  --aec-accent: #4aa3a2;         /* Teal historique de la marque */
  --aec-accent-dark: #357776;
  --aec-bg: #f6f8f7;
  --aec-dark: #10231a;
  --aec-text: #253530;
  --aec-muted: #6b7f77;
  --aec-border: #e2e9e5;
  --aec-radius: 0.75rem;
  --aec-shadow: 0 4px 24px rgba(16, 35, 26, 0.08);
  --aec-shadow-lg: 0 12px 40px rgba(16, 35, 26, 0.14);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  color: var(--aec-text);
  background-color: var(--aec-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

body > .aec-footer {
  flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--aec-dark);
}

a { color: var(--aec-primary-light); }

/* ---------- Boutons ---------- */
.btn-aec {
  background-color: var(--aec-primary-light);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.6rem 1.6rem;
  transition: all .2s ease;
}
.btn-aec:hover {
  background-color: var(--aec-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--aec-shadow);
}
.btn-aec-outline {
  border: 2px solid #fff;
  color: #fff;
  font-weight: 600;
  border-radius: 2rem;
  padding: 0.55rem 1.5rem;
  background: transparent;
  transition: all .2s ease;
}
.btn-aec-outline:hover { background: #fff; color: var(--aec-primary); }

/* ---------- Navbar ---------- */
.aec-navbar {
  background: linear-gradient(135deg, var(--aec-primary) 0%, var(--aec-accent-dark) 100%);
  padding: 0.4rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.aec-navbar .navbar-brand img { max-height: 56px; }
.aec-navbar .nav-link {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 1rem 0.9rem;
  transition: color .15s ease;
}
.aec-navbar .nav-link:hover,
.aec-navbar .nav-link.active { color: #fff; }
.aec-navbar .nav-link.active { border-bottom: 3px solid var(--aec-accent); }
.aec-navbar .dropdown-menu {
  border: none;
  border-radius: .5rem;
  box-shadow: var(--aec-shadow-lg);
  padding: .5rem 0;
}
.aec-navbar .dropdown-item {
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .55rem 1.2rem;
  color: var(--aec-text);
}
.aec-navbar .dropdown-item:hover { background: var(--aec-bg); color: var(--aec-primary); }
.aec-navbar .social-icons a {
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  transition: color .15s ease;
}
.aec-navbar .social-icons a:hover { color: #fff; }

/* Sous-menus au survol (desktop) */
@media (min-width: 992px) {
  .aec-navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
  .aec-navbar .dropend:hover > .dropdown-menu { display: block; top: 0; left: 100%; }
}

/* ---------- Hero ---------- */
.aec-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.aec-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,35,26,.82) 0%, rgba(16,35,26,.35) 100%);
}
.aec-hero .container { position: relative; z-index: 1; }
.aec-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}
.aec-hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 560px; }
.aec-hero .badge-tag {
  background: rgba(74,163,162,.25);
  border: 1px solid var(--aec-accent);
  color: #d9f2f1;
  font-weight: 600;
  border-radius: 2rem;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.aec-section { padding: 4.5rem 0; }
.aec-section-title { text-align: center; margin-bottom: 3rem; }
.aec-section-title .kicker {
  color: var(--aec-accent-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .8rem;
}
.aec-section-title h2 { font-size: 2rem; margin-top: .4rem; }
.aec-section-title .underline {
  width: 64px; height: 4px;
  background: var(--aec-accent);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---------- Cartes ---------- */
.aec-card {
  border: 1px solid var(--aec-border);
  border-radius: var(--aec-radius);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.aec-card:hover { transform: translateY(-4px); box-shadow: var(--aec-shadow-lg); }
.aec-card .card-img-top { height: 210px; object-fit: cover; }
.aec-card .category-chip {
  position: absolute;
  top: .8rem; left: .8rem;
  background: var(--aec-primary-light);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .8rem;
  border-radius: 2rem;
  z-index: 2;
}
.aec-card .card-title { font-size: 1.05rem; }
.aec-card .card-meta { font-size: .8rem; color: var(--aec-muted); }
.aec-card a.stretched-link-wrap { color: inherit; text-decoration: none; }

/* ---------- Vidéos ---------- */
.aec-video-card video { height: 200px; width: 100%; object-fit: cover; background: #000; }

/* ---------- Slider ---------- */
.aec-slider .carousel-item { border-radius: var(--aec-radius); overflow: hidden; }
.aec-slider .carousel-caption-custom {
  background: rgba(16,35,26,.72);
  border-radius: var(--aec-radius);
  padding: 1.5rem 2rem;
  text-align: left;
  max-width: 520px;
}
.aec-slider img { height: 440px; object-fit: cover; width: 100%; }

/* ---------- Fonds utilitaires ---------- */
.aec-bg-gradient { background: linear-gradient(135deg, var(--aec-primary) 0%, var(--aec-accent-dark) 100%); }
.aec-bg-primary { background: var(--aec-primary); }
.btn-aec-inverse { background: #fff; color: var(--aec-primary); }
.btn-aec-inverse:hover { background: #e8f1ec; color: var(--aec-primary); }

/* ---------- Footer ---------- */
.aec-footer {
  background: var(--aec-dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.aec-footer h6 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
.aec-footer a.footer-link {
  display: block;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: .3rem 0;
  font-size: .92rem;
  transition: color .15s ease;
}
.aec-footer a.footer-link:hover { color: var(--aec-accent); }
.aec-footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  margin-right: .5rem;
  transition: background .15s ease;
}
.aec-footer .footer-social a:hover { background: var(--aec-accent-dark); }
.aec-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding: 1.2rem 0;
  font-size: .85rem;
  text-align: center;
}
