/*
 * Site public — direction « Terre chaude ».
 *
 * Les valeurs sont reprises telles quelles de mobile-sina-sante :
 * app_colors.dart pour les couleurs, app_dimens.dart pour les rayons et le
 * rythme, app_text_styles.dart pour les deux familles. Rien n'est arrondi à
 * une grille de 4 ou 8 px : ce qui est à 22 px dans l'application est à 22 px
 * ici.
 *
 * La maquette compte deux planches, bureau et mobile. Ce fichier n'en fait
 * qu'une : les points de rupture ramènent la page aux valeurs de la planche
 * mobile en dessous de 900 px.
 */

:root {
  /* Fondation */
  --cream: #FAF5ED;
  --paper: #FFFFFF;
  --aubergine: #3A1A5C;
  --ink: #241934;
  --ink-2: #6B6070;
  --ink-3: #9C90A5;
  --border: #EDE3D6;
  --border-strong: #E7DCCB;

  /* Accents */
  --plum: #5E2A93;
  --plum-surface: #F1E9FA;
  --plum-border: #E2D2F2;
  --magenta: #B0299B;
  --pink: #EC4899;
  --clay: #A0524B;
  --clay-surface: #F6E4DA;
  --clay-border: #EBD2C4;
  --clay-ink: #5A2F26;
  --clay-ink-2: #7A4A3E;
  --teal: #2E9E90;
  --teal-surface: #E3F1EF;
  --teal-ink: #1F6E64;
  --green-surface: #EDF3E4;
  --green-ink: #47601F;

  /* Sémantique — réservée au danger, jamais décorative */
  --danger: #D32F2B;
  --danger-ink: #8E211E;
  --danger-surface: #FBE6E4;
  --danger-border: #F3CFCB;
  --warning-ink: #A0620F;
  --warning-surface: #FBEEDC;
  --warning-border: #F0DCBE;

  /* Rythme */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-hero: 26px;
  --gutter: 120px;
}

* { box-sizing: border-box; }

/*
 * Le menu conduit à des ancres : le saut doit être glissé, et la cible ne
 * doit pas se retrouver sous la barre collante. `scroll-margin-top` réserve
 * la hauteur de la barre au-dessus de chaque section visée, et le script du
 * gabarit la relit plutôt que de la redéclarer de son côté.
 *
 * Cette règle est un repli : quand le script s'exécute, il désactive le
 * glissement natif et anime lui-même, parce que la durée choisie par le
 * navigateur — environ trois dixièmes de seconde quelle que soit la distance —
 * transforme un saut de quatre sections en clignement.
 */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 88px; }

/* Filet de sécurité : aucune image ne dépasse jamais son conteneur. */
img { max-width: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--aubergine); }

.serif { font-family: Newsreader, Georgia, 'Times New Roman', serif; font-weight: 400; }

/* Le lockup de la marque : le dégradé n'apparaît qu'au bandeau d'appel. */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }
.pad { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ── Barre de navigation ─────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 245, 237, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 999px; background: var(--clay);
  transform: scaleX(0); transform-origin: left; transition: transform 160ms ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__brand span { font-family: Newsreader, Georgia, serif; font-size: 21px; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
.nav__links a { color: var(--ink-2); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; }

/* ── Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 14px; font-weight: 800; border: 0; cursor: pointer;
  font-family: inherit;
}
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }
.btn--dark { background: var(--aubergine); color: #FFFFFF; }
.btn--dark:hover { background: #2E1349; color: #FFFFFF; }
.btn--outline {
  background: var(--paper); border: 1px solid var(--border-strong);
  color: var(--ink); font-weight: 700;
}
.btn--outline:hover { color: var(--ink); border-color: var(--clay-border); }
.btn--light { background: #FFFFFF; color: var(--aubergine); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #FFFFFF; font-weight: 700;
}
.btn--block { width: 100%; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { display: flex; align-items: center; gap: 72px; padding: 84px var(--gutter) 92px; }
.hero__text { flex-grow: 1; min-width: 0; max-width: 588px; }
.hero__title {
  font-family: Newsreader, Georgia, serif; font-size: 62px; font-weight: 400;
  line-height: 1.04; letter-spacing: -0.6px; margin: 0 0 24px;
  text-wrap: pretty;
}
.hero__lede { font-size: 17px; line-height: 1.62; color: var(--ink-2); margin: 0 0 36px; max-width: 500px; }
.hero__note { font-size: 12px; color: var(--ink-3); margin: 0 0 30px; }
.hero__cta { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero__art { flex-grow: 0; min-width: 0; position: relative; }
.hero__blob-clay {
  position: absolute; top: 44px; left: -34px; width: 300px; height: 300px;
  border-radius: 999px; background: var(--clay-surface);
}
.hero__blob-plum {
  position: absolute; bottom: 10px; right: -22px; width: 190px; height: 190px;
  border-radius: 999px; background: var(--plum-surface);
}
.hero__phones { position: relative; display: flex; align-items: flex-end; gap: 24px; min-width: 0; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--clay-surface); border: 1px solid var(--clay-border);
  margin-bottom: 26px;
}
.badge-pill span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--clay-ink);
}

.stats { display: flex; gap: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat__n { font-family: Newsreader, Georgia, serif; font-size: 30px; line-height: 1; color: var(--aubergine); }
.stat__label { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }

/* ── Cadres de téléphone ─────────────────────────────────────────────── */
.phone {
  border-radius: 30px; padding: 9px; background: var(--ink);
  box-shadow: 0 26px 60px rgba(36, 25, 52, 0.24);
  min-width: 0;
}
.phone img { display: block; width: 300px; height: auto; border-radius: 22px; }
.phone--sm { border-radius: 26px; padding: 8px; box-shadow: 0 18px 40px rgba(36, 25, 52, 0.18); margin-bottom: 46px; }
.phone--sm img { width: 228px; height: auto; border-radius: 19px; }
.phone--clay { box-shadow: 0 22px 50px rgba(90, 47, 38, 0.22); }

/* ── Magasins d'applications ─────────────────────────────────────────── */
.stores { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 0 20px; border-radius: var(--r-m);
  background: var(--aubergine); color: #FFFFFF;
  border: 1px solid var(--aubergine);
}
.store:hover { background: #2E1349; color: #FFFFFF; }
.store--light { background: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); color: var(--aubergine); }
.store--light:hover { background: #FFFFFF; color: var(--aubergine); }
.store.is-pending { opacity: 0.55; cursor: not-allowed; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__baseline { font-size: 10px; font-weight: 600; letter-spacing: 0.4px; opacity: 0.82; }
.store__name { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }

.qrs { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr__frame {
  width: 168px; height: 168px; padding: 10px; border-radius: var(--r-m);
  background: #FFFFFF; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.qr__frame > svg { display: block; width: 148px; height: 148px; }
.qr__empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; line-height: 1.4; color: var(--ink-3); text-align: center;
}
.qr__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.qr__hint {
  font-family: 'IBM Plex Mono', Menlo, monospace; font-size: 10.5px;
  color: var(--ink-3);
}
.cta .qr__label { color: #F7E4F1; }
.cta .qr__hint { color: rgba(255, 255, 255, 0.62); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 88px var(--gutter); }
.section--paper { background: var(--paper); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 78px var(--gutter); }
.section--clay { background: var(--clay-surface); border-top: 1px solid var(--clay-border); border-bottom: 1px solid var(--clay-border); padding: 84px var(--gutter); }
.section--faq { background: var(--paper); border-top: 1px solid var(--border); padding: 84px var(--gutter); }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--clay); margin-bottom: 16px; }
.eyebrow--danger { color: var(--danger); }
.h2 { font-family: Newsreader, Georgia, serif; font-size: 40px; font-weight: 400; line-height: 1.12; margin: 0 0 18px; }
.h3 { font-family: Newsreader, Georgia, serif; font-size: 26px; font-weight: 400; margin: 0 0 12px; }
.body { font-size: 15px; line-height: 1.66; color: var(--ink-2); margin: 0 0 18px; }
.body--sm { font-size: 13.5px; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 76px; align-items: center; }
.grid-2--tight { gap: 30px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--r-l); padding: 24px;
}
.card--paper { background: var(--paper); padding: 30px; }
.card__title { font-size: 14.5px; font-weight: 700; margin-bottom: 7px; }
.card__text { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Vitrines d'écran : la capture affleure le bas de la carte. */
.showcase {
  background: var(--paper); border: 1px solid var(--border);
  border-radius: var(--r-hero); padding: 34px 34px 0;
  display: flex; flex-direction: column; min-width: 0;
}
.showcase img {
  display: block; width: 300px; height: auto; align-self: center;
  margin-top: auto;
  border-radius: 20px 20px 0 0; border: 1px solid var(--border); border-bottom: none;
}
.tag {
  display: inline-flex; align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 16px;
}
.tag--plum { background: var(--plum-surface); color: var(--plum); }
.tag--clay { background: var(--clay-surface); color: var(--clay-ink); }
.tag--teal { background: var(--teal-surface); color: var(--teal-ink); }
.tag--green { background: var(--green-surface); color: var(--green-ink); }

/* ── Calendrier OMS ──────────────────────────────────────────────────── */
.oms { background: var(--aubergine); border-radius: var(--r-hero); padding: 58px 62px; color: #FFFFFF; }
.oms .eyebrow { color: #C9AEE4; }
.oms .h2 { color: #FFFFFF; margin-bottom: 20px; }
.oms__lede { font-size: 15px; line-height: 1.66; color: #D6C7E6; margin: 0 0 26px; }
.oms__fine { font-size: 13px; line-height: 1.6; color: #B49FCB; margin: 0; }
.oms__list { display: flex; flex-direction: column; gap: 10px; }
.oms__row {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-m); padding: 15px 18px;
}
.oms__row--vat { background: rgba(236, 72, 153, 0.16); border-color: rgba(236, 72, 153, 0.4); }
.oms__when { font-family: Newsreader, Georgia, serif; font-size: 20px; min-width: 60px; }
.oms__what { font-size: 13px; color: #D6C7E6; }
.oms__row--vat .oms__what { color: #F6D9EA; }
.oms__more { text-align: center; font-size: 12px; color: #9E86B8; padding-top: 6px; }

/* ── Signes de danger ────────────────────────────────────────────────── */
.danger-list { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.danger-row {
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--r-m); padding: 16px 18px;
}
.danger-row--now { background: var(--danger-surface); border: 1px solid var(--danger-border); }
.danger-row--today { background: var(--warning-surface); border: 1px solid var(--warning-border); }
.danger-row__dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.danger-row--now .danger-row__dot { background: var(--danger); }
.danger-row--today .danger-row__dot { background: #C77A1A; }
.danger-row__what { font-size: 13.5px; font-weight: 700; }
.danger-row__when { font-size: 12.5px; margin-left: auto; }
.danger-row--now .danger-row__what,
.danger-row--now .danger-row__when { color: var(--danger-ink); }
.danger-row--today .danger-row__what,
.danger-row--today .danger-row__when { color: var(--warning-ink); }
.urgence {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  padding: 0 20px; border-radius: 999px; background: var(--danger);
  color: #FFFFFF; font-size: 13.5px; font-weight: 800;
}

/* ── Témoignages ─────────────────────────────────────────────────────── */
.quote-card {
  background: var(--paper); border: 1px dashed var(--border-strong);
  border-radius: var(--r-l); padding: 30px;
}
.quote-card__text {
  font-family: Newsreader, Georgia, serif; font-size: 19px; line-height: 1.45;
  margin-bottom: 22px;
}
.quote-card__who { display: flex; align-items: center; gap: 12px; }
.quote-card__avatar { width: 38px; height: 38px; border-radius: 999px; }

/* ── Questions ───────────────────────────────────────────────────────── */
.faq { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 76px; align-items: start; }
.faq__item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { font-size: 15.5px; font-weight: 700; margin-bottom: 9px; }
.faq__a { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

/* ── Appel final ─────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, var(--plum) 0%, var(--magenta) 55%, var(--pink) 100%);
  border-radius: var(--r-hero); padding: 68px 62px; text-align: center;
}
.cta h2 {
  font-family: Newsreader, Georgia, serif; font-size: 46px; font-weight: 400;
  line-height: 1.1; margin: 0 auto 20px; color: #FFFFFF; max-width: 680px;
}
.cta p { font-size: 16px; line-height: 1.6; color: #F7E4F1; margin: 0 auto 34px; max-width: 560px; }
.cta__actions { display: flex; justify-content: center; gap: 14px; }
.cta .btn { min-height: 54px; font-size: 14.5px; }

/* ── Pied de page ────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 52px var(--gutter) 60px; }
.footer__grid { display: grid; grid-template-columns: 320px repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.9px;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.footer__links { display: flex; flex-direction: column; gap: 11px; font-size: 12.5px; }
.footer__links a { color: var(--ink-2); }
.footer__legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--ink-3);
}

/* ── Planche mobile ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .nav { padding: 16px var(--gutter); }
  .nav__links, .nav__actions { display: none; }
  .nav__brand span { font-size: 17px; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--border-strong); background: var(--paper);
  }

  .hero { flex-direction: column; align-items: stretch; gap: 0; padding: 34px var(--gutter) 38px; }
  .hero__text { max-width: none; }
  .hero__title { font-size: 38px; line-height: 1.06; letter-spacing: -0.3px; margin-bottom: 16px; }
  .hero__lede { font-size: 14.5px; line-height: 1.6; margin-bottom: 26px; max-width: none; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .hero__note { font-size: 11.5px; }
  .hero__art { margin-top: 0; }
  .hero__blob-clay, .hero__blob-plum { display: none; }
  .hero__phones { gap: 0; }
  .hero__phones .phone--sm { display: none; }
  .phone { border-radius: 28px; padding: 8px; box-shadow: 0 20px 44px rgba(36, 25, 52, 0.22); width: 100%; }
  .phone img { width: 100%; height: auto; border-radius: 21px; }

  .stats { gap: 14px; padding: 28px var(--gutter); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--paper); margin: 0 calc(-1 * var(--gutter)); }
  .stat__n { font-size: 26px; }
  .stat__label { font-size: 11px; line-height: 1.4; }

  .section, .section--paper, .section--clay, .section--faq { padding: 40px var(--gutter); }
  .h2 { font-size: 30px; }
  .h3 { font-size: 20px; }
  .body { font-size: 14px; line-height: 1.65; }
  .eyebrow { font-size: 10.5px; }

  .grid-2, .grid-3, .grid-4, .faq { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .grid-2 { gap: 26px; }
  .faq { gap: 20px; }
  .card { padding: 22px; }
  .card--paper { padding: 22px; }

  .showcase { padding: 0; border: 0; background: transparent; border-radius: 0; }
  .showcase img { width: 100%; height: auto; margin-top: 0; border-radius: 20px; border: 1px solid var(--border); margin-bottom: 14px; order: -1; }
  .showcase .tag { display: none; }
  .showcase .h3 { font-size: 15px; font-family: Manrope, sans-serif; font-weight: 700; margin-bottom: 6px; }
  .showcase .body--sm { font-size: 13px; }

  .oms { padding: 32px 24px; }
  .oms .h2 { font-size: 29px; }
  .oms__lede { font-size: 13.5px; }
  .oms__fine { display: none; }
  .oms__row { padding: 13px 15px; gap: 12px; border-radius: 12px; }
  .oms__when { font-size: 17px; min-width: 52px; }
  .oms__what { font-size: 12px; }

  .danger-list { max-width: none; }
  .danger-row { flex-wrap: wrap; padding: 15px 16px; }
  .danger-row__dot { display: none; }
  .danger-row__what { flex-basis: 100%; margin-bottom: 3px; }
  .danger-row__when { margin-left: 0; font-size: 12px; }

  .cta { padding: 36px 24px; }
  .cta h2 { font-size: 31px; }
  .cta p { font-size: 14px; }
  .cta__actions { flex-direction: column; }
  .cta .btn { min-height: 52px; font-size: 14px; }

  .footer { padding: 30px var(--gutter) 36px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__label { display: none; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; }

  .phone--desktop-only { display: none; }
  [id] { scroll-margin-top: 72px; }
  .stores { flex-direction: column; align-items: stretch; }
  .store { justify-content: center; }
  .qrs { gap: 16px; }
  .qr__frame { width: 140px; height: 140px; padding: 8px; }
  .qr__frame > svg { width: 124px; height: 124px; }
  .danger-split, .pro-split { flex-direction: column; align-items: stretch; gap: 26px; }
}
