/* =============================================================================
   AKAGURIRO HOMEPAGE — homepage.css
   Design: Élégant, moderne, africain — Orange #F97316 + Bleu #1B3FAB
   Police: Poppins (déjà chargée)
============================================================================= */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --akg-orange:     #F97316;
  --akg-orange-dark:#EA6200;
  --akg-blue:       #1B3FAB;
  --akg-blue-dark:  #152E80;
  --akg-blue-light: #EEF2FF;
  --akg-dark:       #1A1D1F;
  --akg-grey:       #F4F5F7;
  --akg-text:       #3D4451;
  --akg-text-light: #6B7280;
  --akg-white:      #FFFFFF;
  --akg-border:     #E5E7EB;
  --akg-radius:     14px;
  --akg-radius-lg:  20px;
  --akg-shadow:     0 4px 24px rgba(0,0,0,.07);
  --akg-shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --akg-font:       'Poppins', sans-serif;
}

/* ── Reset section ────────────────────────────────────────────────────────── */
.akg-section, .akg-search-hero, .akg-categories-bar,
.akg-pillars, .akg-promo-banner, .akg-trust-bar {
  font-family: var(--akg-font);
}

/* ══════════════════════════════════════════════════════════════════════════════
   1. BARRE DE RECHERCHE INTELLIGENTE
══════════════════════════════════════════════════════════════════════════════ */
.akg-search-hero {
  background: linear-gradient(135deg, var(--akg-blue) 0%, #0F2672 100%);
  padding: 28px 0 24px;
  position: relative;
  overflow: hidden;
}

.akg-search-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,.2) 0%, transparent 70%);
  pointer-events: none;
}

.akg-search-wrap { max-width: 760px; margin: 0 auto; }

.akg-search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.akg-tab {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  padding: 7px 18px;
  border-radius: 30px;
  font-family: var(--akg-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.akg-tab:hover,
.akg-tab.active {
  background: var(--akg-orange);
  border-color: var(--akg-orange);
  color: #fff;
}

.akg-search-box { position: relative; }

.akg-search-inner {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  height: 56px;
}

.akg-cat-select {
  border: none;
  outline: none;
  padding: 0 16px;
  font-family: var(--akg-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--akg-text);
  background: transparent;
  cursor: pointer;
  min-width: 160px;
  height: 100%;
}

.akg-search-divider {
  width: 1px;
  height: 28px;
  background: var(--akg-border);
  flex-shrink: 0;
}

.akg-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-family: var(--akg-font);
  font-size: 15px;
  color: var(--akg-dark);
  height: 100%;
  background: transparent;
}

.akg-search-input::placeholder { color: #9CA3AF; }

.akg-search-btn {
  background: var(--akg-orange);
  border: none;
  color: #fff;
  padding: 0 24px;
  height: 100%;
  font-family: var(--akg-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
  white-space: nowrap;
}

.akg-search-btn:hover { background: var(--akg-orange-dark); }

.akg-search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border-radius: var(--akg-radius);
  box-shadow: var(--akg-shadow-lg);
  display: none;
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}

.akg-search-suggestions.open { display: block; }

.akg-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
}

.akg-suggestion-item:hover { background: var(--akg-grey); }

.akg-search-hot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.akg-hot-label {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.akg-hot-label i { color: var(--akg-orange); }

.akg-search-hot a {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid rgba(255,255,255,.2);
}

.akg-search-hot a:hover {
  background: var(--akg-orange);
  border-color: var(--akg-orange);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   2. MENU CATÉGORIES
══════════════════════════════════════════════════════════════════════════════ */
.akg-categories-bar {
  background: #fff;
  border-bottom: 1px solid var(--akg-border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.akg-categories-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.akg-categories-scroll::-webkit-scrollbar { display: none; }

.akg-cat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--akg-grey);
  border-radius: 30px;
  text-decoration: none;
  color: var(--akg-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .2s;
  border: 1.5px solid transparent;
  font-family: var(--akg-font);
}

.akg-cat-chip:hover {
  background: var(--akg-blue-light);
  border-color: var(--akg-blue);
  color: var(--akg-blue);
  transform: translateY(-1px);
}

.akg-cat-icon { font-size: 16px; }

/* ══════════════════════════════════════════════════════════════════════════════
   3. 3 PILIERS
══════════════════════════════════════════════════════════════════════════════ */
.akg-pillars {
  padding: 32px 0;
  background: var(--akg-grey);
}

.akg-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.akg-pillar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  border-radius: var(--akg-radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  box-shadow: var(--akg-shadow);
  background: #fff;
}

.akg-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--akg-shadow-lg);
}

.akg-pillar--products { border-top: 4px solid var(--akg-orange); }
.akg-pillar--services { border-top: 4px solid var(--akg-blue); }
.akg-pillar--freelance { border-top: 4px solid #10B981; }

.akg-pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.akg-pillar--products .akg-pillar-icon { background: #FFF7ED; color: var(--akg-orange); }
.akg-pillar--services .akg-pillar-icon { background: var(--akg-blue-light); color: var(--akg-blue); }
.akg-pillar--freelance .akg-pillar-icon { background: #ECFDF5; color: #10B981; }

.akg-pillar-content h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--akg-dark);
  font-family: var(--akg-font);
}

.akg-pillar-content p {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--akg-text-light);
  font-family: var(--akg-font);
}

.akg-pillar-cta {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--akg-font);
}

.akg-pillar--products .akg-pillar-cta { color: var(--akg-orange); }
.akg-pillar--services .akg-pillar-cta { color: var(--akg-blue); }
.akg-pillar--freelance .akg-pillar-cta { color: #10B981; }

/* ══════════════════════════════════════════════════════════════════════════════
   4. SECTIONS GÉNÉRIQUES
══════════════════════════════════════════════════════════════════════════════ */
.akg-section { padding: 48px 0; font-family: var(--akg-font); }
.akg-section--light { background: var(--akg-grey); }
.akg-section--dark {
  background: linear-gradient(135deg, var(--akg-blue-dark) 0%, #0F2160 100%);
  color: #fff;
}

.akg-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.akg-section-badge {
  display: inline-block;
  background: var(--akg-blue-light);
  color: var(--akg-blue);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.akg-section-badge--orange { background: #FFF7ED; color: var(--akg-orange); }
.akg-section-badge--blue   { background: var(--akg-blue-light); color: var(--akg-blue); }

.akg-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--akg-dark);
  margin: 0 0 4px;
  line-height: 1.2;
  font-family: var(--akg-font);
}

.akg-section--dark .akg-section-title { color: #fff; }

.akg-section-sub {
  font-size: 14px;
  color: var(--akg-text-light);
  margin: 0;
}

.akg-section--dark .akg-section-sub { color: rgba(255,255,255,.7); }

.akg-see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--akg-blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: gap .2s;
  font-family: var(--akg-font);
}

.akg-see-all:hover { gap: 10px; color: var(--akg-orange); }

/* ── Tabs filtre catégories ───────────────────────────────────────────────── */
.akg-cat-filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.akg-filter-tab {
  padding: 7px 18px;
  background: #fff;
  border: 1.5px solid var(--akg-border);
  border-radius: 30px;
  font-family: var(--akg-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--akg-text);
  transition: all .2s;
}

.akg-filter-tab:hover,
.akg-filter-tab.active {
  background: var(--akg-blue);
  border-color: var(--akg-blue);
  color: #fff;
}

/* ── Load more ────────────────────────────────────────────────────────────── */
.akg-load-more-wrap { text-align: center; margin-top: 32px; }

.akg-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--akg-blue);
  color: #fff;
  border-radius: 50px;
  font-family: var(--akg-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(27,63,171,.3);
}

.akg-load-more-btn:hover {
  background: var(--akg-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,63,171,.4);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════════
   5. BANNIÈRES PROMO
══════════════════════════════════════════════════════════════════════════════ */
.akg-promo-banner { padding: 32px 0; }

.akg-promo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.akg-promo-card {
  border-radius: var(--akg-radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
}

.akg-promo-card--main {
  background: linear-gradient(135deg, #1B3FAB 0%, #F97316 100%);
  color: #fff;
}

.akg-promo-card--secondary {
  background: linear-gradient(135deg, #0F2672 0%, #1B3FAB 100%);
  color: #fff;
}

.akg-promo-card--tertiary {
  background: linear-gradient(135deg, #064E3B 0%, #10B981 100%);
  color: #fff;
}

.akg-promo-tag {
  display: inline-block;
  background: rgba(255,255,255,.25);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--akg-font);
}

.akg-promo-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--akg-font);
  line-height: 1.2;
}

.akg-promo-content p {
  font-size: 13px;
  margin: 0 0 14px;
  color: rgba(255,255,255,.85);
  font-family: var(--akg-font);
}

.akg-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--akg-blue);
  padding: 9px 20px;
  border-radius: 30px;
  font-family: var(--akg-font);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
}

.akg-promo-btn:hover { transform: scale(1.04); color: var(--akg-blue); }

.akg-promo-btn--outline {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}

.akg-promo-btn--outline:hover { background: rgba(255,255,255,.35); color: #fff; }

.akg-promo-img {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   6. FREELANCE
══════════════════════════════════════════════════════════════════════════════ */
.akg-freelance-section { padding: 56px 0; }

.akg-freelance-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
}

.akg-freelance-text h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 12px;
  font-family: var(--akg-font);
}

.akg-freelance-text p {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 24px;
  font-family: var(--akg-font);
}

.akg-freelance-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}

.akg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--akg-font);
}

.akg-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--akg-orange);
  line-height: 1;
}

.akg-stat span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}

.akg-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--akg-orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--akg-font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
}

.akg-btn-primary:hover {
  background: var(--akg-orange-dark);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249,115,22,.5);
}

/* ══════════════════════════════════════════════════════════════════════════════
   7. TRUST BAR
══════════════════════════════════════════════════════════════════════════════ */
.akg-trust-bar {
  background: var(--akg-dark);
  padding: 24px 0;
}

.akg-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.akg-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-family: var(--akg-font);
}

.akg-trust-item i {
  font-size: 22px;
  color: var(--akg-orange);
  flex-shrink: 0;
}

.akg-trust-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.akg-trust-item span {
  font-size: 11px;
  color: rgba(255,255,255,.6);
}

/* ══════════════════════════════════════════════════════════════════════════════
   8. PRODUITS SLIDER WRAP
══════════════════════════════════════════════════════════════════════════════ */
.akg-products-slider-wrap { overflow: hidden; }

/* ══════════════════════════════════════════════════════════════════════════════
   9. BLOG
══════════════════════════════════════════════════════════════════════════════ */
.akg-blog-grid .view-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE
══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .akg-pillars-grid { grid-template-columns: 1fr; gap: 12px; }
  .akg-promo-grid { grid-template-columns: 1fr; }
  .akg-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .akg-freelance-inner { grid-template-columns: 1fr; gap: 24px; }
  .akg-blog-grid .view-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .akg-search-inner { height: 48px; border-radius: 40px; }
  .akg-cat-select { display: none; }
  .akg-search-divider { display: none; }
  .akg-section-header { flex-direction: column; align-items: flex-start; }
  .akg-trust-grid { grid-template-columns: 1fr 1fr; }
  .akg-section-title { font-size: 20px; }
  .akg-pillars { padding: 20px 0; }
  .akg-freelance-stats { gap: 16px; }
  .akg-blog-grid .view-content { grid-template-columns: 1fr; }
  .akg-promo-img { display: none; }
}

/* ── Animations d'entrée ─────────────────────────────────────────────────── */
@keyframes akg-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.akg-search-hero,
.akg-categories-bar,
.akg-pillars {
  animation: akg-fade-up .4s ease both;
}

.akg-section { animation: akg-fade-up .5s ease both; }
