/* =========================================================
   ACCUEIL PROFESSIONNEL — FdSiteCustom phase 1
   ========================================================= */

body#theHomePage nav.navbar-contextual {
  display: none !important;
}

body#theHomePage .pwgstuffs-container {
  display: none !important;
}

#fd-home {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: #1f1f1f;
  max-width: 1120px;
  margin: 0 auto 48px auto;
  padding: 0 16px;
}

#fd-home h1,
#fd-home h2,
#fd-home h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fd-home-section {
  margin: 56px 0;
}

.fd-home-section > h2 {
  font-size: 1.85rem;
  text-align: center;
  margin-bottom: 28px;
}

/* Hero */
.fd-home-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  color: #fff;
  background: #111;
}

.fd-home-hero-media {
  position: absolute;
  inset: 0;
}

.fd-home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.fd-home-hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
  padding: 36px 28px;
  margin: 24px;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 20px;
  backdrop-filter: blur(2px);
}

.fd-home-hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 12px 0;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
}

.fd-home-hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin: 0 0 14px 0;
  opacity: 0.95;
}

.fd-home-hero-text {
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 24px 0;
  opacity: 0.92;
}

.fd-home-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Boutons */
.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.98rem;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.fd-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.fd-btn-primary {
  background: #4f7ad9;
  color: #fff !important;
}

.fd-btn-accent {
  background: #2f5a9e;
  color: #fff !important;
}

.fd-btn-ghost {
  border: 2px solid #fff;
  color: #fff !important;
  background: transparent;
}

/* Cartes univers */
.fd-home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.fd-home-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fd-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.fd-home-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fd-home-card-link:hover {
  text-decoration: none;
}

.fd-home-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.fd-home-card-body {
  padding: 18px 20px 22px;
}

.fd-home-card-body h3 {
  font-size: 1.25rem;
  margin: 0 0 8px 0;
}

.fd-home-card-body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Positionnement */
.fd-home-positioning {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.fd-home-positioning p {
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Prestations */
.fd-home-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 18px auto;
  max-width: 420px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fd-home-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
}

.fd-home-link-wrap {
  text-align: center;
}

.fd-home-link-wrap a {
  color: #4f7ad9;
  font-weight: 600;
}

/* Réassurance */
.fd-home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.fd-home-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  color: #333;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.fd-home-pills a:hover {
  border-color: #4f7ad9;
  color: #4f7ad9;
  text-decoration: none;
}

/* CTA final */
.fd-home-final-cta {
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef3fa 100%);
}

.fd-home-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Smartpocket / mobile */
@media (max-width: 768px) {
  .fd-home-cards {
    grid-template-columns: 1fr;
  }

  .fd-home-hero {
    min-height: 360px;
  }

  .fd-home-hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-btn {
    width: 100%;
  }

  .fd-home-section {
    margin: 40px 0;
  }
}

@media (max-width: 360px) {
  #fd-home {
    padding: 0 12px;
  }

  .fd-home-hero-overlay {
    padding: 24px 16px;
  }
}
