/* ============================================
   GESPRIM PROPERTY — Main Stylesheet
   Premium B2B Real Estate Management
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- CSS Variables --- */
:root {
  /* Brand Colors */
  --navy: #0C1E3A;
  --navy-light: #162D52;
  --navy-mid: #1A3A5C;
  --blue: #2B7ACC;
  --blue-light: #3D8FD6;
  --blue-pale: #7FB3E0;
  --blue-bg: #EBF3FA;
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --text: #1E293B;
  --text-light: #475569;
  --text-muted: #64748B;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 100px;
  --container: 1200px;
  --gap: 32px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(12, 30, 58, 0.06);
  --shadow-md: 0 4px 20px rgba(12, 30, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 30, 58, 0.12);
  --shadow-xl: 0 20px 60px rgba(12, 30, 58, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

a:hover {
  color: var(--navy);
}

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

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-pad) 0;
}

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

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--navy p {
  color: var(--blue-pale);
}

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

.section--gray {
  background: var(--off-white);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--gap);
}

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo-img {
  height: 92px;
  width: auto;
  display: block;
}

.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--blue);
  background: var(--blue-bg);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__dropdown-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.3s var(--ease);
}

.nav__dropdown:hover .nav__dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  pointer-events: none;
}

/* Hover desktop uniquement — exclut les écrans tactiles purs (iOS Safari) */
@media (hover: hover) and (pointer: fine) {
  .nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
}

.nav__dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}

.nav__dropdown-menu a:hover {
  background: var(--blue-bg);
  color: var(--blue);
}

.nav__dropdown-menu a small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Lien "Voir tous nos métiers" — masqué sur desktop, visible uniquement en mobile */
.nav__dropdown-all {
  display: none;
}

/* CTA Nav */
.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  margin-left: 8px;
}

.nav__cta:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
}

/* Espace Client Icon */
.nav__client {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  margin-left: 8px;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.nav__client svg {
  width: 20px;
  height: 20px;
}

.nav__client:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 110px;
}

/* --- Video Hero --- */
.hero--video .hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12, 30, 58, 0.45) 0%,
      rgba(12, 30, 58, 0.65) 40%,
      rgba(12, 30, 58, 0.88) 75%,
      var(--navy) 100%
    );
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(12, 30, 58, 0.92) 0%, rgba(22, 45, 82, 0.85) 50%, rgba(43, 122, 204, 0.75) 100%);
  z-index: 1;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Animated CSS Background Fallback (when video unavailable) --- */
.hero__animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(170deg, #0C1E3A 0%, #162D52 40%, #1A3A5C 70%, #0C1E3A 100%);
}

/* CSS Cityscape silhouette */
.hero__skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background:
    /* Far buildings */
    linear-gradient(to bottom, transparent 0%, rgba(43,122,204,0.08) 100%),
    /* Building cluster left */
    linear-gradient(to top, rgba(22,45,82,0.6) 0%, rgba(22,45,82,0.6) 60%, transparent 60%) 5% bottom / 3% 35% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.5) 0%, rgba(22,45,82,0.5) 80%, transparent 80%) 8% bottom / 2.5% 42% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.7) 0%, rgba(22,45,82,0.7) 90%, transparent 90%) 11% bottom / 4% 55% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.4) 0%, rgba(22,45,82,0.4) 70%, transparent 70%) 16% bottom / 3% 30% no-repeat,
    /* Building cluster center-left */
    linear-gradient(to top, rgba(26,58,92,0.6) 0%, rgba(26,58,92,0.6) 85%, transparent 85%) 22% bottom / 3.5% 65% no-repeat,
    linear-gradient(to top, rgba(26,58,92,0.5) 0%, rgba(26,58,92,0.5) 75%, transparent 75%) 26% bottom / 2% 48% no-repeat,
    linear-gradient(to top, rgba(26,58,92,0.7) 0%, rgba(26,58,92,0.7) 95%, transparent 95%) 29% bottom / 4.5% 78% no-repeat,
    linear-gradient(to top, rgba(26,58,92,0.4) 0%, rgba(26,58,92,0.4) 65%, transparent 65%) 34% bottom / 2.5% 38% no-repeat,
    /* Tall tower center */
    linear-gradient(to top, rgba(43,122,204,0.15) 0%, rgba(43,122,204,0.15) 98%, transparent 98%) 40% bottom / 2% 90% no-repeat,
    linear-gradient(to top, rgba(26,58,92,0.6) 0%, rgba(26,58,92,0.6) 88%, transparent 88%) 43% bottom / 5% 70% no-repeat,
    /* Building cluster center-right */
    linear-gradient(to top, rgba(22,45,82,0.5) 0%, rgba(22,45,82,0.5) 82%, transparent 82%) 50% bottom / 3% 58% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.6) 0%, rgba(22,45,82,0.6) 90%, transparent 90%) 54% bottom / 4% 72% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.4) 0%, rgba(22,45,82,0.4) 70%, transparent 70%) 59% bottom / 2.5% 40% no-repeat,
    /* Building cluster right */
    linear-gradient(to top, rgba(26,58,92,0.7) 0%, rgba(26,58,92,0.7) 92%, transparent 92%) 65% bottom / 3.5% 68% no-repeat,
    linear-gradient(to top, rgba(26,58,92,0.5) 0%, rgba(26,58,92,0.5) 78%, transparent 78%) 69% bottom / 4% 52% no-repeat,
    linear-gradient(to top, rgba(43,122,204,0.12) 0%, rgba(43,122,204,0.12) 96%, transparent 96%) 74% bottom / 2% 82% no-repeat,
    linear-gradient(to top, rgba(26,58,92,0.6) 0%, rgba(26,58,92,0.6) 85%, transparent 85%) 77% bottom / 3% 60% no-repeat,
    /* Far right buildings */
    linear-gradient(to top, rgba(22,45,82,0.5) 0%, rgba(22,45,82,0.5) 75%, transparent 75%) 83% bottom / 3.5% 45% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.6) 0%, rgba(22,45,82,0.6) 88%, transparent 88%) 87% bottom / 4% 62% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.4) 0%, rgba(22,45,82,0.4) 68%, transparent 68%) 92% bottom / 3% 35% no-repeat,
    linear-gradient(to top, rgba(22,45,82,0.5) 0%, rgba(22,45,82,0.5) 80%, transparent 80%) 96% bottom / 2.5% 50% no-repeat;
  opacity: 0.7;
}

/* Floating light particles */
.hero__particles {
  position: absolute;
  inset: 0;
}

.hero__particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(61, 143, 214, 0.5);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.hero__particles span:nth-child(1) { left: 10%; top: 30%; animation-delay: 0s; animation-duration: 7s; }
.hero__particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 1.2s; animation-duration: 9s; width: 2px; height: 2px; }
.hero__particles span:nth-child(3) { left: 40%; top: 20%; animation-delay: 2.5s; animation-duration: 8s; }
.hero__particles span:nth-child(4) { left: 55%; top: 50%; animation-delay: 0.8s; animation-duration: 10s; width: 4px; height: 4px; opacity: 0.3; }
.hero__particles span:nth-child(5) { left: 70%; top: 35%; animation-delay: 3s; animation-duration: 7.5s; }
.hero__particles span:nth-child(6) { left: 85%; top: 55%; animation-delay: 1.8s; animation-duration: 9.5s; width: 2px; height: 2px; }
.hero__particles span:nth-child(7) { left: 15%; top: 70%; animation-delay: 4s; animation-duration: 8.5s; }
.hero__particles span:nth-child(8) { left: 60%; top: 75%; animation-delay: 2s; animation-duration: 7s; width: 2px; height: 2px; }
.hero__particles span:nth-child(9) { left: 35%; top: 45%; animation-delay: 3.5s; animation-duration: 11s; }
.hero__particles span:nth-child(10) { left: 80%; top: 25%; animation-delay: 0.5s; animation-duration: 8s; width: 4px; height: 4px; opacity: 0.25; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  50% { transform: translateY(-60px) translateX(20px); opacity: 0.4; }
  90% { opacity: 0.6; }
}

/* When video is playing, hide CSS fallback */
.hero__video-wrap + .hero__animated-bg {
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero__text {
  max-width: 560px;
}

.hero__text--centered {
  max-width: 760px;
  margin: 0 auto;
}

.hero__text--centered .hero__desc {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.hero__text--centered .hero__actions {
  justify-content: center;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 24px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.4s forwards;
}

.hero__title em {
  font-style: italic;
  color: var(--blue-light);
}

.hero__desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--blue-pale);
  margin-bottom: 40px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.6s forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.8s forwards;
}

.hero__stats {
  display: grid;
  gap: 24px;
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideIn 1s var(--ease-out) 1s forwards;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px 32px;
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease);
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(61, 143, 214, 0.3);
  transform: translateY(-2px);
}

.hero-stat__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat__label {
  font-size: 0.95rem;
  color: var(--blue-pale);
  font-weight: 500;
}

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

@keyframes heroSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Page Hero (Inner pages) --- */
.page-hero {
  position: relative;
  padding: 190px 0 80px;
  background: var(--navy);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.page-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 16px;
  display: inline-block;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.page-hero__desc {
  font-size: 1.1rem;
  color: var(--blue-pale);
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(43, 122, 204, 0.08);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}

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

.btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

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

.btn--white:hover {
  background: var(--blue-bg);
  color: var(--blue);
}

.btn--download {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  gap: 10px;
}

.btn--download:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--download-dark {
  background: var(--navy);
  color: var(--white);
  gap: 10px;
}

.btn--download-dark:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

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

.card--accent {
  border-left: 4px solid var(--blue);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
}

.card__link:hover {
  gap: 10px;
}

/* Card for dark sections */
.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(43, 122, 204, 0.3);
}

.card--dark .card__icon {
  background: rgba(43, 122, 204, 0.15);
}

.card--dark .card__title {
  color: var(--white);
}

.card--dark .card__text {
  color: var(--blue-pale);
}

/* ============================================
   REFERENCE CARDS
   ============================================ */
.ref-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease);
}

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

.ref-card__img {
  height: 220px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.ref-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 30, 58, 0.7) 0%, transparent 60%);
  z-index: 1;
}

.ref-card__badge {
  position: relative;
  z-index: 2;
  background: rgba(12, 30, 58, 0.85);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.ref-card__body {
  padding: 28px;
}

.ref-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.ref-card__location {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ref-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ref-card__tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-bg);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============================================
   BENEFITS / NUMBERED LIST
   ============================================ */
.benefit-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--blue-light);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.benefit-item__content h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.benefit-item__content p {
  font-size: 0.92rem;
  color: var(--blue-pale);
  line-height: 1.6;
}

/* ============================================
   EXPERTISE GRID
   ============================================ */
.expertise-card {
  padding: 32px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s var(--ease);
}

.expertise-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.expertise-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.expertise-card__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.expertise-card__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--blue);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group .form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 122, 204, 0.12);
}

.form-control::placeholder {
  color: var(--gray-400);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--blue-pale);
  padding: 70px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  margin-bottom: 16px;
}

.footer__logo .logo-text {
  color: var(--white);
}

.footer__desc {
  font-size: 0.92rem;
  color: var(--blue-pale);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.92rem;
  color: var(--blue-pale);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer__contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--blue-light);
  margin-top: 2px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.footer__bottom a {
  color: var(--blue-pale);
}

.footer__bottom a:hover {
  color: var(--white);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   METIER DETAIL PAGES
   ============================================ */
.metier-missions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mission-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--off-white);
  border-radius: 10px;
  border-left: 3px solid var(--blue);
}

.mission-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
  margin-top: 2px;
}

.mission-item p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* Method / Approach */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.approach-step {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  position: relative;
  counter-increment: step;
}

.approach-step::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1;
}

.approach-step h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.approach-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Target profiles */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-tag {
  padding: 8px 18px;
  border-radius: 24px;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 400;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item__answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}

.value-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.value-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 40px;
  color: var(--white);
}

.contact-info-card h3 {
  color: var(--white);
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item strong {
  display: block;
  color: var(--white);
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.92rem;
  color: var(--blue-pale);
}

.contact-info-item a:hover {
  color: var(--white);
}

.contact-form-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.legal-content__intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-bg);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-light);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.legal-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-light);
  line-height: 1.7;
}

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

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease);
}

.legal-content a:hover {
  color: var(--navy);
}

/* Footer legal links */
.footer__legal-links {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer__legal-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer__legal-links a:hover {
  color: var(--blue-pale);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -8px 40px rgba(12, 30, 58, 0.12);
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--blue-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--blue);
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

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

.cookie-banner__text a:hover {
  color: var(--navy);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: none;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: var(--blue);
  color: var(--white);
}

.cookie-banner__btn--accept:hover {
  background: var(--navy);
}

.cookie-banner__btn--refuse {
  background: var(--gray-100);
  color: var(--text);
}

.cookie-banner__btn--refuse:hover {
  background: var(--gray-200);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__btn--settings:hover {
  color: var(--blue);
}

/* Cookie settings panel (shown on "Personnaliser") */
.cookie-settings {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.cookie-settings.open {
  display: block;
}

.cookie-settings__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}

.cookie-settings__item:last-child {
  border-bottom: none;
}

.cookie-settings__label {
  flex: 1;
}

.cookie-settings__label strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 2px;
}

.cookie-settings__label span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 16px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--blue);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings__save {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* Manage cookies link in footer */
.footer__cookies-link {
  cursor: pointer;
  color: var(--gray-400);
  font-size: 0.85rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease);
  padding: 0;
}

.footer__cookies-link:hover {
  color: var(--blue-pale);
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cookie-banner__icon {
    display: none;
  }

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

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }

  .cookie-banner__text p {
    font-size: 0.85rem;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__content { grid-template-columns: 1fr; }
  .hero__stats { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
    --gap: 20px;
  }

  /* Mobile nav: panel drops below header */
  .header {
    position: fixed;
    z-index: 10000;
  }

  .nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 110px) !important;
    max-height: calc(100dvh - 110px) !important;
    background: var(--white) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    border-top: 1px solid var(--gray-200) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
  }

  .nav.open {
    display: flex !important;
  }

  .nav-toggle {
    display: flex;
    z-index: 10000;
    position: relative;
  }

  /* All nav links visible and styled */
  .nav .nav__link,
  .nav .nav__dropdown-trigger,
  .nav .nav__dropdown-menu a {
    display: block !important;
    font-size: 1rem !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid var(--gray-200) !important;
    white-space: normal !important;
    color: var(--navy) !important;
    background: none !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.05) !important;
    touch-action: manipulation !important;
  }

  .nav .nav__dropdown-menu a {
    font-size: 0.95rem !important;
    padding: 12px 24px 12px 44px !important;
    color: var(--text-light) !important;
  }

  /* CTA button in mobile */
  .nav .nav__cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    text-align: center !important;
    border-radius: 8px !important;
    margin: 16px 24px !important;
    padding: 14px 24px !important;
    border-bottom: none !important;
  }

  /* Dropdown container - minimal, no extra space */
  .nav .nav__dropdown {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  /* Neutraliser TOUT :hover sur mobile — seul JS via .open contrôle le dropdown */
  .nav__dropdown:hover .nav__dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav__dropdown:hover .nav__dropdown-trigger::after {
    transform: none !important;
  }

  /* .open contrôle l'affichage — priorité absolue sur :hover */
  .nav .nav__dropdown.open .nav__dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Hide dropdown arrow on mobile */
  .nav .nav__dropdown-trigger::after {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s;
  }

  .nav .nav__dropdown.open .nav__dropdown-trigger::after {
    transform: rotate(180deg);
  }

  /* Dropdown menu: hidden by default, shown when open */
  .nav .nav__dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    min-width: auto !important;
    padding: 0 !important;
    background: var(--gray-50) !important;
    display: none !important;
    border-radius: 0 !important;
  }

  .nav .nav__dropdown.open .nav__dropdown-menu {
    display: block !important;
  }

  .nav .nav__dropdown-menu a small {
    display: none;
  }

  /* Espace client icon hidden on mobile (it's outside nav) */
  .nav .nav__client {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    padding: 14px 24px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--navy) !important;
    color: var(--white) !important;
    gap: 10px !important;
    font-size: 0.95rem !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 8px !important;
    border-radius: 8px !important;
    margin: 16px 24px 0 24px !important;
    width: auto !important;
  }

  .nav .nav__client::after {
    content: 'Espace client';
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero__content {
    padding: 40px 24px 60px;
  }

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

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

  /* Force tous les grids inline (nos-metiers sections texte+photo) en colonne */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Photos sous les blocs texte en mobile (annuler les order: -1 inline) */
  [style*="grid-template-columns: 1fr 1fr"] > .card[style*="order: -1"],
  [style*="grid-template-columns: 1fr 1fr"] > .card[style*="order:-1"] {
    order: 1 !important;
  }

  .metier-missions { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* --- Mobile portrait: stack all 4-col grids & ref cards --- */
@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ref card images get more height to show full photo */
  .ref-card__img {
    height: 200px;
  }

  /* Header logo slightly smaller on phone */
  .header__logo-img {
    height: 68px;
  }

  .header__inner {
    height: 90px;
  }

  .nav {
    max-height: calc(100vh - 90px) !important;
    max-height: calc(100dvh - 90px) !important;
  }

  .hero {
    padding-top: 100px;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   DECORATIVE GRAPHIC EFFECTS
   ============================================ */

/* Floating luminous orbs */
.deco-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.07;
  will-change: transform;
}

.deco-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  top: 20%;
  left: -150px;
  animation: orbFloat1 18s ease-in-out infinite;
}

.deco-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
  top: 50%;
  right: -120px;
  animation: orbFloat2 22s ease-in-out infinite;
}

.deco-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--navy) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation: orbFloat3 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-40px) translateX(20px); }
  66% { transform: translateY(30px) translateX(-15px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(35px) translateX(-25px); }
  66% { transform: translateY(-25px) translateX(15px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

/* Section geometric accent lines */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background:
    linear-gradient(135deg, transparent 48%, var(--blue) 48%, var(--blue) 49%, transparent 49%),
    linear-gradient(135deg, transparent 52%, var(--blue) 52%, var(--blue) 53%, transparent 53%);
  opacity: 0.04;
  pointer-events: none;
}

.section {
  position: relative;
  overflow: hidden;
}

/* Navy sections get inverted accents */
.section--navy::before {
  background:
    linear-gradient(135deg, transparent 48%, var(--white) 48%, var(--white) 49%, transparent 49%),
    linear-gradient(135deg, transparent 52%, var(--white) 52%, var(--white) 53%, transparent 53%);
  opacity: 0.06;
  left: 0;
  right: auto;
}

/* Subtle diagonal texture for gray sections */
.section--gray::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.018;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--navy) 0px,
    var(--navy) 1px,
    transparent 1px,
    transparent 40px
  );
}

/* Corner accent on cards */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, var(--blue) 50%);
  opacity: 0.06;
  border-radius: 0 16px 0 0;
  transition: opacity 0.4s var(--ease);
}

.card {
  position: relative;
  overflow: hidden;
}

.card:hover::before {
  opacity: 0.12;
}

/* CTA banner animated gradient bg */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg, transparent, var(--blue-light), transparent, var(--blue), transparent);
  opacity: 0.08;
  animation: ctaRotate 12s linear infinite;
}

@keyframes ctaRotate {
  to { transform: rotate(360deg); }
}

/* Grain overlay for premium texture */
.hero--video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.025;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Expertise card subtle glow on hover */
.expertise-card::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60px;
  background: var(--blue);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.expertise-card {
  position: relative;
  overflow: visible;
}

.expertise-card:hover::after {
  opacity: 0.12;
}

/* Footer subtle top glow line */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.3;
}

.footer {
  position: relative;
}

@media (max-width: 768px) {
  .deco-orb { display: none; }
  .section::before { width: 100px; height: 100px; }
}
