/* ==========================================================================
   Fiduciaire Neuvecelle Sàrl — neuvecelle.ch
   Implémentation du design « Fiduciaire Neuvecelle v3.dc.html »
   ========================================================================== */

:root {
  /* Brand blues */
  --blue-100: #CCD9E9;
  --blue-300: #7FA8D4;
  --blue-400: #547FB5;
  --blue-500: #4277AE;
  --blue-600: #35618F;

  /* Ink & slate — text on light */
  --ink-900: #14263B;
  --slate-700: #41556E;
  --slate-500: #54708E;
  --slate-400: #8CA2BC;

  /* Dark surfaces + text on dark */
  --navy-950: #0B1A2E;
  --navy-900: #0E1F33;
  --ondark-100: #E9F0F8;
  --ondark-300: #CCD9E9;
  --ondark-400: #9FB4CC;
  --ondark-450: #C7D5E6;
  --ondark-500: #A9C4E4;
  --ondark-550: #BCCEE2;

  /* Light surfaces */
  --mist-50: #F7FAFD;
  --mist-100: #F4F7FB;
  --mist-200: #F5F8FC;
  --mist-300: #E9F0F7;

  /* Lines */
  --line-soft: rgba(66, 119, 174, 0.12);
  --line-subtle: rgba(66, 119, 174, 0.14);
  --line-mid: rgba(66, 119, 174, 0.24);
  --line-strong: rgba(66, 119, 174, 0.4);
  --line-ondark: rgba(204, 217, 233, 0.14);

  --ease-fn: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 74px;
  --container: 1180px;
  --pad-x: clamp(20px, 5vw, 48px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Fira Sans', 'Helvetica Neue', Arial, sans-serif;
  background: #FFFFFF;
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

::selection { background: var(--blue-100); color: var(--ink-900); }

input::placeholder,
textarea::placeholder { color: var(--slate-400); opacity: 1; }

:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.on-dark :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.footer :focus-visible { outline-color: var(--blue-300); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--blue-500); color: #FFFFFF;
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; color: #FFFFFF; }

/* Losange — marqueur universel de la marque */
.diamond {
  width: 8px; height: 8px; background: var(--blue-500);
  transform: rotate(45deg); flex-shrink: 0;
}
.diamond--sm { width: 7px; height: 7px; }
.diamond--dot { width: 5px; height: 5px; background: rgba(66, 119, 174, 0.55); }
.diamond--light { background: var(--blue-300); }

.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow span:last-child {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--blue-600);
}
.eyebrow--ondark span:last-child { color: var(--ondark-500); }
.eyebrow--muted span:last-child { color: var(--ondark-400); }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes fnBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(42px, -28px) scale(1.07); }
  66% { transform: translate(-28px, 26px) scale(0.95); }
}
@keyframes fnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}
@keyframes fnMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes fnSheen {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}
@keyframes fnPulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes fnHint {
  0% { transform: translateY(0); opacity: 0.9; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(66, 119, 174, 0.10);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(20, 38, 59, 0.10);
  border-bottom-color: rgba(66, 119, 174, 0.16);
}

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

.wordmark { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.wordmark__name {
  font-size: 16.5px; font-weight: 800; letter-spacing: 0.015em;
  color: var(--blue-500); line-height: 1;
}
.wordmark__name small { font-weight: 400; font-size: inherit; }
.wordmark__tagline {
  display: block; border-top: 1px solid rgba(66, 119, 174, 0.55); padding-top: 4px;
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--slate-500);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 14.5px; font-weight: 600; color: var(--slate-700);
  white-space: nowrap; transition: color 0.25s;
}
.nav__link:hover { color: var(--blue-500); }

.lang-toggle {
  display: flex; border: 1px solid rgba(66, 119, 174, 0.3);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.lang-toggle__btn {
  border: none; border-radius: 999px; padding: 6px 12px;
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; background: transparent; color: var(--slate-700);
  transition: color 0.25s, background 0.25s;
}
.lang-toggle__btn:hover { color: var(--blue-500); }
.lang-toggle__btn.is-active { background: var(--blue-500); color: #FFFFFF; }
.lang-toggle__btn.is-active:hover { color: #FFFFFF; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; font-weight: 700; white-space: nowrap;
  cursor: pointer; font-family: inherit;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn--primary { background: var(--blue-500); color: #FFFFFF; border: none; }
.btn--primary:hover {
  background: var(--blue-600); color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(66, 119, 174, 0.38);
}
.btn--nav { gap: 8px; padding: 11px 20px; font-size: 14px; }
.btn--nav:hover { box-shadow: 0 12px 26px rgba(66, 119, 174, 0.35); }
.btn--hero { padding: 16px 30px; font-size: 15.5px; }
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.42); color: #EAF1F9;
  background: transparent; padding: 15px 28px; font-size: 15.5px;
}
.btn--ghost:hover {
  border-color: #FFFFFF; background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF; transform: translateY(-2px);
}

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid rgba(66, 119, 174, 0.3);
  border-radius: 12px; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--blue-600); }
.burger span:last-child { width: 14px; }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(247, 250, 253, 0.98);
  display: flex; flex-direction: column;
  padding: 18px var(--pad-x) 32px;
}
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.menu__brand { font-size: 16px; font-weight: 800; color: var(--blue-500); }
.menu__brand small { font-weight: 400; font-size: inherit; }
.menu__close {
  width: 44px; height: 44px; border: 1px solid rgba(66, 119, 174, 0.3);
  border-radius: 12px; background: transparent; color: var(--blue-600);
  font-size: 18px; font-weight: 700; cursor: pointer;
}
.menu__nav { display: flex; flex-direction: column; gap: 22px; margin-top: 44px; }
.menu__link { font-size: 29px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.menu__langs { display: flex; gap: 10px; margin-top: 40px; }
.menu__lang-btn {
  border: 1px solid rgba(66, 119, 174, 0.35); border-radius: 999px; padding: 10px 18px;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; background: transparent; color: var(--slate-700);
  transition: background 0.25s, color 0.25s;
}
.menu__lang-btn.is-active { background: var(--blue-500); color: #FFFFFF; border-color: var(--blue-500); }
.menu__cta {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; background: var(--blue-500); color: #FFFFFF;
  border-radius: 999px; padding: 16px 24px; font-size: 16px; font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--navy-950);
  padding: clamp(130px, 17vh, 180px) 0 clamp(80px, 11vh, 120px);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__img {
  position: absolute; inset: -8% 0; width: 100%; height: 116%;
  object-fit: cover; object-position: 62% 50%;
}
.hero__veil-1 {
  position: absolute; inset: 0;
  background: linear-gradient(102deg, rgba(8, 18, 32, 0.93) 0%, rgba(10, 23, 40, 0.8) 40%, rgba(12, 28, 48, 0.44) 72%, rgba(12, 28, 48, 0.28) 100%);
}
.hero__veil-2 {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.5) 0%, rgba(8, 18, 32, 0) 24%, rgba(8, 18, 32, 0) 60%, rgba(8, 18, 32, 0.78) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(36px, 5vw, 64px);
}
.hero__copy { flex: 1 1 520px; min-width: 0; }
.hero__title {
  margin: 24px 0 0;
  font-size: clamp(2.35rem, 5.6vw, 4.1rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; color: #FFFFFF;
}
.hero__title span { display: block; }
.sheen {
  padding-bottom: 0.09em;
  background: linear-gradient(100deg, #8FB4DD 0%, #E4EEF8 42%, #A9C4E4 66%, #8FB4DD 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fnSheen 7s linear infinite;
}
.hero__sub {
  margin: 26px 0 0; max-width: 540px;
  font-size: clamp(16.5px, 2vw, 18.5px); line-height: 1.65; font-weight: 400;
  color: var(--ondark-450); text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.hero__kws { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.hero__kw {
  font-size: 14px; font-weight: 800; letter-spacing: 0.05em;
  background: linear-gradient(100deg, #A9C4E4 0%, #E8F0F9 50%, #A9C4E4 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fnSheen 6s linear infinite;
}
.hero__kw:nth-of-type(2) { animation-delay: 0.8s; }
.hero__kw:nth-of-type(3) { animation-delay: 1.6s; }

.hero__aside {
  flex: 0 1 320px; min-width: 260px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 16px; padding-top: 10px;
}
.float { animation: fnFloat 7s ease-in-out infinite; margin-right: 30px; }
.float--2 { animation: fnFloat 8.5s ease-in-out 1.1s infinite; margin-right: 0; margin-left: 40px; }
.float--3 { animation: fnFloat 6s ease-in-out 0.5s infinite; margin-right: 46px; align-self: flex-start; }
.float-card {
  transform: rotate(-2.2deg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px;
  padding: 15px 20px; box-shadow: 0 20px 44px rgba(5, 13, 26, 0.42);
  display: flex; align-items: center; gap: 14px;
}
.float--2 .float-card { transform: rotate(1.8deg); }
.float-card__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-300); flex-shrink: 0; }
.float--2 .float-card__dot { background: var(--ondark-500); }
.float-card__txt { display: flex; flex-direction: column; gap: 3px; }
.float-card__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ondark-550);
}
.float-card__value { font-size: 15.5px; font-weight: 700; color: #FFFFFF; }
.float-pill {
  transform: rotate(-1.3deg);
  background: linear-gradient(120deg, #4277AE, #547FB5); color: #FFFFFF;
  border-radius: 999px; padding: 12px 20px;
  box-shadow: 0 18px 40px rgba(66, 119, 174, 0.45);
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600;
}
.pulse-dot { position: relative; width: 9px; height: 9px; flex-shrink: 0; }
.pulse-dot i { position: absolute; inset: 0; border-radius: 50%; background: #FFFFFF; }
.pulse-dot em {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  animation: fnPulse 2.4s ease-out infinite;
}

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 23px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px; display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint i {
  width: 4px; height: 9px; border-radius: 999px; background: #FFFFFF;
  animation: fnHint 1.9s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee { background: var(--navy-900); overflow: hidden; padding: 17px 0; position: relative; }
.marquee__track { display: flex; width: max-content; animation: fnMarquee 38s linear infinite; }
.marquee__seg {
  display: inline-block; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ondark-400);
}

/* --------------------------------------------------------------------------
   Ancrage local
   -------------------------------------------------------------------------- */

.local { background: var(--mist-200); padding: clamp(88px, 13vh, 152px) 0; scroll-margin-top: var(--header-h); }
.local__inner { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 100px); }
.local__intro { flex: 1 1 360px; min-width: 0; }
.local__title {
  margin: 18px 0 0; font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.022em; color: var(--ink-900);
}
.local__title span { display: block; }
.local__title .accent { color: var(--blue-500); }
.local__lead {
  margin: 24px 0 0; max-width: 430px;
  font-size: 16.5px; line-height: 1.68; color: var(--slate-700); text-wrap: pretty;
}
.local__addr { display: flex; align-items: center; gap: 13px; margin-top: 34px; }
.local__addr-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(66, 119, 174, 0.32); flex-shrink: 0;
}
.local__addr-ring i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.local__addr-txt { display: flex; flex-direction: column; gap: 2px; }
.local__addr-line { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.local__route {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--blue-600); transition: color 0.25s;
}
.local__route:hover { color: var(--blue-500); }
.local__points { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; }
.local__point {
  display: flex; flex-direction: column; gap: 8px; padding: 26px 0;
  border-top: 1px solid rgba(66, 119, 174, 0.22);
}
.local__point:last-child { border-bottom: 1px solid rgba(66, 119, 174, 0.22); }
.local__point-head { display: flex; align-items: center; gap: 12px; }
.local__point-head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.local__point p {
  margin: 0 0 0 19px; max-width: 460px;
  font-size: 15px; line-height: 1.62; color: var(--slate-700); text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Approche (section épinglée)
   -------------------------------------------------------------------------- */

.approche { background: var(--navy-900); color: var(--ondark-100); position: relative; }
.pin { height: auto; position: relative; }
.pin__panel {
  position: relative; height: auto; padding: 48px 0;
  display: flex; align-items: center; overflow: hidden;
}
.pin__bg { position: absolute; inset: 0; pointer-events: none; }
.pin__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.pin__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 31, 51, 0.34) 0%, rgba(14, 31, 51, 0.68) 100%);
}
.pin__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(204, 217, 233, 0.14) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 40%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 20% 40%, black, transparent 75%);
}
.pin__blob-1 {
  position: absolute; left: -220px; top: -180px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, rgba(66, 119, 174, 0.3), rgba(66, 119, 174, 0) 68%);
  animation: fnBlob 20s ease-in-out infinite;
}
.pin__blob-2 {
  position: absolute; right: -180px; bottom: -220px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(84, 127, 181, 0.22), rgba(84, 127, 181, 0) 65%);
  animation: fnBlob 24s ease-in-out infinite reverse;
}
.pin__content {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--container); margin: 0 auto;
  padding: 48px var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
.approche__copy { flex: 1 1 400px; min-width: 0; }
.approche__title {
  margin: 18px 0 0; font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.022em; color: #FFFFFF;
}
.approche__title span { display: block; }
.approche__title .sheen {
  background: linear-gradient(100deg, #7FA8D4 0%, #CCD9E9 45%, #7FA8D4 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fnSheen 8s linear infinite;
}
.approche__sub {
  margin: 22px 0 0; max-width: 440px;
  font-size: 16.5px; line-height: 1.65; color: var(--ondark-400); text-wrap: pretty;
}
.stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(28px, 4vw, 52px); margin-top: clamp(32px, 4.5vh, 48px);
}
.stat__num {
  display: flex; align-items: baseline;
  font-size: clamp(2.3rem, 3.6vw, 3rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1; color: #FFFFFF;
}
.stat__suffix { color: var(--blue-300); }
.stat__label { margin: 10px 0 0; max-width: 150px; font-size: 13.5px; line-height: 1.5; color: var(--ondark-400); }
.approche__kicker {
  margin: clamp(28px, 4vh, 40px) 0 0;
  display: flex; align-items: center; gap: 11px;
  font-size: 15.5px; font-weight: 600; font-style: italic; color: var(--ondark-300);
}

.steps { flex: 1 1 420px; min-width: 0; position: relative; padding-left: 4px; }
.steps__rail {
  position: absolute; left: 4px; top: 12px; bottom: 12px; width: 2px;
  background: rgba(204, 217, 233, 0.16); border-radius: 2px;
}
.steps__rail-fill {
  width: 2px; height: 100%;
  background: linear-gradient(180deg, #7FA8D4, #4277AE);
  border-radius: 2px; transition: height 0.3s ease-out;
}
.step {
  position: relative; padding: 24px 0 24px 38px;
  opacity: 1; transition: opacity 0.5s ease, transform 0.5s ease;
}
.step__dot {
  position: absolute; left: 0; top: 30px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--navy-900); border: 2px solid rgba(204, 217, 233, 0.35);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step__num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--blue-300); }
.step h3 {
  margin: 9px 0 8px; font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700; letter-spacing: -0.012em; color: #FFFFFF;
}
.step p { margin: 0; max-width: 430px; font-size: 15px; line-height: 1.65; color: var(--ondark-400); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services { background: #FFFFFF; padding: clamp(84px, 12vh, 128px) 0; scroll-margin-top: var(--header-h); }
.services__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px;
}
.services__head-copy { max-width: 560px; }
.services__title {
  margin: 16px 0 0; font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.022em; color: var(--ink-900);
}
.services__sub { margin: 0; max-width: 380px; font-size: 15.5px; line-height: 1.65; color: var(--slate-700); text-wrap: pretty; }

/* ---- Corps 2a : rail des secteurs (gauche) + détail du secteur actif ------ */
.sv-body { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; }

/* Rail — 4 secteurs, un seul actif (pilule navy) */
.sv-rail { flex: 0 0 292px; display: flex; flex-direction: column; gap: 10px; }
.rail-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 15px 18px; border-radius: 16px;
  border: 1px solid var(--line-subtle); background: #FFFFFF; color: var(--ink-900);
  font-family: inherit; cursor: pointer;
  transition: background 0.3s var(--ease-fn), border-color 0.3s var(--ease-fn),
              color 0.3s var(--ease-fn), transform 0.3s var(--ease-fn);
}
.rail-item:hover { transform: translateX(2px); }
.rail-item__num { width: 26px; flex-shrink: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--blue-500); }
.rail-item__label { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.rail-item__arrow { flex-shrink: 0; font-size: 15px; font-weight: 700; color: rgba(66, 119, 174, 0.3); }
.rail-item[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #FFFFFF; }
.rail-item[aria-selected="true"] .rail-item__num { color: var(--blue-300); }
.rail-item[aria-selected="true"] .rail-item__arrow { color: #FFFFFF; }

/* Détail — ligne de contexte + grille de cartes */
.sv-detail { flex: 1 1 460px; min-width: 0; }
.sv-context { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.sv-context p { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--slate-700); }
.sv-context strong { color: var(--ink-900); font-weight: 800; }

.sv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--mist-100); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 26px 24px; overflow: hidden;
  transition: transform 0.35s var(--ease-fn), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  animation: svcRise 0.5s var(--ease-fn) both;
  animation-delay: var(--svc-d, 0ms);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(66, 119, 174, 0.18);
  border-color: rgba(66, 119, 174, 0.42);
  background: #FFFFFF;
}
.svc-card__num {
  position: absolute; top: 8px; right: 18px;
  font-size: 52px; font-weight: 900; line-height: 1;
  color: rgba(66, 119, 174, 0.11); letter-spacing: -0.04em;
}
.svc-card__title {
  margin: 0 0 10px; padding-right: 54px;
  font-size: 18px; font-weight: 700; line-height: 1.28; letter-spacing: -0.012em; color: var(--ink-900);
}
.svc-card__body { margin: 0; font-size: 14px; line-height: 1.62; color: var(--slate-700); text-wrap: pretty; }

@keyframes svcRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card { animation: none; }
  .rail-item { transition: none; }
}
/* Mobile : rail vertical → rangée de puces défilante horizontalement */
@media (max-width: 640px) {
  .sv-rail {
    flex: 1 1 100%; width: 100%;
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; padding-bottom: 6px; scrollbar-width: none;
  }
  .sv-rail::-webkit-scrollbar { display: none; }
  .rail-item { width: auto; flex: 0 0 auto; padding: 11px 15px; }
  .rail-item__arrow { display: none; }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative; overflow: hidden; background: var(--navy-950);
  padding: clamp(84px, 12vh, 128px) 0 clamp(76px, 10vh, 110px);
  scroll-margin-top: var(--header-h);
}
.contact__bg { position: absolute; inset: 0; pointer-events: none; }
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.contact__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 46, 0.42) 0%, rgba(11, 26, 46, 0.74) 100%);
}
.contact__inner { position: relative; z-index: 1; }
.contact__head { max-width: 620px; margin-bottom: 50px; }
.contact__title {
  margin: 16px 0 14px; font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.022em; color: #FFFFFF;
}
.contact__sub { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ondark-450); text-wrap: pretty; }
.contact__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }

.form-card {
  flex: 1 1 480px; min-width: 0;
  background: #FFFFFF; border: 1px solid var(--line-subtle); border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 24px 60px rgba(20, 38, 59, 0.07);
}

/* Panneau CTA e-mail (remplace le formulaire) */
.contact-cta {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 16px; min-height: 320px;
}
.contact-cta__check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--mist-300); border: 1px solid rgba(66, 119, 174, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--blue-600);
}
.contact-cta__title {
  margin: 6px 0 0; font-size: clamp(22px, 3vw, 28px);
  font-weight: 800; letter-spacing: -0.015em; color: var(--ink-900);
}
.contact-cta__text {
  margin: 0; max-width: 400px;
  font-size: 15.5px; line-height: 1.65; color: var(--slate-700); text-wrap: pretty;
}
.contact-cta .btn { margin-top: 6px; }
.contact-cta__alt { margin: 4px 0 0; font-size: 14.5px; color: var(--slate-500); }
.contact-cta__alt a { font-weight: 700; }

.contact__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.details-card { background: #FFFFFF; border: 1px solid var(--line-subtle); border-radius: 20px; overflow: hidden; }
.details-card__row { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.details-card__row + .details-card__row { border-top: 1px solid var(--line-soft); }
.details-card__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate-500);
}
.details-card__value { font-size: 17px; font-weight: 700; color: var(--ink-900); transition: color 0.25s; }
a.details-card__value:hover { color: var(--blue-500); }
.details-card__sub { font-size: 14.5px; color: var(--slate-700); }

.map-card {
  flex: 1; min-height: 250px; position: relative; overflow: hidden;
  border-radius: 24px; border: 1px solid var(--line-subtle);
  background: var(--mist-100);
}
.map-card__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Carte principale : occupe le grand carré de gauche */
.map-card--main { flex: 1 1 480px; min-height: 380px; }

/* Le panneau « Écrivez-nous » vit désormais dans la colonne de droite :
   il remplit l'espace restant sans imposer la largeur/hauteur du grand bloc. */
.contact__side .form-card { flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--navy-900); color: var(--ondark-400); padding: 62px 0 36px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(36px, 6vw, 80px); justify-content: space-between; }
.footer__brand { max-width: 340px; }
.footer__chip {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: #FFFFFF; border-radius: 14px; padding: 14px 18px;
}
.footer__chip .wordmark__name { font-size: 15.5px; }
.footer__chip .wordmark__tagline { font-size: 8px; }
.footer__blurb { margin: 18px 0 0; font-size: 14.5px; line-height: 1.7; text-wrap: pretty; }
.footer__head {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ondark-300); margin-bottom: 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 11px; }
.footer__list a, .footer__list span { font-size: 14.5px; color: var(--ondark-400); transition: color 0.25s; }
.footer__list a:hover { color: #FFFFFF; }
.footer__bottom {
  border-top: 1px solid var(--line-ondark); margin-top: 46px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.footer__rights { font-size: 13px; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.footer__legal {
  font-size: 13px; color: var(--ondark-400);
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.25s;
}
.footer__legal:hover { color: #FFFFFF; }

/* --------------------------------------------------------------------------
   Page Mentions légales
   -------------------------------------------------------------------------- */

.legal-page { padding: calc(var(--header-h) + 56px) 0 96px; min-height: 70vh; }
.legal-page h1 {
  margin: 0 0 34px; font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.022em; color: var(--ink-900);
}
.legal-page h2 { margin: 38px 0 10px; font-size: 19px; font-weight: 700; color: var(--ink-900); }
.legal-page p { margin: 0 0 10px; max-width: 640px; font-size: 15.5px; line-height: 1.68; color: var(--slate-700); }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; margin-top: 44px; font-weight: 700; }

/* --------------------------------------------------------------------------
   Responsive (breakpoint nav : 860px, comme le design)
   -------------------------------------------------------------------------- */

@media (max-width: 859px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (min-width: 860px) {
  .menu { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
