/* ================================================================
   style-home.css — GreenNest Realty | Styles page d'accueil
   Auteur : HOUETO Fabrice | 2026
   Description : Hero, Search bar, Services, Propriétés, About,
                 Numbers, Testimonials, Team, FAQ, CTA sections.
================================================================ */

/* ================================================================
   HERO SECTION
================================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Image fond avec effet parallaxe via JS */
.hero-bg-wrap {
  position: absolute;
  inset: -10%; /* marge pour l'effet parallaxe */
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Overlay en dégradé diagonal */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(13,61,31,0.85) 0%,
    rgba(13,61,31,0.6) 50%,
    rgba(13,61,31,0.4) 100%
  );
}

/* Particules flottantes décoratives */
.hero-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  animation: particleFloat 8s ease-in-out infinite;
}

.p1 { width: 300px; height: 300px; top: -100px; right: -80px; animation-delay: 0s; }
.p2 { width: 200px; height: 200px; bottom: 100px; left: -60px; animation-delay: 3s; }
.p3 { width: 150px; height: 150px; top: 40%; right: 15%; animation-delay: 5s; }

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(20px, -30px) scale(1.1); opacity: 0.8; }
  66% { transform: translate(-15px, 20px) scale(0.9); opacity: 0.3; }
}

/* Contenu hero */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 780px;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge d'intro */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--jade);
  border-radius: 50%;
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Titre hero */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title em {
  color: var(--jade);
  font-style: italic;
}

/* Sous-titre */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Boutons CTA hero */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: var(--jade);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  box-shadow: 0 0 0 rgba(34,197,94,0);
}

.btn-hero-primary:hover {
  background: #16a34a;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(34,197,94,0.4);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all var(--duration) var(--ease);
}

.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.btn-hero-ghost i { transition: transform var(--duration) var(--ease); }
.btn-hero-ghost:hover i { transform: translateX(4px); }

/* Stats hero */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
}

.stat-pill strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.stat-pill span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Animations d'entrée hero (déclenché par JS) */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease infinite;
}

@keyframes scrollWheel {
  0% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   BARRE DE RECHERCHE RAPIDE
================================================================ */
.search-bar-section {
  position: relative;
  z-index: 100;
  margin-top: -2rem;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 4rem;
}

.search-bar-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.search-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.search-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  border: 2px solid transparent;
}

.search-tab.active {
  background: var(--jade);
  color: #fff;
}

.search-tab:not(.active):hover {
  color: var(--jade);
  border-color: var(--jade);
}

.search-fields {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  border: 2px solid transparent;
  transition: border-color var(--duration) var(--ease);
}

.search-field:focus-within {
  border-color: var(--jade);
}

.search-field i {
  color: var(--jade);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.search-field input,
.search-field select {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  min-width: 0;
}

.search-field select option { background: var(--bg-card); }

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.875rem 1.75rem;
  background: var(--jade);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover {
  background: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34,197,94,0.3);
}

/* ================================================================
   SERVICES SECTION
================================================================ */
.services-section {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jade), var(--emerald));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(34,197,94,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--jade);
  margin-bottom: 1.25rem;
  transition: all var(--duration) var(--ease);
}

.service-card:hover .service-icon {
  background: var(--jade);
  color: #fff;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jade);
  transition: gap var(--duration) var(--ease);
}

.service-link:hover { gap: 0.875rem; }
.service-link i { font-size: 0.75rem; }

/* ================================================================
   PROPRIÉTÉS EN VEDETTE
================================================================ */
.featured-section {
  padding: 6rem 0;
  background: var(--bg);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

/* La grande carte prend 2 lignes */
.feat-card-large {
  grid-row: span 2;
}

/* Carte de propriété */
.feat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}

.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

/* Image container */
.feat-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.feat-card-large .feat-img-wrap { height: 360px; }
.feat-card:not(.feat-card-large) .feat-img-wrap { height: 200px; }

.feat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.feat-card:hover .feat-img-wrap img {
  transform: scale(1.07);
}

.feat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,61,31,0.6) 0%, transparent 60%);
  pointer-events: none;
}

/* Badge statut */
.feat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--jade);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.feat-badge-rent { background: var(--gold); }

/* Bouton cœur */
.feat-heart {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--duration) var(--ease);
  box-shadow: var(--shadow-sm);
}

.feat-heart:hover {
  background: #fff;
  color: #ef4444;
  transform: scale(1.15);
}

.feat-heart.active { color: #ef4444; background: #fff; }

/* Info bas de carte */
.feat-info {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.feat-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.feat-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.feat-meta i { color: var(--jade); font-size: 0.7rem; }

.feat-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.feat-card-large .feat-info h3 { font-size: 1.4rem; }

.feat-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feat-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--jade);
}

.feat-card-large .feat-price { font-size: 1.4rem; }

.feat-price small { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }

.feat-btn {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  background: rgba(34,197,94,0.1);
  color: var(--jade);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
}

.feat-btn:hover {
  background: var(--jade);
  color: #fff;
}

/* ================================================================
   À PROPOS SECTION
================================================================ */
.about-section {
  padding: 7rem 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Visuel côté gauche */
.about-visual { position: relative; }

.about-img-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.about-img-frame img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

/* Cercle décoratif derrière image */
.about-deco-circle {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(34,197,94,0.3);
  z-index: -1;
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow { to { transform: rotate(360deg); } }

/* Badges flottants */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  animation: floatBadge 4s ease-in-out infinite;
}

.fb-top {
  top: 1.5rem;
  right: -2rem;
  animation-delay: 0s;
}

.fb-bottom {
  bottom: 2rem;
  left: -2rem;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.fb-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--jade), var(--emerald));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.floating-badge strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.floating-badge span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Contenu côté droit */
.about-content { display: flex; flex-direction: column; }

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.about-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.about-point {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9rem;
  color: var(--text);
}

.point-icon {
  width: 28px;
  height: 28px;
  background: rgba(34,197,94,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jade);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================================================================
   CHIFFRES CLÉS
================================================================ */
.numbers-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.numbers-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
}

.numbers-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.numbers-section .section-wrap { position: relative; z-index: 1; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.number-item {
  background: transparent;
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.number-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.03);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.number-item:hover::before { opacity: 1; }

.number-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.number-plus {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--jade);
  font-weight: 700;
  align-self: flex-start;
  margin-top: -0.5rem;
  margin-left: 0.2rem;
}

.number-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* ================================================================
   TÉMOIGNAGES
================================================================ */
.testimonials-section {
  padding: 7rem 0;
  background: var(--bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
  position: relative;
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Carte centrale en vedette */
.testi-card-featured {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  padding: 2.5rem;
}

.testi-card-featured .testi-text,
.testi-card-featured .testi-author strong,
.testi-card-featured .testi-author span {
  color: rgba(255,255,255,0.85);
}

.testi-card-featured .testi-author strong { color: #fff; }

.testi-quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255,255,255,0.1);
}

.testi-stars {
  font-size: 0.9rem;
  color: #fbbf24;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.testi-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testi-author img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--jade);
}

.testi-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.testi-author span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================================================================
   ÉQUIPE
================================================================ */
.team-section {
  padding: 6rem 0;
  background: var(--bg-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-photo {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s var(--ease-out);
  filter: grayscale(20%);
}

.team-card:hover .team-photo img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

/* Réseaux sociaux au hover */
.team-social {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration) var(--ease);
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.team-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--forest);
  transition: all var(--duration) var(--ease);
}

.team-social a:hover {
  background: var(--jade);
  color: #fff;
}

.team-info {
  padding: 1.25rem 1.5rem;
}

.team-info h4 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.team-expertise {
  font-size: 0.75rem;
  background: rgba(34,197,94,0.08);
  color: var(--jade);
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ================================================================
   FAQ SECTION
================================================================ */
.faq-section {
  padding: 7rem 0;
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.faq-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
  background: var(--bg-card);
}

.faq-item:hover {
  border-color: var(--jade);
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--jade);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: color var(--duration) var(--ease);
}

.faq-item.open .faq-q { color: var(--jade); }

.faq-icon {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform var(--duration) var(--ease);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--jade);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  transition: max-height 0.5s var(--ease-out), padding 0.3s var(--ease);
  padding: 0 1.5rem;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 1.5rem 1.25rem;
}

/* ================================================================
   CTA SECTION FINALE
================================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
}

.cta-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,61,31,0.92), rgba(26,107,53,0.85));
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 4rem 2rem;
  color: #fff;
}

.cta-content h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-content h2 em { color: var(--jade); }

.cta-content p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-white {
  display: inline-flex;
  padding: 1rem 2.25rem;
  background: #fff;
  color: var(--forest);
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  font-size: 0.95rem;
}

.btn-cta-white:hover {
  background: var(--jade);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34,197,94,0.4);
}

.btn-cta-ghost {
  display: inline-flex;
  padding: 1rem 2.25rem;
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  font-size: 0.95rem;
}

.btn-cta-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* ================================================================
   RESPONSIVE HOME
================================================================ */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .feat-card-large { grid-row: span 1; }

  .about-grid { gap: 3rem; }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--radius-lg);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }

  .hero-stats {
    border-radius: var(--radius-lg);
  }

  .stat-pill { padding: 0.75rem 1.25rem; }
  .stat-pill strong { font-size: 1.4rem; }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img-frame img { height: 350px; }

  .fb-top { right: 1rem; }
  .fb-bottom { left: 1rem; }

  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .search-bar-section { margin-top: -1rem; }
  .search-fields { flex-direction: column; }
  .search-field { width: 100%; }
  .search-btn { width: 100%; justify-content: center; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-ghost { width: 100%; justify-content: center; }

  .hero-stats { width: 100%; }
  .stat-divider { display: none; }
  .stat-pill { flex: 1; min-width: 80px; }

  .search-tabs { overflow-x: auto; }
  .search-tab { white-space: nowrap; }

  .services-grid { grid-template-columns: 1fr; }

  .about-grid { text-align: center; }
  .about-points { align-items: center; }
  .about-actions { justify-content: center; }

  .testi-card-featured { padding: 1.5rem; }

  .cta-content { padding: 3rem 1.25rem; }
  .cta-btns { flex-direction: column; }
  .btn-cta-white, .btn-cta-ghost { text-align: center; justify-content: center; }
}
