/* =====================================================
   AGRO REAL ESTATE AFRICA — Styles page d'accueil
   ===================================================== */

/* ---------- HERO CARROUSEL ---------- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  max-height: 820px;
  overflow: hidden;
  background: var(--bleu);
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s ease;
  display: flex;
  align-items: center;
  z-index: 1;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slide.is-active { animation: kenburns 7s ease-out; }

@keyframes kenburns {
  from { background-size: 105% auto; }
  to   { background-size: 115% auto; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,31,58,.92) 0%,
    rgba(11,31,58,.65) 45%,
    rgba(11,31,58,.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 0 5vw;
  color: #fff;
}

.hero-badges { margin-bottom: 1.2rem; }
.hero-badges .badge { font-size: .78rem; padding: .4rem .9rem; margin-right: .5rem; }

.hero-title {
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-desc {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-prix {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.hero-prix strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--or);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hero-prix span {
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

/* Contrôles du carrousel */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all .25s;
  font-family: 'Montserrat', sans-serif;
  padding-bottom: 4px;
}
.hero-nav:hover {
  background: rgba(255,255,255,.3);
  border-color: #fff;
  transform: translateY(-50%) scale(1.05);
}
.hero-prev { left: 2vw; }
.hero-next { right: 2vw; }

/* Points de navigation */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .6rem;
  padding: .6rem 1rem;
  background: rgba(11,31,58,.4);
  border-radius: 30px;
  backdrop-filter: blur(8px);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.hero-dot.is-active {
  background: var(--or);
  width: 32px;
  border-radius: 6px;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-dot.is-active:hover { background: var(--or-clair); }

/* ---------- BANDEAU SLOGAN ---------- */
.slogan-band {
  background: var(--vert);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-size: clamp(.95rem, 1.6vw, 1.2rem);
  letter-spacing: .3px;
  font-weight: 600;
}
.slogan-band p { margin: 0; }

/* ---------- SECTION SOUS-TITRE ---------- */
.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: -1.5rem auto 2.5rem;
  color: var(--gris-texte);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- PAYS ---------- */
.section-pays { background: #fff; }
.pays-card { position: relative; padding-bottom: 3rem; }
.pays-link {
  position: absolute;
  bottom: 1.2rem;
  left: 1.6rem;
  color: var(--vert);
  font-weight: 700;
  font-size: .88rem;
  transition: transform .25s;
}
.pays-card:hover .pays-link { transform: translateX(5px); }

/* ---------- CATÉGORIES ---------- */
.section-cat { background: var(--gris-clair); }

/* ---------- DERNIÈRES ANNONCES ---------- */
.section-dernieres { background: #fff; }
.prix-alt {
  font-size: .8rem;
  color: var(--gris-texte);
  margin-top: .2rem;
  font-weight: 500;
}
.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ---------- VILLAGES VERTS ---------- */
.section-villages {
  padding: 0;
  max-width: 100%;
}
.villages-inner {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--vert-fonce) 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.villages-inner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(200,169,81,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.villages-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 3px;
  font-size: .82rem;
  color: var(--or);
  margin-bottom: 1rem;
  position: relative;
}
.villages-inner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 800px;
  margin: 0 auto 1.2rem;
  position: relative;
}
.villages-inner p {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  position: relative;
}

/* ---------- MÉTIERS ---------- */
.section-metiers { background: var(--gris-clair); }
.metier-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--or);
}
.metier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.metier-icon {
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: .8rem;
}
.metier-card h3 {
  font-size: 1.1rem;
  margin-bottom: .7rem;
  color: var(--bleu);
}
.metier-card p {
  font-size: .92rem;
  color: var(--gris-texte);
  line-height: 1.6;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-inner {
  max-width: 800px;
  margin: 0 auto;
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}
.cta-final p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { height: 70vh; min-height: 520px; }
  .hero-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .hero-prev { left: 1vw; }
  .hero-next { right: 1vw; }
}

@media (max-width: 640px) {
  .hero { height: auto; min-height: 100vh; padding: 6rem 0 5rem; }
  .hero-slide { align-items: flex-start; padding-top: 2rem; }
  .hero-content { padding: 0 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-nav { display: none; }
  .hero-dots { bottom: 1rem; padding: .4rem .8rem; }
  .villages-inner { padding: 3rem 1.2rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

/* ---------- ACCESSIBILITÉ ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide.is-active {
    transition: opacity .3s ease;
    animation: none;
  }
}