/* ============================================================
   MedAssist — base de marque partagée
   Palette dérivée du deck : teal #00b3c2 / #0e9aab / #007e96,
   navy #182f49, blanc. Type : Rubik (titres) + Inter (texte).
   Les couleurs sont des variables, surchargées par direction.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  color: var(--ink, #182f49);
  background: var(--bg, #ffffff);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display, "Rubik", system-ui, sans-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---- échelle typographique fluide ---- */
.display   { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.1rem); }
.h1        { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem); }
.h2        { font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.85rem); }
.h3        { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); }
.lead      { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.55; }
.small     { font-size: 0.93rem; }

/* ---- layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.container-wide { max-width: 1320px; }
.container-narrow { max-width: 880px; }

section { position: relative; }

/* ---- eyebrow (suréligne lettre-espacée comme dans le deck) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent, #0e9aab);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: currentColor;
  flex: none;
}
.eyebrow.no-mark::before { display: none; }

/* mot mis en avant dans un titre */
.hi { color: var(--accent, #0e9aab); }

/* ---- boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: var(--btn-radius, 999px);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent, #0e9aab);
  color: var(--accent-ink, #ffffff);
  box-shadow: 0 10px 26px -12px var(--accent-shadow, rgba(14,154,171,.7));
}
.btn-primary:hover {
  background: var(--accent-strong, #007e96);
  box-shadow: 0 16px 32px -12px var(--accent-shadow, rgba(14,154,171,.85));
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink, #182f49);
  border-color: var(--hairline, rgba(24,47,73,.18));
}
.btn-ghost:hover {
  border-color: var(--accent, #0e9aab);
  color: var(--accent-strong, #007e96);
  transform: translateY(-2px);
}

.btn .ico { width: 1.05em; height: 1.05em; }

/* ---- logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display, "Rubik", sans-serif);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--logo-ink, var(--ink));
  line-height: 1;
}
.logo-mark {
  width: 2.1em; height: 2.1em;
  border-radius: 28%;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--navy, #182f49), var(--accent-strong, #007e96));
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.logo-mark svg { width: 58%; height: 58%; }
.logo-mark svg path { fill: #fff; }
.logo b { font-weight: 600; color: var(--accent, #0e9aab); }
.logo span { font-weight: 600; }

/* ---- diamant / puce ---- */
.tick {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  background: var(--accent, #0e9aab);
  flex: none;
  border-radius: 2px;
}

/* ---- hairline divider ---- */
.rule { height: 1px; background: var(--hairline, rgba(24,47,73,.12)); border: 0; }

/* ---- accessibilité ---- */
:focus-visible { outline: 3px solid var(--accent, #0e9aab); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
