/* ═══════════════════════════════════════════════════════════════
   FAMILY OFFICE — Page-specific styles
   Used by: family-office.html
   Depends on: style.css (shared design system)
═══════════════════════════════════════════════════════════════ */

html { overflow-x: hidden; }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */

.fo-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #003366, #001a33);
  padding: 8rem 2rem 5rem;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fo-hero .hero-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
  background: rgba(243, 193, 58, 0.12);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid rgba(243, 193, 58, 0.25);
  margin-bottom: 2rem;
}

.fo-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 900px;
  letter-spacing: -0.02em;
}

.fo-hero h1 strong {
  color: var(--yellow);
}

.fo-hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

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

.fo-hero .btn-primary {
  background: var(--yellow);
  color: #222;
}

.fo-hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.45);
}

.fo-hero .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════════════════ */

.fo-stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  background: var(--blue);
  border-top: 3px solid var(--yellow);
}

.fo-stats-bar .stat-item {
  text-align: center;
}

.fo-stats-bar .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.fo-stats-bar .stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   REALITY CARDS — 2x2 grid
═══════════════════════════════════════════════════════════════ */

.reality-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.reality-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reality-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reality-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.1);
}

.reality-card:hover::after {
  transform: scaleX(1);
}

.reality-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.reality-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   CCM-STYLE CARDS — 3-step process
═══════════════════════════════════════════════════════════════ */

.fo-ccm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.fo-ccm-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fo-ccm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,51,102,0.12);
}

.fo-ccm-card .ccm-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.fo-ccm-card .ccm-step-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(34,34,34,0.4);
  margin-bottom: 0.5rem;
}

.fo-ccm-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.fo-ccm-card .ccm-sep {
  width: 40px;
  height: 3px;
  background: var(--yellow);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.fo-ccm-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════════
   3 PILLARS — Abonnement / Modules / Mandat
═══════════════════════════════════════════════════════════════ */

.fo-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.fo-pillar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 4px solid transparent;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.fo-pillar-card:hover {
  border-color: rgba(243, 193, 58, 0.25);
  transform: translateY(-4px);
}

.fo-pillar-card.active {
  border-top-color: var(--yellow);
  background: rgba(255,255,255,0.07);
}

.fo-pillar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.fo-pillar-card.active .fo-pillar-label {
  color: var(--yellow);
}

.fo-pillar-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.fo-pillar-subtitle {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.fo-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.fo-pillar-list li {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0;
  line-height: 1.5;
}

.fo-pillar-bullet {
  color: var(--yellow);
  font-weight: 600;
  margin-right: 0.4em;
}

.fo-pillar-cta {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 2px solid rgba(243,193,58,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
  margin-top: auto;
}

.fo-pillar-cta:hover {
  border-color: var(--yellow);
}

.fo-modules-list {
  flex: 1;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════
   OFFRES COLLAPSIBLES — inside pillar card
═══════════════════════════════════════════════════════════════ */

.fo-offre {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s;
}

.fo-offre:hover {
  border-color: rgba(243, 193, 58, 0.35);
}

.fo-offre summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  transition: background 0.2s;
}

.fo-offre summary::-webkit-details-marker { display: none; }

.fo-offre summary:hover {
  background: rgba(255,255,255,0.04);
}

.fo-offre summary .offre-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.fo-offre summary .offre-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: rgba(243, 193, 58, 0.18);
  color: var(--yellow);
  white-space: nowrap;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.fo-offre summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--yellow);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.fo-offre[open] summary::after {
  content: '\2212';
}

.fo-offre .offre-content {
  padding: 0 1.5rem 1.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.fo-offre .offre-content p strong {
  color: #F3C13A;
  font-weight: 700;
}

.fo-offres-cta {
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   DIFFERENTIATOR CARDS — Gold border-top
═══════════════════════════════════════════════════════════════ */

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.diff-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-top: 4px solid var(--yellow);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 51, 102, 0.1);
}

.diff-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.diff-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   FOUNDER SECTION — Navy variant
═══════════════════════════════════════════════════════════════ */

.fo-founder {
  padding: 5rem 2rem;
  background: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 60L60 0' stroke='%23ffffff' stroke-width='0.3' opacity='0.04'/%3E%3C/svg%3E");
}

.fo-founder .founder-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.fo-founder .founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--yellow);
  flex-shrink: 0;
}

.fo-founder .founder-content {
  flex: 1;
}

.fo-founder .founder-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fo-founder .founder-linkedin {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.fo-founder .founder-linkedin:hover {
  color: var(--yellow);
}

.fo-founder .founder-linkedin svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fo-founder .founder-title {
  font-size: 1rem;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.fo-founder .founder-credentials {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.fo-founder .founder-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   CTA FINAL — gradient navy
═══════════════════════════════════════════════════════════════ */

.fo-cta {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #003366, #001a33);
}

.fo-cta .cta-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.fo-cta .cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.fo-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.fo-cta .btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

.fo-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
}

.fo-cta .cta-crosslinks {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.fo-cta .cta-crosslinks a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 2px solid rgba(243, 193, 58, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.fo-cta .cta-crosslinks a:hover {
  color: #ffffff;
  border-color: var(--yellow);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .reality-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .fo-ccm-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .fo-pillars-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .diff-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .fo-hero {
    padding: 7rem 1.5rem 4rem;
    min-height: auto;
  }

  .fo-hero .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .fo-hero .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .fo-stats-bar {
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .fo-stats-bar .stat-value {
    font-size: 2rem;
  }

  .fo-stats-bar .stat-item {
    min-width: 45%;
  }

  .reality-card {
    padding: 1.5rem;
  }

  .fo-ccm-card {
    padding: 1.5rem;
  }

  .diff-card {
    padding: 1.5rem;
  }

  .fo-founder .founder-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .fo-founder .founder-photo {
    width: 120px;
    height: 120px;
  }

  .fo-founder .founder-name {
    justify-content: center;
  }

  .fo-founder .founder-quote {
    font-size: 1.125rem;
  }

  .fo-cta .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .fo-cta .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .fo-cta .cta-crosslinks {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .fo-hero {
    padding: 6rem 1rem 3rem;
  }

  .fo-hero h1 {
    font-size: 2rem;
  }

  .fo-stats-bar {
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .fo-stats-bar .stat-value {
    font-size: 1.75rem;
  }

  .fo-offre summary {
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
  }

  .fo-offre summary .offre-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .fo-cta {
    padding: 3rem 1rem;
  }

}
