/* ================================================================
   FoncierDirect — Homepage Professional Design Enhancements
   Sections: hero-band, how-it-works, why-us, cta-section
   ================================================================ */

/* ── Hero Band ───────────────────────────────────────────────── */
.hero-band {
  background: linear-gradient(135deg, #004d1f 0%, #007e33 55%, #00a040 100%);
  color: #fff;
  padding: 52px 0 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 90%, rgba(255,180,0,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 10%, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-band .container { position: relative; z-index: 1; }

.hero-headline {
  font-size: clamp(1.55rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-headline span { color: #ffb400; }

.hero-tagline {
  font-size: 1.08rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s;
}

.hero-badge:hover { background: rgba(255,255,255,0.17); }
.hero-badge i { color: #ffb400; font-size: 0.88rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 8px;
}

.hero-stat {
  flex: 0 0 auto;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.hero-stat:last-child { border-right: none; }

.hero-stat .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffb400;
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat .stat-label {
  font-size: 0.82rem;
  opacity: 0.78;
  margin-top: 5px;
  display: block;
  font-weight: 500;
}

@media (max-width: 680px) {
  .hero-band { padding: 40px 0 32px; }
  .hero-headline { font-size: 1.6rem; }
  .hero-tagline { font-size: 0.97rem; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 20px; }
  .hero-stat .stat-num { font-size: 1.9rem; }
  .hero-badge-row { gap: 8px; }
}

@media (max-width: 420px) {
  .hero-stats { flex-wrap: wrap; gap: 20px; border-top: none; padding-top: 20px; }
  .hero-stat { border-right: none; padding: 0 16px; flex: 1 1 40%; }
}

/* ── Section Title (pro variant) ─────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header .tag {
  display: inline-block;
  background: #eaf6ef;
  color: var(--brand, #007e33);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #0d1f2d;
  margin: 0 0 12px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-header p {
  color: #6c757d;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ── How It Works ─────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 0;
  background: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 0;
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 40px;
  left: calc(33.333% - 4px);
  right: calc(33.333% - 4px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand, #007e33), #00a040);
  opacity: 0.18;
  pointer-events: none;
}

.step-card {
  text-align: center;
  padding: 40px 28px 32px;
  background: #f7faf7;
  border-radius: 18px;
  position: relative;
  border: 1px solid rgba(0,126,51,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 126, 51, 0.11);
  border-color: rgba(0,126,51,0.12);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background: var(--brand, #007e33);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,126,51,0.32);
  border: 3px solid #fff;
}

.step-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand, #007e33), #00a040);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.65rem;
  margin: 0 auto 22px;
  box-shadow: 0 10px 28px rgba(0, 126, 51, 0.28);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d1f2d;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.step-card p {
  color: #6c757d;
  font-size: 0.91rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 800px) {
  .steps-grid { grid-template-columns: 1fr; gap: 44px; }
  .steps-connector { display: none; }
  .how-it-works { padding: 56px 0; }
}

@media (min-width: 520px) and (max-width: 800px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Why FoncierDirect ────────────────────────────────────────── */
.why-us {
  padding: 80px 0;
  background: #f6f7f8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 4px 22px rgba(10,20,30,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 126, 51, 0.10);
  border-color: rgba(0,126,51,0.10);
}

.why-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #eaf6ef, #d2edda);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand, #007e33);
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0d1f2d;
  margin: 0 0 9px;
  letter-spacing: -0.01em;
}

.why-card p {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.68;
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-us { padding: 52px 0; }
}

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  padding: 88px 0;
  background: linear-gradient(135deg, #004a1e 0%, #007e33 55%, #009940 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 25% 50%, rgba(255,180,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 50%, rgba(255,255,255,0.04) 0%, transparent 55%);
  pointer-events: none;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
  line-height: 1.12;
}

.cta-section h2 span { color: #ffb400; }

.cta-section p {
  font-size: 1.06rem;
  opacity: 0.88;
  max-width: 510px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-primary {
  background: #ffb400;
  color: #0d1f2d;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 28px rgba(255,180,0,0.40);
  letter-spacing: 0.01em;
}

.btn-cta-primary:hover {
  background: #ffc32e;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,180,0,0.48);
}

.btn-cta-outline {
  background: transparent;
  color: #fff;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.32);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.btn-cta-outline:hover {
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .cta-section { padding: 60px 0; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-cta-primary, .btn-cta-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

/* ── Trust Strip (fixed icons) ───────────────────────────────── */
.trust-strip {
  background: linear-gradient(90deg, #f4fdf7, #eef7ee);
  padding: 14px 0;
  border-top: 1px solid rgba(0,126,51,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.trust-strip .container {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 20px;
  border-right: 1px solid rgba(0,0,0,0.07);
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d5a3d;
  white-space: nowrap;
}

.trust-item:last-child { border-right: none; }

.trust-item i {
  color: var(--brand, #007e33);
  font-size: 1rem;
}

.trust-item a {
  color: var(--brand, #007e33);
  text-decoration: none;
  font-weight: 700;
}

.trust-item a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .trust-item { border-right: none; padding: 5px 14px; }
  .trust-strip .container { gap: 4px; }
}

@media (max-width: 480px) {
  .trust-strip .container { flex-direction: column; gap: 6px; }
  .trust-item { width: 100%; justify-content: center; }
}

/* ── Category Showcase Enhancement ──────────────────────────── */
.category-showcase {
  padding: 64px 0;
  background: #f6f7f8;
}

.category-showcase .section-title h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0d1f2d;
}

.category-showcase .section-title p {
  color: #6c757d;
  font-size: 0.97rem;
}

.category-row {
  margin-top: 40px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(10,20,30,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}

.category-row h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d1f2d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 4px solid var(--brand, #007e33);
}

.see-more {
  font-weight: 700;
  color: var(--brand, #007e33);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 8px;
  background: #eaf6ef;
  transition: background 0.15s;
}

.see-more:hover { background: #d2edda; }

/* ── Property Card Enhancement ───────────────────────────────── */
.property-card {
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.property-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 18px 44px rgba(0, 126, 51, 0.12) !important;
  border-color: rgba(0,126,51,0.10) !important;
}

/* ── Partners Section Enhancement ───────────────────────────── */
.partners {
  padding: 72px 0;
  background: #fff;
}

.partners .section-title h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d1f2d;
}

.partners-carousel {
  display: flex;
  gap: 16px;
  align-items: stretch;
  overflow: hidden;
  padding: 10px 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}

.partner-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
}

.partner-item {
  flex: 0 0 auto;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(10,20,30,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

.partner-item img {
  height: 160px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* ── Mobile Nav Labels ────────────────────────────────────────── */
.mobile-nav-section {
  font-size: 0.75rem;
  font-weight: 800;
  color: #9aa1a6;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 6px 4px;
  margin-top: 6px;
  list-style: none;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 8px 0;
  list-style: none;
}

/* ── Announcement Bar Enhancement ───────────────────────────── */
.announcement-bar {
  background: linear-gradient(90deg, #004a1e, #007e33);
  border-bottom: none;
}

.announcement-inner span {
  color: #fff !important;
  font-weight: 600 !important;
}

/* ── Header Enhancement ──────────────────────────────────────── */
.header-main {
  background: #fff;
  box-shadow: 0 2px 20px rgba(10,20,30,0.07);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1200;
}

/* ── Subnav Pill Enhancement ─────────────────────────────────── */
.subnav {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 10px 0;
}

.subnav-pills .pill {
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  font-size: 0.88rem;
}

.subnav-pills .pill:hover {
  background: #eaf6ef;
  color: var(--brand, #007e33);
  box-shadow: none;
}

/* ── Footer Enhancement ──────────────────────────────────────── */
footer .footer-column a:hover {
  color: #ffb400;
}

footer .social-link {
  transition: background 0.15s, color 0.15s;
}

footer .social-link:hover {
  background: rgba(255,255,255,0.14);
  color: #ffb400;
}

.download-btn {
  display: inline-block;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.18);
  color: #eaf6ef;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s;
}

.download-btn:hover { background: rgba(255,255,255,0.16); }

/* ── Visually Hidden (accessibility) ────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Breakpoints manquants
   Petit écran ≤ 420px et très petit ≤ 360px
   ═══════════════════════════════════════════════════════════ */

/* ── ≤ 420px : ajustements intermédiaires ───────────────── */
@media (max-width: 420px) {
  /* Hero band */
  .hero-band { padding: 32px 0 26px; }
  .hero-headline { font-size: 1.45rem; line-height: 1.15; }
  .hero-tagline { font-size: 0.9rem; margin-bottom: 20px; }
  .hero-badge { font-size: 0.8rem; padding: 5px 12px; }
  .hero-badge-row { gap: 6px; margin-bottom: 24px; }

  /* Section headers */
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: 1.35rem; }
  .section-header p  { font-size: 0.88rem; }

  /* How it works */
  .how-it-works { padding: 44px 0; }
  .step-card { padding: 36px 20px 28px; }
  .step-icon { width: 52px; height: 52px; font-size: 1.3rem; margin: 0 auto 14px; }
  .step-card h3 { font-size: 1rem; }
  .step-card p  { font-size: 0.87rem; }

  /* Why us */
  .why-us { padding: 44px 0; }
  .why-card { padding: 24px 18px; }
  .why-icon { width: 50px; height: 50px; font-size: 1.25rem; margin-bottom: 14px; }
  .why-card h3 { font-size: 0.97rem; }
  .why-card p  { font-size: 0.87rem; }

  /* CTA */
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 1.5rem; }
  .cta-section p  { font-size: 0.9rem; }
  .btn-cta-primary, .btn-cta-outline {
    padding: 13px 20px;
    font-size: 0.92rem;
  }

  /* Trust strip */
  .trust-item { font-size: 0.82rem; padding: 5px 12px; }

  /* Partners */
  .partners { padding: 44px 0; }
  .partner-item { min-width: 140px; }
  .partner-item img { height: 120px; }
}

/* ── ≤ 360px : très petits écrans ───────────────────────── */
@media (max-width: 360px) {
  /* Hero band */
  .hero-band { padding: 26px 0 22px; }
  .hero-headline { font-size: 1.3rem; }
  .hero-tagline { font-size: 0.85rem; margin-bottom: 16px; }
  .hero-stat .stat-num { font-size: 1.55rem; }
  .hero-stat .stat-label { font-size: 0.75rem; }
  .hero-stat { padding: 0 12px; }
  .hero-badge { font-size: 0.75rem; padding: 4px 10px; }

  /* Section headers */
  .section-header { margin-bottom: 22px; }
  .section-header .tag { font-size: 0.65rem; padding: 4px 12px; }
  .section-header h2 { font-size: 1.2rem; }
  .section-header p  { font-size: 0.83rem; }

  /* How it works */
  .how-it-works { padding: 36px 0; }
  .steps-grid { gap: 36px; }
  .step-card {
    padding: 32px 16px 22px;
    border-radius: 14px;
  }
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    top: -15px;
  }
  .step-icon { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 12px; }
  .step-card h3 { font-size: 0.95rem; }
  .step-card p  { font-size: 0.83rem; }

  /* Why us */
  .why-us { padding: 36px 0; }
  .why-grid { gap: 14px; }
  .why-card {
    padding: 20px 14px;
    border-radius: 14px;
  }
  .why-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; margin-bottom: 12px; }
  .why-card h3 { font-size: 0.92rem; margin-bottom: 6px; }
  .why-card p  { font-size: 0.82rem; line-height: 1.55; }

  /* CTA */
  .cta-section { padding: 38px 0; }
  .cta-section h2 { font-size: 1.3rem; }
  .cta-section p  { font-size: 0.85rem; }
  .cta-buttons { gap: 10px; }
  .btn-cta-primary, .btn-cta-outline {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-radius: 10px;
    max-width: 100%;
  }

  /* Trust strip */
  .trust-strip { padding: 10px 0; }
  .trust-item { font-size: 0.78rem; padding: 4px 10px; gap: 5px; }
  .trust-item i { font-size: 0.88rem; }

  /* Partners */
  .partners { padding: 36px 0; }
  .partner-item { min-width: 120px; padding: 10px; }
  .partner-item img { height: 100px; }
}

/* ── ≤ 320px : tout petit écran ─────────────────────────── */
@media (max-width: 320px) {
  .hero-headline { font-size: 1.15rem; }
  .section-header h2 { font-size: 1.1rem; }
  .step-card { padding: 28px 12px 18px; }
  .why-card  { padding: 16px 12px; }
  .cta-section h2 { font-size: 1.15rem; }
  .partner-item { min-width: 100px; }
  .partner-item img { height: 85px; }
}
