/* =============================
   Variables & Base
   ============================= */
:root {
  /* Design tokens – thème clair */
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --border: rgba(15, 23, 42, 0.1);
  --brand-blue: #1b76ff;
  --brand-blue-2: #0f3fa8;
  --brand-yellow: #ffc928;

  /* Compat avec l’ancienne palette interne */
  --color-bg: var(--bg);
  --color-bg-alt: var(--surface);
  --color-bg-dark: #07162b;
  --color-text: var(--text);
  --color-text-soft: var(--muted);
  --color-border-subtle: var(--border);

  --color-blue-100: #e3f2ff;
  --color-blue-300: var(--brand-blue);
  --color-blue-500: var(--brand-blue);
  --color-blue-700: var(--brand-blue-2);
  --color-yellow: var(--brand-yellow);

  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Hauteur de l’en-tête utilisée pour le centrage vertical du hero */
  --header-height: 88px;
  --nav-height: 76px; /* conservé pour compatibilité éventuelle */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(148, 197, 255, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(148, 214, 255, 0.12), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =============================
   Layout Helpers
   ============================= */
.section {
  position: relative;
  padding: 5.5rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.grid-2 {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .section {
    padding: 6.5rem 2.25rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.9rem, 2.3vw + 1.3rem, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  position: relative;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-2), var(--brand-yellow));
  opacity: 0.9;
}

.section-header p {
  margin: 0;
  color: var(--color-text-soft);
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-blue-300);
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.gradient-text {
  background: linear-gradient(120deg, var(--color-blue-300), var(--color-blue-500), var(--color-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============================
   Skip link
   ============================= */
.skip-link {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: #ffffff;
  color: var(--color-text);
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0.25rem);
}

/* =============================
   Pré-chargement léger
   ============================= */
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.25rem;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-loader-inner {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 8, 26, 0.88);
  border: 1px solid rgba(149, 183, 246, 0.9);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.page-loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-blue-300), var(--color-yellow));
  opacity: 0.4;
  animation: loaderPulse 1.4s infinite ease-in-out;
}

.page-loader-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.page-loader-dot:nth-child(3) {
  animation-delay: 0.36s;
}

body.is-loaded .page-loader {
  opacity: 0;
  transform: translateY(-10px);
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* =============================
   Header / Navigation
   ============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: backdrop-filter 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-header.is-scrolled {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(148, 163, 184, 0.35);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 180px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.85rem 1rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  position: absolute;
  right: 1.5rem;
  top: calc(var(--nav-height) - 0.2rem);
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.3rem 0.1rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-blue-300), var(--color-yellow));
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  padding-inline: 1.2rem;
  font-size: 0.86rem;
  border-radius: 999px;
}

/* CTA spécifique dans la navigation */
.nav-links .nav-cta {
  background: #ffffff;
  color: var(--brand-blue-2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.nav-links .nav-cta::after {
  /* pas de soulignement animé sous le CTA */
  display: none;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.nav-links.is-open {
  display: flex;
}

.nav-toggle {
  border: none;
  background: rgba(9, 22, 52, 0.9);
  border-radius: 999px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.23rem;
  border: 1px solid rgba(133, 168, 231, 0.7);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

.nav-toggle.is-open .nav-toggle-bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

@media (min-width: 820px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }
}

/* =============================
   Buttons
   ============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background-image: linear-gradient(130deg, var(--color-blue-500), var(--color-blue-700));
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 80, 190, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 25px 55px rgba(0, 60, 170, 0.95);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(0, 60, 170, 0.9);
}

.btn-ghost {
  background: rgba(11, 29, 59, 0.78);
  border-color: rgba(144, 181, 255, 0.6);
  color: #e9f2ff;
}

.btn-ghost:hover {
  background: rgba(20, 40, 80, 0.95);
}

.btn-full {
  width: 100%;
}

.btn:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* =============================
   HERO
   ============================= */
.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--color-text);
  overflow: hidden;
}

.hero-bg-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(100, 181, 255, 0.15), transparent 55%),
    radial-gradient(circle at 75% 0%, rgba(178, 214, 255, 0.16), transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(178, 196, 230, 0.2), transparent 55%),
    linear-gradient(145deg, #f6f8fc, #edf3ff);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 7% 4%;
  border-radius: 40px;
  border: 1px solid rgba(169, 196, 255, 0.25);
  border-image: linear-gradient(120deg, rgba(255, 255, 255, 0.7), rgba(87, 140, 255, 0.5), rgba(53, 96, 205, 0.45)) 1;
  opacity: 0.7;
  pointer-events: none;
}

.hero-orbit-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  opacity: 0.06;
  filter: blur(0.5px);
  transform-origin: center;
  animation: heroFloatSlow 60s ease-in-out infinite alternate;
}

.hero-orbit use {
  stroke-width: 1;
}

.hero-orbit--primary {
  top: -120px;
  left: -60px;
  transform: scale(2.7) rotate(-12deg);
}

.hero-orbit--secondary {
  top: 40%;
  right: -120px;
  transform: scale(2.2) rotate(18deg);
  opacity: 0.045;
  animation-duration: 80s;
}

.hero-orbit--tertiary {
  bottom: -160px;
  left: 30%;
  transform: scale(2.5) rotate(32deg);
  opacity: 0.04;
  animation-duration: 70s;
}

@keyframes heroFloatSlow {
  0% {
    transform: translate3d(0, 0, 0) scale(2.6) rotate(-6deg);
  }
  50% {
    transform: translate3d(8px, -10px, 0) scale(2.65) rotate(-4deg);
  }
  100% {
    transform: translate3d(-4px, 6px, 0) scale(2.6) rotate(-10deg);
  }
}

.hero-grid {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: 3rem;
  min-height: calc(100svh - var(--header-height) - 40px);
}

/* Hero slider */
.hero-slider {
  position: relative;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  display: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  display: block;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  background: rgba(248, 250, 252, 0.9);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease, border-color 0.2s ease;
}

.hero-dot.is-active {
  width: 18px;
  background: linear-gradient(120deg, var(--brand-blue), var(--brand-blue-2));
  border-color: transparent;
}

.hero-copy {
  position: relative;
  max-width: 100%;
  padding: 1.8rem 2rem 2rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.98));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(169, 196, 255, 0.6);
  backdrop-filter: blur(18px);
  margin: 0 auto;
  display: contents;
}

.hero-copy-main {
  max-width: 640px;
  align-self: center;
}

.hero-media {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2.3rem, 4vw + 1.4rem, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-lead {
  margin: 0 0 1.6rem;
  color: rgba(41, 55, 85, 0.92);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.1rem;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: rgba(41, 55, 85, 0.88);
}

.hero-trust-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(17, 69, 160, 0.96);
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.trust-badge {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(100, 181, 255, 0.18), rgba(220, 235, 255, 0.9));
  border: 1px solid rgba(115, 155, 220, 0.7);
  font-size: 0.74rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
}

.metric dt {
  font-weight: 600;
  font-size: 1.05rem;
}

.metric dd {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: rgba(220, 231, 255, 0.8);
}

.hero-panel {
  display: none;
}

/* Photo panel for slider */
.hero-photo {
  width: 100%;
  max-width: 100%;
  /* Portrait ratio: same width but noticeably taller than before */
  aspect-ratio: 10 / 11;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-photo--1 {
  background-image: url("/images/jrj1.jpg");
}

.hero-photo--2 {
  background-image: url("/images/jrj2.jpg");
}

.hero-card {
  width: 100%;
  max-width: 360px;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(100, 181, 255, 0.4), rgba(9, 18, 56, 0.98));
  border: 1px solid rgba(165, 207, 255, 0.8);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.45rem 1.55rem;
}

.hero-card h2 {
  font-family: "Sora", system-ui, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.hero-card p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(235, 243, 255, 0.9);
}

.hero-card-stream {
  margin: 1rem 0 0.9rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(3, 10, 38, 0.96);
  border: 1px solid rgba(116, 159, 228, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stream-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-success {
  background: #0fd17d;
}

.dot-info {
  background: var(--color-blue-300);
}

.dot-warning {
  background: var(--color-yellow);
}

.pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(154, 188, 255, 0.75);
  font-size: 0.7rem;
}

.pill-soft {
  background: rgba(32, 85, 198, 0.35);
  border-color: transparent;
}

.hero-card-footer {
  font-size: 0.78rem;
  color: rgba(215, 228, 255, 0.78);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 3.2rem;
    padding: 2.1rem 2.25rem 3.1rem;
  }
}

/* =============================
   Stack / Overlap Sections
   ============================= */
.stacked-sections {
  background:
    radial-gradient(circle at top, rgba(148, 197, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.overlap-block {
  position: relative;
}

.overlap-block .section-services .section-inner {
  padding-bottom: 7rem; /* espace pour le chevauchement suivant (~112px) */
}

.overlap-section {
  position: relative;
}

.overlap-section .section-inner {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.overlap-section--primary {
  margin-top: -80px;
  z-index: 2;
}

.overlap-section--secondary {
  margin-top: -80px;
  z-index: 3;
}

@media (max-width: 768px) {
  .overlap-block .section-services .section-inner {
    padding-bottom: 5rem; /* ~80px sur mobile */
  }

  .overlap-section--primary {
    margin-top: -40px;
  }

  .overlap-section--secondary {
    margin-top: -24px;
  }
}

.solutions-grid {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 960px) {
  .solutions-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* =============================
   Split section layouts
   ============================= */
.section-layout-split {
  display: grid;
  gap: 2rem;
}

.section-layout-main {
  max-width: 520px;
}

.section-layout-aside {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 900px) {
  .section-layout-split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .section-layout-split--services .section-layout-aside,
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .companies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .section-layout-split--services .section-layout-aside,
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.companies-grid {
  margin-top: 0.5rem;
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.7), rgba(14, 165, 233, 0.5), rgba(234, 179, 8, 0.45));
  opacity: 0.75;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.card li + li {
  margin-top: 0.25rem;
}

.card:hover {
  transform: translateY(-2px);
  background: var(--surface);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: none;
}

.card-solution {
  position: relative;
  overflow: hidden;
}

.expertise-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .expertise-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pill-card {
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pill-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.pill-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.pill-card:hover {
  transform: translateY(-3px);
  background: var(--surface);
  box-shadow: none;
}

/* =============================
   Contact
   ============================= */
.section-contact {
  background: var(--surface-2);
  color: var(--text);
  padding-bottom: 5rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.contact-highlights {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-highlights li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 0.5rem;
  background: linear-gradient(135deg, var(--color-blue-300), var(--color-yellow));
}

.contact-form {
  background: var(--surface);
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.7rem;
  border: 1px solid var(--border);
  box-shadow: none;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-field textarea {
  border-radius: 16px;
  resize: vertical;
  min-height: 120px;
  padding-top: 0.65rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-yellow);
  box-shadow: 0 0 0 1px rgba(255, 201, 40, 0.4);
  background: var(--surface);
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hp-field-wrapper {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  min-height: 1em;
}

.form-status--success {
  color: #72f0b0;
}

.form-status--error {
  color: #ffb3b3;
}

.btn.is-loading {
  position: relative;
  color: rgba(240, 246, 255, 0.8);
  cursor: wait;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-top-color: transparent;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
  right: 1.1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-family: "Manrope", system-ui, sans-serif;
}

.contact-info p {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.contact-info a {
  color: var(--brand-blue-2);
}

.map-wrapper {
  margin-top: 1.1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(141, 177, 239, 0.9);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
}

.captcha-wrapper {
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(4, 13, 34, 0.96);
  border: 1px dashed rgba(126, 163, 228, 0.9);
}

/* =============================
   Footer
   ============================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #020617;
  color: rgba(226, 232, 240, 0.92);
  padding: 2.4rem 1.75rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 0.88rem;
}

.footer-top {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 véritables colonnes équilibrées */
  }
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 0.6rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(226, 232, 240, 0.9);
}

.footer-col p {
  margin: 0 0 0.4rem;
  color: rgba(148, 163, 184, 0.95);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.footer-nav a {
  color: rgba(207, 216, 231, 0.96);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contact a {
  color: rgba(226, 232, 240, 0.96);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-newsletter-form {
  margin-top: 0.4rem;
}

.footer-newsletter-fields {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.footer-newsletter-fields input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.85rem;
}

.footer-newsletter-fields input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.footer-newsletter-fields button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: none;
  background-image: linear-gradient(130deg, var(--brand-blue), var(--brand-blue-2));
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(15, 76, 180, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-newsletter-fields button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 76, 180, 0.6);
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  stroke: rgba(226, 232, 240, 0.9);
  stroke-width: 1.6;
  fill: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-top: 1px solid rgba(30, 64, 175, 0.65);
  padding-top: 0.9rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

.footer-bottom-right a {
  color: rgba(191, 219, 254, 0.96);
  text-decoration: none;
  font-size: 0.78rem;
  white-space: nowrap;
}

.footer-bottom-right a:hover {
  color: #ffffff;
}

.footer-bottom-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.back-to-top {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: rgba(226, 232, 240, 0.96);
  font-size: 0.78rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.back-to-top:hover {
  background: rgba(30, 64, 175, 0.95);
  border-color: rgba(191, 219, 254, 0.9);
}

.footer-separator {
  color: rgba(75, 85, 99, 0.8);
}

@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* =============================
   Reveal Animations
   ============================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* =============================
   Responsive tweaks
   ============================= */
@media (max-width: 599px) {
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1rem;
  }

  .hero::before {
    inset: 9% 6%;
    border-radius: 24px;
  }
}

@media (max-width: 768px) {
  .hero-orbit--secondary,
  .hero-orbit--tertiary {
    display: none;
  }

  .hero-orbit--primary {
    opacity: 0.05;
    transform: scale(2.3) rotate(-8deg);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 48px;
  }

  .hero-grid {
    width: min(960px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .hero-copy {
    display: grid;
    grid-template-columns: 1fr;
    padding: 1.4rem 1.35rem 1.6rem;
    border-radius: 22px;
  }

  .hero-copy-main {
    max-width: 100%;
    text-align: left;
  }

  .hero-media {
    max-width: 100%;
    justify-self: center;
  }
}

/* =============================
   Legacy stacked panels (désactivé) & A propos
   ============================= */
.stacked-sections {
  background:
    radial-gradient(circle at top, rgba(148, 197, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.section-about {
  background: var(--surface);
  color: var(--text);
}

.about-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.about-promise {
  margin-top: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.6rem;
  color: var(--text);
}

.about-promise h3 {
  margin: 0 0 0.75rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.about-promise ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-promise li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.about-promise li::before {
  content: "✓";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-blue);
  font-size: 0.72rem;
  color: var(--brand-blue);
  margin-top: 0.1rem;
}

@media (min-width: 900px) {
  .about-promise ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.about-entities {
  display: grid;
  gap: 1rem;
}

.entity-card {
  background: var(--surface);
}

.section-group {
  background: transparent;
  color: var(--text);
}

.group-carousel {
  margin-top: 1.6rem;
}

/* =============================
   Generic Carousel
   ============================= */
.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(134, 165, 230, 0.7);
  border-radius: 999px;
}

.carousel .card {
  min-width: min(280px, 82vw);
  scroll-snap-align: start;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(151, 190, 255, 0.9);
  background: rgba(4, 12, 35, 0.96);
  color: #e6f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  z-index: 2;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.carousel-arrow--prev {
  left: -0.4rem;
}

.carousel-arrow--next {
  right: -0.4rem;
}

.carousel-arrow:hover {
  background: rgba(10, 26, 70, 0.98);
  transform: translateY(calc(-50% - 1px));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
}

.carousel-arrow:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}

@media (min-width: 960px) {
  .group-carousel .carousel-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .carousel .card {
    min-width: 0;
  }

  .group-carousel .carousel-arrow {
    display: none;
  }
}

/* =============================
   Services
   ============================= */
.section-services {
  background: transparent;
  color: var(--text);
}

.services-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header--center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.service-card {
  position: relative;
  padding-top: 1.5rem;
  min-height: 260px;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: radial-gradient(circle at top, var(--color-blue-300), var(--color-blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 1.4;
  fill: none;
}

.service-card h4 {
  margin: 0.9rem 0 0.3rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(186, 210, 255, 0.98);
}

.service-card ul {
  margin-top: 0.4rem;
}

.service-lead {
  margin-top: 0.2rem;
}

.service-examples {
  margin-top: 0.8rem;
}

/* =============================
   Pourquoi nous choisir
   ============================= */
.section-why {
  margin-top: -4.2rem;
}

.why-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Feature tiles inside "Pourquoi nous choisir" */
.why-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(
      120deg,
      rgba(27, 118, 255, 0.04),
      rgba(15, 63, 168, 0.03)
    ),
    #ffffff;
  border: 1px solid var(--border);
  border-radius: 0; /* pas de coins arrondis comme demandé */
  box-shadow: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(27, 118, 255, 0.12), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.why-illustration {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.why-illustration svg {
  width: 40px;
  height: 40px;
  stroke: var(--brand-blue-2);
  stroke-width: 1.6;
  fill: none;
}

.why-content h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.why-content p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.why-item:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 118, 255, 0.4);
  background: #ffffff;
}

.why-item:hover::before {
  opacity: 1;
}

/* =============================
   Projets
   ============================= */
.section-projects {
  background: transparent;
  color: var(--text);
}

.project-card {
  min-height: 0;
}

.project-note {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Projects grid */
.projects-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-category {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.project-mission {
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.project-examples {
  margin: 0.4rem 0 0.45rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =============================
   Témoignages
   ============================= */
.section-testimonials {
  background: var(--surface);
  color: var(--text);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.testimonials-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  margin: 0;
  padding: 1.5rem 1.5rem 1.6rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 4rem;
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1;
  color: var(--text);
  opacity: 0.08;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.18);
}

.testimonial-card blockquote {
  margin: 0 0 0.7rem;
  color: var(--text);
}

.testimonial-card figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 0.6rem;
}


