/* ============================================
   BOÉTIE CAPITAL INVEST — Global Stylesheet
   Family Office | Paris
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #1B2A4A;
  --navy-dark: #131f37;
  --gold: #C9A84C;
  --gold-light: #d4b96a;
  --gold-dark: #b8953e;
  --white: #FFFFFF;
  --bg-light: #F7F6F3;
  --gray-text: #6B7280;
  --black-text: #1A1A1A;
  --border-light: #E5E5E5;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
  --header-height: 60px;
  --header-height-scrolled: 55px;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  /* Accessible gold for text on white (WCAG AA 4.5:1) */
  --gold-accessible: #8B7230;
  --focus-ring: 0 0 0 3px rgba(201,168,76,0.45);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Skip to Content (Accessibility) --- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.8rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black-text);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* --- Focus Visible (Accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Content links should be distinguishable */
.content-block a:not(.btn):not(.card-link) {
  color: var(--gold-accessible);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-block a:not(.btn):not(.card-link):hover {
  color: var(--gold-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.8;
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-dark);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-gold:hover::before {
  left: 0;
}

.btn-gold:hover {
  border-color: var(--gold-dark);
}

.btn-gold:active {
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy);
}

.btn-outline:active {
  transform: scale(0.97);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline-navy:hover {
  background-color: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.95rem;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  transition: all var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  box-shadow: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  text-shadow: none;
  line-height: 1.1;
  transition: font-size var(--transition), color var(--transition);
}

.site-header.scrolled .logo-text {
  font-size: 1.25rem;
  color: var(--navy);
  text-shadow: none;
}

.logo-text span {
  color: var(--gold);
}

/* Desktop Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  text-shadow: none;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  white-space: nowrap;
}

.site-header.scrolled .main-nav > ul > li > a {
  color: var(--navy);
  text-shadow: none;
}

.main-nav > ul > li > a {
  position: relative;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 1rem;
  right: 1rem;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--gold);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 2px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}

.main-nav > ul > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.4rem;
  font-size: 0.85rem;
  color: var(--black-text);
  transition: all var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--gold);
  padding-left: 1.7rem;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

/* Header CTA */
.header-cta {
  margin-left: 1.5rem;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
  border-radius: 2px;
}

.site-header.scrolled .hamburger span {
  background: var(--navy);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: calc(var(--header-height) + 1rem) 2rem 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  margin-bottom: 0.5rem;
}

.mobile-nav > ul > li {
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
}

.mobile-nav .mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-nav .mobile-dropdown-toggle .arrow {
  transition: transform var(--transition);
  font-size: 0.7rem;
}

.mobile-nav .mobile-dropdown-toggle.open .arrow {
  transform: rotate(180deg);
}

.mobile-nav .mobile-submenu {
  display: none;
  padding-left: 1rem;
  padding-bottom: 0.5rem;
}

.mobile-nav .mobile-submenu.open {
  display: block;
}

.mobile-nav .mobile-submenu a {
  display: block;
  padding: 0.75rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 0.92rem;
  color: var(--gray-text);
}

.mobile-nav .mobile-submenu a:hover {
  color: var(--gold);
}

.mobile-nav-cta {
  margin-top: 2rem;
  text-align: center;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  margin-top: 0;
  padding-bottom: 8vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.7));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,42,74,0.10) 0%,
    rgba(27,42,74,0.05) 30%,
    rgba(27,42,74,0.35) 70%,
    rgba(27,42,74,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  padding: 0 2rem 0 8vw;
  text-align: left;
}

.hero-pretitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.8rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.hero .hero-subtitle {
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.hero .btn {
  margin-top: 0.5rem;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  padding-left: 1.2rem;
}

/* --- Tagline Section (split-text) --- */
.tagline-section {
  padding: 5rem 0 4rem;
  text-align: center;
  background: var(--white);
  position: relative;
}

/* Subtle grain texture for white sections */
.tagline-section::before,
.values-section::before,
.section-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

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

.tagline-text {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.12);
  line-height: 1.6;
  margin-bottom: 0;
  overflow: hidden;
}

.tagline-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tagline-text.visible .char {
  opacity: 1;
  transform: translateY(0);
  color: var(--navy);
}

.tagline-logo {
  margin-top: 1.5rem;
  text-align: center;
}

.tagline-logo .logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--gold);
}

.tagline-logo-img {
  height: 80px;
  width: auto;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(68%) sepia(51%) saturate(497%) hue-rotate(12deg) brightness(94%) contrast(87%);
}

/* --- Dark Showcase (chiffres + services continus) --- */
.dark-showcase {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.dark-showcase-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.dark-showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0.85);
}

.dark-showcase-content {
  position: relative;
  z-index: 2;
}

.dark-showcase-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
}

/* --- Intro Conviction Section --- */
.intro-conviction {
  background: var(--bg-light);
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.intro-conviction-content {
  max-width: 700px;
  padding: 0 2rem;
  margin: 0 auto;
  text-align: center;
}

.intro-conviction-icon {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.intro-conviction-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.6;
  color: var(--navy);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.intro-conviction-dash {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1rem;
}

.intro-conviction-author {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-accessible);
}

/* Page Hero (full-screen, for subpages — like current site) */
.page-hero {
  position: relative;
  z-index: 10;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  margin-top: 0;
  padding-bottom: 8vh;
  background-color: var(--navy);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27,42,74,0.10) 0%,
    rgba(27,42,74,0.05) 30%,
    rgba(27,42,74,0.35) 70%,
    rgba(27,42,74,0.55) 100%
  );
  z-index: 1;
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero .hero-content {
  max-width: 100%;
  width: 100%;
  padding: 0 2rem 0 8vw;
}

.page-hero .hero-pretitle {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  max-width: 700px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.4);
}

.page-hero h1 .gold,
.page-hero-short h1 .gold {
  color: var(--white);
}

.page-hero .hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
}

.page-hero .hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  text-decoration: none;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  transition: padding-left var(--transition);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.page-hero .hero-cta:hover {
  padding-left: 1.4rem;
}

/* --- Page Content Layout (2 columns with sidebar) --- */
.page-layout {
  position: relative;
  padding: 3rem 2rem;
}

.page-sidebar {
  position: absolute;
  left: 4vw;
  top: 0;
  width: 280px;
  z-index: 5;
}

.sidebar-cta {
  background: var(--navy);
  padding: 2.5rem 2rem;
  border-radius: 4px;
}

.sidebar-cta h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.sidebar-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.82rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.page-content {
  min-width: 0;
  max-width: 700px;
  /* Centré sur le viewport, mais jamais derrière la sidebar */
  margin-left: max(calc(4vw + 300px - 2rem), calc(50vw - 350px - 2rem));
  margin-right: auto;
  padding: 0 1rem;
}

.page-content .content-block {
  max-width: none;
  margin: 0 0 2rem;
}

/* Gold italic tagline in content */
.content-tagline {
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.7;
  margin: 2rem 0;
  display: block;
}

/* --- Service Cards (dark variant for subpages) --- */
.cards-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card-dark {
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card-dark .card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-dark .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card-dark:hover .card-image img {
  transform: scale(1.05);
}

.card-dark .card-body {
  padding: 1.8rem 2rem 2rem;
}

.card-dark h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.card-dark p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.card-dark .card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--gold);
  text-decoration: none;
  transition: gap var(--transition), padding-left var(--transition);
}

.card-dark .card-link::after {
  content: '\2192';
}

.card-dark .card-link:hover {
  gap: 0.7rem;
  padding-left: 1rem;
}

/* --- CTA Pre-footer (photo + white card overlay) --- */

/* --- Services Divider --- */
.services-divider {
  text-align: center;
  padding: 2rem 0 1.5rem;
  position: relative;
}

.services-divider::before,
.services-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  height: 1px;
  background: var(--border-light);
}

.services-divider::before { left: 0; }
.services-divider::after { right: 0; }

.services-divider span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: var(--white);
  padding: 0 1.5rem;
  position: relative;
}

/* --- Contact Page (dark content) --- */
.contact-dark {
  background: #2A2A2A;
  padding: 4rem 0;
}

.contact-dark .contact-info h3 {
  color: var(--white);
}

.contact-dark .contact-info-label {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.contact-dark .contact-info-value {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}

.contact-dark .contact-info-value a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

/* Contact page hero (shorter) */
.page-hero-short {
  position: relative;
  z-index: 10;
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
  align-items: flex-end;
  text-align: left;
  padding-bottom: 6vh;
}

.page-hero-short .hero-content {
  text-align: left;
  max-width: 100%;
  padding: 0 2rem 0 8vw;
}

.page-hero-short h1 {
  max-width: none;
}

/* --- Sections --- */
.section {
  padding: 3.5rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

.section-bg {
  background-color: var(--bg-light);
}

.section-navy {
  background-color: var(--navy);
}

.section-title {
  text-align: left;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 650px;
  font-size: 1.05rem;
}

.section-title .gold-line {
  display: block;
  width: 50px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.2rem 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible .gold-line,
.fade-in.visible .gold-line {
  transform: scaleX(1);
}

/* --- Section Label --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-label-light {
  color: var(--gold-light);
}

/* --- Key Figures --- */
.figures-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.figures-section .figures-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.figures-section .figures-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,42,74,0.88);
}

.figures-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.figure-item {
  position: relative;
  padding: 2.5rem 2rem;
}

.figure-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.35), transparent);
}

.figure-item .figure-number {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 30px rgba(201,168,76,0.2);
}

.figure-suffix {
  font-size: 0.7em;
  font-weight: 600;
  vertical-align: baseline;
}

.figure-item .figure-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.figure-item .figure-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
}

/* --- Accroche Section --- */
.accroche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.accroche-image {
  position: relative;
}

.accroche-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.accroche-text h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.accroche-text p {
  margin-bottom: 1.2rem;
}

.accroche-text .btn {
  margin-top: 1rem;
}

/* --- Values Section --- */
.values-section {
  background: var(--navy);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.values-section .section-title {
  margin-bottom: 3.5rem;
}

.values-section .section-title h2 {
  color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.value-item {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  transition: all 0.4s ease;
  text-align: center;
}

.value-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.value-icon {
  display: none;
}

.value-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-item h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.value-item p {
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.7;
}

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

.card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: none;
  border-top: 3px solid var(--gold);
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(27,42,74,0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.card:hover .card-image::after {
  opacity: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem 2rem 2.2rem;
}

.card-premium {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border: none;
}

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

.card h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.card p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card .card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-accessible);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--gold);
  transition: gap var(--transition), padding-left var(--transition), color var(--transition);
}

.card .card-link:hover {
  gap: 0.7rem;
  padding-left: 1rem;
  color: var(--gold-dark);
}

.card .card-link::after {
  content: '\2192';
  transition: transform 0.3s ease;
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

/* --- Content Layout --- */
.content-section {
  padding: 5rem 0;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 2rem;
}

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

.content-block h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.content-block h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.content-block p {
  margin-bottom: 1.2rem;
}

.content-block ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-block ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.7;
}

.content-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.content-block em,
.content-block .italic-text {
  font-style: italic;
  color: var(--gray-text);
  display: block;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

/* Content with image */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-with-image.reverse {
  direction: rtl;
}

.content-with-image.reverse > * {
  direction: ltr;
}

.content-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 2px;
}

/* --- Team Section --- */
.team-member {
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.team-member img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  filter: grayscale(10%);
}

.team-member h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.team-member .team-role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.team-member .team-bio {
  color: var(--gray-text);
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Team Showcase (homepage) */
.team-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.team-image {
  position: relative;
}

.team-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 2px;
  filter: grayscale(10%);
}


.team-info .section-label {
  margin-bottom: 0.5rem;
}

.team-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 0.3rem;
}

.team-info .team-role {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.team-info p {
  margin-bottom: 1.2rem;
}

.team-info .btn {
  margin-top: 0.5rem;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-section .hero-bg,
.cta-section .hero-overlay {
  position: absolute;
  inset: 0;
}

.cta-section .hero-overlay {
  background: rgba(27,42,74,0.85);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 2rem 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-logo span {
  color: var(--gold);
}

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.footer-conviction {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 320px;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
  display: inline-block;
  padding: 0.3rem 0;
  position: relative;
}

.footer-links li a::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-links li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-links li a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  line-height: 1.4;
}

.footer-contact li .footer-icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.footer-contact li .footer-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
}

.footer-contact li .footer-icon svg[viewBox="0 0 16 16"] {
  fill: var(--gold);
  stroke: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: 2px;
  background: var(--white);
  color: var(--black-text);
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus-ring);
}

.contact-form input:required:invalid:not(:placeholder-shown) {
  border-color: #D94F4F;
}

.contact-form input:required:valid {
  border-color: #4CAF50;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}

.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gray-text);
  line-height: 1.5;
}

.form-disclaimer a {
  color: var(--gold);
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 2px;
}

.contact-info-card h3 {
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
  color: var(--gold);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.contact-info-item .info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
}

.contact-info-item .info-icon svg[viewBox="0 0 16 16"] {
  fill: var(--gold);
  stroke: none;
}

.contact-info-item .info-label {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.contact-info-item .info-value {
  font-size: 0.95rem;
  color: var(--gray-text);
  margin-bottom: 0;
}

.map-container {
  margin-top: 2rem;
  border-radius: 2px;
  overflow: hidden;
  height: 250px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Espace Clients --- */
.client-space {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.client-space p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* --- Partners Grid --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.partner-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  border-bottom: 3px solid var(--gold);
  transition: all var(--transition);
}

.partner-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.13);
  transform: translateY(-4px);
}

.partner-card h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.partner-card p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* --- Case Study Cards Listing --- */

.cs-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.cs-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
a.cs-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: var(--gold);
}
.cs-card--soon {
  opacity: 0.55;
  cursor: default;
}
.cs-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(27,42,74,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
a.cs-card:hover .cs-card-icon {
  background: var(--gold);
  color: var(--white);
}
.cs-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.cs-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.cs-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-text);
  flex: 1;
  margin-bottom: 1rem;
}
.cs-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.cs-card-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  background: rgba(27,42,74,0.06);
  color: var(--navy);
}
.cs-card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cs-card-cta::after {
  content: '\2192';
  transition: transform 0.2s;
}
a.cs-card:hover .cs-card-cta::after {
  transform: translateX(4px);
}
.cs-card-soon-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-text);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  margin-top: auto;
}

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

/* --- Flow Diagram --- */

.cs-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.cs-flow-step {
  flex: 1;
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.cs-flow-step svg {
  color: var(--navy);
}
.cs-flow-step--highlight {
  background: var(--navy);
  border-top-color: var(--gold);
}
.cs-flow-step--highlight svg {
  color: var(--gold);
}
.cs-flow-step--highlight .cs-flow-label {
  color: var(--white);
}
.cs-flow-step--highlight .cs-flow-value {
  color: var(--gold);
}
.cs-flow-label {
  font-size: 0.8rem;
  color: var(--gray-text);
  line-height: 1.3;
}
.cs-flow-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.cs-flow-arrow {
  flex-shrink: 0;
  padding: 0 0.6rem;
  color: var(--gold);
}

@media (max-width: 768px) {
  .cs-flow {
    flex-direction: column;
    gap: 0;
  }
  .cs-flow-arrow {
    transform: rotate(90deg);
    padding: 0.4rem 0;
  }
  .cs-flow-step {
    width: 100%;
  }
}

/* --- Case Study Detail --- */

.cs-article { }

.cs-header {
  text-align: left;
  margin-bottom: 1rem;
}
.cs-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
}

.cs-context h3,
.cs-scenario h3,
.cs-text-section h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.cs-context p,
.cs-scenario p,
.cs-text-section p {
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Key figures grid */
.cs-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.cs-figure-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-bottom: 3px solid var(--gold);
}
.cs-figure-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.cs-figure-label {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-text);
}

/* Result grid (sans conseiller) */
.cs-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.cs-result-card {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border-left: 4px solid var(--gold);
}
.cs-result-card--negative {
  border-left-color: #a0384c;
}
.cs-result-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.cs-result-card--negative .cs-result-value {
  color: #a0384c;
}
.cs-result-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-text);
}

/* Insight highlight */
.cs-insight {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 2rem 0 1rem;
  line-height: 1.6;
}

/* Steps */
.cs-step {
  display: flex;
  gap: 1.8rem;
  margin: 2.5rem 0;
  align-items: flex-start;
}
.cs-step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  flex-shrink: 0;
}
.cs-step-content {
  flex: 1;
}
.cs-step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.cs-step-content p {
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.cs-step-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.2rem 0;
}
.cs-step-metric {
  background: var(--white);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.cs-step-metric--highlight {
  background: var(--navy);
  margin-top: 1rem;
}
.cs-step-metric--highlight .cs-step-metric-value {
  color: var(--gold);
}
.cs-step-metric--highlight .cs-step-metric-label {
  color: rgba(255,255,255,0.8);
}
.cs-step-metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.cs-step-metric-label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-text);
  line-height: 1.4;
}

/* Comparison interactive section */
.cs-comparison {
  background: var(--navy);
  padding: 4rem 0;
  color: var(--white);
}
.cs-comparison-header {
  text-align: left;
  margin-bottom: 2.5rem;
}
.cs-comparison-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cs-comparison-header p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
}

/* Sliders */
.cs-controls {
  display: flex;
  gap: 4rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.cs-slider-group {
  min-width: 240px;
  text-align: center;
}
.cs-slider-group label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.cs-slider-group input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}
.cs-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cs-slider-group input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.cs-slider-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.cs-slider-display {
  margin-top: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
}

/* Table */
.cs-table-wrap {
  overflow-x: auto;
  margin-bottom: 3rem;
  -webkit-overflow-scrolling: touch;
}
.cs-table {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}
.cs-table th {
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cs-table th:first-child {
  text-align: left;
}
.cs-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.cs-table td:first-child {
  text-align: left;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.cs-table-muted {
  color: rgba(255,255,255,0.25) !important;
}
.cs-table-highlight {
  background: rgba(201,168,76,0.12);
}
.cs-table-highlight td {
  font-weight: 600;
  color: var(--gold) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: none;
}
.cs-table-highlight td:first-child {
  color: var(--gold) !important;
}

/* Chart */
.cs-chart-wrap {
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 8px;
  overflow: hidden;
}
.cs-chart-wrap canvas {
  display: block;
  width: 100%;
}

.cs-comparison-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin-top: 1rem;
}

/* Text sections */
.cs-text-section {
  max-width: 780px;
}

/* --- Audit Grid (Retraite) --- */
.cs-audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}
.cs-audit-block h5 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.cs-audit-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cs-audit-block li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.92rem;
  line-height: 1.5;
}
.cs-audit-block li:last-child {
  border-bottom: none;
}
.cs-audit-detail {
  display: inline;
  color: var(--gray-text);
  font-size: 0.84rem;
}

/* --- Levers (Retraite) --- */
.cs-levers {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}
.cs-lever {
  background: var(--white);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-left: 4px solid var(--gold);
}
.cs-lever-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.cs-lever-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.cs-lever-header h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}
.cs-lever p {
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.94rem;
}

/* --- Monte Carlo Probabilities --- */
.cs-mc-probabilities {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}
.cs-mc-prob {
  text-align: center;
}
.cs-mc-prob-label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cs-mc-prob-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}
.cs-mc-prob-value--current {
  color: rgba(150,170,210,0.8);
}
.cs-mc-prob-value--optimized {
  color: var(--gold);
}

/* --- Light Table Variant --- */
.cs-table--light {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cs-table--light thead th {
  background: var(--navy);
  color: var(--white);
}
.cs-table--light tbody td {
  color: var(--black-text);
  border-bottom-color: rgba(0,0,0,0.06);
}
.cs-table--light tbody tr:last-child td {
  border-bottom: none;
}
.cs-table--light .cs-table-pct {
  color: var(--gray-text);
  font-size: 0.8rem;
}
.cs-table--light .cs-table-highlight {
  background: rgba(201,168,76,0.1);
}
.cs-table--light .cs-table-highlight td {
  color: var(--navy) !important;
  font-weight: 600;
}
.cs-table--light .cs-table-muted {
  color: var(--gray-text) !important;
}

/* --- FAQ Box (Expatriation) --- */
.cs-faq-box {
  background: rgba(201,168,76,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0;
}
.cs-faq-q {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem !important;
}
.cs-faq-a {
  line-height: 1.7;
  margin-bottom: 0 !important;
}

/* --- Advantages Grid (Expatriation) --- */
.cs-advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.cs-advantage {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
}
.cs-advantage-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(27,42,74,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 1rem;
}
.cs-advantage h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.cs-advantage p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin: 0;
}

/* --- Triangle Diagram (Expatriation) --- */
.cs-triangle-wrap {
  max-width: 700px;
  margin: 2rem auto;
}
.cs-triangle {
  position: relative;
}
.cs-triangle-node {
  background: var(--white);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.cs-triangle-node svg {
  color: var(--gold);
}
.cs-triangle-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.cs-triangle-detail {
  font-size: 0.8rem;
  color: var(--gray-text);
}
.cs-triangle-node--top {
  max-width: 220px;
  margin: 0 auto 1rem;
  background: var(--navy);
  border-color: var(--gold);
}
.cs-triangle-node--top .cs-triangle-label {
  color: var(--white);
}
.cs-triangle-node--top .cs-triangle-detail {
  color: var(--gold);
  font-weight: 600;
}
.cs-triangle-edges {
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  margin-bottom: 1rem;
}
.cs-triangle-edge {
  font-size: 0.75rem;
  color: var(--gold);
  font-style: italic;
  text-align: center;
  flex: 1;
}
.cs-triangle-bottom {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cs-triangle-bottom .cs-triangle-node {
  flex: 1;
}
.cs-triangle-edge--bottom {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--gold);
  font-style: italic;
  text-align: center;
  min-width: 100px;
}
.cs-triangle-caption {
  font-size: 0.88rem;
  color: var(--gray-text);
  font-style: italic;
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.6;
}

/* --- Timeline Before/After (Expatriation) --- */
.cs-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2rem;
}
.cs-timeline-col {
  flex: 1;
  padding: 2rem;
  border-radius: 10px;
}
.cs-timeline-col--before {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
}
.cs-timeline-col--after {
  background: rgba(192,57,43,0.04);
  border: 1px solid rgba(192,57,43,0.15);
}
.cs-timeline-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.cs-timeline-col--before .cs-timeline-header {
  color: var(--gold);
}
.cs-timeline-col--after .cs-timeline-header {
  color: #c0392b;
}
.cs-timeline-col--before .cs-timeline-header svg {
  color: var(--gold);
}
.cs-timeline-col--after .cs-timeline-header svg {
  color: #c0392b;
}
.cs-timeline-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cs-timeline-col li {
  padding: 0.6rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.cs-timeline-col li:last-child {
  border-bottom: none;
}
.cs-timeline-col--before li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.cs-timeline-col--after li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: #c0392b;
  font-weight: 600;
}
.cs-timeline-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  flex-shrink: 0;
}
.cs-timeline-divider-line {
  width: 2px;
  flex: 1;
  background: rgba(0,0,0,0.1);
}
.cs-timeline-divider-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .cs-figures {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cs-result-grid {
    grid-template-columns: 1fr;
  }
  .cs-step {
    flex-direction: column;
    gap: 1rem;
  }
  .cs-step-number {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .cs-step-metrics-row {
    grid-template-columns: 1fr;
  }
  .cs-controls {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .cs-slider-group {
    width: 100%;
    max-width: 320px;
  }
  .cs-table {
    font-size: 0.84rem;
  }
  .cs-table td,
  .cs-table th {
    padding: 0.7rem 0.6rem;
  }
  .cs-audit-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .cs-lever {
    padding: 1.3rem;
  }
  .cs-mc-probabilities {
    gap: 2rem;
  }
  .cs-mc-prob-value {
    font-size: 2.2rem;
  }
  .cs-advantages-grid {
    grid-template-columns: 1fr;
  }
  .cs-triangle-bottom {
    flex-direction: column;
  }
  .cs-triangle-edge--bottom {
    min-width: auto;
    padding: 0.5rem 0;
  }
  .cs-timeline {
    flex-direction: column;
    gap: 1rem;
  }
  .cs-timeline-divider {
    flex-direction: row;
    padding: 0.8rem 0;
  }
  .cs-timeline-divider-label {
    writing-mode: horizontal-tb;
    padding: 0 1rem;
  }
  .cs-timeline-divider-line {
    width: auto;
    height: 2px;
    flex: 1;
  }
}

/* ============================
   ARTICLES — Cards & Detail
   ============================ */

/* --- Articles Grid (listing page) --- */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* --- Article Card --- */
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  border-color: var(--gold);
}

.article-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.article-card-date {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--gold);
  font-weight: 500;
}
.article-card-reading {
  font-size: 0.78rem;
  color: var(--gray-text);
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.article-card > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 1rem;
  flex: 1;
}

.article-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.article-card-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: rgba(27,42,74,0.06);
  border-radius: 20px;
  color: var(--navy);
  font-weight: 500;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1rem;
  margin-top: auto;
}
.article-card-author {
  font-size: 0.84rem;
  color: var(--navy);
  font-weight: 500;
}
.article-card-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.article-card:hover .article-card-cta {
  gap: 0.6rem;
}

/* --- Blog Article Detail --- */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}

.blog-article-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}
.blog-article-header-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--gray-text);
}
.blog-article-header-meta time {
  color: var(--gold);
  font-weight: 500;
}
.blog-article-header-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--gray-text);
}
.blog-article-header-author strong {
  color: var(--navy);
}
.blog-article-separator {
  color: rgba(0,0,0,0.2);
  font-size: 0.8rem;
}

/* Article body */
.blog-article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  line-height: 1.3;
}
.blog-article-body h2:first-child {
  margin-top: 0;
}
.blog-article-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dark);
  margin-bottom: 1.2rem;
}
.blog-article-body p sup {
  font-size: 0.7em;
}

/* Author signature */
.blog-article-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 2rem;
  margin-top: 3rem;
}
.blog-article-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
}
.blog-article-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.blog-article-author-info strong {
  font-size: 0.95rem;
  color: var(--navy);
}
.blog-article-author-info span {
  font-size: 0.84rem;
  color: var(--gray-text);
}

/* Comparison block (before/after) */
.blog-article-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.blog-article-comparison-col {
  background: rgba(201,168,76,0.06);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(201,168,76,0.15);
}
.blog-article-comparison-col--after {
  background: rgba(192,57,43,0.04);
  border-color: rgba(192,57,43,0.15);
}
.blog-article-comparison-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.blog-article-comparison-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-article-comparison-col li {
  font-size: 0.92rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--dark);
}
.blog-article-comparison-col li:last-child {
  border-bottom: none;
}

/* Summary box */
.blog-article-summary {
  background: linear-gradient(135deg, rgba(27,42,74,0.04) 0%, rgba(201,168,76,0.06) 100%);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem 0 2rem;
}
.blog-article-summary h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
}
.blog-article-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-article-summary li {
  font-size: 0.95rem;
  padding: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--black-text);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.blog-article-summary li:last-child { border-bottom: none; }
.blog-article-summary li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* Article tables */
.blog-article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(27,42,74,0.1);
}
.blog-article-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  text-align: left;
  border: none;
}
.blog-article-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--black-text);
  vertical-align: top;
}
.blog-article-table tbody tr:last-child td { border-bottom: none; }
.blog-article-table tbody tr:nth-child(even) { background: rgba(247,246,243,0.6); }
.blog-article-table tbody td:first-child { font-weight: 500; }
.blog-article-table tbody td strong { color: var(--gold-dark); }

/* FAQ section in articles */
.blog-article-faq {
  margin: 2rem 0;
}
.blog-article-faq h2 {
  margin-bottom: 1rem;
}
.blog-article-faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.blog-article-faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 1rem 1.2rem;
  margin: 0;
  background: rgba(247,246,243,0.5);
  cursor: default;
}
.blog-article-faq-item p {
  padding: 0 1.2rem 1rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .blog-article-table { font-size: 0.82rem; }
  .blog-article-table thead th,
  .blog-article-table tbody td { padding: 0.5rem 0.6rem; }
  .blog-article-summary { padding: 1.2rem; }
}

/* Back link */
.blog-article-back {
  margin-top: 2rem;
  padding-top: 1.5rem;
}
.blog-article-back a {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-article-back a:hover {
  color: var(--navy);
}

/* --- Articles Responsive --- */
@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .blog-article {
    padding: 2rem 1rem 1.5rem;
  }
  .blog-article-header-meta,
  .blog-article-header-author {
    flex-wrap: wrap;
  }
  .blog-article-comparison {
    grid-template-columns: 1fr;
  }
}

/* --- Section Transitions --- */

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays for grid children */
.cards-grid .fade-in:nth-child(2) {
  transition-delay: 0.15s;
}
.cards-grid .fade-in:nth-child(3) {
  transition-delay: 0.3s;
}

.values-grid .fade-in:nth-child(2) {
  transition-delay: 0.12s;
}
.values-grid .fade-in:nth-child(3) {
  transition-delay: 0.24s;
}
.values-grid .fade-in:nth-child(4) {
  transition-delay: 0.36s;
}

/* --- Breadcrumb --- */
.breadcrumb {
  position: relative;
  z-index: 10;
  padding: 1rem 0;
  font-size: 0.82rem;
  color: var(--gray-text);
  background: var(--white);
}

.breadcrumb .container {
  max-width: none;
  margin: 0;
  padding: 0 8vw;
}

.breadcrumb a {
  color: var(--gray-text);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  margin: 0 0.4rem;
  color: var(--border-light);
}

/* --- Structured Products Table --- */
.products-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.products-table th,
.products-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.products-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.products-table tr:hover td {
  background: var(--bg-light);
}

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

.team-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--navy-dark);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-photo img {
  transform: scale(1.05);
}

/* Placeholder when no photo */
.team-card-photo.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #2a3f6b 100%);
}

.team-card-photo.no-photo::after {
  content: attr(data-initials);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.team-card .team-role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.team-card p:last-child {
  font-size: 0.92rem;
  color: var(--gray-text);
  margin-bottom: 0;
}

/* --- Case Studies --- */
.case-study-header {
  margin-bottom: 2rem;
}

.case-study-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.case-study-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.profile-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.profile-value {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
}

.case-study-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
  margin-top: 2rem;
}

.case-study-body h3:first-child {
  margin-top: 0;
}

.case-study-body p {
  font-size: 0.95rem;
}

.case-study-body ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.case-study-body ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.case-study-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.case-study-tags span {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  border: 1px solid var(--border-light);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner-text {
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  max-width: 700px;
}

.cookie-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--white);
}

.cookie-banner-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
}

.cookie-btn-essential {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-essential:hover {
  border-color: var(--white);
  color: var(--white);
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: var(--gold-dark);
}

/* --- Image Reveal Effect --- */
.card-image,
.team-image,
.accroche-image {
  position: relative;
  overflow: hidden;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .main-nav > ul > li > a {
    padding: 0.6rem 0.7rem;
    font-size: 0.82rem;
  }

  .header-cta .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

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

  .content-with-image {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --header-height-scrolled: 60px;
  }

  .section {
    padding: 4rem 0;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero {
    height: 85vh;
    min-height: 500px;
  }

  .page-hero {
    height: 70vh;
    min-height: 450px;
    padding-bottom: 6vh;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }

  .page-hero-short {
    height: 40vh;
    min-height: 280px;
    padding-bottom: 0;
  }

  .page-layout {
    padding: 2rem 1.5rem;
  }

  .page-sidebar {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
    margin-bottom: 2rem;
  }

  .page-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    padding: 0;
  }

  .breadcrumb .container {
    padding: 0 1.5rem;
  }

  .cards-grid-2col {
    grid-template-columns: 1fr;
  }

  .services-divider {
    padding: 3rem 1.5rem 2rem;
  }

  .services-divider::before,
  .services-divider::after {
    width: calc(50% - 60px);
  }

  .figures-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .figure-item:not(:last-child)::after {
    display: none;
  }

  .cards-grid,
  .cards-grid[style] {
    grid-template-columns: 1fr !important;
  }

  .card-image {
    aspect-ratio: 16 / 9;
  }

  .accroche-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .accroche-image img {
    height: 300px;
  }

  .accroche-image::before,
  .accroche-image::after {
    display: none;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .team-showcase {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .team-image img {
    height: 350px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .case-study-profile {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-with-image {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-with-image.reverse {
    direction: ltr;
  }

  .content-image img {
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    margin-bottom: 2.5rem;
  }


  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .cookie-banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

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

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