@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* ─────────────────────────────────────────────────────────────
   Page teaser mono-thème : nuit indigo assumée.
   Toutes les couleurs sont peintes explicitement.

   L'aperçu produit (.app) reprend en revanche les tokens clairs
   du design system HubMedical : c'est ainsi que l'application se
   présente réellement.
   ───────────────────────────────────────────────────────────── */

:root {
  --night:      #100e26;
  --night-2:    #191641;
  --night-3:    #221e54;
  --line:       #2e2a68;
  --line-2:     #3d3789;
  --text:       #f1effc;
  --text-2:     #b9b3df;
  --text-3:     #7f78b2;
  --indigo:     #818cf8;
  --indigo-lt:  #a5b4fc;
  --rose:       #f472b6;
  --rose-deep:  #ec4899;
  --green:      #6ee7b7;

  /* Tokens réels de l'application — utilisés dans l'aperçu */
  --app-primary:   #6366f1;
  --app-text:      #1e1b4b;
  --app-text-2:    #475569;
  --app-muted:     #64748b;
  --app-border:    #e0e7ff;
  --app-surface:   #ffffff;
  --app-bg:        #f9f9fd;
  --app-rose-bg:   #fce7f3;
  --app-rose-text: #9d174d;
  --app-filled:    #6ee7b7;
  --app-open:      #f472b6;

  --shell: 76rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 82% 12%, rgba(129, 140, 248, .18), transparent 62%),
    radial-gradient(40rem 34rem at 8% 82%, rgba(236, 72, 153, .11), transparent 66%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ── Barre de marque ──────────────────────────────────────── */

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
}

.brand__mark {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo), var(--rose-deep));
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.05em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--indigo-lt);
  background: rgba(129, 140, 248, .1);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: .35rem .85rem;
}

.status-pill__dot {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, .18);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 3.5rem;
  align-items: center;
}

.pitch { display: flex; flex-direction: column; gap: 1.5rem; }

.eyebrow {
  margin: 0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 1000;
  letter-spacing: -.045em;
  line-height: .99;
  text-wrap: balance;
  max-width: 16ch;
}

h1 span { color: var(--indigo-lt); }

.sub {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--text-2);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ── Champs & boutons ─────────────────────────────────────── */

.signup { display: flex; flex-direction: column; gap: .7rem; max-width: 30rem; }

.field-label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.signup__row { display: flex; gap: .5rem; flex-wrap: wrap; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: var(--night-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color 180ms ease, background 180ms ease;
}

input, select { height: 3rem; padding: 0 1rem; }

textarea { padding: .75rem 1rem; resize: vertical; min-height: 7rem; line-height: 1.5; }

.signup input { flex: 1 1 14rem; min-width: 0; }

input::placeholder, textarea::placeholder { color: var(--text-3); }

input:hover, textarea:hover, select:hover { border-color: var(--indigo); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--indigo-lt);
  background: var(--night-3);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, .22);
}

.btn {
  height: 3rem;
  padding: 0 1.4rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--rose-deep));
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, filter 160ms ease;
}

.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.note { margin: 0; font-size: .82rem; color: var(--text-3); }

.done { margin: 0; font-size: .9rem; font-weight: 700; color: var(--green); }

.fallback { margin: 0; font-size: .9rem; color: var(--text-2); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.btn--ghost { height: 2.4rem; padding: 0 1rem; font-size: .9rem; background: transparent; border: 1px solid var(--line-2); color: var(--indigo-lt); }

[hidden] { display: none !important; }

/* ── Aperçu de l'application ──────────────────────────────── */

.app {
  border-radius: 16px;
  overflow: hidden;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(165, 180, 252, .14);
  font-size: 14px;
}

.app__chrome {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .9rem;
  background: var(--app-bg);
  border-bottom: 1px solid var(--app-border);
}

.app__dots { display: flex; gap: .3rem; }
.app__dots i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--app-border); display: block; }

.app__url {
  font-size: .72rem;
  font-weight: 700;
  color: var(--app-muted);
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 999px;
  padding: .15rem .7rem;
}

.app__body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }

/* Bandeau d'accueil — reprend le hero du tableau de bord */
.app-hero {
  border: 1px solid var(--app-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, .07);
}

.app-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }

.app-hero__greeting { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }

.app-hero__sub { margin: .1rem 0 0; font-size: .76rem; color: var(--app-muted); font-weight: 600; }

.app-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  padding: .45rem .85rem;
  white-space: nowrap;
}

.app-hero__weekhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .9rem 0 .5rem;
  flex-wrap: wrap;
}

.app-hero__weeklabel {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--app-muted);
}

.app-legend { display: flex; gap: .8rem; font-size: .68rem; font-weight: 700; color: var(--app-muted); }
.app-legend span { display: inline-flex; align-items: center; gap: .3rem; }

.dot { width: .45rem; height: .45rem; border-radius: 50%; display: inline-block; }
.dot--filled { background: var(--app-filled); }
.dot--open { background: var(--app-open); }

.app-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }

.app-day {
  border: 1px solid var(--app-border);
  border-radius: 8px;
  padding: .35rem .2rem .4rem;
  text-align: center;
  background: var(--app-bg);
}

.app-day--current { border-color: var(--app-primary); background: rgba(99, 102, 241, .07); }

.app-day__name { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); }
.app-day__num { display: block; font-size: .82rem; font-weight: 800; color: var(--app-text); line-height: 1.2; font-variant-numeric: tabular-nums; }
.app-day__dots { display: flex; justify-content: center; gap: .18rem; min-height: .5rem; margin-top: .18rem; }

/* Bloc « Vacations ouvertes » — priorité de lecture n°1 de l'écran réel */
.app-section { border: 1px solid var(--app-border); border-radius: 12px; overflow: hidden; }

.app-section__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--app-border);
}

.app-section__title { font-size: .92rem; font-weight: 800; letter-spacing: -.01em; }

.app-count {
  font-size: .68rem;
  font-weight: 800;
  color: #fff;
  background: var(--app-primary);
  border-radius: 999px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 .35rem;
  display: inline-grid;
  place-items: center;
}

.vac {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(224, 231, 255, .5);
}

.vac:nth-of-type(even) { background: var(--app-bg); }
.vac--urgent, .vac--urgent:nth-of-type(even) { background: var(--app-rose-bg); }

.vac__badge {
  flex-shrink: 0;
  width: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .15);
  padding: .3rem .2rem;
  text-align: center;
  line-height: 1;
}

.vac__day { display: block; font-size: 1.15rem; font-weight: 800; color: var(--app-primary); font-variant-numeric: tabular-nums; }
.vac__month { display: block; font-size: .58rem; font-weight: 700; color: var(--app-primary); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.vac__left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }

.vac__profession { font-size: .84rem; font-weight: 800; letter-spacing: -.01em; }
.vac__title { font-size: .74rem; color: var(--app-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac__meta { font-size: .7rem; color: var(--app-muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.vac__urgent {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  align-self: flex-start;
  margin-top: .15rem;
  font-size: .66rem;
  font-weight: 800;
  color: var(--app-rose-text);
  background: rgba(236, 72, 153, .14);
  border-radius: 999px;
  padding: .1rem .45rem;
}

.vac__right { flex-shrink: 0; text-align: right; }

.vac__apps { font-size: .7rem; font-weight: 700; color: var(--app-muted); white-space: nowrap; }
.vac__apps b { color: var(--app-text); font-size: .8rem; }

.app-section__foot { padding: .6rem 1rem; }

.app-outline {
  display: block;
  text-align: center;
  font-size: .76rem;
  font-weight: 800;
  color: var(--app-primary);
  border: 1px solid var(--app-primary);
  border-radius: 999px;
  padding: .4rem 1rem;
}

/* ── Socle : les trois principes ──────────────────────────── */

.tenets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.tenet { background: var(--night); padding: 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; }

.tenet h2 { margin: 0; font-size: .95rem; font-weight: 800; letter-spacing: -.01em; color: var(--indigo-lt); }

.tenet p { margin: 0; font-size: .89rem; color: var(--text-2); }

/* ── Qui sommes-nous ──────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 3rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.about__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

.about__intro p { margin: 0 0 1rem; color: var(--text-2); font-size: .95rem; max-width: 52ch; }

.about__identity {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.about__identity div { background: var(--night); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; }

.about__identity dt { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-lt); }

.about__identity dd { margin: 0; font-size: .89rem; color: var(--text-2); }

.about__identity a { color: inherit; border-bottom: 1px solid var(--line-2); text-decoration: none; }

.about__identity a:hover { color: var(--indigo-lt); border-color: var(--indigo); }

/* ── Contact ──────────────────────────────────────────────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact__intro h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.contact__intro p { margin: 0 0 1rem; color: var(--text-2); font-size: .95rem; max-width: 38ch; }

.contact__direct { color: var(--text-3); }
.contact__direct a { color: var(--indigo-lt); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact__direct a:hover { border-color: var(--indigo-lt); }

.form { display: flex; flex-direction: column; gap: .8rem; }

.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .8rem; }

.form__row { display: flex; flex-direction: column; gap: .3rem; }

.form__row input, .form__row textarea, .form__row select { width: 100%; }

.form__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ── Pied ─────────────────────────────────────────────────── */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}

.foot p { margin: 0; }

.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.foot a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.foot a:hover { color: var(--indigo-lt); border-color: var(--indigo); }

:focus-visible { outline: 2px solid var(--indigo-lt); outline-offset: 3px; border-radius: 6px; }

/* ── Adaptations ──────────────────────────────────────────── */

@media (max-width: 62rem) {
  .page { padding: 1.5rem 1.25rem 2.5rem; gap: 3rem; }
  .hero, .about, .contact { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .app { font-size: 13px; }
  .app__body { padding: .8rem; gap: .8rem; }
  .vac__title { display: none; }
}

@media (max-width: 30rem) {
  .app-day__name { font-size: .5rem; }
  .vac__badge { width: 38px; }
  .vac__day { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
}
