/* Accessibilité et ajustements finaux */
/* Équilibrage final des contrastes et des espacements
   Règles finales de cohérence visuelle et responsive. */

:root {
  --theme-ink: #2A2F36;
  --theme-copy: #43514B;
  --theme-copy-soft: #596760;
  --theme-green: #1E4D3B;
  --theme-green-dark: #15382C;
  --theme-teal: #0D6E6E;
  --theme-sage: #A6C4A2;
  --theme-line: #D4DCDA;
  --theme-soft: #EBECEC;
  --theme-warm: #EBECEC;
  --theme-white: #FFFFFF;
}

/* Lisibilité globale */
body { color: var(--theme-ink); }
p, li, dd, td { color: var(--theme-copy); }
body :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-family-headings);
  font-weight: 600;
  text-wrap: balance;
}
.section-subtitle {
  color: var(--theme-teal);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.3;
}
.section-header {
  max-width: 860px;
  margin-bottom: 50px;
}
.section-header p {
  max-width: 700px;
  margin-top: 18px;
  color: var(--theme-copy);
  font-size: 1.02rem;
  line-height: 1.72;
}

/* Header */
.header-container { min-height: 82px; }
.logo-img-main { width: 224px; }
.main-nav { gap: 22px; }
.nav-link {
  color: #35433D;
  font-size: .9rem;
  font-weight: 650;
}
.nav-link[aria-current="page"] {
  color: var(--theme-green);
}
.nav-link[aria-current="page"]::after {
  width: 100%;
}
.nav-btn { min-height: 46px; padding: 11px 17px; }

/* Hero : contenu immédiatement visible et composition moins vide */
body.home-page #home.hero-section {
  min-height: 760px;
  padding: 148px 24px 94px;
}
body.home-page #home .hero-container {
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, .92fr);
  align-items: center;
  gap: 62px;
}
body.home-page #home .hero-content {
  align-self: center;
  max-width: 690px;
}
body.home-page #home .hero-content > * {
  opacity: 1;
  transform: none;
  animation: hero-enter .68s cubic-bezier(.2,.72,.25,1) both;
}
body.home-page #home .hero-content .hero-badge { animation-delay: .04s; }
body.home-page #home .hero-content .hero-catchline { animation-delay: .12s; }
body.home-page #home .hero-content > p { animation-delay: .2s; }
body.home-page #home .hero-content .hero-actions { animation-delay: .28s; }
body.home-page #home .hero-catchline {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--theme-ink);
  font-size: clamp(3.2rem, 5.25vw, 5.2rem);
  font-weight: 600;
  line-height: .99;
  letter-spacing: -.058em;
}
body.home-page #home .hero-content p {
  max-width: 650px;
  color: var(--theme-copy);
  font-size: 1.06rem;
  line-height: 1.74;
}
body.home-page #home .hero-actions { margin-top: 34px; }
body.home-page #home .visual-wrapper {
  min-height: 535px;
  border-color: #CCD7D1;
  box-shadow: 0 28px 70px rgba(42,47,54,.11);
}
/* Le libellé était rendu à 55 % d'opacité : il est désormais lisible sur tous les écrans. */
body.home-page #home .visual-wrapper::before {
  top: 22px;
  left: 50%;
  right: auto;
  width: auto;
  max-width: calc(100% - 52px);
  padding: 8px 14px;
  border: 1px solid rgba(30,77,59,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--theme-green);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.35;
  text-align: center;
  opacity: 1;
  box-shadow: 0 7px 22px rgba(42,47,54,.05);
  transform: translateX(-50%);
}
body.home-page #home .node-details-card {
  display: flex;
  width: 100%;
  margin: 24px auto 0;
  padding: 20px 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-color: #CED8D2;
  background: rgba(250,248,244,.96);
  text-align: center;
  right: auto;
  bottom: auto;
}
body.home-page #home .node-details-card p { color: var(--theme-copy); }
body.home-page #home .node-details-card h4,
body.home-page #home .node-details-card p {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}
body.home-page #home .node-details-card h4 { color: var(--theme-green); }
body.home-page #home .node-label { fill: #34433D; }

/* Boutons */
.btn-secondary {
  border-color: #708077;
  color: var(--theme-green);
}
.btn-secondary:hover {
  border-color: var(--theme-green);
  background: rgba(30,77,59,.055);
}

/* Métriques : contraste garanti et respiration sous le hero. */
.metrics-section {
  padding: 40px 24px 44px;
  background: var(--theme-white);
}
.metrics-container {
  max-width: 1180px;
  padding: 4px;
  border: 1px solid #C8D5CE;
  border-radius: 27px;
  background: #EFF4F0;
  box-shadow: 0 18px 48px rgba(21,56,44,.14);
}
.metric-card {
  min-height: 142px;
  padding: 18px 14px;
  background: transparent;
}
.metrics-container .metric-card .metric-value,
.metrics-container .metric-card h3 {
  margin-bottom: 8px;
  color: var(--theme-green-dark) !important;
  font-size: 2.2rem;
  -webkit-text-fill-color: var(--theme-green-dark) !important;
}
.metrics-container .metric-card > p:last-child {
  color: var(--theme-copy) !important;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.42;
}
.metrics-container .metric-card + .metric-card {
  border-color: #C8D5CE;
}

/* Rythme vertical des sections */
.services-section { padding: 76px 24px 92px; }
.specialites-section { padding: 82px 24px 60px; }
.sector-spotlight-section { padding: 44px 24px; }
.sante-page-hero { padding: 148px 24px 42px; }
.sante-section { padding: 42px 24px 92px; }
.interactive-grid-section { padding: 54px 24px 92px; }
.sector-spotlight-section + .interactive-grid-section { padding-top: 0; }
.contact-section {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 32px 24px;
}

/* Cartes de services */
.services-grid { gap: 22px; }
.service-card {
  min-height: 530px;
  gap: 20px;
  padding: 34px;
}
.service-card h3 {
  margin-top: 22px;
  color: var(--theme-green-dark);
  font-size: 1.55rem;
  line-height: 1.18;
}
.service-card > p {
  margin: 10px 0 18px;
  color: var(--theme-copy);
  font-size: .97rem;
  line-height: 1.68;
}
.card-list { gap: 11px; }
.card-list li {
  color: #35433D;
  font-size: .9rem;
  line-height: 1.48;
}
.card-featured h3 { color: #FFFFFF; }
.card-featured > p,
.card-featured .card-list li { color: rgba(255,255,255,.93); }
.card-featured::before {
  top: 22px;
  right: 22px;
  padding: 6px 12px;
  font-size: .66rem;
  letter-spacing: .1em;
}
.card-icon, .specialty-icon {
  border-color: #CBD7D0;
  background: #EDF3EE;
  color: var(--theme-green);
}
.card-featured .card-icon {
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.1);
  color: #FFFFFF;
}

/* Expertises : texte auparavant trop petit */
.specialites-grid { gap: 16px; }
.specialty-card {
  min-height: 270px;
  gap: 15px;
  padding: 25px 22px;
}
.specialty-card h3,
.specialty-card h4 {
  margin-top: 18px;
  color: var(--theme-green-dark);
  font-size: 1.04rem;
  line-height: 1.3;
}
.specialty-card p {
  color: var(--theme-copy);
  font-size: .88rem;
  line-height: 1.58;
}

/* Audit */
.diagnostic-card-wrapper {
  padding: 42px;
}
.card-header { margin-bottom: 32px; }
.card-header h2 {
  color: var(--theme-ink);
  font-size: 1.9rem;
  line-height: 1.12;
}
.diagnostic-grid { gap: 38px; }
.diagnostic-steps { gap: 14px; }
.diagnostic-step {
  padding: 16px;
  border-color: #D4DCDA;
  background: var(--theme-warm);
}
.diagnostic-step h3 { color: var(--theme-green-dark); }
.diagnostic-step p {
  color: var(--theme-copy);
  font-size: .91rem;
  line-height: 1.55;
}
.diagnostic-summary-panel { padding: 28px; }
.diagnostic-summary-panel p,
.diagnostic-summary-panel span,
.diagnostic-summary-panel .mini-spec-item span,
.diagnostic-summary-panel .diagnostic-metric span { color: rgba(255,255,255,.9); }
.diagnostic-summary-panel .mini-spec-item strong { color: #FFFFFF; }

/* Contact et formulaire */
.contact-container { gap: 48px; }
.contact-info { gap: 18px; }
.contact-info h2 {
  max-width: 590px;
  color: #FFFFFF;
  font-size: 3.28rem;
  line-height: 1.02;
}
.contact-info > p {
  max-width: 610px;
  color: #E7EFEA;
  font-size: .95rem;
  line-height: 1.58;
}
.contact-details { gap: 16px; margin-top: 4px; }
.detail-item { gap: 18px; }
.detail-icon {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.09);
  color: #D8E8D5;
}
.detail-texts span { color: #D5E1DA; }
.detail-texts strong,
.detail-texts strong a,
.detail-texts address { color: #FFFFFF; }
.contact-form-card {
  padding: 22px;
  border-color: rgba(255,255,255,.22);
}
.contact-form-card .form-grid {
  gap: 11px;
}
.contact-form-card .form-group {
  gap: 6px;
}
.form-group label {
  margin-bottom: 2px;
  color: var(--theme-green-dark);
  font-size: .82rem;
  font-weight: 700;
}
.form-group :is(input, textarea, select) {
  min-height: 42px;
  padding-block: 9px;
  border-color: #AAB7B0;
  color: var(--theme-ink);
  font-size: .9rem;
}
.form-group textarea { min-height: 76px; }
.contact-form-card .form-turnstile {
  min-height: 54px;
}
.contact-form-card .btn-submit-wide {
  min-height: 46px;
  padding: 12px 18px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #63716A; }
.form-privacy {
  color: #52615A;
  font-size: .74rem;
  line-height: 1.4;
}

/* Page santé : reprise du fond fluide de la page principale. */
body.sante-page {
  background: #FFFFFF;
}

body.sante-page main,
body.sante-page .main-footer {
  position: relative;
  z-index: 1;
}

body.sante-page .sante-page-hero {
  --hero-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-bg-scroll: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 89% 18%, rgba(166,196,162,.18), transparent 25%),
    radial-gradient(circle at 7% 57%, rgba(13,110,110,.055), transparent 27%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
}

body.sante-page .sante-page-hero::before,
body.sante-page .sante-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.sante-page .sante-page-hero::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 86% 22%, rgba(30,77,59,.055), transparent 34%),
    radial-gradient(ellipse at 12% 74%, rgba(166,196,162,.08), transparent 36%);
  opacity: 1;
  transform: translate3d(var(--hero-bg-x), calc(var(--hero-bg-y) + var(--hero-bg-scroll)), 0) scale(1.02);
  animation: asalys-soft-field-drift 16s ease-in-out infinite alternate;
}

body.sante-page .sante-page-hero::after {
  inset: 84px 0 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.52), transparent 45%, rgba(255,255,255,.12)),
    radial-gradient(circle at 74% 36%, rgba(166,196,162,.10), transparent 23%);
}

body.sante-page #home .hero-flow-lines {
  position: absolute;
  inset: 84px -4% -7% -4%;
  z-index: 1;
  width: 108%;
  height: calc(100% - 48px);
  overflow: visible;
  pointer-events: none;
  opacity: .88;
  transform: translate3d(var(--hero-bg-x), calc(var(--hero-bg-y) + var(--hero-bg-scroll)), 0);
  will-change: transform;
}

body.sante-page #home .hero-flow-lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.sante-page #home .flow-base path {
  stroke: rgba(30,77,59,.09);
  stroke-width: 1.05;
}

body.sante-page #home .flow-layer-one path:nth-child(even) {
  stroke: rgba(13,110,110,.075);
}

body.sante-page #home .flow-layer-two path {
  stroke: rgba(166,196,162,.16);
}

body.sante-page #home .flow-layer-one {
  transform-origin: 50% 75%;
  animation: asalys-flow-layer-one 14s ease-in-out infinite alternate;
}

body.sante-page #home .flow-layer-two {
  transform-origin: 82% 18%;
  animation: asalys-flow-layer-two 18s ease-in-out infinite alternate;
}

body.sante-page #home .flow-highlights path {
  stroke: rgba(166,196,162,.72);
  stroke-width: 1.45;
  stroke-dasharray: 105 1420;
  stroke-dashoffset: 0;
  opacity: .72;
  animation: asalys-flow-highlight 9.5s linear infinite;
}

body.sante-page #home .flow-highlights path:nth-child(2) {
  stroke: rgba(13,110,110,.42);
  animation-delay: -3.4s;
  animation-duration: 12s;
}

body.sante-page #home .flow-highlights path:nth-child(3) {
  stroke: rgba(166,196,162,.62);
  animation-delay: -6.2s;
  animation-duration: 10.5s;
}

body.sante-page .sante-page-hero-container {
  position: relative;
  z-index: 3;
}

body.sante-page .sante-page-hero-container,
body.sante-page .sante-container {
  width: 100%;
}

body.sante-page .sante-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #FFFFFF;
}

body.sante-page .sante-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 20%, rgba(166,196,162,.08), transparent 34%),
    radial-gradient(ellipse at 12% 76%, rgba(13,110,110,.04), transparent 32%);
}

body.sante-page .sante-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .72;
  background-image: url("../assets/flow-lines.svg");
  background-repeat: no-repeat;
  background-size: 116% 112%;
  background-position: center bottom;
  transform: translate3d(0, var(--sante-flow-offset, 0px), 0);
  will-change: transform;
}

body.sante-page .sante-dedicated-section,
body.sante-page .sante-operations-section {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FBFCFB 100%);
}

body.sante-page .sante-dedicated-section::after {
  background-position: center top;
}

body.sante-page .sante-priorities-section {
  background: #F3F6F5;
}

body.sante-page .sante-priorities-section::before {
  background:
    radial-gradient(ellipse at 78% 30%, rgba(255,255,255,.62), transparent 34%),
    radial-gradient(ellipse at 10% 72%, rgba(13,110,110,.045), transparent 34%);
}

body.sante-page .sante-priorities-section::after {
  opacity: .58;
  background-size: 122% 116%;
  background-position: center center;
}

body.sante-page .sante-operations-section::after {
  opacity: .68;
  background-position: center bottom;
}

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

@media (max-width: 800px) {
  body.sante-page #home .hero-flow-lines {
    inset: 72px 0 -5%;
    width: 100%;
    opacity: .66;
    transform: none;
  }

  body.sante-page #home .flow-layer-two {
    opacity: .6;
  }

  body.sante-page .sante-page-hero .hero-actions {
    width: 100%;
  }

  body.sante-page .sante-page-hero .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sante-page .sante-page-hero::before,
  body.sante-page #home .flow-layer-one,
  body.sante-page #home .flow-layer-two,
  body.sante-page #home .flow-highlights path {
    animation: none !important;
  }
}

@media (min-width: 1051px) {
  html {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
  }

  body {
    overscroll-behavior-y: contain;
  }

  body.home-page main > section,
  body.sante-page main > section,
  body.home-page .main-footer,
  body.sante-page .main-footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.home-page .main-footer,
  body.sante-page .main-footer {
    scroll-snap-align: end;
  }

  body.home-page main > :is(.metrics-section, .sector-spotlight-section) {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  body.home-page main > :is(
    .hero-section,
    .services-section,
    .specialites-section,
    .interactive-grid-section,
    .contact-section
  ),
  body.sante-page main > :is(.sante-page-hero, .sante-section) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100svh;
    padding: clamp(28px, 4svh, 46px) 24px;
  }

  body.home-page #home.hero-section,
  body.sante-page .sante-page-hero {
    min-height: 100svh;
    padding-top: calc(84px + clamp(24px, 3.2svh, 38px));
    padding-bottom: clamp(24px, 3.2svh, 38px);
  }

  body.home-page .section-header,
  body.sante-page .section-header {
    max-width: min(980px, 100%);
    margin-bottom: clamp(20px, 3svh, 34px);
  }

  body.home-page .section-header h2,
  body.sante-page .section-header h2 {
    font-size: clamp(1.95rem, 3vw, 3rem);
    line-height: 1.05;
  }

  body.home-page .section-header p,
  body.sante-page .section-header p {
    margin-top: 12px;
    font-size: .94rem;
    line-height: 1.55;
  }

  body.home-page #home .hero-container,
  body.sante-page .sante-page-hero-container,
  body.home-page .services-grid,
  body.home-page .specialites-grid,
  body.home-page .sector-spotlight-container,
  body.home-page .interactive-container,
  body.home-page .contact-container,
  body.sante-page .sante-container {
    width: 100%;
  }

  body.home-page #home .hero-container {
    gap: clamp(36px, 5vw, 62px);
  }

  body.home-page #home .hero-catchline {
    font-size: clamp(3.1rem, 4.6vw, 4.9rem);
    line-height: .98;
  }

  body.home-page #home .hero-content p {
    font-size: 1rem;
    line-height: 1.58;
  }

  body.home-page #home .hero-actions {
    margin-top: 12px;
  }

  body.home-page #home .visual-wrapper {
    max-width: min(390px, 32vw);
    min-height: 0;
    padding: 24px;
  }

  body.home-page #home .net-svg {
    padding-top: 36px;
  }

  body.home-page #home .node-details-card {
    min-height: 70px;
    margin-top: 16px;
    padding: 12px 14px;
  }

  body.home-page #home .node-details-card h4 {
    margin-bottom: 4px;
    font-size: .92rem;
  }

  body.home-page #home .node-details-card p {
    font-size: .78rem;
    line-height: 1.38;
  }

  .metrics-section {
    min-height: auto;
    padding: 22px 24px;
    border-block: 1px solid rgba(30, 77, 59, 0.06);
  }

  body.home-page main > .metrics-section {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .metrics-container {
    width: 100%;
  }

  .metric-card {
    min-height: 104px;
    padding: 14px 12px;
  }

  .metrics-container .metric-card .metric-value,
  .metrics-container .metric-card h3 {
    margin-bottom: 5px;
    font-size: 1.82rem;
  }

  .metrics-container .metric-card > p:last-child {
    font-size: .74rem;
    line-height: 1.32;
  }

  .service-card {
    min-height: 360px;
    gap: 11px;
    padding: 22px;
  }

  .service-card h3 {
    margin-top: 10px;
    font-size: 1.22rem;
    line-height: 1.16;
  }

  .service-card > p {
    margin: 4px 0 8px;
    font-size: .82rem;
    line-height: 1.42;
  }

  .card-list {
    gap: 6px;
  }

  .card-list li {
    font-size: .76rem;
    line-height: 1.32;
  }

  .card-featured {
    padding-top: 54px;
  }

  .card-featured::before {
    top: 18px;
    right: 18px;
    padding: 5px 10px;
    font-size: .6rem;
  }

  .specialty-card {
    min-height: 230px;
    gap: 12px;
    padding: 22px 20px;
  }

  .specialty-card h3,
  .specialty-card h4 {
    margin-top: 12px;
    font-size: .98rem;
  }

  .specialty-card p {
    font-size: .8rem;
    line-height: 1.45;
  }

  .sector-spotlight-card {
    padding: 24px 30px;
  }

  .sector-spotlight-section {
    min-height: auto;
    padding: 30px 24px;
  }

  body.home-page main > .sector-spotlight-section {
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .sector-spotlight-card {
    gap: 22px;
  }

  .sector-spotlight-copy .section-subtitle {
    margin-bottom: 6px;
  }

  .sector-spotlight-copy h2 {
    margin-bottom: 5px;
    font-size: 1.34rem;
  }

  .sector-spotlight-copy p {
    font-size: .84rem;
    line-height: 1.48;
  }

  .interactive-grid-section {
    overflow: visible;
  }

  .diagnostic-card-wrapper {
    padding: 32px;
  }

  .card-header {
    margin-bottom: 24px;
  }

  .diagnostic-grid {
    gap: 26px;
  }

  .diagnostic-steps {
    gap: 10px;
  }

  .diagnostic-step {
    gap: 12px;
    padding: 12px;
  }

  .diagnostic-step-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .diagnostic-step p,
  .diagnostic-summary-panel p {
    font-size: .84rem;
    line-height: 1.45;
  }

  .diagnostic-summary-panel {
    padding: 24px;
  }

  body.home-page .contact-section {
    padding-block: 18px;
  }

  body.home-page .contact-form-card {
    padding: 18px;
  }

  body.home-page .contact-form-card .form-grid {
    gap: 9px;
  }

  body.home-page .form-group :is(input, textarea, select) {
    min-height: 40px;
    padding-block: 8px;
  }

  body.home-page .form-group textarea {
    min-height: 68px;
  }

  body.sante-page .sante-layout {
    align-items: center;
  }

  body.sante-page .sante-container {
    gap: 22px;
  }

  body.sante-page .sante-copy-card {
    padding: 32px;
  }

  body.sante-page .sante-copy-card :is(h2, h3) {
    font-size: 1.82rem;
    line-height: 1.14;
  }

  body.sante-page .sante-copy-card p {
    font-size: .92rem;
    line-height: 1.58;
  }

  body.sante-page .sante-signal-panel {
    padding: 26px;
  }

  body.sante-page .sante-feature-card {
    min-height: 248px;
    padding: 24px 20px;
  }

  body.sante-page .sante-feature-card h3 {
    margin-top: 8px;
    font-size: 1.02rem;
  }

  body.sante-page .sante-feature-card p,
  body.sante-page .sante-use-cases li {
    font-size: .84rem;
    line-height: 1.46;
  }

  body.sante-page .sante-operations {
    align-items: center;
  }

  body.sante-page .sante-trust-statement,
  body.sante-page .sante-use-cases {
    padding: 28px;
  }

  body.sante-page .sante-use-cases ul {
    gap: 8px 16px;
  }

  body.sante-page .sante-operations-section {
    padding-block: 18px;
  }

  body.sante-page .sante-operations-section .sante-container {
    gap: 18px;
  }
}

/* Footer : suppression du grand vide sur mobile et meilleur contraste */
.main-footer { padding: 70px 24px 30px; }
.footer-container {
  gap: 62px;
  margin-bottom: 56px;
}
.footer-brand { gap: 16px; }
.logo-img-footer { width: 230px; }
.footer-brand p,
.footer-address,
.footer-col a,
.footer-bottom p { color: #D5E1DA; }
.footer-col h4 { color: #FFFFFF; }
.footer-brand p,
.footer-col a { font-size: .91rem; line-height: 1.55; }
.footer-address { margin-top: 10px; }
.footer-links-grid { gap: 34px; }
.footer-col { gap: 13px; }
.footer-bottom { padding-top: 28px; }

/* Pages légales */
body.legal-page { background: #F7F9F8; }
body.legal-page .legal-hero {
  min-height: auto !important;
  padding: 148px 24px 48px !important;
  background: linear-gradient(180deg,#FFFFFF 0%,#F7F9F8 100%) !important;
}
body.legal-page .legal-hero .hero-container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.legal-page .legal-hero-content {
  width: 100%;
  max-width: 900px !important;
  margin-inline: auto;
  align-items: center !important;
  justify-self: center;
  text-align: center !important;
}
body.legal-page .legal-hero .hero-catchline {
  margin: 0 !important;
  color: var(--theme-ink) !important;
  font-size: clamp(2.65rem,5vw,4.2rem) !important;
  line-height: 1.05 !important;
}
body.legal-page .legal-content-section {
  width: 100%;
  padding: 0 24px 92px !important;
}
body.legal-page .legal-panel {
  width: 100%;
  max-width: 900px !important;
  margin-inline: auto !important;
  padding: 46px 50px !important;
  border: 1px solid var(--theme-line) !important;
  border-radius: 24px !important;
  background: #FFFFFF !important;
  color: var(--theme-copy) !important;
  line-height: 1.75 !important;
  box-shadow: 0 18px 50px rgba(42,47,54,.07) !important;
  backdrop-filter: none !important;
}
body.legal-page .legal-panel h2 {
  margin: 32px 0 12px !important;
  color: var(--theme-green-dark) !important;
  font-size: 1.45rem !important;
  line-height: 1.25 !important;
}
body.legal-page .legal-panel h2:first-child { margin-top: 0 !important; }
body.legal-page .legal-panel p {
  margin-bottom: 0 !important;
  color: var(--theme-copy) !important;
}
body.legal-page .legal-panel a {
  color: var(--theme-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  body.home-page #home.hero-section { min-height: auto; }
  body.home-page #home .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  body.home-page #home .hero-content { max-width: 790px; }
  body.home-page #home .hero-visual { order: initial; }
  .services-grid { gap: 20px; }
  .service-card { min-height: auto; }
  .sante-layout {
    grid-template-columns: 1fr;
  }
  .sante-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sante-operations {
    flex-direction: column;
  }
  .sante-page-hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .main-header.mobile-menu-open {
    overflow: visible;
  }

  .main-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .main-header.mobile-menu-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1001;
    gap: 20px;
    max-height: calc(100svh - 72px);
    overflow-y: auto;
    padding: 24px 24px 36px;
    border-bottom: 1px solid rgba(30, 77, 59, 0.12);
    background-color: rgba(250, 253, 251, 0.96);
    box-shadow: 0 15px 35px rgba(30, 77, 59, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    animation: mobileNavSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
  }

  .main-header.mobile-menu-open .nav-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(30, 77, 59, 0.05);
    font-size: 1.05rem;
  }

  .main-header.mobile-menu-open .nav-btn {
    justify-content: center;
    margin-top: 10px;
    text-align: center;
  }
}

@media (max-width: 800px) {
  section { padding: 68px 18px; }
  .header-container { min-height: 72px; }
  .main-header { padding-inline: 18px; }
  .logo-img-main { width: 184px; }
  .section-header { margin-bottom: 34px; }
  .section-header h2 {
    font-size: clamp(2rem,9vw,2.65rem);
    line-height: 1.08;
  }
  .section-header p {
    margin-top: 14px;
    font-size: .96rem;
    line-height: 1.66;
  }

  body.home-page #home.hero-section {
    padding: 112px 18px 62px;
  }
  body.home-page #home .hero-container { gap: 42px; }
  body.home-page #home .hero-catchline {
    margin-bottom: 22px;
    font-size: clamp(2.65rem,11.5vw,3.45rem);
    line-height: 1.02;
    letter-spacing: -.055em;
  }
  body.home-page #home .hero-content p {
    font-size: 1rem;
    line-height: 1.7;
  }
  body.home-page #home .hero-actions { margin-top: 28px; }
  body.home-page #home .visual-wrapper {
    min-height: 500px;
    border-radius: 28px 28px 28px 10px;
  }
  body.home-page #home .visual-wrapper::before {
    top: 18px;
    max-width: calc(100% - 32px);
    padding: 7px 11px;
    font-size: .65rem;
    letter-spacing: .075em;
  }

  .metrics-section { padding: 28px 18px 48px; }
  .metrics-container {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0;
    padding: 4px;
    border-radius: 24px;
  }
  .metric-card {
    min-height: 116px;
    padding: 16px 10px;
  }
  .metric-card + .metric-card { border-left: 0; }
  .metric-card:nth-child(even) { border-left: 1px solid rgba(255,255,255,.14); }
  .metric-card:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .metric-card .metric-value,
  .metric-card h3 { font-size: 1.9rem; }
  .metric-card > p:last-child {
    font-size: .73rem;
    line-height: 1.38;
  }

  .services-section { padding: 64px 18px 72px; }
  .specialites-section { padding: 64px 18px 42px; }
  .sector-spotlight-section { padding: 34px 18px; }
  .sante-page-hero { padding: 118px 18px 34px; }
  .sante-section { padding: 34px 18px 72px; }
  .interactive-grid-section { padding: 42px 18px 72px; }
  .sector-spotlight-section + .interactive-grid-section { padding-top: 0; }
  .contact-section {
    display: block;
    min-height: auto;
    padding: 72px 18px;
  }

  .service-card {
    gap: 18px;
    padding: 28px 22px;
    border-radius: 25px 25px 25px 9px;
  }
  .service-card h3 {
    margin-top: 18px;
    font-size: 1.38rem;
  }
  .service-card > p {
    margin: 7px 0 15px;
    font-size: .95rem;
  }
  .card-list li { font-size: .87rem; }
  .card-featured { padding-top: 66px; }
  .card-featured::before { top: 20px; right: 18px; }
  .card-featured .card-icon { margin-top: 0; }

  .specialty-card {
    min-height: auto;
    padding: 24px 22px;
  }
  .specialty-card h3,
  .specialty-card h4 { font-size: 1.1rem; }
  .specialty-card p { font-size: .92rem; line-height: 1.62; }

  .sector-spotlight-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 22px;
    border-radius: 25px 25px 25px 9px;
  }
  .sector-spotlight-copy h2 {
    font-size: 1.42rem;
  }
  .sector-spotlight-action {
    white-space: normal;
  }
  .sante-page-hero h1 {
    font-size: 2.72rem;
    line-height: 1.05;
  }
  .sante-page-hero p {
    font-size: 1rem;
    line-height: 1.68;
  }
  .sante-page-hero-panel {
    padding: 24px 22px;
    border-radius: 25px 25px 25px 9px;
  }

  .sante-container { gap: 22px; }
  .sante-header { text-align: center; }
  .sante-copy-card,
  .sante-signal-panel,
  .sante-trust-statement,
  .sante-use-cases {
    padding: 24px 22px;
    border-radius: 25px 25px 25px 9px;
  }
  .sante-copy-card h3 {
    font-size: 1.72rem;
  }
  .sante-copy-card p {
    font-size: .95rem;
    line-height: 1.66;
  }
  .sante-care-map {
    gap: 10px;
  }
  .sante-care-node {
    min-height: 68px;
    padding: 12px;
  }
  .sante-feature-grid,
  .sante-use-cases ul {
    grid-template-columns: 1fr;
  }
  .sante-feature-card {
    min-height: auto;
    padding: 24px 22px;
    border-radius: 25px 25px 25px 9px;
  }
  .sante-feature-card h3 {
    font-size: 1.1rem;
  }
  .sante-feature-card p,
  .sante-use-cases li {
    font-size: .92rem;
    line-height: 1.62;
  }
  .sante-cta-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px;
    border-radius: 25px 25px 25px 9px;
  }
  .sante-cta-panel .btn {
    width: 100%;
    justify-content: center;
  }

  .diagnostic-card-wrapper { padding: 24px; }
  .card-header { margin-bottom: 24px; }
  .card-header h2 {
    font-size: clamp(1.65rem,7.2vw,2rem);
    line-height: 1.08;
  }
  .diagnostic-grid { gap: 26px; }
  .diagnostic-step { gap: 13px; padding: 15px; }
  .diagnostic-summary-panel { padding: 24px 20px; }

  .contact-container { gap: 42px; }
  .contact-info h2 {
    font-size: clamp(2.35rem,10.5vw,3rem);
    line-height: 1.03;
  }
  .contact-form-card { padding: 26px 22px; }
  .form-group :is(input, textarea, select) { font-size: 1rem; }

  .main-footer { padding: 54px 20px 26px; }
  .footer-container {
    gap: 36px;
    margin-bottom: 42px;
  }
  .footer-brand { gap: 14px; }
  .logo-img-footer { width: 210px; }
  .footer-links-grid { gap: 28px; }
  .footer-bottom { padding-top: 24px; }

  body.legal-page .legal-hero { padding: 118px 18px 38px !important; }
  body.legal-page .legal-content-section { padding: 0 18px 70px !important; }
  body.legal-page .legal-panel {
    padding: 28px 24px !important;
    border-radius: 20px !important;
  }
  body.legal-page .legal-panel h2 {
    margin-top: 26px !important;
    font-size: 1.28rem !important;
  }
}

@media (max-width: 420px) {
  .logo-img-main { width: 174px; }
  body.home-page #home.hero-section { padding-top: 104px; }
  body.home-page #home .hero-badge {
    padding: 8px 10px;
    font-size: .61rem;
    letter-spacing: .075em;
  }
  body.home-page #home .visual-wrapper { min-height: 485px; }
  .metric-card { min-height: 120px; }
  .contact-info h2 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page #home .hero-content > * { animation: none !important; }
}

/* Neutralise les anciennes propriétés de masque/inset du pseudo-élément du visual wrapper. */
body.home-page #home .visual-wrapper::before {
  inset: 22px auto auto 50%;
  right: auto;
  bottom: auto;
  width: max-content;
  max-width: calc(100% - 52px);
  height: auto;
  min-height: 0;
  text-align: center;
  background: rgba(255,255,255,.94);
  background-size: auto;
  -webkit-mask-image: none;
  mask-image: none;
  transform: translateX(-50%);
  transition: none;
}

/* Correctifs de contraste sur les surfaces claires.
   Ces sélecteurs restent volontairement limités aux cartes blanches : les
   panneaux verts conservent leur texte clair. */
body.home-page #home .visual-wrapper,
.service-card:not(.card-featured),
.specialty-card,
.sector-spotlight-card,
.sante-feature-card,
.sante-panel,
.diagnostic-card-wrapper,
.contact-form-card {
  color: var(--theme-ink);
}

.service-card:not(.card-featured) h3,
.specialty-card :is(h3, h4),
.sector-spotlight-card h2,
.sante-feature-card h3,
.sante-panel :is(h3, h4),
.diagnostic-card-wrapper > .card-header h2,
.contact-form-card :is(h2, h3) {
  color: var(--theme-green-dark);
}

.service-card:not(.card-featured) > p,
.service-card:not(.card-featured) .card-list li,
.specialty-card p,
.sector-spotlight-card p,
.sante-feature-card p,
.sante-trust-statement p,
.sante-use-cases li,
.diagnostic-step p,
.contact-form-card p,
body.home-page #home .node-details-card p {
  color: var(--theme-copy);
}

/* Respiration régulière autour de la carte interactive du hero. */
body.home-page #home .hero-visual {
  padding: 24px 14px 16px;
}

@media (min-width: 1051px) {
  body.home-page #home.hero-section {
    min-height: 100svh !important;
    padding-top: 108px !important;
    padding-bottom: 28px !important;
  }

  body.home-page #home .hero-container {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 34px;
    min-height: 0;
  }

  body.home-page #home .hero-content {
    gap: 18px;
  }

  body.home-page #home .hero-visual {
    padding: 8px 10px;
  }

  body.home-page #home .visual-wrapper {
    max-width: min(350px, 29vw);
    min-height: 0 !important;
    padding: 18px;
  }

  body.home-page #home .net-svg {
    padding: 34px 8px 0;
  }

  body.home-page #home .node-details-card {
    min-height: 64px;
    margin-top: 12px;
    padding: 10px 12px;
  }

  body.home-page #home .hero-catchline {
    margin-bottom: 12px;
    font-size: 52px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 1050px) {
  body.home-page #home .hero-visual {
    margin-top: 8px;
    padding-top: 28px;
  }
}

@media (max-width: 800px) {
  body.home-page #home .hero-visual {
    margin-top: 4px;
    padding: 24px 0 10px;
  }

  body.home-page #home .visual-wrapper::before {
    top: 18px;
    max-width: calc(100% - 32px);
  }
}
