/* ─── style.css — LEYFA Measurement ────────────────────────────────────────── */

/* ── Variables ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700&family=Barlow:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  /* Palette */
  --navy:        #283d58;
  --navy-dark:   #1a2a3d;
  --navy-deep:   #111d2b;
  --navy-light:  #3a5470;
  --navy-ghost:  rgba(40, 61, 88, 0.06);

  --gold:        #d29b3e;
  --gold-light:  #e0b46a;
  --gold-pale:   rgba(210, 155, 62, 0.12);

  --sky:         #b0ced9;
  --sky-light:   #d4e7ef;
  --sky-pale:    rgba(176, 206, 217, 0.15);

  --white:       #f8f9fa;
  --off-white:   #eef1f4;
  --mid:         #8a9aaa;
  --text:        #1e2d3e;

  /* Typo */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Espacements */
  --section-py:  4.5rem;
  --container:   1200px;
  --radius:      3px;

  /* Transitions */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* --ease: cubic-bezier(0.1, 0.9, 0.2, 1); */
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: var(--section-py) 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border-radius: var(--radius);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(210,155,62,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--sky);
  color: var(--sky);
  transform: translateY(-2px);
}

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  background: rgba(26, 42, 61, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176, 206, 217, 0.1);
  transition: box-shadow 0.3s var(--ease);
}

#header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 3rem;
  overflow: visible;  
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}


.logo-divider {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(176, 206, 217, 0.3);
  flex-shrink: 0;
  margin: 0 0.25rem;
}

.logo-sncf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.logo-sncf-text {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  white-space: nowrap;
}

.logo-sncf-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav a {
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav a:hover {
  color: var(--white);
  background: rgba(176,206,217,0.1);
}

.nav a.active { color: var(--gold); }

/* CTA nav */
.nav-cta {
  margin-left: 0.75rem;
  padding: 0.45rem 1.2rem !important;
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy-deep) !important;
}

/* Lang switcher */
.lang-switcher {
  display: none;   /* hidden for now */
  /* display: flex; */
  align-items: center;
  gap: 0;
  margin-left: 1.5rem;
  border: 1px solid rgba(176,206,217,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switcher button {
  padding: 0.35rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switcher button.active {
  background: var(--sky);
  color: var(--navy-deep);
}
.lang-switcher button:hover:not(.active) {
  color: var(--white);
  background: rgba(176,206,217,0.1);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  /* margin-right: -20px; */
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  border-radius: 2px;
}

#hero {
  position: relative;
  min-height: min(100vh, 600px);
  display: flex;
  align-items: flex-start;
  background: var(--navy-deep);
  overflow: hidden;
  padding-top: calc(var(--header-height, 72px) + 6vh);
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  padding-bottom: 6vh;
}

/* Overlay sombre + dégradé vers le bas */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background-color: var(--navy-deep, #0d1b2a);
}

.hero-bg img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: calc(100% - var(--header-height, 72px));
  width: auto;
  display: block;
  filter: brightness(0.9);
}

.hero-bg video {
  position: absolute;
  right: 0;
  bottom: 0;
  height: calc(100% - var(--header-height, 72px));
  width: auto;
  display: block;
  filter: brightness(0.6);
}

/* overlay dynamically set by JS, fallback here */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay,
    linear-gradient(to right,
      var(--navy-deep, #0d1b2a) 0%,
      var(--navy-deep, #0d1b2a) 30%,
      transparent 60%
    )
  );
  z-index: 1;
}

/* Mobile: hide image entirely, just show dark bg + grid */
@media (max-width: 768px) {
  .hero-bg img {
    display: none;
  }
  .hero-bg::after {
    background: none;
  }
}

/* La grille reste subtile par-dessus */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(176, 206, 217, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 206, 217, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(
    to right,
    black 0%,
    black 20%,
    transparent 50%
    );
}

/* Accent lumineux */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(210,155,62,0.12) 0%, transparent 65%);
  top: 10%; left: 55%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(176,206,217,0.07) 0%, transparent 65%);
  bottom: 0; left: -10%;
  pointer-events: none;
}

/* Ligne décorative verticale */
.hero-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(176,206,217,0.15) 30%, rgba(210,155,62,0.3) 60%, transparent);
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-tagline::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: normal;
  color: var(--sky);
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(176,206,217,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

#stats {
  background: var(--navy);
  border-top: 1px solid rgba(176,206,217,0.1);
  border-bottom: 1px solid rgba(176,206,217,0.1);
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(176,206,217,0.15);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

#intro {
  background: var(--white);
  padding: var(--section-py) 0;
}

.intro-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6rem;
  align-items: center;
}

.intro-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.intro-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.intro-title-reverse {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.intro-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: #4a5d70;
  margin-bottom: 2rem;
}

.intro-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: gap 0.2s, color 0.2s;
}
.intro-link::after {
  content: '→';
  transition: transform 0.2s;
}
.intro-link:hover {
  color: var(--gold);
  gap: 0.9rem;
}

/* Visuel côté droit */
.intro-visual {
  position: relative;
  height: 420px;
}
.intro-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-light) 100%);
  border-radius: 2px;
  overflow: hidden;
}
/* .intro-visual-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,206,217,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,206,217,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
} */
/* .intro-visual-accent {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 120px;
  height: 120px;
  background: var(--gold);
  opacity: 0.2;
  border-radius: 2px;
} */
.intro-visual-label {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  z-index: 2;

  background: rgba(0,0,0,0.5);
  padding: 0.5rem 0.8rem;
  border-radius: 0px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
/* Placeholder image */
.intro-visual-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.99;
}

#services {
  background: var(--off-white);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
#services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--sky));
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: #6a7d8f;
}

.services-sublabel {
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-right: 0.25rem;
}
.services-sublabel--alt {
  color: var(--navy-light);
  margin-top: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.services-grid--alt {
  grid-template-columns: repeat(4, 1fr);
  /* max-width: 50%; */
}

.service-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(40,61,88,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(40,61,88,0.12);
  border-color: rgba(40,61,88,0.14);
}
.service-card:hover::before { transform: scaleX(1); }

/* Variante bleue pour les prestations annexes */
.service-card--alt::before { background: var(--sky); }
.service-card--alt:hover { box-shadow: 0 16px 48px rgba(176,206,217,0.25); }
.service-card--alt:hover .service-icon {
  background: var(--sky-light);
  color: var(--navy-light);
}

.service-icon {
  width: 40px;
  height: 40px;
  background: var(--navy-ghost);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
  transition: background 0.3s, color 0.3s;
}
.service-card:not(.service-card--alt):hover .service-icon {
  background: var(--gold-pale);
  color: var(--gold);
}
.service-icon i {
  font-size: 1.25rem;
  line-height: 1;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
}

.service-body {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: #5a6e7f;
}

.section--clients {
  background: var(--bg-alt, #f7f8fa);
  border-top: 1px solid var(--border, #e8eaed);
  border-bottom: 1px solid var(--border, #e8eaed);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}

.client-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}

/* .client-item:hover {
  opacity: 1;
} */

.client-item img {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .clients-grid {
    gap: 1.5rem 2rem;
  }
  .client-item img {
    height: 28px;
  }
}


#footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.footer-logo-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.footer-logo-sncf {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-logo-sncf-text {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.footer-logo-sncf-img {
  /* height: 15px; */
  width: 35px;
  opacity: 1;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 240px;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.footer-social-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-nav-col {}

.footer-nav-heading {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--white);
  /* padding-left: 4px; */
}

/* ── Barre basse ──────────────────────────────────────────────────────────── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-copy strong {
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}


/* [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
} */

@media (max-width: 1200px) {
  .header-inner {
    gap: 1.5rem;
  }
  .nav {
    gap: 1.2rem;
  }
  .nav a {
    font-size: 0.78rem;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    gap: 1rem;
  }
  .nav {
    gap: 0.8rem;
  }
  .nav a {
    font-size: 0.72rem;
  }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid--alt { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }
  .intro-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .intro-visual  { height: 280px; }
}

@media (max-width: 1370px) {
  :root { --section-py: 4.5rem; }

  .nav,
  .lang-switcher {
    display: none;
  }

  .burger {
    display: flex;
    margin-right: 90px;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;       /* not fixed — attached to header */
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 42, 61, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(176, 206, 217, 0.1);
    padding: 1rem 2rem;
    gap: 0;
    z-index: 99;
  }

  .nav.open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(176, 206, 217, 0.08);
    font-size: 0.9rem;
  }

  .nav.open a:last-child {
    border-bottom: none;
  }
  .nav-cta { margin-left: 0 !important; margin-top: 1rem; }

  .lang-switcher { display: none; }
  .burger { display: flex; }

  .hero-title { font-size: 2.4rem; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid--alt { grid-template-columns: 1fr; max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item::after { display: none !important; }
  .stat-item { border-bottom: 1px solid rgba(176,206,217,0.1) !important; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}




/*  A PROPOS */
#page-hero {
  position: relative;
  background: var(--navy-deep);
  padding: calc(var(--header-height, 72px) + 5rem) 0 4rem;
  overflow: hidden;
}
#page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay, var(--navy-deep));
}

#page-hero .hero-bg {
  z-index: 0;
}

#page-hero .hero-bg::after {
  z-index: 1;
}

#page-hero::before {
  z-index: 2;
}

#page-hero .page-hero-grid {
  z-index: 3;
}

#page-hero .page-hero-inner {
  z-index: 4;
}

#page-hero .hero-bg img {
  filter: grayscale(1) brightness(0.5) sepia(0.4) hue-rotate(180deg) saturate(3);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(176,206,217,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176,206,217,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 20% 50%, black 30%, transparent 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.intro-inner--reverse {
  direction: rtl;
}
.intro-inner--reverse > * {
  direction: ltr;
}

.section--dark {
  background: var(--navy);
}
.section--dark .section-title { color: var(--white); }
.section--dark .section-subtitle { color: rgba(255,255,255,0.45); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--sky), transparent);
}

.timeline-item {
  padding: 0 2rem 0 0;
  position: relative;
}

.timeline-marker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.timeline-marker::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(210,155,62,0.2);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

.timeline-body {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
}

.team-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-ghost);
  border: 2px solid rgba(40,61,88,0.1);
  flex-shrink: 0;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--mid);
  margin-top: 0.2rem;
}

#cta-band {
  background: var(--navy-deep);
  padding: 4rem 0;
  border-top: 1px solid rgba(176,206,217,0.08);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.cta-band-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-top: 0.4rem;
}

.cta-band-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .team-grid      { grid-template-columns: repeat(3, 1fr); }
  .timeline       { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .timeline::before { display: none; }
}

@media (max-width: 970px) {
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band-actions { justify-content: center; }
}

@media (max-width: 600px) {
  .team-grid  { grid-template-columns: repeat(2, 1fr); }
  .timeline   { grid-template-columns: 1fr; }
}

@media (max-width: 300px) {
  .team-grid  { grid-template-columns: 1fr; }
  .timeline   { grid-template-columns: 1fr; }
}

.map-visual {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: visible; /* was hidden, which was clipping */
}

.map-visual img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  #identity .container {
    display: flex;
    flex-direction: column;
  }

  .map-visual img {
    width: 100%;
  }
}

.corner-ribbon {
  position: fixed;
  top: 0;
  left: auto;
  right: 0;
  z-index: 300;
  width: 160px;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.corner-ribbon-inner {
  position: absolute;
  top: 38px;
  left: auto;
  right: -42px;
  transform: rotate(45deg);
  width: 200px;
  padding: 0.5rem 0;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  line-height: 1.4;
}

