@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --deep: #193e4d;      /* bleu profond MahoCare */
  --teal: #008e9e;      /* turquoise MahoCare */
  --teal-ink: #006f7c;  /* turquoise foncé, texte lisible (AA) */
  --aqua: #08cdd5;      /* aqua MahoCare */
  --mist: #f4f8fb;      /* fond clair MahoCare */
  --ink: #1d2f37;
  --muted: #4d6470;
  --line: #d5e2e8;
  --white: #ffffff;

  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --step-3: clamp(2.3rem, 1.4rem + 4.2vw, 4.4rem);

  --gutter: clamp(16px, 5vw, 48px);
  --space: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); color: var(--deep); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; max-width: 64ch; }
a { color: var(--teal-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--deep); color: var(--white); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgb(244 248 251 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: auto; height: 46px; }
.nav { display: flex; gap: 28px; font-size: var(--step--1); }
.nav a { color: var(--deep); text-decoration: none; font-weight: 700; padding: 8px 0; }
.nav a:hover { color: var(--teal-ink); }
.nav__contact {
  padding: 8px 16px !important; border-radius: 999px;
  border: 1.5px solid var(--deep);
}
@media (max-width: 760px) {
  .nav a:not(.nav__contact) { display: none; }
  .brand img { height: 36px; }
}

/* Ouverture */
.hero { position: relative; padding-top: clamp(48px, 9vw, 120px); overflow: hidden; }
.hero__inner { position: relative; z-index: 1; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: var(--step--1); color: var(--deep);
  background: var(--white); border: 1px solid var(--line);
  padding: 6px 14px 6px 12px; border-radius: 999px; margin-bottom: 28px;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgb(8 205 213 / 0.18); }
.hero h1 {
  font-size: var(--step-3); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em;
  max-width: 15ch; margin-bottom: 28px;
}
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 54ch; }

.pulse { width: 100%; height: clamp(70px, 9vw, 120px); margin-top: clamp(24px, 5vw, 56px); }
.pulse__line {
  fill: none; stroke: url(#lagon); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trace 1.8s cubic-bezier(.6, .05, .25, 1) .25s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }

/* Présentation et objectif */
.intro {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px);
  padding-block: var(--space);
}
.intro h2, .how h2, .soon h2, .contact h2 { font-size: var(--step-2); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.01em; }
@media (max-width: 760px) { .intro { grid-template-columns: 1fr; } }

/* Parcours prévu : une vraie séquence, d’où la numérotation */
.how { background: var(--white); padding-block: var(--space); border-block: 1px solid var(--line); }
.how__note { color: var(--muted); margin-bottom: 48px; }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px;
  background: linear-gradient(90deg, var(--deep), var(--teal), var(--aqua));
}
.steps li { position: relative; counter-increment: step; padding-top: 68px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 1.15rem/1 var(--display); color: var(--deep);
  background: var(--white); border: 2px solid var(--teal);
}
.steps h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.steps p { font-size: var(--step--1); color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--deep), var(--teal), var(--aqua)); }
  .steps li { padding: 8px 0 0 72px; min-height: 46px; }
}

/* Médecins indépendants : le seul aplat sombre de la page */
.pros { background: var(--deep); color: #e3eef2; padding-block: var(--space); }
.pros__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pros h2 { color: var(--white); font-size: var(--step-3); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.pros__text { font-size: var(--step-1); line-height: 1.55; }
.pros__cta { margin-top: 1.6em; padding-top: 1.2em; border-top: 1px solid rgb(255 255 255 / 0.16); font-size: var(--step-0); }
.pros a { color: var(--aqua); font-weight: 700; }
@media (max-width: 860px) { .pros__inner { grid-template-columns: 1fr; } .pros h2 { font-size: var(--step-2); } }

/* Bientôt disponible */
.soon { padding-block: var(--space) 0; }
.urgent {
  margin-top: 28px; padding: 16px 20px; border-left: 4px solid var(--teal);
  background: var(--white); border-radius: 0 10px 10px 0; color: var(--deep);
}

/* Contact */
.contact { padding-block: var(--space); }
.mail {
  display: inline-block; margin: 8px 0 20px;
  font: 800 clamp(1.5rem, 1rem + 3vw, 3rem)/1.15 var(--display);
  color: var(--deep); text-decoration: none; letter-spacing: -0.01em;
  border-bottom: 3px solid var(--aqua); padding-bottom: 4px;
  overflow-wrap: anywhere;
  transition: color .2s ease, border-color .2s ease;
}
.mail:hover { color: var(--teal-ink); border-color: var(--teal); }
.contact__hint { color: var(--muted); font-size: var(--step--1); }

/* Pied de page */
.foot { border-top: 1px solid var(--line); background: var(--white); font-size: var(--step--1); color: var(--muted); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 28px; }
.foot p { margin: 0; }

/* Page mentions légales */
.legal { padding-block: clamp(40px, 7vw, 88px) var(--space); }
.legal h1 { font-size: var(--step-2); font-weight: 800; margin-bottom: 32px; }
.legal h2 { font-size: var(--step-1); font-weight: 800; margin: 40px 0 12px; }
.legal address { font-style: normal; margin-bottom: 1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse__line { animation: none; stroke-dashoffset: 0; }
  .mail { transition: none; }
}
