/* =========================================================
   SMART INGÉNIERIE — Feuille de style premium
   ========================================================= */

:root {
  /* Couleurs */
  --navy-950: #05080f;
  --navy-900: #070f1f;
  --navy-850: #0a1526;
  --navy-800: #0d1c33;
  --navy-700: #142c4d;
  --navy-600: #1c3d68;
  --navy-500: #2a5088;

  --gold-200: #f6e7c6;
  --gold-300: #eed3a1;
  --gold-400: #e0bd7d;
  --gold-500: #cd9f56;
  --gold-600: #ad7f39;
  --gold-700: #8a642a;

  --silver-200: #eef0f3;
  --silver-300: #d4d9e0;
  --silver-400: #b3bac6;
  --silver-500: #8e97a6;
  --silver-600: #666f80;
  --silver-700: #454d5c;

  --steel-300: #a9c4e6;
  --steel-400: #6f9bd6;
  --steel-500: #3f74b8;
  --steel-600: #2a5590;

  --cream-100: #faf8f4;
  --cream-200: #f2efe7;

  --gray-200: #e4e7ec;
  --gray-300: #d3d8e0;
  --gray-500: #8891a0;
  --gray-600: #647085;
  --gray-700: #48505e;
  --gray-900: #161a22;

  --white: #ffffff;

  /* Typo */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mise en page */
  --max-width: 1240px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(5, 10, 20, 0.06);
  --shadow-md: 0 16px 40px rgba(5, 10, 20, 0.12);
  --shadow-lg: 0 30px 70px rgba(5, 10, 20, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--cream-100);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: page-in 0.7s var(--ease) forwards;
}

@keyframes page-in {
  to { opacity: 1; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--gray-700); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 110px 0; position: relative; }

.section-dark {
  background: var(--navy-900);
  color: var(--gray-300);
}

.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.68); }

.section-cream { background: var(--cream-200); }

.section-header { max-width: 700px; margin: 0 0 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-600);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}

.section-dark .eyebrow { color: var(--gold-400); }

.section-header h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 0.35em;
}

.section-header p { font-size: 1.08rem; }

.text-gold {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 60%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-metal {
  background: linear-gradient(120deg, var(--silver-300), var(--steel-400) 45%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }

.btn-gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  box-shadow: 0 10px 30px rgba(205, 159, 86, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(205, 159, 86, 0.45);
}

.btn-gold:hover svg { transform: translateX(4px); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost-dark {
  background: transparent;
  border-color: var(--silver-500);
  color: var(--navy-800);
}

.btn-ghost-dark:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- En-tête / Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 24px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 14px 0;
  background: rgba(7, 15, 31, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(5, 10, 20, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}

.site-header.is-scrolled .logo-img { height: 36px; }

.footer-about .logo-img { height: 50px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }

.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-cta {
  margin-left: 10px;
  padding: 11px 26px;
  background: linear-gradient(120deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950) !important;
  box-shadow: 0 8px 22px rgba(205, 159, 86, 0.3);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(205, 159, 86, 0.4); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: var(--navy-850);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s var(--ease);
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.25s var(--ease);
}

.dropdown a:hover { background: rgba(255, 255, 255, 0.06); }

.dropdown a strong {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.dropdown a small { color: var(--gray-500); font-size: 0.78rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero avec fond 3D ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 20% 20%, #0e2340 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  overflow: hidden;
  color: var(--white);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.9;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: var(--header-h);
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 30px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(224, 189, 125, 0.2);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 900px;
  margin-bottom: 0.3em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.2rem;
  max-width: 560px;
  margin-bottom: 2.2em;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 76px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 36px;
}

.hero-stat .num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-300);
  display: block;
}

.hero-stat .label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scroll-cue-move 2s var(--ease) infinite;
}

@keyframes scroll-cue-move {
  0% { transform: scaleY(0.2); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0.2); transform-origin: bottom; }
}

/* ---------- Bannière interne (pages secondaires) ---------- */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 92px) 0 90px;
  background: radial-gradient(ellipse at 80% 0%, #10284a 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 20%, black 0%, transparent 70%);
}

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

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

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

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 760px;
  margin-bottom: 0.3em;
}

.page-banner p { color: rgba(255, 255, 255, 0.68); max-width: 660px; font-size: 1.08rem; margin-bottom: 0; }

/* ---------- Cartes / grilles ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

.card-grid-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-grid-center .card {
  flex: 0 1 300px;
}

.card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--silver-400), var(--gold-500), var(--steel-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--gold-400);
  margin-bottom: 22px;
}

.card-icon svg { width: 27px; height: 27px; }

.card h3 { font-size: 1.2rem; margin-bottom: 0.5em; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--gold-600);
}

.card-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

/* ---------- Qui sommes-nous / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 420px;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.split-media:not(.timeline-media) svg { position: relative; z-index: 1; width: 62%; height: auto; }

.split-media:not(.timeline-media) img {
  position: relative;
  z-index: 1;
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.split h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }

/* ---------- Visuels détaillés en plein cadre (mosaïque, dashboard...) ---------- */
.split-media.mosaic-media,
.split-media.dashboard-media {
  padding: 18px;
  aspect-ratio: 3 / 2;
  min-height: 0;
}

.split-media.mosaic-media img,
.split-media.dashboard-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: none;
}

/* ---------- Visuel plein cadre recadré (cover) ---------- */
.split-media.cover-media img,
.split-media.portrait-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

/* Photo au format portrait : cadre plus haut pour ne pas rogner tête/pieds */
.split-media.portrait-media {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

/* Point focal décalé vers la gauche/centre (photo très chargée à droite) */
.split-media.cover-media.focus-left img { object-position: 15% center; }

.engagement-section p { font-size: 0.95rem; }

@media (min-width: 901px) {
  .split.split-wide { grid-template-columns: 0.85fr 1.3fr; gap: 60px; }
}

/* ---------- Frise chronologique ---------- */
.timeline {
  position: relative;
  padding-left: 64px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-500), var(--silver-400));
  border-radius: 2px;
}

.timeline-step {
  position: relative;
  margin-bottom: 88px;
}

.timeline-step:last-child { margin-bottom: 0; }

.timeline-media {
  position: relative;
  background: var(--white);
  padding: 28px;
}

.timeline-media::before {
  display: none;
}

.timeline-media::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -50px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  box-shadow: 0 0 0 6px rgba(205, 159, 86, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 2;
}

.timeline-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.check-list { display: grid; gap: 16px; margin: 26px 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--gray-700);
  font-size: 0.98rem;
}

.check-list .check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-list .check-icon svg { width: 13px; height: 13px; }

/* ---------- Valeurs ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.value-card {
  padding: 40px 34px;
  border-radius: var(--radius-lg);
  background: var(--navy-850);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 189, 125, 0.4);
  background: var(--navy-800);
}

.value-card .num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: block;
}

.value-card h3 { color: var(--white); font-size: 1.25rem; }
.value-card p { color: rgba(255,255,255,0.62); margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Domaines d'intervention ---------- */
.domain-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }

.domain-item {
  flex: 0 1 calc((100% - 44px) / 3);
  min-width: 240px;
  padding: 32px 26px;
  text-align: left;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.domain-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.domain-item .card-icon { background: linear-gradient(135deg, var(--silver-300), var(--steel-500)); color: var(--navy-950); margin-bottom: 18px; width: 50px; height: 50px; }
.domain-item .card-icon svg { width: 24px; height: 24px; }
.domain-item h3 { font-size: 1.02rem; margin-bottom: 0; }

/* ---------- Étapes / process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; counter-reset: step; }

.step { position: relative; padding: 34px 28px 28px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 12px;
}

.step h3 { font-size: 1.08rem; }
.step p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Références / clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.client-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.client-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(5, 8, 15, 0.05) 0%, rgba(5, 8, 15, 0.4) 55%, rgba(5, 8, 15, 0.9) 100%), var(--photo-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s var(--ease);
  z-index: 0;
}

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

.client-card:hover::before { transform: scale(1.08); }

.client-card span {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.client-card.large { min-height: 220px; padding: 24px; }
.client-card.large span { font-size: 1.3rem; }

.client-card[data-project] { cursor: pointer; }
.client-card[data-project]:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

.client-card-content { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.card-hint {
  font-family: var(--font-sans) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--gold-300) !important;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.client-card:hover .card-hint,
.client-card:focus-visible .card-hint { opacity: 1; transform: translateY(0); }

/* ---------- Popup projet (page Références) ---------- */
body.modal-open { overflow: hidden; }

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.project-modal.is-open { opacity: 1; visibility: visible; }

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.project-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.project-modal.is-open .project-modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 8, 15, 0.55);
  color: var(--white);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-modal-close svg { width: 18px; height: 18px; }

.project-modal-close:hover,
.project-modal-close:focus-visible {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-950);
  transform: rotate(90deg);
}

.project-modal-media {
  position: relative;
  height: 300px;
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
}

.project-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-modal-body { padding: 36px 40px 40px; }

.project-modal-client {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 10px;
}

.project-modal-body h3 { font-size: 1.4rem; margin-bottom: 0.5em; }
.project-modal-body p { margin-bottom: 22px; }

.project-modal-meta { display: grid; gap: 10px; margin: 0; }

.project-modal-meta li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 16px;
  background: var(--cream-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.project-modal-meta li[hidden] { display: none; }

.project-modal-meta li strong {
  color: var(--navy-900);
  font-weight: 700;
  font-family: var(--font-sans);
}

.project-modal-meta li span { color: var(--gray-700); text-align: right; }

@media (max-width: 560px) {
  .project-modal-media { height: 200px; }
  .project-modal-body { padding: 28px 22px 32px; }
}

/* ---------- Actualité / média ---------- */
.media-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950));
  border: 1px solid rgba(224, 189, 125, 0.25);
}

.media-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(224, 189, 125, 0.12);
  color: var(--gold-400);
  flex-shrink: 0;
}

.media-badge svg { width: 30px; height: 30px; }

.media-badge, .media-banner-text { transition: opacity 0.3s var(--ease); }
.media-badge:hover, .media-banner-text:hover,
.media-banner-text:focus-visible { opacity: 0.8; }

.media-banner-text { display: block; }
.media-banner-text:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 8px;
  border-radius: var(--radius-sm);
}

.media-banner .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
}

.media-banner h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.3em; transition: color 0.3s var(--ease); }
.media-banner p { color: rgba(255,255,255,0.62); margin-bottom: 0; max-width: 560px; }

.media-banner-text:hover h3,
.media-banner-text:focus-visible h3 { color: var(--gold-300); }

.media-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--gold-400);
}

.media-banner-cta svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }

.media-banner-text:hover .media-banner-cta svg,
.media-banner-text:focus-visible .media-banner-cta svg { transform: translateX(5px); }

/* ---------- Dirigeants ---------- */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

.leader-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.leader-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-600));
  position: relative;
}

.leader-avatar::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(205, 159, 86, 0.35);
}

.leader-card h3 { font-size: 1.35rem; margin-bottom: 0.2em; }

.leader-role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}

.leader-card p { font-size: 0.96rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---------- Bandeau CTA ---------- */
.cta-banner {
  position: relative;
  padding: 96px 0;
  background: radial-gradient(ellipse at 50% 0%, #10284a 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

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

.cta-banner h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 640px; margin: 0 auto 0.3em; }
.cta-banner p { color: rgba(255,255,255,0.65); max-width: 520px; margin: 0 auto 2em; }
.cta-banner .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Formulaire de contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

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

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

.form-group .required { color: var(--gold-600); }

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--cream-100);
  color: var(--gray-900);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(205, 159, 86, 0.14);
}

.form-group textarea { resize: vertical; min-height: 150px; }

.field-error { display: block; color: #c0392b; font-size: 0.8rem; margin-top: 6px; min-height: 1em; }
.form-group.has-error input, .form-group.has-error textarea { border-color: #c0392b; }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #eafaf1;
  border: 1px solid #b7e6c9;
  color: #216a3d;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.94rem;
}

.form-success.is-visible { display: flex; }
.form-success svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }

.form-error {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #fdecea;
  border: 1px solid #f3b8b3;
  color: #a12f27;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.94rem;
}

.form-error.is-visible { display: flex; }
.form-error svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }

.contact-info { display: grid; gap: 18px; }

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
}

.info-card .card-icon { margin-bottom: 0; width: 48px; height: 48px; flex-shrink: 0; }
.info-card .card-icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 0.98rem; margin-bottom: 0.3em; }
.info-card p { font-size: 0.92rem; margin-bottom: 0; }

.map-placeholder {
  margin-top: 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.map-placeholder iframe { width: 100%; height: 230px; border: 0; display: block; filter: grayscale(0.2); }

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-500);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--silver-500), var(--gold-500), var(--steel-500)) 1;
}

.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding: 76px 0 48px; }

.footer-about .logo { margin-bottom: 18px; }
.footer-about p { color: rgba(255,255,255,0.5); font-size: 0.92rem; max-width: 300px; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.7);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.footer-social a:hover { border-color: var(--gold-400); color: var(--gold-400); background: rgba(224,189,125,0.08); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h3 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  font-family: var(--font-sans);
  font-weight: 700;
}

.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* ---------- Utilitaires de révélation (GSAP) ---------- */
.reveal { opacity: 0; }
.reveal-up { opacity: 0; transform: translateY(48px); }
.reveal-left { opacity: 0; transform: translateX(-48px); }
.reveal-right { opacity: 0; transform: translateX(48px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }

/* si JS indisponible, on garde tout visible */
.no-js .reveal, .no-js .reveal-up, .no-js .reveal-left, .no-js .reveal-right, .no-js .reveal-scale {
  opacity: 1; transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .scroll-cue .line { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-item { flex-basis: calc((100% - 22px) / 2); }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-3, .card-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner, .split, .contact-layout, .leader-grid {
    grid-template-columns: 1fr;
  }
  .split-media { order: -1; min-height: 260px; }
  .timeline { padding-left: 40px; }
  .timeline::before { left: 14px; }
  .timeline-media::after { left: -34px; }
  .timeline-step { margin-bottom: 64px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .media-banner { grid-template-columns: 1fr; text-align: center; }
  .media-banner .media-badge { margin: 0 auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 76px; }
  section { padding: 72px 0; }

  .logo-img { height: 34px; }
  .site-header.is-scrolled .logo-img { height: 30px; }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 85vw);
    background: var(--navy-950);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 100px 28px 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
  }

  .main-nav.is-open { transform: translateX(0); }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 14px 12px; }
  .nav-cta { margin-left: 0; margin-top: 10px; text-align: center; justify-content: center; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: rgba(255,255,255,0.03);
    box-shadow: none;
    display: none;
    margin: 4px 0 8px 12px;
  }

  .nav-item.is-open .dropdown { display: block; }
  .nav-item.is-open .nav-link svg { transform: rotate(180deg); }

  .nav-toggle { display: flex; }

  .hero { min-height: 92vh; }
  .hero-actions { margin-bottom: 54px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px; }

  .values-grid, .client-grid, .card-grid.cols-3, .card-grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .domain-item { flex-basis: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 56px 0 36px; }
  .media-banner { padding: 32px 26px; }

  .split-media.dashboard-media {
    aspect-ratio: auto;
    height: auto;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .split-media.dashboard-media img {
    width: 560px;
    max-width: none;
    height: auto;
    flex-shrink: 0;
  }

  .split-media.cover-media.focus-left img { object-position: 8% center; }
}
