/* ==========================================================================
   Forvis Mazars x Groupe BPCE - Commercial Proposal Website
   Light theme aligned with Forvis Mazars brand identity
   ========================================================================== */

/* =====================================================
   FORVIS MAZARS TYPOGRAPHY
   Brand typeface: Halyard Text
   Fallback: Arial (system font)

   Usage per brand guidelines:
   - Halyard Text Book (400) for body text
   - Halyard Text Medium (500) for titles and subtitles
   - Avoid italics - regular font is cleaner and more accessible
   ===================================================== */

/* Forvis Mazars Official Font - Halyard Text (Adobe Typekit) */
@import url("https://p.typekit.net/p.css?s=1&k=anb0jug&ht=tk&f=34693.34697.34700&a=88458973&app=typekit&e=css");

@font-face {
  font-family: "halyard-text";
  src:
    url("https://use.typekit.net/af/58984a/00000000000000003b9b40fb/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n3&v=3")
      format("woff2"),
    url("https://use.typekit.net/af/58984a/00000000000000003b9b40fb/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n3&v=3")
      format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "halyard-text";
  src:
    url("https://use.typekit.net/af/6e8f0a/00000000000000003b9b40ff/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
      format("woff2"),
    url("https://use.typekit.net/af/6e8f0a/00000000000000003b9b40ff/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n5&v=3")
      format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "halyard-text";
  src:
    url("https://use.typekit.net/af/261c77/00000000000000003b9b4101/27/l?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n6&v=3")
      format("woff2"),
    url("https://use.typekit.net/af/261c77/00000000000000003b9b4101/27/d?primer=f592e0a4b9356877842506ce344308576437e4f677d7c9b78ca2162e6cad991a&fvd=n6&v=3")
      format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  /* =====================================================
       FORVIS MAZARS OFFICIAL BRAND COLORS
       Based on Identity Fundamentals - Colour Palettes
       ===================================================== */

  /* Corporate Colours */
  --fm-indigo: #171c8f; /* PMS 2746 C - Primary Brand */
  --fm-true-blue: #0072ce; /* PMS 285 C - Secondary */
  --fm-white: #ffffff;

  /* Text & Accent - Neutral Palette */
  --fm-dark-space: #25282a;
  --fm-outer-space: #464b4b;
  --fm-deep-smoke: #727578;
  --fm-dark-smoke: #97999b;
  --fm-smoke: #b1b3b3;
  --fm-light-smoke: #c8c9c7;
  --fm-pale-smoke: #d9d9d6;
  --fm-white-smoke: #f4f4f4;

  /* =====================================================
       THEME MAPPING (Light Theme - White & Blue)
       ===================================================== */

  /* Primary Colors */
  --color-primary: var(--fm-indigo);
  --color-primary-dark: #0f1260;
  --color-primary-light: #2a30b0;
  --color-accent: var(--fm-true-blue);
  --color-accent-light: #339fe0;

  /* Neutrals - Light Theme */
  --color-white: #ffffff;
  --color-off-white: var(--fm-white-smoke);
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-black: #0a0a0a;

  /* Text colors for light theme */
  --color-text: var(--fm-dark-space);
  --color-text-muted: var(--fm-deep-smoke);
  --color-text-subtle: var(--fm-dark-smoke);

  /* Accent variations */
  --color-light-blue: #ebf3fb;

  /* Typography - Halyard Text (Official Forvis Mazars font)
       Fallback: Arial as per brand guidelines
       Note: No serif font per brand guidelines - Halyard only */
  --font-sans: "halyard-text", Arial, sans-serif;
  --font-body: var(--font-sans); /* Alias for compatibility */

  /* Font weights per brand guidelines */
  --font-weight-light: 300; /* Halyard Text Light */
  --font-weight-book: 400; /* Halyard Text Book - body text */
  --font-weight-medium: 500; /* Halyard Text Medium - titles */
  --font-weight-semibold: 600; /* Halyard Text Bold */

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows for dark theme */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
  --shadow-glow: 0 0 40px rgba(95, 61, 196, 0.3);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--font-weight-book); /* Halyard Text Book for body */
  line-height: 1.7;
  color: var(--color-gray-800);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium); /* Halyard Text Medium for titles */
  line-height: 1.2;
  color: var(--color-gray-900);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 700px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header .section-description {
  margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn i {
  margin-right: var(--space-sm);
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.0625rem;
}

/* ==========================================================================
   Site top (preview banner + navigation)
   ========================================================================== */

.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.chat-open .site-top {
  right: 420px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  background: #ffffff;
  border-bottom: 1px solid #979797;
  transition: all var(--transition-base);
}

body.chat-open .nav-links {
  display: none;
}
body.chat-open .nav-links.active {
  display: flex;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 420px;
  background: #fff;
  flex-direction: column;
  padding: 2rem;
  gap: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  z-index: 999;
}
body.chat-open .nav-toggle {
  display: flex;
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.5rem;
  width: 100%;
  padding: 0 2rem;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  width: fit-content;
  flex-shrink: 0;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: all 0.3s;
}

.logo-img.client-logo {
  height: 80px;
}

.nav-logo .logo-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  color: rgba(23, 28, 143, 0.3);
  font-size: 20px;
  font-weight: 300;
}

.nav.scrolled .logo-separator {
  color: rgba(23, 28, 143, 0.3);
}

/* Client logo in navigation */
.nav-logo .client-logo {
  height: 80px !important;
  width: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  min-width: auto;
  transition: none;
}

.nav-logo .client-logo:hover {
  transform: none;
  box-shadow: none;
}

.nav-logo .client-logo img {
  filter: none;
  opacity: 1;
}

.nav-logo .client-logo:hover img {
  filter: none;
  opacity: 1;
}

.logo-text {
  font-family: var(--font-sans);
  color: var(--color-primary);
}

.logo-accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  gap: 0;
  margin-left: auto;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.nav-link {
  color: #464b4b;
  display: block;
  font-family: "halyard-text", sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1;
  padding: 1rem 0.5rem;
  position: relative;
  transition: color 0.3s linear;
  white-space: nowrap;
}

/* Space before buttons */
.nav-link-download {
  margin-left: 1rem;
}

.nav-link-cta,
.nav-logout {
  margin-left: 0;
}

.nav-link::after {
  background-color: #0072ce;
  bottom: 0.5rem;
  content: "";
  display: block;
  height: 2px;
  left: 0.5rem;
  opacity: 0;
  position: absolute;
  right: 0.5rem;
  transition: opacity 0.3s;
}

.nav-link:hover {
  color: #0072ce;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-link.active {
  color: #0072ce;
}

.nav-link.active::after {
  opacity: 1;
}

.nav-link-pdf {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.8;
}

.nav-link-pdf i {
  width: 16px;
  height: 16px;
}

.nav-link-pdf:hover {
  opacity: 1;
}

.nav-link-download,
.nav-link-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  border: 2px solid var(--color-primary);
  transition: all var(--transition-base);
}

.nav-link-download {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.nav-link-download::after,
.nav-link-cta::after {
  display: none;
}

.nav-link-download:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.nav-link-download i {
  width: 16px;
  height: 16px;
}

.nav-link-cta {
  background: transparent;
  color: var(--color-primary) !important;
}

.nav-link-cta:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.nav-logout {
  display: none;
}

.logout-bar {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
}

.logout-bar-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #787878;
  font-family: "halyard-text", sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  transition: color 0.3s linear;
  padding: 0.25rem 0.75rem;
}

.logout-bar-btn:hover {
  color: #0072ce;
}

.logout-bar-btn i {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  body.chat-open {
    margin-right: 0;
  }
  body.chat-open .nav {
    right: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.active .nav-link-download,
  .nav-links.active .nav-link-cta {
    width: 100%;
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-link-download,
  .nav-link-cta {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    min-width: auto;
    border-width: 1.5px;
  }

  .nav-link-download i {
    width: 12px;
    height: 12px;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-5xl) var(--space-xl);
  background:
    linear-gradient(to bottom, rgba(23, 28, 143, 0.72) 0%, rgba(0, 0, 0, 0.65) 100%),
    url("assets/images/hero-bg.webp"),
    url("assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.03);
  transform: rotate(15deg);
}

.shape-1 {
  width: 600px;
  height: 600px;
  right: -200px;
  top: -100px;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.shape-2 {
  width: 400px;
  height: 400px;
  left: -100px;
  bottom: 20%;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.shape-3 {
  width: 300px;
  height: 800px;
  right: 30%;
  bottom: -200px;
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-medium); /* Halyard Text Medium */
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: rgba(255, 255, 255, 0.8); /* Blanc 80% pour hiérarchie subtile */
  font-weight: 300; /* Plus léger que le titre principal */
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hero-description {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.03em;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.hero-cta .btn-primary:hover {
  background: var(--color-light-blue);
  transform: translateY(-2px);
}

.hero-cta .btn-secondary {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  position: relative;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0%,
  100% {
    opacity: 1;
    top: 8px;
  }
  50% {
    opacity: 0.5;
    top: 18px;
  }
}

@keyframes btn-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-cta .btn-secondary[style*="btn-pulse"] {
  will-change: opacity;
  transition: none !important;
}

/* ==========================================================================
   Introduction Section
   ========================================================================== */

.intro {
  background: var(--color-white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.intro-content .section-title {
  font-size: 1rem !important;
  font-weight: 400 !important;
  font-style: italic;
  color: var(--color-gray-500, #6b7280);
  line-height: 1.7;
  letter-spacing: 0.01em;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.intro-opening-quote {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-gray-500, #6b7280);
  line-height: 1.75;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-2xl);
  display: block;
}

.intro-text p {
  margin-bottom: var(--space-lg);
  color: var(--color-gray-600);
}

.intro-message-list {
  margin: 0 0 var(--space-lg);
  padding-left: 1.15rem;
  color: var(--color-gray-600);
  font-size: 0.98rem;
  line-height: 1.58;
}

.intro-message-list li {
  margin-bottom: 0.72rem;
}

.intro-message-list li::marker {
  color: var(--color-accent);
  font-weight: 700;
}

.intro-block {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.intro-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.intro-block-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.intro-block p {
  margin-bottom: var(--space-md);
  color: var(--color-gray-600);
}

.intro-block p:last-child {
  margin-bottom: 0;
}

.intro-block-core {
  background: var(--color-light-blue, #f0f4ff);
  padding: var(--space-xl);
  border-bottom: none;
  margin-bottom: var(--space-lg);
}

.intro-block-core p {
  color: var(--color-primary);
  font-weight: 500;
}

.intro-block-closing {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.intro-block-closing p {
  color: var(--color-gray-700, #374151);
  font-style: italic;
}

.intro-block-closing {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.intro-block-closing p {
  color: var(--color-gray-700, #374151);
  font-style: italic;
}

.intro-closing-line {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-lg) !important;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
}

.intro-signature {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.intro-signature strong {
  color: var(--color-primary);
}

.intro-signature span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.intro-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.partner-video-name {
  margin-top: var(--space-sm);
  margin-bottom: 0.2rem;
  color: var(--color-primary);
  font-weight: 600;
}

.partner-video-role {
  margin-top: 0;
  color: var(--color-gray-600);
  font-size: 0.9rem;
}

.highlight-card {
  padding: var(--space-xl);
  background: var(--color-light-blue);
  border-radius: 0;
  transition: all var(--transition-base);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 0;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.highlight-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
}

@media (max-width: 576px) {
  .intro-highlights {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats {
  background: var(--color-primary);
  padding: var(--space-xl) 0;
}

.stats .container {
  max-width: 1600px;
}

.stats-eyebrow {
  text-align: center;
  font-family: "halyard-text", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
  column-gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
}

.stat-number {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

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

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Synthesis Section
   ========================================================================== */

.synthesis {
  background: var(--color-off-white);
}

.synthesis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.synthesis-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.synthesis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-accent);
}

.synthesis-number {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.synthesis-card h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.synthesis-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-md);
}

.synthesis-card .highlight-text {
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-800);
  padding-left: var(--space-md);
  border-left: 3px solid var(--color-accent);
  margin-bottom: 0;
}

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

@media (max-width: 576px) {
  .synthesis-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Partnership Section
   ========================================================================== */

.partnership {
  background: var(--color-white);
}

/* ==========================================================================
   Partnership Overview Section
   ========================================================================== */

.partnership-overview {
  background: var(--color-off-white);
}

.po-band {
  margin-bottom: var(--space-3xl);
}

.po-band-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

/* Unique Enablers Panel */
.po-enablers-panel {
  background: transparent;
  padding: 0;
  margin-bottom: var(--space-3xl);
}

.po-enablers-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-lg) 0;
}

.po-enablers-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .po-enablers-blocks {
    grid-template-columns: 1fr;
  }
}

.po-enabler-block {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.po-enabler-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--fm-indigo);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  margin: 0;
}

.po-enabler-list {
  flex: 1;
  list-style: none;
  padding: var(--space-md) var(--space-lg);
  margin: 0;
  background: var(--color-light-blue);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.po-enabler-list li {
  font-size: 0.875rem;
  color: var(--color-gray-700);
  line-height: 1.5;
}

.po-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.po-pill {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0;
  background: transparent;
  line-height: 1.3;
}

.po-pill--dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.po-differentiators {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.po-diff-card {
  background: var(--color-white);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.po-diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-light-gray, #e5e7eb);
}

.po-diff-card .po-diff-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.po-diff-point {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.55;
  padding-left: 0;
  border-left: none;
}

.po-diff-point strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 3px;
}

@media (max-width: 1024px) {
  .po-differentiators {
    grid-template-columns: 1fr;
  }
}

.partnership-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-4xl);
  align-items: start;
}

.partnership-text .section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.partnership-text > p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-2xl);
}

.partnership-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.feature {
  display: flex;
  gap: var(--space-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-blue);
  border-radius: 0;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.feature-content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.feature-content p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.partnership-visual {
  position: sticky;
  top: 100px;
}

.visual-image {
  margin-bottom: var(--space-xl);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.partnership-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.visual-card {
  background: linear-gradient(
    135deg,
    var(--fm-indigo) 0%,
    var(--fm-true-blue) 100%
  );
  border-radius: 0;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
}

.visual-content h3 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.visual-content p {
  color: var(--color-white);
  font-size: 1.125rem;
  line-height: 1.6;
}

.visual-content strong {
  color: #7bbfff;
}

@media (max-width: 992px) {
  .partnership-content {
    grid-template-columns: 1fr;
  }

  .partnership-visual {
    position: static;
  }

  .partnership-features {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Advantages Section
   ========================================================================== */

.advantages {
  background: var(--color-primary);
}

.advantages .section-label,
.advantages .section-title {
  color: var(--color-white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.advantage-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.advantage-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.advantage-card.large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(
    135deg,
    var(--fm-true-blue) 0%,
    var(--fm-indigo) 100%
  );
}

.advantage-card h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.advantage-card.large h3 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
}

.advantage-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

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

  .advantage-card.large {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 576px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-card.large {
    grid-column: span 1;
  }
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team {
  background: var(--color-off-white);
  padding-top: var(--space-2xl);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: var(--color-white);
  border-radius: 0;
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
  min-width: 0;
  overflow: hidden;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.team-photo {
  margin-bottom: var(--space-lg);
}

.team-photo-clickable {
  cursor: pointer;
}

.team-photo-clickable:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 5px;
}

.team-photo-clickable:hover .team-img,
.team-photo-clickable:hover .team-photo-placeholder {
  transform: scale(1.035);
}

.team-img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 7%;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-primary);
  transition: transform var(--transition-base);
}

.team-img-placeholder {
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 2rem;
  color: var(--color-white);
}

.team-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
}

.team-info h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.team-role {
  display: block;
  font-size: 0.9375rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.team-cv-open {
  overflow: hidden;
}

.team-cv-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.team-cv-overlay.open {
  display: flex;
}

.team-cv-panel {
  position: relative;
  width: min(720px, 96vw);
  max-height: min(90vh, 900px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  font-family: "halyard-text", sans-serif;
  color: #111827;
}

.team-cv-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.team-cv-content {
  padding: 32px 36px 36px;
}

.team-cv-header {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}

.team-cv-photo,
.team-cv-photo-placeholder {
  width: 110px;
  height: 140px;
  background: #fff;
}

.team-cv-photo {
  object-fit: cover;
  object-position: center top;
}

.team-cv-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(23, 28, 143, 0.12), rgba(0, 114, 206, 0.12));
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 600;
}

.team-cv-name {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.cv-role-line {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-gray-800);
  margin-bottom: 3px;
}

.cv-role-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gray-900);
  margin-bottom: 6px;
}

.team-cv-quote {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 22px;
  color: #444;
}

.cv-quote-icon {
  width: 34px;
  height: 24px;
  color: #103c59;
}

.team-cv-quote p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
}

.team-cv-section {
  margin-top: 20px;
}

.team-cv-section h4 {
  margin: 0 0 10px;
  color: var(--color-gray-900);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.team-cv-section p {
  margin: 0;
  color: var(--color-gray-800);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.team-cv-references {
  margin-top: 24px;
  background: #f5f5f5;
  padding: 14px 16px 18px;
}

.team-cv-references h4 {
  color: var(--color-accent);
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

@media (max-width: 560px) {
  .team-cv-content {
    padding: 22px 20px 26px;
  }
  .team-cv-header {
    grid-template-columns: 1fr;
  }
  .team-cv-photo,
  .team-cv-photo-placeholder {
    margin: 0 auto;
  }
  .team-cv-name,
  .cv-role-line {
    text-align: center;
  }
  .team-cv-quote {
    grid-template-columns: 30px minmax(0, 1fr);
  }
}

.team-contact {
  text-align: left;
  padding-top: var(--space-md);
  margin-top: auto;
  border-top: 1px solid var(--color-gray-200);
}

.team-contact p {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.team-contact i {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

.team-contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--color-gray-600);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color 0.2s ease;
}

.team-contact-link:hover {
  color: var(--color-primary);
}

.team-contact-link i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.team-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xl);
  margin-top: var(--space-3xl);
  text-align: center;
}

.team-subtitle:first-of-type {
  margin-top: 0;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.team-description {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-light-blue);
  border-left: 3px solid var(--color-primary);
  text-align: left;
}

.team-why {
  font-size: 0.8125rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-light-blue);
  border-left: 3px solid var(--color-primary);
  text-align: left;
}

.team-why strong {
  color: var(--color-primary);
}

.team-grid-small {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1100px;
}

.team-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 100%;
  align-items: stretch;
}

.team-grid-4 .team-card {
  height: 100%;
  padding: var(--space-lg);
}

.team-grid-4 .team-img {
  width: 100px;
  height: 100px;
}

.team-grid-4 .team-info h3 {
  font-size: 1rem;
}

.team-grid-4 .team-role {
  font-size: 0.8rem;
}

.team-grid-4 .team-bio {
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.team-grid-4 .team-description {
  font-size: 0.8rem;
  line-height: 1.5;
}

.team-card-compact {
  padding: var(--space-lg);
  text-align: center;
}

.team-card-compact .team-photo {
  margin-bottom: var(--space-md);
}

.team-card-compact .team-img {
  width: 100px;
  height: 100px;
  border-width: 3px;
}

.team-card-compact .team-info h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.team-card-compact .team-role {
  font-size: 0.75rem;
  margin-bottom: var(--space-sm);
}

.team-card-compact .team-bio {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.team-card-small {
  padding: var(--space-xl);
}

.team-card-small .team-img {
  width: 100px;
  height: 100px;
}

.team-card-small .team-info h3 {
  font-size: 1.125rem;
}

.team-card-small .team-role {
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .team-grid-small {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .team-grid-2,
  .team-grid-4 {
    max-width: none;
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .team-grid-2 {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .team-card {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .team-grid,
  .team-grid-2,
  .team-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Client References Section
   ========================================================================== */

.references {
  background: var(--color-off-white);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.client-logo {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 80px;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-logo img {
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition:
    filter var(--transition-base),
    opacity var(--transition-base);
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.references-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
}

/* ==========================================================================
   Knowledge Graph Section
   ========================================================================== */

.knowledge-graph,
.team-graph-section {
  background: var(--color-white);
  padding: 0;
  overflow: hidden;
}

.team-graph-header,
.knowledge-graph-header {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.team-graph-header .section-label,
.knowledge-graph-header .section-label {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.team-graph-header .section-title,
.knowledge-graph-header .section-title {
  margin: 0;
}

.team-graph-header .section-intro,
.knowledge-graph-header .section-intro {
  max-width: 700px;
  margin: var(--space-md) auto 0;
  color: var(--color-gray-600);
  font-size: 1.05rem;
  line-height: 1.6;
}

#team-network-container,
#network-container {
  width: 100%;
  height: 85vh;
  min-height: 700px;
  max-height: 1100px;
  background: transparent;
  position: relative;
  overflow: visible;
}

#network-container {
  height: 92vh;
  min-height: 860px;
  max-height: 1180px;
}

.kg-scroll-wrapper {
  width: 100%;
}

@media (max-width: 768px) {
  .kg-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }
  #network-container {
    min-width: 900px;
  }
}

.team-graph-footer,
.knowledge-graph-footer {
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
}

.knowledge-graph-header {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.knowledge-graph-header .section-label {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.knowledge-graph-header .section-title {
  margin: 0;
}

.knowledge-graph-header .section-intro {
  max-width: 700px;
  margin: var(--space-md) auto 0;
  color: var(--color-gray-600);
  font-size: 1.05rem;
  line-height: 1.6;
}

.knowledge-graph-footer {
  padding: var(--space-xl) var(--space-lg) var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto;
}

.atout-box {
  display: flex;
  align-items: stretch;
  border-radius: 0;
  overflow: hidden;
}

.atout-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-xl);
  background: var(--fm-indigo);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  min-width: 160px;
  text-align: center;
  line-height: 1.4;
}

.atout-content {
  flex: 1;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-light-blue);
  color: var(--color-gray-700);
  font-size: 0.925rem;
  line-height: 1.65;
}

.atout-content p {
  margin: 0;
}

.atout-content p + p {
  margin-top: var(--space-xs);
}

.atout-content strong {
  color: var(--color-gray-900);
  font-weight: 600;
}

@media (max-width: 768px) {
  .atout-box {
    flex-direction: column;
  }

  .atout-label {
    min-width: unset;
    padding: var(--space-md);
  }

  .atout-content {
    padding: var(--space-md);
  }
}

/* Custom Graph Tooltip */
.graph-tooltip {
  position: absolute;
  z-index: 20;
  pointer-events: none;
  display: none;
  background: #0f172a;
  border-radius: 0;
  padding: 12px 16px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 280px;
  min-width: 180px;
  font-family: var(--font-body);
}

.graph-tooltip.visible {
  display: block;
  animation: tooltipFadeIn 0.15s ease forwards;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.graph-tooltip-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.graph-tooltip-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.graph-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-gray-700);
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.legend-dot.courtage {
  background: #0070c0;
}

.legend-dot.assurance {
  background: #005587;
}

.graph-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-lg);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.graph-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

@media (max-width: 768px) {
  #team-network-container {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
  }

  #network-container {
    height: 60vh;
    max-height: 600px;
  }

  .knowledge-graph-header,
  .team-graph-header {
    padding: var(--space-2xl) var(--space-md) var(--space-lg);
  }

  .graph-stats {
    gap: var(--space-xl);
  }

  .stat-item strong {
    font-size: 1.5rem;
  }
}

.team-contact strong {
  color: var(--color-gray-700);
}

/* ==========================================================================
   Resources Section (Videos, Publications, Links)
   ========================================================================== */

.resources-section {
  background: var(--color-white);
  padding: var(--space-5xl) 0;
}

.resources-section-alt {
  background: var(--color-off-white);
}

/* Video Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.video-gallery-3 {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-xl);
}

.video-gallery-2 {
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-xl);
}

.video-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.video-card:hover {
  border-color: var(--fm-true-blue);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.video-card.featured {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .video-gallery,
  .video-gallery-3,
  .video-gallery-2 {
    grid-template-columns: 1fr;
  }
  .video-card.featured {
    grid-column: span 1;
  }
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.02);
}

.video-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 114, 206, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 114, 206, 0.4);
}

.video-card:hover .video-play-btn {
  background: var(--fm-indigo);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i,
.video-play-btn svg {
  color: #fff;
  stroke: #fff;
  width: 32px;
  height: 32px;
  margin-left: 4px;
}

.video-info {
  padding: var(--space-xl);
}

.video-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 114, 206, 0.1);
  color: var(--fm-true-blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(0, 114, 206, 0.3);
}

.video-info h3 {
  font-size: 1.25rem;
  color: var(--fm-indigo);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  font-weight: 500;
}

.video-info p {
  font-size: 0.95rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* Publications */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.publication-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: all 0.3s ease;
}

.publication-card:hover {
  border-color: var(--fm-true-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.publication-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(
    135deg,
    var(--fm-true-blue) 0%,
    var(--fm-indigo) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.publication-icon i,
.publication-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
  stroke: #fff;
}

.publication-info h3 {
  font-size: 1rem;
  color: var(--fm-indigo);
  margin-bottom: 6px;
  font-weight: 500;
}

.publication-info p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.publication-meta {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
}

.publication-link {
  font-size: 0.875rem;
  color: var(--fm-true-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.publication-link:hover {
  color: var(--fm-indigo);
}

.publication-link i {
  width: 16px;
  height: 16px;
}

/* External Links */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.link-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
}

.link-card:hover {
  border-color: var(--fm-true-blue);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.link-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--fm-true-blue) 0%,
    var(--fm-indigo) 100%
  );
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-card-icon i,
.link-card-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
  stroke: #fff;
}

.link-card h3 {
  font-size: 1.1rem;
  color: var(--fm-indigo);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.link-card p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
}

.link-card a {
  color: var(--fm-true-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-card a:hover {
  color: var(--fm-indigo);
}

.link-card a i {
  width: 16px;
  height: 16px;
}

/* Expert Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.insight-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: var(--fm-true-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.insight-tag {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--fm-true-blue) 0%,
    var(--fm-indigo) 100%
  );
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  margin-bottom: var(--space-md);
  align-self: flex-start;
}

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f4ff;
  color: #171c8f;
  border: 1px solid #c7d2fe;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

.insight-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.insight-card-tags .insight-tag,
.insight-card-tags .lang-badge {
  margin-bottom: 0;
}

.insight-card h3 {
  font-size: 1.15rem;
  color: var(--fm-indigo);
  margin-bottom: var(--space-sm);
  font-weight: 600;
  line-height: 1.4;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
  flex: 1;
  line-height: 1.6;
}

.insight-link {
  color: var(--fm-true-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.insight-link:hover {
  color: var(--fm-indigo);
  gap: 12px;
}

.insight-link i {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.insight-link:hover i {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .publications-grid,
  .video-gallery {
    grid-template-columns: 1fr;
  }

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

  .publication-card {
    flex-direction: column;
    text-align: center;
  }

  .publication-icon {
    margin: 0 auto;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta {
  background: linear-gradient(
    135deg,
    var(--color-light-blue) 0%,
    var(--color-white) 100%
  );
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.cta-content > p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: var(--space-2xl);
}

.cta-actions {
  margin-bottom: var(--space-2xl);
}

.cta-signature {
  font-size: 1rem;
  color: var(--color-gray-600);
}

.cta-signature strong {
  color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-4xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-gray-800);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-md);
  filter: brightness(0) invert(1);
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  display: block;
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text,
.footer-brand .logo-accent {
  color: var(--color-white);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .highlight-card,
  .synthesis-card,
  .advantage-card,
  .team-card,
  .feature {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .highlight-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .highlight-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .highlight-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  .highlight-card:nth-child(4) {
    animation-delay: 0.4s;
  }

  .synthesis-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .synthesis-card:nth-child(2) {
    animation-delay: 0.15s;
  }
  .synthesis-card:nth-child(3) {
    animation-delay: 0.2s;
  }
  .synthesis-card:nth-child(4) {
    animation-delay: 0.25s;
  }
  .synthesis-card:nth-child(5) {
    animation-delay: 0.3s;
  }
  .synthesis-card:nth-child(6) {
    animation-delay: 0.35s;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 576px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-4xl) var(--space-md);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* ── World Map Section ── */
.world-map-section {
  background: #ffffff;
}
.world-map-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.world-map-section .section-subtitle {
  color: #555;
  font-size: 16px;
  margin-top: 8px;
}
#world-map {
  width: 100%;
  min-height: 480px;
  overflow: visible;
  background: transparent;
  position: relative;
}
#world-map svg {
  display: block;
  background: transparent;
  overflow: hidden;
}

.map-scroll-wrapper {
  width: 100%;
}

@media (max-width: 768px) {
  .map-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }
  #world-map {
    min-width: 900px;
    min-height: 360px;
  }
}
.map-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #444;
}
.map-legend-item span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  flex-shrink: 0;
}
.map-legend-fm span {
  background: #5b9bd5;
}
.map-legend-both span {
  background: #171c8f;
}
.map-legend-none span {
  background: #d1d9e0;
}

/* ── Map explore bar (hint + country dropdown) ── */
.map-explore-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.map-explore-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin: 0;
  font-style: italic;
}
.map-explore-hint svg {
  flex-shrink: 0;
  color: #0072ce;
}
.map-explore-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.map-explore-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #171c8f;
  pointer-events: none;
}
.map-country-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1.5px solid #c8d3e8;
  border-radius: 6px;
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  color: #1e293b;
  font-family: inherit;
  min-width: 220px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.map-country-select:hover {
  border-color: #171c8f;
}
.map-country-select:focus {
  border-color: #171c8f;
  box-shadow: 0 0 0 3px rgba(23, 28, 143, 0.1);
}
@media (max-width: 560px) {
  .map-explore-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-country-select {
    min-width: 100%;
    width: 100%;
  }
}

/* ── BPCE: team photo placeholder ── */
.team-photo-placeholder {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-photo-placeholder svg {
  width: 70px;
  height: 70px;
  color: #94a3b8;
}
