/* MedCare — Style spécifique pour la vitrine marketing Rejoindre MedCare (_landing_marketing.html) */

:root {
  --navy-dk: #0d1b2a;
  --navy: #0a5c8a;
  --teal: #1a9e9e;
  --teal-dk: #1a3a6e;
  --green: #14b87a;
  --green-dk: #0fa268;
  --amber: #EF9F27;
  --ink: #1f2937;
  --muted: #5b6675;
  --line: #e6ebf0;
  --soft: #f6f9fb;
  --white: #fff;
  --shadow: 0 10px 40px rgba(13,27,42,.10);
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ============ HEADER STICKY / TOGGLE ============ */
.hdr {
  position: relative;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.hdr__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hdr--toggle-only .hdr__in {
  justify-content: center;
}
.wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .5px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .m { color: var(--teal); }
.wordmark .c { color: var(--teal-dk); transition: color .5s var(--ease); }

/* Toggle segmenté */
.toggle {
  position: relative;
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(13,27,42,.04);
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.toggle__pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 4px 14px rgba(10,92,138,.35);
  transition: transform .5s var(--ease), width .5s var(--ease), background .5s var(--ease);
  z-index: 0;
}
.toggle__btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .35s var(--ease);
  white-space: nowrap;
}
.toggle__btn .dot { font-size: 15px; }
.toggle__btn[aria-selected="true"] { color: #fff; }

/* ============ STAGE ============ */
.stage { display: none; }
.stage.is-active { display: block; }
.stage.is-leaving { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease); }

/* Reveal system */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .toggle__pill, .stage.is-leaving, * { transition: none !important; animation: none !important; }
}

/* ============ HERO commun ============ */
.hero { position: relative; overflow: hidden; }
.hero__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 60px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; }
.h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 18px;
}
.h1 em { font-style: normal; }
.lead { font-size: 18px; margin: 0 0 30px; max-width: 520px; color: var(--muted); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #fff; }
.btn--ghost { background: transparent; }

/* ---- HERO PATIENT (clair) ---- */
.stage--patient .hero {
  background:
    radial-gradient(1000px 500px at 82% -8%, rgba(26,158,158,.14), transparent 60%),
    radial-gradient(760px 460px at 6% 108%, rgba(20,184,122,.10), transparent 60%),
    linear-gradient(180deg,#fbfffe 0%, #f4fbfa 100%);
}
.stage--patient .eyebrow { color: var(--teal); }
.stage--patient .eyebrow::before { background: var(--teal); }
.stage--patient .h1 { color: var(--navy-dk); }
.stage--patient .h1 em { color: var(--teal); }
.stage--patient .lead { color: var(--muted); }
.stage--patient .btn--primary { background: var(--green); box-shadow: 0 10px 26px rgba(20,184,122,.32); }
.stage--patient .btn--primary:hover { background: var(--green-dk); box-shadow: 0 14px 32px rgba(20,184,122,.4); }
.stage--patient .btn--ghost { color: var(--navy); border: 1.6px solid #cfe3e1; }
.stage--patient .btn--ghost:hover { border-color: var(--teal); }

/* ---- HERO STRUCTURE (navy premium) ---- */
.stage--structure .hero {
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(20,184,122,.30), transparent 58%),
    radial-gradient(700px 500px at 0% 110%, rgba(26,158,158,.22), transparent 60%),
    linear-gradient(135deg,#0d1b2a 0%, #0a3d5c 60%, #0a5c8a 100%);
}
.stage--structure .eyebrow { color: #8fe3c4; }
.stage--structure .eyebrow::before { background: var(--green); }
.stage--structure .h1 { color: #fff; }
.stage--structure .h1 em { color: #8fe3c4; }
.stage--structure .lead { color: #c3d3df; }
.stage--structure .btn--primary { background: var(--green); box-shadow: 0 12px 30px rgba(20,184,122,.4); }
.stage--structure .btn--primary:hover { background: var(--green-dk); }
.stage--structure .btn--ghost { color: #fff; border: 1.6px solid rgba(255,255,255,.32); }
.stage--structure .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* Badge 50 places */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  background: rgba(239,159,39,.15);
  border: 1px solid rgba(239,159,39,.5);
  color: #ffd591;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 8px 15px;
  border-radius: 999px;
}
.pill-badge b { color: #fff; }

/* ============ MOCKS ============ */
.mock { position: relative; }
@keyframes float { 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-10px);} }
.floaty { animation: float 6s ease-in-out infinite; }

/* Patient mock : carte recherche + résultat */
.appcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin-left: auto;
}
.appcard__search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
}
.appcard__search .mag { color: var(--teal); font-size: 16px; }
.appcard__chips { display: flex; gap: 7px; margin: 14px 0 16px; flex-wrap: wrap; }
.chip { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef7fb; color: var(--navy); }
.chip--on { background: #e6f8f0; color: var(--green-dk); }
.res { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.res__head { padding: 15px 15px 13px; }
.res__head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.res__nm { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy-dk); }
.res__ty { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.res__cover { font-size: 10.5px; font-weight: 700; color: var(--navy); background: #eef4fb; border: 1px solid #dbe7f2; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.res__loc { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; }
.res__loc .pl { font-size: 11.5px; color: var(--muted); }
.res__pio { font-size: 10px; font-weight: 700; color: #8a5a00; background: #fff4dc; border: 1px solid #f5e2b8; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.acte { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-top: 1px solid var(--line); }
.acte__check { width: 18px; height: 18px; border: 1.6px solid #c7d2dc; border-radius: 5px; flex-shrink: 0; }
.acte__body { flex: 1; }
.acte__name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; color: var(--navy-dk); }
.acte__delai { font-size: 11px; color: var(--muted); margin-top: 2px; }
.acte__price { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px; color: var(--navy); white-space: nowrap; }
.res__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 15px; border-top: 1px solid var(--line); background: var(--soft); }
.res__ins { font-size: 11px; color: var(--muted); font-weight: 600; }
.res__btn { background: var(--green); color: #fff; font-weight: 700; font-size: 12.5px; padding: 10px 16px; border-radius: 10px; white-space: nowrap; }

.floaty-tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 13px;
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-dk);
  display: flex;
  align-items: center;
  gap: 8px;
}
.floaty-tag .k { font-size: 16px; }
.tag-1 { top: -16px; left: -6px; animation: float 5s ease-in-out infinite; }
.tag-2 { bottom: 96px; left: -24px; animation: float 7s ease-in-out infinite .8s; }

/* Structure mock : mini dashboard */
.dash {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.34);
  max-width: 420px;
  margin-left: auto;
}
.dash__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash__badge { font-size: 11px; font-weight: 700; color: var(--green-dk); background: #e6f8f0; padding: 5px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.dash__dots { display: flex; gap: 5px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dash__title { font-size: 12px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; }
.kpi .lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 24px; color: var(--navy-dk); margin-top: 3px; }
.kpi .up { font-size: 11px; font-weight: 700; color: var(--green); }
.kpi--accent { background: linear-gradient(135deg,#0a5c8a,#0d1b2a); border-color: transparent; }
.kpi--accent .lbl { color: #a9c6d8; }
.kpi--accent .val { color: #fff; }
.kpi--accent .up { color: #8fe3c4; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin-top: 16px; }
.spark i { flex: 1; background: #dbeafe; border-radius: 4px 4px 0 0; }
.spark i.g { background: var(--green); }

/* ============ SECTIONS ============ */
.sec { max-width: 1180px; margin: 0 auto; padding: 66px 24px; }
.sec__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.sec__eyebrow::before, .sec__eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--green); border-radius: 2px; }
.sec__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--navy-dk);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -.6px;
  margin: 0 auto 12px;
  max-width: 660px;
}
.sec__title em { font-style: normal; color: var(--navy); }
.sec__sub { text-align: center; font-size: 16.5px; color: var(--muted); max-width: 600px; margin: 0 auto 44px; }

/* Grille cartes */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe3e1; }
.card__ico { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 25px; margin: 0 auto 16px auto; background: #eef7fb; }
.card h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 18.5px; color: var(--navy-dk); margin: 0 0 8px; text-align: center; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; text-align: center; }
.card p b { color: var(--green); }

/* Cartes avantages numérotées */
.num-card { position: relative; }
.num-card .num { position: absolute; top: 20px; right: 24px; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 36px; color: #eef4f8; line-height: 1; }

/* Bandeaux */
.band { border-radius: 20px; padding: 30px 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.band--green { background: #f0fdf4; border: 1px solid #a7f3d0; }
.band--blue { background: var(--soft); border: 1px solid #cfe0ec; }
.band__left { display: flex; align-items: center; gap: 18px; }
.band__ico { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; box-shadow: 0 3px 10px rgba(13,27,42,.08); }
.band h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 19px; margin: 0 0 3px; }
.band p { font-size: 14.5px; margin: 0; }
.band--green h4 { color: #065f46; } .band--green p { color: #047857; }
.band--blue h4 { color: var(--navy-dk); } .band--blue p { color: var(--muted); }

/* Garanties (ambre) */
.guar { background: #fffdf5; border: 1px solid #f5e2b8; border-radius: 16px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.guar__ico { width: 44px; height: 44px; border-radius: 12px; background: #fff4dc; color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 21px; flex-shrink: 0; }
.guar h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; color: #8a5a00; margin: 0 0 4px; }
.guar p { font-size: 14px; color: #7a6a45; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.step { text-align: center; padding: 10px; }
.step .n { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 21px; color: #fff; background: var(--navy-dk); box-shadow: 0 8px 20px rgba(13,27,42,.2); }
.step:last-child .n { background: var(--green); box-shadow: 0 8px 20px rgba(20,184,122,.35); }
.step h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 16px; color: var(--navy-dk); margin: 0 0 5px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Mini parcours patient (4 étapes horizontales) */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow__item { text-align: center; }
.flow__ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #e6f8f0; }
.flow__item h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px; color: var(--navy-dk); margin: 0 0 4px; }
.flow__item p { font-size: 13px; color: var(--muted); margin: 0; }

/* CTA final */
.finalcta { max-width: 1180px; margin: 0 auto 70px; padding: 0 24px; }
.finalcta__in { border-radius: 24px; padding: 48px 44px; text-align: center; background: linear-gradient(135deg,#0d1b2a,#0a5c8a); color: #fff; position: relative; overflow: hidden; }
.finalcta__in::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 300px; height: 300px; background: radial-gradient(circle,rgba(20,184,122,.3),transparent 70%); }
.finalcta h3 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; position: relative; }
.finalcta p { font-size: 16px; color: #c3d3df; margin: 0 auto 28px; max-width: 520px; position: relative; }
.finalcta .cta-row { justify-content: center; position: relative; }

/* Trust footer strip */
.trust { background: var(--navy-dk); color: #cbd8e2; }
.trust__in { max-width: 1180px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.trust__in a { color: #8fe3c4; text-decoration: none; }
.trust__wm { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; }
.trust__wm .m { color: var(--teal); } .trust__wm .c { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .eyebrow, .sec__eyebrow { justify-content: center; }
  .cta-row { justify-content: center; }
  .appcard, .dash { margin: 0 auto; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hdr__in { flex-direction: column; gap: 12px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
  .toggle__btn { padding: 9px 15px; font-size: 13.5px; }
  .hero__in { padding: 48px 20px 44px; }
  .floaty-tag { display: none; }
}

/* Formulaire inscription sur la landing */
.landing-register-sec {
  background: var(--soft);
  padding-top: 48px;
  padding-bottom: 64px;
}
.landing-register-sec__in {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.landing-register-sec .mc-auth-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
@media (min-width: 640px) {
  .landing-register-sec .mc-auth-card {
    padding: 32px 36px;
  }
}
