/* ═══════════════════════════════════════════════════════════════
   MANGO&PARTNERS — main.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─── */
:root {
  --color-orange:      #F15A22;
  --color-blue:        #1E90CC;
  --color-navy:        #04578A;
  --color-white:       #FFFFFF;
  --color-gray-light:  #F5F5F3;
  --color-gray-text:   #6B7280;
  --font-main:         'DM Sans', sans-serif;
  --max-width:         1280px;
  --px-desktop:        48px;
  --px-mobile:         24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-navy);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide native cursor on desktop */
@media (min-width: 768px) {
  body, a, button { cursor: none; }
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
section { overflow: hidden; }

/* ─── Scroll Progress Bar ─── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--color-orange), var(--color-blue));
  z-index: 9999;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ─── Custom Cursor ─── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  display: none;
  will-change: transform;
  border-radius: 50%;
}

#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  transform: translate(-50%, -50%);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-orange);
  background: transparent;
  transform: translate(-50%, -50%);
  transition: background 0.2s, border-color 0.2s;
}

@media (min-width: 768px) {
  #cursor-dot,
  #cursor-ring { display: block; }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--color-orange);
  color: var(--color-white);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  border: none;
  white-space: nowrap;
  transition: background 0.25s ease;
}
.btn-primary::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.9);
  -webkit-mask-image: url('../assets/logos/pictogramme.svg');
  mask-image: url('../assets/logos/pictogramme.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.4s ease;
}
.btn-primary:hover { background: var(--color-blue); }
.btn-primary:hover::after { transform: rotate(120deg); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-orange);
  transition: transform 0.25s ease;
}
.btn-outline:hover { background: var(--color-white); color: var(--color-navy); border-color: var(--color-white); }
.btn-outline:hover::before { transform: scale(1.6); }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--color-white);
  color: var(--color-orange);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-white::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--color-orange);
  -webkit-mask-image: url('../assets/logos/pictogramme.svg');
  mask-image: url('../assets/logos/pictogramme.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.4s ease, background 0.25s ease;
}
.btn-white:hover { background: var(--color-orange); color: var(--color-white); }
.btn-white:hover::after { background: var(--color-white); transform: rotate(120deg); }

/* ─── Pills ─── */
.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pill--orange      { background: rgba(241, 90, 34, 0.1);     color: var(--color-orange); }
.pill--white-ghost { background: rgba(255, 255, 255, 0.1);   color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px-desktop);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo a    { display: flex; align-items: center; }
.nav-logo img  { height: 80px !important; }
.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-navy);
}

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-navy);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-orange); }

.nav-actions { display: flex; align-items: center; gap: 24px; }

#lang-switcher,
.nav-mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray-text);
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-text);
  letter-spacing: 0.05em;
  padding: 0;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--color-navy); font-weight: 700; }
.lang-btn:hover  { color: var(--color-orange); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px var(--px-desktop) 24px;
  gap: 16px;
  background: var(--color-white);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.nav-mobile a {
  font-size: 16px;
  color: var(--color-navy);
  font-weight: 400;
}
.nav-mobile .btn-primary { text-align: center; justify-content: center; color: var(--color-white); }
.nav-mobile-lang {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-mobile-lang .lang-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-text) !important;
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
}
.nav-mobile-lang .lang-btn.active {
  color: var(--color-orange) !important;
  font-weight: 700;
}
.nav-mobile-lang .lang-btn:hover { color: var(--color-orange) !important; }
.nav-mobile-lang span {
  color: rgba(0,0,0,0.15);
  font-size: 12px;
  user-select: none;
}

@media (max-width: 767px) {
  .nav-container { padding: 16px var(--px-mobile); }
  .nav-links,
  .nav-actions > .btn-primary,
  .nav-actions > #lang-switcher { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }
  .nav-mobile { padding: 16px var(--px-mobile) 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   LOADER OVERLAY
   ═══════════════════════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #04578A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.loader-logo-wrap {
  position: relative;
  /* Square container matches the SVG 2000×2000 viewBox so clip-path thirds align exactly */
  width:  clamp(160px, 40vw, 460px);
  height: clamp(160px, 40vw, 460px);
}

/* Each fragment is an absolute overlay clipped to one horizontal third */
.ll {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Single SVG decoded once, shared across all fragments */
  background-image: url('../assets/logos/logo-principal.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Force white on dark background (same as previous img filter) */
  filter: brightness(0) invert(1);
}
.ll-a { clip-path: inset(0 66% 0 0);   } /* left third   */
.ll-b { clip-path: inset(0 33% 0 33%); } /* center third */
.ll-c { clip-path: inset(0 0   0 66%); } /* right third  */

.ll-final {
  position: absolute;
  inset: 0;
  background-image: url('../assets/logos/logo-principal.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
  opacity: 0; /* revealed by GSAP after assembly */
}

/* ─── Loader tagline words ─── */
.loader-tagline {
  display: flex;
  gap: 0.45em;
  margin-top: 36px;
  justify-content: center;
  overflow: hidden; /* masks the slide-up per-word */
  padding-bottom: 4px;
}

.lt-word {
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(24px);
  display: inline-block;
}

.lt-word--accent {
  color: var(--color-orange);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — split layout (ADNia-style)
   ═══════════════════════════════════════════════════════════════ */

/* Shared dark canvas for hero + manifesto */
.dark-backdrop {
  background: #04578A;
  position: relative;
  overflow: hidden;
}

#hero {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding-top: 80px;
}

/* ── Hero background video ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Fallback color while video/image loads */
  background: #04578A;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Starts invisible — fades in once loaded to avoid flash */
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-bg-video.loaded {
  opacity: 1;
}

/* Dark navy+orange tint overlay — protects text contrast */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.82) 0%,
    rgba(10, 37, 64, 0.65) 60%,
    rgba(10, 37, 64, 0.78) 100%
  );
}

/* On mobile: hide video, rely on poster (set as CSS bg) */
@media (max-width: 767px) {
  .hero-bg-video { display: none; }
  .hero-bg {
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
  }
}

/* ── Grain texture (fractalNoise SVG data URI) — animated drift ── */
@keyframes grain-drift {
  0%        { background-position:   0%   0%; }
  20%       { background-position:  30%  12%; }
  40%       { background-position:  55%  38%; }
  60%       { background-position:  20%  70%; }
  80%       { background-position:  75%  45%; }
  100%      { background-position:   0%   0%; }
}
/* ── Particles canvas ── */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Decorative floating circles ── */
#hero-circle-a {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px solid #1E90CC;
  background: transparent;
  opacity: 0.2;
  top: 15%;
  right: 30%;
  pointer-events: none;
  z-index: 0;
}
#hero-circle-b {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F15A22;
  opacity: 0.12;
  top: 60%;
  right: 20%;
  pointer-events: none;
  z-index: 0;
}
#hero-circle-c {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid #F15A22;
  background: transparent;
  opacity: 0.06;
  bottom: 20%;
  right: 40%;
  pointer-events: none;
  z-index: 0;
}

/* ── Main container ── */
.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px-desktop);
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  gap: 0;
}

/* ── Eyebrow ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  overflow: hidden;
}

.hero-eyebrow-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-orange);
  flex-shrink: 0;
  opacity: 0; /* animated */
}

.hero-eyebrow-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-orange);
  opacity: 0; /* animated */
}

/* ── Rule-based headline ── */
.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.hl-row {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 4px 0 14px;
}

.hl-rule {
  display: block;
  width: 5px;
  flex-shrink: 0;
  align-self: stretch;
  background: var(--color-orange);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top center;
}

.hl-word {
  font-size: clamp(68px, 10vw, 120px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 0.95;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateX(-40px);
  display: block;
}

.hl-word--lg {
  font-size: clamp(76px, 11.5vw, 138px);
}

/* ── Bottom: divider + description + CTAs ── */
.hero-bottom {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-bottom-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.28);
}

.hero-bottom-content {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-description {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.7;
  max-width: 380px;
  margin: 0;
  opacity: 0; /* animated */
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0; /* animated */
}

/* Outline button on dark background — suppress shared orange dot */
.hero-ctas .btn-outline::before { content: none; }
.hero-ctas .btn-outline {
  color: rgba(255, 255, 255, 0.80);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-cta-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}
.hero-ctas .btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

/* ── Navbar: transparent state over dark hero ── */
#navbar:not(.scrolled) .nav-links a        { color: rgba(255,255,255,0.78); }
#navbar:not(.scrolled) .nav-links a:hover  { color: var(--color-orange); }
#navbar:not(.scrolled) .lang-btn           { color: rgba(255,255,255,0.55); }
#navbar:not(.scrolled) .lang-btn.active    { color: var(--color-white); }
#navbar:not(.scrolled) .nav-hamburger span { background: rgba(255,255,255,0.85); }
#navbar:not(.scrolled) .nav-logo img       { filter: brightness(0) invert(1); }
#navbar:not(.scrolled) .nav-logo-fallback  { color: var(--color-white); }

/* ── Mobile ── */
@media (max-width: 767px) {
  .hero-container  { padding: 0 var(--px-mobile); }
  .hero-eyebrow    { margin-bottom: 36px; }
  .hl-word         { font-size: clamp(42px, 11vw, 72px); }
  .hl-word--lg     { font-size: clamp(48px, 13vw, 84px); }
  .hl-row          { gap: 16px; }
  .hero-bottom     { margin-top: 36px; gap: 20px; }
  .hero-bottom-content { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-description    { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT — inline storytelling
   ═══════════════════════════════════════════════════════════════ */
#about {
  background: var(--color-white);
  padding: 120px 0;
  overflow: hidden;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px-desktop);
}

.about-eyebrow {
  margin-bottom: 32px;
}

.about-headline {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  color: rgba(4, 87, 138, 0.45);
  margin-bottom: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ─── The big storytelling line ─── */
.about-story {
  font-size: clamp(32px, 5.5vw, 76px);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
  max-width: 1100px;
}

/* ─── Inline pills inside the story text ─── */
.ap {
  display: inline-block;
  border-radius: 100px;
  padding: 0.05em 0.35em 0.1em;
  line-height: inherit;
  font-size: 0.9em;
  vertical-align: baseline;
  position: relative;
  top: -0.05em;
  white-space: nowrap;
}
.ap--orange {
  background: var(--color-orange);
  color: var(--color-white);
}
.ap--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

.about-description {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(4, 87, 138, 0.7);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 740px;
}

.about-closing {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--color-orange);
  line-height: 1.5;
  border-left: 3px solid var(--color-orange);
  padding-left: 20px;
  max-width: 540px;
}

@media (max-width: 767px) {
  #about          { padding: 80px 0; }
  .about-inner    { padding: 0 var(--px-mobile); }
  .about-story    { font-size: clamp(28px, 8.5vw, 48px); margin-bottom: 36px; }
  .about-headline { font-size: clamp(20px, 5vw, 32px); margin-bottom: 28px; }
}

/* ═══════════════════════════════════════════════════════════════
   MANIFESTO
   ═══════════════════════════════════════════════════════════════ */
#manifesto {
  background: transparent;
  padding: 140px 0;
  position: relative;
  overflow: visible;
}

/* Watermark pictogram in background */
.mf-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}
.mf-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mf-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--px-desktop);
  position: relative;
  z-index: 1;
}

.mf-eyebrow {
  margin-bottom: 44px;
}

/* Zone 1 — main statement */
.mf-statement {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
}

.mf-accent {
  font-weight: 700;
  color: var(--color-orange);
}

/* Gradient divider */
.mf-divider {
  width: 52px;
  height: 3px;
  background: linear-gradient(to right, var(--color-orange), var(--color-blue));
  border-radius: 2px;
  margin-bottom: 52px;
}

/* Zone 2 — pull quote */
.mf-pullquote {
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 44px;
}

.mf-underline {
  color: var(--color-orange);
  text-decoration: underline;
  text-decoration-color: var(--color-orange);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* Zone 3 — body */
.mf-body {
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.75;
  max-width: 660px;
}

@media (max-width: 767px) {
  #manifesto        { padding: 80px 0; }
  .mf-inner         { padding: 0 var(--px-mobile); }
  .mf-watermark     { width: 300px; height: 300px; }
  .mf-pullquote     { font-size: clamp(30px, 10vw, 48px); letter-spacing: -0.02em; }
  .mf-statement     { margin-bottom: 40px; }
  .mf-divider       { margin-bottom: 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════ */
#stats {
  background: var(--color-white);
  padding: 100px 0;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px-desktop);
  text-align: center;
}

.stats-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.stats-underline {
  width: 60px;
  height: 3px;
  background: var(--color-orange);
  margin: 0 auto 64px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr;
  align-items: center;
}

.stat-block { padding: 24px 16px; }

.stat-number {
  display: block;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-gray-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: #E5E7EB;
}

@media (max-width: 767px) {
  #stats                { padding: 60px 0; }
  .stats-container      { padding: 0 var(--px-mobile); }
  .stats-grid           { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-divider         { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES — Scroll Stack
   ═══════════════════════════════════════════════════════════════ */
#services {
  background: var(--color-navy);
  overflow: visible; /* CRITICAL: position:sticky needs visible overflow */
  padding-bottom: 0;
}

.services-header {
  text-align: center;
  padding: 140px var(--px-desktop) 96px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-header .pill--orange {
  background: rgba(241, 90, 34, 0.15);
}

.services-header h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 24px;
}

.services-underline {
  width: 80px;
  height: 3px;
  background: var(--color-orange);
  margin: 0 auto 28px;
}

.services-desc {
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ─── Stack wrapper ─── */
.services-stack {
  /* No max-width — cards break out to full viewport width */
  margin: 0;
  padding: 0;
}

/* ─── Base card — true full-screen ─── */
.service-card {
  position: sticky;
  background: var(--color-navy);
  border-radius: 20px 20px 0 0;
  padding: clamp(40px, 6vh, 80px) 8vw;
  display: flex;
  align-items: flex-start;
  gap: 8vw;
  width: 100%;
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  overflow: hidden;
}
.services-stack .service-card:last-child { border-radius: 0; }

/* ─── Sticky offsets: navbar 72px + 24px tab per card ─── */
.sc-01 { top: 72px;  z-index: 1;  height: calc(100vh - 72px);  }
.sc-02 { top: 96px;  z-index: 2;  height: calc(100vh - 96px);  }
.sc-03 { top: 120px; z-index: 3;  height: calc(100vh - 120px); }
.sc-04 { top: 144px; z-index: 4;  height: calc(100vh - 144px); }
.sc-05 { top: 168px; z-index: 5;  height: calc(100vh - 168px); }
.sc-06 { top: 192px; z-index: 6;  height: calc(100vh - 192px); }
.sc-07 { top: 216px; z-index: 7;  height: calc(100vh - 216px); }
.sc-08 { top: 240px; z-index: 8;  height: calc(100vh - 240px); }
.sc-09 { top: 264px; z-index: 9;  height: calc(100vh - 264px); }
.sc-10 { top: 288px; z-index: 10; height: 100vh; border-radius: 0; }

/* ─── Content column ─── */
.sc-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 28px);
}

.sc-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-orange);
}

/* Blue accent on even cards */
.sc-02 .sc-num, .sc-04 .sc-num, .sc-06 .sc-num, .sc-08 .sc-num, .sc-10 .sc-num {
  color: var(--color-blue);
}

.sc-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.sc-desc {
  font-size: clamp(16px, 1.6vw, 21px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

.sc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--color-orange);
  color: var(--color-white);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  border: none;
  white-space: nowrap;
  transition: background 0.25s ease;
  width: fit-content;
}
.sc-cta::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.9);
  -webkit-mask-image: url('../assets/logos/pictogramme.svg');
  mask-image: url('../assets/logos/pictogramme.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.4s ease;
}
.sc-cta:hover { background: var(--color-blue); }
.sc-cta:hover::after { transform: rotate(120deg); }

/* Blue CTA on even cards */
.sc-02 .sc-cta, .sc-04 .sc-cta, .sc-06 .sc-cta, .sc-08 .sc-cta, .sc-10 .sc-cta {
  background: var(--color-blue);
}
.sc-02 .sc-cta:hover, .sc-04 .sc-cta:hover, .sc-06 .sc-cta:hover,
.sc-08 .sc-cta:hover, .sc-10 .sc-cta:hover { background: var(--color-white); color: var(--color-navy); }
.sc-02 .sc-cta:hover::after, .sc-04 .sc-cta:hover::after, .sc-06 .sc-cta:hover::after,
.sc-08 .sc-cta:hover::after, .sc-10 .sc-cta:hover::after { background: var(--color-blue); transform: rotate(120deg); }

/* ─── Visual column ─── */
.sc-visual {
  flex: 0 0 auto;
  width: clamp(160px, 22vw, 320px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  align-self: auto;
}

.sc-visual img {
  width: 100%;
  height: auto;
  /* Orange filter for odd cards */
  filter: brightness(0) saturate(100%) invert(46%) sepia(79%)
          saturate(668%) hue-rotate(343deg) brightness(105%) contrast(97%);
  opacity: 0.25;
}

/* Blue pictogram on even cards */
.sc-02 .sc-visual img,
.sc-04 .sc-visual img,
.sc-06 .sc-visual img,
.sc-08 .sc-visual img,
.sc-10 .sc-visual img {
  filter: brightness(0) saturate(100%) invert(44%) sepia(75%)
          saturate(498%) hue-rotate(169deg) brightness(94%) contrast(92%);
}

/* ─── Responsive ─── */
@media (max-width: 1023px) {
  .service-card { padding: 64px 6vw; gap: 5vw; }
  .sc-visual    { width: clamp(120px, 18vw, 220px); }
}
@media (max-width: 767px) {
  #services            { padding-bottom: 0; }
  .services-header     { padding: 80px var(--px-mobile) 56px; }
  .services-desc       { font-size: 14px; }
  .service-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 24px;
    gap: 24px;
    border-radius: 16px 16px 0 0;
    /* sticky stays active — same stacked effect as desktop */
  }
  .sc-title { font-size: clamp(28px, 7vw, 42px); }
  .sc-desc  { font-size: clamp(14px, 4vw, 18px); max-width: 100%; }
  .sc-visual { position: absolute; top: 40px; right: 24px; width: 64px; }

  /* Per-card sticky offsets + heights for mobile — 16px tab increment, 60px navbar */
  .sc-01 { top: 60px;  height: calc(90vh - 60px);  }
  .sc-02 { top: 76px;  height: calc(90vh - 76px);  }
  .sc-03 { top: 92px;  height: calc(90vh - 92px);  }
  .sc-04 { top: 108px; height: calc(90vh - 108px); }
  .sc-05 { top: 124px; height: calc(90vh - 124px); }
  .sc-06 { top: 140px; height: calc(90vh - 140px); }
  .sc-07 { top: 156px; height: calc(90vh - 156px); }
  .sc-08 { top: 172px; height: calc(90vh - 172px); }
  .sc-09 { top: 188px; height: calc(90vh - 188px); }
  .sc-10 { top: 204px; height: 90vh; border-radius: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
#contact {
  background: var(--color-orange);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-bg-pictogram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.contact-bg-pictogram img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  opacity: 0.08;
  filter: invert(1) brightness(2);
}

.contact-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--px-desktop);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact-container h2 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
}

.contact-container > p {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.contact-email {
  display: block;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.8; }

.contact-socials {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s;
}
.social-link:hover { transform: scale(1.2); opacity: 0.85; }

@media (max-width: 767px) {
  #contact            { padding: 80px 0; }
  .contact-container  { padding: 0 var(--px-mobile); }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
#footer {
  background: var(--color-navy);
}

.footer-separator {
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px var(--px-desktop);
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-left > img { height: 80px; }

.footer-logo-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-white);
}

.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.footer-email {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  text-align: right;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-email:hover { color: var(--color-white); }

.footer-copyright {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  text-align: right;
}

@media (max-width: 767px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    padding: 32px var(--px-mobile);
    gap: 20px;
  }
  .footer-left {
    align-items: center;
    text-align: center;
  }
  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .footer-email,
  .footer-copyright { text-align: center; }
}
