/* =============================================================================
   DOKOTERA — Styles specifiques aux pages
   ========================================================================== */

/* --- Page d'accueil : banniere -------------------------------------------- */
/* Fond radial sombre (noir -> brun jaune) dont le halo glisse d'une specialite
   a l'autre (--hero-shift, 0 a 1). --px / --py : position de la souris. */

.hero {
  --hero-shift: 0;
  --px: 0;
  --py: 0;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: #000;
}

.hero__glow {
  position: absolute;
  inset: -20%;
  z-index: -3;
  background: radial-gradient(
    circle at calc(38% + var(--hero-shift) * 24%) 50%,
    #06403e 0%,
    #041b1a 32%,
    #020606 62%,
    #000 100%
  );
  transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-10);
  width: 100%;
}

/* --- Colonne gauche ---------------------------------------------------------- */

.hero__left {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: var(--r-full);
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--paper);
}
/* Mot evide : contour jaune, interieur transparent. */
.hero__title-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--brand);
}

.hero__lead {
  max-width: 40ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

/* Bouton pilule avec pastille « + » jaune. */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-5);
  width: fit-content;
  padding: 6px 6px 6px 24px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--t-base), transform var(--t-base);
}
.hero__cta:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}
.hero__cta-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--ink);
  transition: transform var(--t-base);
}
.hero__cta:hover .hero__cta-plus {
  transform: rotate(90deg);
}
.hero__cta-plus svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.hero__badge-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--brand);
}
.hero__badge-icon svg {
  width: 20px;
  height: 20px;
}
.hero__badge-text {
  display: flex;
  flex-direction: column;
  color: var(--paper);
}
.hero__badge-title {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero__badge-sub {
  font-size: var(--fs-sm);
  font-weight: 600;
}
a.hero__badge-text:hover .hero__badge-sub {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}

/* --- Visuel central dynamique ------------------------------------------------- */

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
  text-align: center;
  position: relative;
  z-index: 1;
  transform: translate(calc(var(--px) * -14px), calc(var(--py) * -14px));
  transition: transform 0.3s ease-out;
}

.hero__medallion {
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 60%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(8, 166, 160, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: hero-float 6s ease-in-out infinite;
}

/* Anneaux qui tournent autour du medaillon. */
.hero__ring {
  position: absolute;
  border-radius: var(--r-full);
  pointer-events: none;
}
.hero__ring--1 {
  inset: -18px;
  border: 1px dashed rgba(8, 166, 160, 0.45);
  animation: hero-spin 40s linear infinite;
}
.hero__ring--2 {
  inset: -42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--brand);
  animation: hero-spin 14s linear infinite reverse;
}

/* Les icones des specialites sont superposees : seule l'active est visible. */
.hero__visual {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 46%;
  aspect-ratio: 1;
  color: var(--brand);
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 12px 30px rgba(8, 166, 160, 0.35));
}
.hero__visual.is-active {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.hero__visual svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.2;
}

.hero__caption-name {
  font-size: var(--fs-xl);
  font-weight: 700;
}
.hero__caption-desc {
  margin-top: 4px;
  max-width: 30ch;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
}

/* --- Colonne droite : cartes de specialites ---------------------------------- */

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-8);
  align-self: stretch;
  text-align: right;
  position: relative;
  z-index: 2;
}

.hero__picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-4);
}

.hero__cards {
  display: grid;
  grid-template-columns: repeat(2, 136px);
  gap: var(--s-4);
  padding-top: 40px;
}

.hero__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 50px var(--s-3) var(--s-4);
  margin-top: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  font: inherit;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hero__card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero__card.is-active {
  border-color: var(--brand);
  background: rgba(8, 166, 160, 0.08);
}
.hero__card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

/* L'icone « sort » de la carte, comme la canette du modele. */
.hero__card-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero__card:hover .hero__card-icon {
  transform: translateX(-50%) translateY(-10px) rotate(-12deg) scale(1.08);
}
.hero__card:not(.is-active) .hero__card-icon {
  background: rgba(255, 255, 255, 0.92);
}
.hero__card-icon svg {
  width: 32px;
  height: 32px;
}
.hero__card-name {
  font-size: var(--fs-sm);
  font-weight: 700;
}
.hero__card-meta {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.hero__arrows {
  display: flex;
  gap: var(--s-2);
}
.hero__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.hero__arrow:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--ink);
}
.hero__arrow svg {
  width: 16px;
  height: 16px;
}

.hero__side-title {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero__side-title .hero__title-outline {
  -webkit-text-stroke-width: 1.5px;
}

/* --- Pictogrammes flottants et croix montantes ------------------------------- */

.hero__floaters {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transform: translate(calc(var(--px) * 40px), calc(var(--py) * 40px));
  transition: transform 0.25s ease-out;
}
.hero__floater {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--brand);
  animation: hero-float 7s ease-in-out infinite;
}
.hero__floater svg {
  width: 100%;
  height: 100%;
}
.f1 { top: 14%; left: 34%; width: 34px; height: 34px; opacity: 0.55; }
.f2 { top: 70%; left: 30%; width: 44px; height: 44px; opacity: 0.35; animation-delay: -2s; }
.f3 { top: 22%; left: 66%; width: 52px; height: 52px; opacity: 0.3; animation-delay: -4s; }
.f4 { top: 80%; left: 62%; width: 26px; height: 26px; opacity: 0.6; animation-delay: -1s; color: var(--paper); }
.f5 { top: 46%; left: 6%; width: 30px; height: 30px; opacity: 0.2; animation-delay: -3s; color: var(--paper); }
.f6 { top: 8%; left: 88%; width: 30px; height: 30px; opacity: 0.25; animation-delay: -5s; color: var(--paper); }

.hero__rise {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
/* Petite croix medicale dessinee en CSS (deux barres). */
.hero__cross {
  position: absolute;
  bottom: -30px;
  opacity: 0;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 100% 30% no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 30% 100% no-repeat;
  animation-name: hero-rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}
@keyframes hero-spin {
  to { rotate: 360deg; }
}
@keyframes hero-rise {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%, 85% { opacity: 0.35; }
  100% { transform: translateY(-110vh) translateX(30px) rotate(180deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__medallion,
  .hero__ring,
  .hero__floater {
    animation: none;
  }
}

/* --- Adaptations responsives --------------------------------------------------- */

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s-8);
  }
  .hero__center {
    grid-column: 2;
    grid-row: 1;
  }
  .hero__right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-end;
  }
  .hero__picker {
    align-items: flex-start;
  }
  .hero__cards {
    grid-template-columns: repeat(4, 136px);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
    padding-block: var(--s-8) var(--s-9);
  }
  .hero__center,
  .hero__right {
    grid-column: auto;
    grid-row: auto;
  }
  .hero__medallion {
    width: min(240px, 64vw);
  }
  .hero__right {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .hero__picker {
    align-items: stretch;
  }
  .hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__arrows {
    justify-content: center;
  }
  .hero__side-title {
    display: none;
  }
  .f3,
  .f6 {
    display: none;
  }
}

/* --- Page d'accueil : « Notre engagement » ------------------------------------
   Gauche : fenetre de terminal (liste des specialites). Droite : engagements. */

.mission__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--s-10);
  align-items: center;
}

.mission__visual {
  position: relative;
  padding-bottom: 28px;
}

/* Fenetre de terminal. */
.term {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink-700) 0%, var(--ink) 65%);
  border: 1px solid var(--ink);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.55);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px var(--s-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.term__dots {
  display: inline-flex;
  gap: 7px;
}
.term__dots i {
  width: 11px;
  height: 11px;
  border-radius: var(--r-full);
  background: var(--ink-500);
}
.term__dots i:first-child {
  background: var(--brand);
}
.term__title {
  color: var(--ink-300);
  font-size: var(--fs-xs);
}
.term__body {
  padding: var(--s-6) var(--s-6) var(--s-7);
}
.term__line {
  line-height: 1.6;
}
.term__cmd {
  margin-bottom: var(--s-4);
}
.term__prompt {
  color: var(--brand);
  margin-right: var(--s-2);
}
.term__dim {
  color: var(--ink-400);
}

.term__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.term__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 7px 10px;
  margin-inline: -10px;
  border-radius: var(--r-sm);
  color: var(--paper);
  transition: background var(--t-fast);
}
.term__row:hover,
.term__row:focus-visible {
  background: rgba(8, 166, 160, 0.1);
  outline: none;
}
.term__row:focus-visible {
  box-shadow: inset 0 0 0 1px var(--brand);
}
.term__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--brand);
  background: rgba(8, 166, 160, 0.1);
  flex-shrink: 0;
}
.term__icon svg {
  width: 15px;
  height: 15px;
}
.term__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-sans);
  font-weight: 600;
  white-space: nowrap;
}
/* Pointilles entre le nom et le compteur, comme une table des matieres. */
.term__leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}
.term__count {
  color: var(--brand);
  white-space: nowrap;
}
.term__count.is-empty {
  color: var(--ink-400);
}
.term__row:hover .term__name {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 4px;
}

.term__ok {
  margin-top: var(--s-5);
  color: var(--ink-300);
}
.term__tag {
  color: var(--monegasy-on-dark);
  white-space: pre;
}
.term__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--brand);
  animation: term-blink 1.1s steps(2, start) infinite;
}

/* Badge chiffre, a cheval sur l'angle du terminal (comme « 16 articles »). */
.mission__stat {
  position: absolute;
  right: -18px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 22px;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
}
.mission__stat strong {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.mission__stat span {
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
}

/* --- Colonne texte ---------------------------------------------------------------- */

.mission__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.mission__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--brand);
}
.mission__title {
  margin-top: var(--s-4);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.mission__lead {
  margin-top: var(--s-5);
  max-width: 60ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-600);
}

.mission__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.mission__card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.mission__card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}
.mission__card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--ink);
  transition: background var(--t-base);
}
.mission__card:hover .mission__card-icon {
  background: var(--brand);
}
.mission__card-icon svg {
  width: 20px;
  height: 20px;
}
.mission__card strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
}
.mission__card span > span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-500);
}

.mission__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.mission__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base);
}
.mission__link:hover svg {
  transform: translateX(4px);
}

/* --- Animation d'apparition des sections (armee par public/js/mission.js) ------ */

.is-armed [data-term-line] {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.is-armed [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is-armed [data-term-line].is-shown,
.is-armed [data-reveal].is-shown {
  opacity: 1;
  transform: none;
}

@keyframes term-blink {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .term__cursor {
    animation: none;
  }
}

@media (max-width: 1000px) {
  .mission__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-9);
  }
  .mission__visual {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .mission__grid {
    grid-template-columns: 1fr;
  }
  .term__body {
    padding: var(--s-5) var(--s-4) var(--s-6);
  }
  .term__count {
    font-size: var(--fs-xs);
  }
  .mission__stat {
    right: var(--s-3);
    padding: 10px 16px;
  }
  .mission__stat strong {
    font-size: 1.9rem;
  }
}

/* --- Page d'accueil : « Parcours patient » ------------------------------------
   Gauche : 4 etapes dans un cadre unique (grille 2 x 2 separee par des filets).
   Droite : guides pratiques (vignettes d'icones, pas de photos). */

.guide {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.guide__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}
.guide__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.guide__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--brand);
}
.guide__title {
  margin-top: var(--s-3);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.guide__lead {
  margin-top: var(--s-3);
  font-size: var(--fs-md);
  color: var(--ink-500);
}
.guide__all {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.guide__all svg,
.guide__card-meta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-base);
}
.guide__all:hover svg {
  transform: translateX(4px);
}

.guide__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}

/* --- Etapes ----------------------------------------------------------------------- */

.guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.guide__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-6);
  transition: background var(--t-base);
}
/* Filets internes : vertical entre les colonnes, horizontal entre les lignes. */
.guide__step:nth-child(odd) {
  border-right: 1px solid var(--line-strong);
}
.guide__step:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line-strong);
}
.guide__step:hover {
  background: var(--brand-mist);
}

.guide__step-num {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-400);
  transition: color var(--t-base);
}
.guide__step:hover .guide__step-num {
  color: var(--ink);
}
.guide__step-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--ink);
  transition: background var(--t-base), transform var(--t-base);
}
.guide__step:hover .guide__step-icon {
  background: var(--brand);
  transform: rotate(-6deg);
}
.guide__step-icon svg {
  width: 22px;
  height: 22px;
}
.guide__step-title {
  padding-right: var(--s-6);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: var(--lh-snug);
}
.guide__step-text {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-500);
}

/* --- Guides pratiques ------------------------------------------------------------- */

.guide__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.guide__aside-title {
  margin-bottom: var(--s-1);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.guide__card {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.guide__card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}
.guide__card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Vignette : carre uni avec une icone (a la place d'une photo). */
.guide__thumb {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--ink);
  transition: background-color var(--t-base);
}
.guide__card:hover .guide__thumb {
  background: var(--brand);
}
.guide__thumb--dark,
.guide__card:hover .guide__thumb--dark {
  background: var(--ink);
  color: var(--brand);
}
.guide__thumb svg {
  width: 30px;
  height: 30px;
  transition: transform var(--t-base);
}
.guide__card:hover .guide__thumb svg {
  transform: scale(1.12);
}

.guide__card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.guide__card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.guide__card-title {
  margin-top: 4px;
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: var(--lh-snug);
}
.guide__card-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

@media (max-width: 1000px) {
  .guide__layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .guide__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .guide__steps {
    grid-template-columns: 1fr;
  }
  .guide__step:nth-child(odd) {
    border-right: 0;
  }
  .guide__step:not(:last-child) {
    border-bottom: 1px solid var(--line-strong);
  }
  .guide__thumb {
    width: 64px;
    height: 64px;
  }
}

/* --- Page d'accueil : « Espace praticien » -------------------------------------
   Meme grille et memes proportions que « Notre engagement », en miroir :
   texte a gauche, terminal a droite (reutilise les styles .term). */

.pro {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.pro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-10);
  align-items: center;
}

.pro__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.pro__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--brand);
}
.pro__title {
  margin-top: var(--s-4);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.pro__lead {
  margin-top: var(--s-5);
  max-width: 58ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-600);
}

.pro__list {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.pro__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-500);
}
.pro__list strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--ink);
}
.pro__list-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--ink);
  transition: background var(--t-base), transform var(--t-base);
}
.pro__list li:hover .pro__list-icon {
  background: var(--brand);
  transform: rotate(-6deg);
}
.pro__list-icon svg {
  width: 20px;
  height: 20px;
}

.pro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.pro__actions .btn svg {
  width: 18px;
  height: 18px;
}

/* --- Terminal (etapes d'inscription) ------------------------------------------ */

.pro__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pro__steps .term__dim {
  margin-left: var(--s-2);
  font-size: var(--fs-xs);
}
/* Etat de chaque etape : coche (terminee), anneau qui tourne (en cours),
   cercle vide (a venir). */
.pro__steps .term__line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 3px 0;
}
.pro__state {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: var(--r-full);
}
.pro__state--done {
  background: rgba(60, 207, 142, 0.16);
  color: var(--monegasy-on-dark);
}
.pro__state--done svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.pro__state--run {
  border: 2px solid rgba(8, 166, 160, 0.25);
  border-top-color: var(--brand);
  animation: pro-spin 0.9s linear infinite;
}
.pro__state--wait {
  border: 2px dashed rgba(255, 255, 255, 0.28);
}
.pro__step-run {
  color: var(--paper);
}
.pro__step-wait {
  color: var(--ink-400);
}

@keyframes pro-spin {
  to {
    transform: rotate(360deg);
  }
}

.pro__kv {
  margin: var(--s-5) 0 0;
  padding-top: var(--s-4);
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
}
.pro__kv > div {
  display: grid;
  grid-template-columns: 12ch minmax(0, 1fr);
  gap: var(--s-3);
  padding: 2px 0;
}
.pro__kv dt {
  color: var(--brand);
}
.pro__kv dd {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pro__state--run {
    animation: none;
  }
}

@media (max-width: 1000px) {
  .pro__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-9);
  }
  .pro__visual {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .pro__kv > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pro__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* --- Page « Espace praticien » : banniere ------------------------------------
   Version claire, comme les autres sections de la page : fond blanc, texte
   noir, jaune en accent. Seule la page d'accueil garde une banniere sombre. */

.dr-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.dr-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s-10);
  align-items: center;
  padding-block: var(--s-11);
}

.dr-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.dr-hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--brand);
}

.dr-hero__title {
  margin-top: var(--s-5);
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
}
/* Deuxieme ligne surlignee de jaune (lisible sur fond blanc). */
.dr-hero__outline {
  background: linear-gradient(transparent 60%, var(--brand) 60%, var(--brand) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 2px;
}

.dr-hero__lead {
  margin-top: var(--s-6);
  max-width: 52ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-600);
}
.dr-hero__lead strong {
  color: var(--ink);
  box-shadow: inset 0 -0.35em 0 var(--brand-soft);
}

.dr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.dr-hero__actions .btn svg {
  width: 18px;
  height: 18px;
}

/* Carte blanche bordee, comme les cartes « Notre engagement ». */
.dr-hero__card {
  padding: var(--s-7);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.3);
}
.dr-hero__card-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.dr-hero__list {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.dr-hero__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--ink-500);
}
.dr-hero__list strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--ink);
}
.dr-hero__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--ink);
  transition: background var(--t-base), transform var(--t-base);
}
.dr-hero__list li:hover .dr-hero__icon {
  background: var(--brand);
  transform: rotate(-6deg);
}
.dr-hero__icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1000px) {
  .dr-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
    padding-block: var(--s-9);
  }
}

@media (max-width: 560px) {
  .dr-hero__card {
    padding: var(--s-5);
  }
  .dr-hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* --- Page « Espace praticien » : etapes (terminal) + bande d'appel ----------
   Texte a gauche, terminal a droite (styles .term et .pro__state de l'accueil). */

.drsteps {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--s-10);
  align-items: center;
}

.drsteps__facts {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
}
.drsteps__facts li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.drsteps__facts svg {
  width: 18px;
  height: 18px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
}
.drsteps__content .btn svg {
  width: 18px;
  height: 18px;
}

.drsteps__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drsteps__step {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.drsteps__step:last-child {
  border-bottom: 0;
}
.drsteps__step .pro__state {
  margin-top: 1px;
}
.drsteps__num {
  color: var(--brand);
  font-weight: 600;
  min-width: 2ch;
  line-height: 22px;
}
.drsteps__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.drsteps__body strong {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--paper);
  line-height: 22px;
}
.drsteps__body span {
  font-size: var(--fs-xs);
  color: var(--ink-300);
}
.drsteps__step--wait .drsteps__body strong,
.drsteps__step--wait .drsteps__num {
  color: var(--ink-400);
}
.drsteps__badge {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(8, 166, 160, 0.4);
  color: var(--brand);
  font-size: 0.6875rem;
  line-height: 18px;
}

/* Appel a l'action : terminal large, version claire (fond blanc, texte noir)
   pour contraster avec le terminal noir des etapes. */
.drcta {
  margin-top: var(--s-10);
}
.term.drcta {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.35);
}
.drcta .term__bar {
  background: var(--surface-2);
  border-bottom-color: var(--line);
}
.drcta .term__dots i {
  background: var(--line-strong);
}
.drcta .term__dots i:first-child {
  background: var(--brand);
}
.drcta .term__title,
.drcta .term__dim {
  color: var(--ink-500);
}
/* « $ » : pastille jaune, le jaune seul serait illisible sur blanc. */
.drcta .term__prompt {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: var(--r-xs);
  background: var(--brand);
  color: var(--ink);
}
.drcta__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-8);
  padding: var(--s-7) var(--s-7) var(--s-8);
}
.drcta__main {
  min-width: 0;
}
.drcta__title {
  margin-top: var(--s-3);
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.drcta__kv {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  margin: var(--s-4) 0 0;
}
.drcta__kv > div {
  display: flex;
  gap: var(--s-2);
}
.drcta__kv dt {
  color: var(--ink-500);
}
.drcta__kv dd {
  margin: 0;
  font-weight: 700;
}
.drcta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--font-sans);
}
.drcta__actions .btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1000px) {
  .drsteps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-8);
  }
  .drsteps__term {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .drsteps__badge {
    display: none;
  }
  .drcta__body {
    padding: var(--s-5) var(--s-4) var(--s-6);
  }
  .drcta__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* --- Terminal clair : lignes cle / valeur lisibles sur fond blanc ---------- */
.drcta .pro__kv {
  border-top-color: var(--line);
}
.drcta .pro__kv dt {
  color: var(--ink-500);
}
.drcta .pro__kv dd {
  font-weight: 700;
}
.drcta a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 3px;
}

/* --- Page « Specialites » ---------------------------------------------------------- */

.spec__filter {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: min(320px, 100%);
  padding: 0 var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.spec__filter:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.spec__filter svg {
  width: 18px;
  height: 18px;
  color: var(--ink-500);
}
.spec__filter input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--fs-sm);
  outline: none;
}

.spec__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}

.spec-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.spec-card:hover,
.spec-card:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 16px 34px -20px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}
.spec-card[hidden] {
  display: none;
}
.spec-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--s-2);
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: var(--ink);
  transition: background var(--t-base), transform var(--t-base);
}
.spec-card:hover .spec-card__icon {
  background: var(--brand);
  transform: rotate(-6deg);
}
.spec-card__icon svg {
  width: 22px;
  height: 22px;
}
.spec-card__name {
  font-size: var(--fs-md);
  font-weight: 700;
}
.spec-card__desc {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-500);
}
.spec-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.spec-card__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.spec-card__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--r-full);
  background: var(--success);
}
.spec-card__go svg {
  width: 18px;
  height: 18px;
  transition: transform var(--t-base);
}
.spec-card:hover .spec-card__go svg {
  transform: translateX(4px);
}
/* Specialite sans praticien disponible : carte attenuee. */
.spec-card.is-empty {
  background: var(--surface-2);
}
.spec-card.is-empty .spec-card__icon {
  background: var(--surface-3);
  color: var(--ink-400);
}
.spec-card.is-empty .spec-card__count {
  color: var(--ink-400);
}

.spec__none {
  margin-top: var(--s-5);
  color: var(--ink-500);
}
.spec__none a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brand);
}
.spec__hint {
  margin-top: var(--s-3);
  max-width: 60ch;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-600);
}

/* --- Page « Comment ca marche » --------------------------------------------------- */

/* Frise verticale : un marqueur par etape, relie par un trait. */
.howto {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 820px;
}
.howto__step {
  position: relative;
  display: flex;
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}
.howto__step:last-child {
  padding-bottom: 0;
}
.howto__step::before {
  content: '';
  position: absolute;
  top: 56px;
  bottom: 8px;
  left: 27px;
  width: 2px;
  background: linear-gradient(var(--brand), var(--line-strong));
}
.howto__step:last-child::before {
  display: none;
}
.howto__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 2px solid var(--ink);
  color: var(--ink);
  transition: background var(--t-base), transform var(--t-base);
}
.howto__step:hover .howto__marker {
  background: var(--brand);
  transform: scale(1.06);
}
.howto__marker svg {
  width: 24px;
  height: 24px;
}
.howto__body {
  flex: 1;
  min-width: 0;
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.howto__step:hover .howto__body {
  border-color: var(--ink);
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.35);
}
.howto__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-400);
}
.howto__title {
  margin-top: 2px;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.howto__text {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-500);
}
.howto__tags {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.howto__tags li {
  padding: 3px 10px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-600);
}

.howto__pay {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  color: var(--ink-600);
}
.howto__methods {
  list-style: none;
  margin: var(--s-4) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.howto__methods li {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.howto__fees {
  margin-top: 0;
}

.howto__commit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

@media (max-width: 900px) {
  .howto__commit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .howto__step {
    gap: var(--s-4);
  }
  .howto__marker {
    width: 44px;
    height: 44px;
  }
  .howto__step::before {
    top: 44px;
    left: 21px;
  }
  .howto__body {
    padding: var(--s-4);
  }
  .spec__filter {
    width: 100%;
  }
}

/* --- Page « Trouver un praticien » ---------------------------------------------
   Banniere claire (.dr-hero) + formulaire dans un terminal clair, puis barre de
   resultats (compteur, filtres actifs, outils) au-dessus des cartes. */

.finder-hero .dr-hero__inner {
  padding-block: var(--s-10);
}

.finder-hero__facts {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
}
.finder-hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.finder-hero__facts svg {
  width: 16px;
  height: 16px;
  padding: 4px;
  box-sizing: content-box;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
}

/* Formulaire dans le terminal clair. */
.finder {
  margin: 0;
  font-family: var(--font-sans);
}
.finder__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  padding: var(--s-6);
}
.finder__body .term__cmd {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.finder__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

/* Barre de resultats. */
.finder-results {
  background: var(--surface-2);
}
.finder-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-6);
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.finder-bar__count {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-md);
}
.finder-bar__count strong {
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.finder-bar__count span:last-child {
  color: var(--ink-500);
}
.finder-bar__prompt {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  align-self: center;
  border-radius: var(--r-xs);
  background: var(--brand);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.finder-bar__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.finder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background var(--t-fast);
}
.finder-chip:hover {
  background: var(--ink-700);
}
.finder-chip svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.finder-bar__reset {
  margin-left: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finder-bar__reset:hover {
  color: var(--ink);
}

/* L'interrupteur sert aussi de bouton « Autour de moi ». */
button.search-toggle {
  background: var(--surface);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.search-toggle svg {
  width: 16px;
  height: 16px;
}
.finder-sort {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.finder-sort .select {
  width: auto;
}

@media (max-width: 640px) {
  .finder__row {
    grid-template-columns: 1fr;
  }
  .finder__body {
    padding: var(--s-5) var(--s-4);
  }
  .finder-bar {
    align-items: stretch;
  }
  .finder-bar .search-tools {
    width: 100%;
  }
}

/* Barre de recherche horizontale (page resultats). */
.search-bar {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}

/* --- Carte praticien -------------------------------------------------------- */

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-6);
}

/* --- Carte praticien « pulse » (partials/doctor-card.ejs) ---------------------
   Carte blanche et sobre (noir sur blanc) qui monte au survol ; deux anneaux
   jaunes pulsent autour. Le jaune est reserve au bouton, aux etoiles et au survol. */

.dcard {
  position: relative;
  border-radius: 22px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dcard:hover,
.dcard:focus-within {
  transform: translateY(-10px);
}

/* Anneaux pulsants : invisibles au repos, animes au survol / focus clavier. */
.dcard__ring {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 22px;
  border: 2px solid var(--brand);
  opacity: 0;
  pointer-events: none;
}
.dcard:hover .dcard__ring,
.dcard:focus-within .dcard__ring {
  animation: dcard-pulse 2s ease-out infinite;
}
.dcard:hover .dcard__ring + .dcard__ring,
.dcard:focus-within .dcard__ring + .dcard__ring {
  animation-delay: 0.7s;
}
@keyframes dcard-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.07); }
}

.dcard__body {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.dcard:hover .dcard__body,
.dcard:focus-within .dcard__body {
  border-color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.28);
}

/* --- Zone visuelle -------------------------------------------------------------- */

.dcard__media {
  position: relative;
  height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
}
.dcard__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--surface) 0%, transparent 55%);
  opacity: 1;
  transition: opacity 0.3s;
}
.dcard:hover .dcard__glow {
  opacity: 1;
}

.dcard__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dcard__badge.is-live {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.dcard__badge.is-muted {
  background: var(--surface-3);
  color: var(--ink-600);
}
.dcard__live {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(15, 122, 69, 0.25);
}

.dcard__distance {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}
.dcard__distance svg {
  width: 12px;
  height: 12px;
}

.dcard__avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 6px var(--surface), 0 10px 24px -8px rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 0.3s;
}
.dcard__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dcard:hover .dcard__avatar {
  transform: scale(1.08) translateY(-4px);
}

/* Pastille de specialite accrochee au portrait. */
.dcard__spec-icon {
  position: absolute;
  z-index: 2;
  left: calc(50% + 26px);
  top: calc(50% + 22px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-full);
  background: var(--brand);
  color: var(--ink);
  border: 3px solid var(--surface);
  transition: transform 0.3s;
}
.dcard:hover .dcard__spec-icon {
  transform: translateY(-4px) rotate(-10deg);
}
.dcard__spec-icon svg {
  width: 16px;
  height: 16px;
}

/* --- Informations ------------------------------------------------------------- */

.dcard__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}
.dcard__brand {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.dcard__name {
  margin-top: 4px;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: var(--lh-snug);
}
.dcard__name a {
  color: var(--ink);
}
.dcard__name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-underline-offset: 4px;
}
.dcard__desc {
  margin-top: 4px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-500);
}

.dcard__tags {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dcard__tags li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.6875rem;
  color: var(--ink-600);
}
.dcard__tags svg {
  width: 12px;
  height: 12px;
}

.dcard__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
/* Etoiles remplies au prorata de la note (--rating sur 5). */
.dcard__stars {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 2px;
  line-height: 1;
}
.dcard__stars::before {
  content: '★★★★★';
  background: linear-gradient(
    90deg,
    var(--brand-strong) calc(var(--rating) / 5 * 100%),
    var(--line-strong) calc(var(--rating) / 5 * 100%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dcard__rating-value {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.dcard__rating-value span {
  font-weight: 400;
  color: var(--ink-400);
}
.dcard__price {
  text-align: right;
}
.dcard__price strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.dcard__price span {
  font-size: 0.6875rem;
  color: var(--ink-400);
}

.dcard__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 11px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
}
.dcard__cta:hover {
  transform: translateY(-2px);
  background: var(--brand-strong);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.3);
}
.dcard__cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.dcard__cta svg {
  width: 16px;
  height: 16px;
}

/* Agenda ferme : carte attenuee, bouton neutre. */
.dcard.is-closed .dcard__avatar {
  filter: grayscale(0.6);
}
.dcard.is-closed .dcard__cta {
  background: var(--surface-3);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .dcard,
  .dcard__avatar,
  .dcard__spec-icon {
    transition: none;
  }
  .dcard:hover,
  .dcard:focus-within,
  .dcard:hover .dcard__avatar {
    transform: none;
  }
  .dcard:hover .dcard__ring,
  .dcard:focus-within .dcard__ring {
    animation: none;
  }
}

.doctor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}

.doctor-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.doctor-card__head {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}

.doctor-card__name {
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.25;
}

.doctor-card__specialty {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doctor-card__specialty svg {
  width: 15px;
  height: 15px;
  color: var(--ink-400);
  flex-shrink: 0;
}

.doctor-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-600);
}

.doctor-card__meta li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.doctor-card__meta svg {
  width: 15px;
  height: 15px;
  color: var(--ink-400);
  flex-shrink: 0;
}

.doctor-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.doctor-card__price strong {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.doctor-card__price span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

/* --- Fiche praticien -------------------------------------------------------- */

.doctor-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-6);
  align-items: start;
}

.doctor-hero__price {
  text-align: right;
  padding: var(--s-4) var(--s-5);
  background: var(--brand-mist);
  border: 1px solid var(--brand);
  border-radius: var(--r-md);
}

.doctor-hero__price strong {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doctor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--s-6);
  align-items: start;
}

.booking-panel {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.booking-panel__head {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-5);
}

.booking-panel__body {
  padding: var(--s-5);
}

/* --- Calendrier de creneaux -------------------------------------------------- */

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.calendar-nav__label {
  font-weight: 700;
  font-size: var(--fs-base);
  text-transform: capitalize;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

.day-chip {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-1);
  text-align: center;
  transition: all var(--t-fast);
  background: var(--surface);
  cursor: pointer;
}

.day-chip:hover:not(.is-off) {
  border-color: var(--ink-400);
}

.day-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.day-chip.is-off {
  opacity: 0.42;
  cursor: not-allowed;
  background: var(--surface-3);
}

.day-chip__weekday {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-400);
}

.day-chip.is-active .day-chip__weekday {
  color: var(--brand);
}

.day-chip__num {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
}

.day-chip__count {
  font-size: 0.625rem;
  color: var(--ink-400);
  margin-top: 2px;
}

.day-chip.is-active .day-chip__count {
  color: rgba(255, 255, 255, 0.7);
}

.day-chip.is-today .day-chip__num::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: var(--r-full);
  background: var(--brand-deep);
  margin: 2px auto 0;
}

/* Grille des heures. */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: var(--s-2);
}

.slot {
  padding: 10px var(--s-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: all var(--t-fast);
  cursor: pointer;
}

.slot:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--brand-mist);
}

.slot.is-selected {
  background: var(--brand);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/*
 * Creneau indisponible : grise, barre et NON CLIQUABLE.
 * Exigence fonctionnelle : un creneau reserve ou verrouille par un paiement
 * en cours doit etre immediatement inaccessible aux autres patients.
 */
.slot:disabled,
.slot.is-taken {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--ink-300);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.slot-legend {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
}

.slot-legend__item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.slot-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--line-strong);
}
.slot-legend__swatch--free {
  background: var(--surface);
}
.slot-legend__swatch--taken {
  background: var(--surface-3);
}
.slot-legend__swatch--selected {
  background: var(--brand);
  border-color: var(--ink);
}

/* --- Tunnel de paiement ------------------------------------------------------ */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--s-7);
  align-items: start;
}

.checkout__summary {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.checkout__summary .data-list__key {
  color: var(--ink-300);
}
.checkout__summary .data-list__val {
  color: var(--paper);
}
.checkout__summary .data-list__row {
  border-color: rgba(255, 255, 255, 0.14);
}

.checkout__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 2px solid var(--brand);
}

.checkout__total strong {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.checkout__gateway {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--ink-300);
}

/* --- Logo Monegasy (partenaire de paiement) ---------------------------------- */

.mgy-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.mgy-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 0.42em;
  background: var(--paper);
  color: var(--monegasy);
  flex-shrink: 0;
}
.mgy-logo__mark svg {
  width: 100%;
  height: 100%;
}
.mgy-logo--light .mgy-logo__mark {
  box-shadow: inset 0 0 0 1px var(--line);
}
.mgy-logo--light .mgy-logo__word {
  color: var(--monegasy);
}
.mgy-logo--dark .mgy-logo__word {
  color: var(--paper);
}
.mgy-logo--sm {
  font-size: var(--fs-sm);
}
.mgy-logo--md {
  font-size: var(--fs-lg);
}
.mgy-logo--lg {
  font-size: 2.25rem;
}

/* --- Panneau de paiement ------------------------------------------------------
   Style « systeme » : grille nette, numerotation et donnees en monospace,
   aucun ornement superflu. */

.pay-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.pay-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}

.pay-panel__title {
  margin-top: var(--s-2);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}

.pay-panel__note {
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.pay-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pay-steps__item {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-base);
}
.pay-steps__item + .pay-steps__item {
  border-top: 1px solid var(--line);
}
.pay-steps__num {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-400);
  flex-shrink: 0;
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}
.pay-methods__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-400);
  margin-right: var(--s-2);
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--surface-2);
}
.pay-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--chip);
}

/* Bouton d'action : noir de la charte, liseré jaune au survol. */
.btn-monegasy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  width: 100%;
  min-height: 60px;
  padding: var(--s-3) var(--s-5);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn-monegasy:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}
.btn-monegasy:active {
  transform: translateY(1px);
}
.btn-monegasy:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.btn-monegasy__label strong {
  color: var(--brand);
  font-size: var(--fs-lg);
  margin-left: var(--s-1);
}
.btn-monegasy__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-300);
}
.btn-monegasy.is-loading {
  cursor: progress;
  opacity: 0.75;
}
.btn-monegasy.is-loading .btn-monegasy__label::after {
  content: ' · ouverture...';
  font-size: var(--fs-sm);
  color: var(--ink-300);
}

/* Deux facons de payer : web (bouton principal) ou QR code (telephone). */
.pay-choice {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pay-choice__qr {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pay-choice__or {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-400);
}
.pay-choice__or::before,
.pay-choice__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn-qr {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-3) var(--s-5);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.btn-qr:hover {
  border-color: var(--ink);
  background: var(--brand-mist);
}
.btn-qr:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
.btn-qr__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.btn-qr__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.btn-qr__text span {
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.btn-qr.is-loading {
  cursor: progress;
  opacity: 0.7;
}

/* Sur telephone, on ne scanne pas son propre ecran : bouton web seul. */
@media (hover: none) and (pointer: coarse) {
  .pay-choice__qr {
    display: none;
  }
}

/* QR code de la page d'attente. */
.pay-qr {
  margin: var(--s-6) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.pay-qr__code {
  position: relative;
  width: min(260px, 70vw);
  padding: var(--s-3);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
}
.pay-qr__code svg {
  display: block;
  width: 100%;
  height: auto;
}
/* Symbole Monegasy au centre : le niveau de correction M absorbe la zone masquee. */
.pay-qr__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 4px;
  background: var(--paper);
  border-radius: var(--r-sm);
}
.pay-qr__badge .mgy-logo--md {
  font-size: 1.05rem;
}
.pay-qr__caption {
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.pay-qr.is-closed {
  display: none;
}
.pay-qr__alt {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.pay-qr__alt a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pay-meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-2) var(--s-5);
}
.pay-meta__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pay-meta__row dt {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-400);
}
.pay-meta__row dt svg {
  width: 14px;
  height: 14px;
}
.pay-meta__row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}

/* Journal d'etat de la page d'attente, facon sortie console. */
.pay-log {
  list-style: none;
  margin: var(--s-7) auto 0;
  padding: var(--s-4) var(--s-5);
  max-width: 440px;
  text-align: left;
  background: var(--ink);
  color: var(--ink-300);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.9;
}
.pay-log__state {
  white-space: pre;
  margin-right: var(--s-2);
}
.pay-log__line.is-done {
  color: var(--paper);
}
.pay-log__line.is-done .pay-log__state {
  color: var(--monegasy-on-dark);
}
.pay-log__line.is-running {
  color: var(--paper);
}
.pay-log__line.is-running .pay-log__state {
  color: var(--brand);
  animation: blink 1.2s steps(2, start) infinite;
}
.pay-log__line.is-failed .pay-log__state {
  color: #ff6b6b;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.pay-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.pay-trust > svg {
  width: 16px;
  height: 16px;
}

.waiting__phone--gateway {
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Etapes du tunnel. */
.steps {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-7);
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-400);
}

.step__num {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: var(--fs-xs);
  font-weight: 800;
  flex-shrink: 0;
}

.step.is-done .step__num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--brand);
}

.step.is-current {
  color: var(--ink);
}
.step.is-current .step__num {
  background: var(--brand);
  border-color: var(--ink);
  color: var(--ink);
}

.step__line {
  width: 32px;
  height: 1.5px;
  background: var(--line-strong);
}

/* Attente de validation du paiement. */
.waiting {
  text-align: center;
  padding: var(--s-10) var(--s-6);
}

.waiting__phone {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--s-6);
  border-radius: var(--r-full);
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  position: relative;
}

.waiting__phone svg {
  width: 44px;
  height: 44px;
}

/* Ondes de pulsation pendant l'attente du PUSH USSD. */
.waiting__phone::before,
.waiting__phone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  border: 2px solid var(--brand);
  animation: pulse-ring 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
}
.waiting__phone::after {
  animation-delay: 1.2s;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.countdown {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Confirmation. */
.success-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--s-6);
  border-radius: var(--r-full);
  background: var(--brand);
  display: grid;
  place-items: center;
  animation: pop-in var(--t-slow) cubic-bezier(0.2, 1.4, 0.5, 1);
}

.success-mark svg {
  width: 44px;
  height: 44px;
}

@keyframes pop-in {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Billet de rendez-vous. */
.ticket {
  border: 1.5px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.ticket__head {
  background: var(--brand);
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}

.ticket__ref {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.02em;
}

.ticket__body {
  padding: var(--s-6);
}

/* Encoche laterale facon ticket. */
.ticket__perf {
  height: 0;
  border-top: 2px dashed var(--line-strong);
  position: relative;
}
.ticket__perf::before,
.ticket__perf::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1.5px solid var(--ink);
}
.ticket__perf::before {
  left: -13px;
}
.ticket__perf::after {
  right: -13px;
}

/* --- Agenda praticien --------------------------------------------------------- */

.agenda-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--s-2);
}

.agenda-day {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.agenda-day.is-today {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--brand-soft);
}

.agenda-day__head {
  padding: var(--s-3);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.agenda-day.is-today .agenda-day__head {
  background: var(--brand);
}

.agenda-day__weekday {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-400);
}

.agenda-day.is-today .agenda-day__weekday {
  color: var(--ink-700);
}

.agenda-day__num {
  font-size: var(--fs-lg);
  font-weight: 800;
}

.agenda-day__body {
  padding: var(--s-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  overflow-y: auto;
  flex: 1;
}

.agenda-item {
  background: var(--brand-mist);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-xs);
  padding: var(--s-2) var(--s-3);
  font-size: var(--fs-xs);
  transition: background var(--t-fast);
}

.agenda-item:hover {
  background: var(--brand-soft);
}

.agenda-item__time {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.agenda-item__patient {
  color: var(--ink-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-item--done {
  background: var(--surface-3);
  border-left-color: var(--ink-300);
}

/* Editeur de plages horaires. */
.hours-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: var(--s-3);
  align-items: end;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

/* --- Graphique de revenus (administration) ------------------------------------ */

.chart {
  display: flex;
  align-items: flex-end;
  gap: var(--s-2);
  height: 210px;
  padding-top: var(--s-4);
}

.chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--s-2);
  height: 100%;
  min-width: 0;
}

.chart__stack {
  width: 100%;
  max-width: 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}

.chart__bar {
  width: 100%;
  background: var(--surface-4);
  border-radius: var(--r-xs) var(--r-xs) 0 0;
  transition: background var(--t-fast);
  position: relative;
  min-height: 2px;
}

/* Part de commission mise en avant en jaune. */
.chart__bar--commission {
  background: var(--brand);
  border-radius: 0 0 var(--r-xs) var(--r-xs);
}

.chart__col:hover .chart__bar {
  background: var(--ink-300);
}
.chart__col:hover .chart__bar--commission {
  background: var(--brand-strong);
}

.chart__label {
  font-size: 0.625rem;
  color: var(--ink-400);
  font-weight: 600;
  white-space: nowrap;
  text-transform: capitalize;
}

.chart-legend {
  display: flex;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.chart-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -1px;
}

/* --- Authentification ---------------------------------------------------------- */

/* Ecran d'authentification : une carte unique, centree horizontalement et
   verticalement. La gouttiere garantit un espace a gauche et a droite. */
.auth-page {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  padding: var(--s-9) var(--gutter) var(--s-10);
  background-color: var(--surface-2);
  background-image: radial-gradient(62% 46% at 50% 0%, rgba(8, 166, 160, 0.18), transparent 72%);
}

.auth-box {
  width: 100%;
  max-width: 440px;
}

.auth-box--wide {
  max-width: 620px;
}

.auth-head {
  text-align: center;
  margin-bottom: var(--s-6);
}

.auth-head__mark {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  background: var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-5);
  box-shadow: var(--shadow-sm);
}

.auth-head__mark img {
  width: 30px;
  height: 30px;
}

.auth-head__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  margin: 0;
}

.auth-head__lead {
  color: var(--ink-500);
  font-size: var(--fs-base);
  margin-top: var(--s-2);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-8) var(--s-7);
}

.auth-legal {
  color: var(--ink-500);
  font-size: var(--fs-sm);
}

/* Bandeau de reassurance sous la carte. */
.auth-trust {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-5);
  color: var(--ink-400);
  font-size: var(--fs-xs);
}

.auth-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-trust svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.auth-switch {
  text-align: center;
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.auth-switch a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* --- Page d'erreur ------------------------------------------------------------- */

.error-page {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--s-5);
  padding: var(--s-10) var(--gutter);
  overflow: hidden;
  background-color: var(--surface-2);
  background-image: radial-gradient(60% 44% at 50% 0%, rgba(8, 166, 160, 0.16), transparent 72%);
}

/* Code HTTP en filigrane : presence graphique sans voler la lecture. */
.error-page__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(16rem, 42vw, 34rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--ink);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
}

.error-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-8) var(--s-7) 0;
  text-align: center;
}

.error-card__icon {
  width: 58px;
  height: 58px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-5);
  background: var(--surface-3);
  color: var(--ink);
}

.error-card__icon svg {
  width: 26px;
  height: 26px;
}

.error-card__icon--brand {
  background: var(--brand-soft);
}
.error-card__icon--warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.error-card__icon--danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.error-card__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.error-card__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  margin-top: var(--s-2);
}

.error-card__lead {
  color: var(--ink-500);
  font-size: var(--fs-base);
  margin-top: var(--s-3);
  max-width: 46ch;
  margin-inline: auto;
}

/* Message technique renvoye par le serveur. */
.error-card__detail {
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-600);
}

.error-list {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  text-align: left;
}

.error-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--danger-bg);
  color: #8c1c1c;
  font-size: var(--fs-sm);
}

.error-list__item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-3);
  margin-top: var(--s-6);
  text-align: left;
}

.error-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.error-card__foot {
  margin-top: var(--s-8);
  padding: var(--s-5) var(--s-7);
  margin-inline: calc(var(--s-7) * -1);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.error-card__foot-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-400);
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.error-links a {
  color: var(--ink-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.error-links a:hover {
  color: var(--ink);
  text-decoration-color: var(--brand);
}

.error-ref {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--ink-400);
  cursor: help;
}

.error-ref svg {
  width: 14px;
  height: 14px;
}

.error-ref .mono {
  color: var(--ink-600);
}

.error-ref__path {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.error-debug {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: left;
}

.error-debug pre {
  white-space: pre-wrap;
  overflow-x: auto;
  color: var(--ink-500);
}

.error-debug summary {
  cursor: pointer;
}

/* --- Blocs de contenu ------------------------------------------------------------ */

.section-head {
  max-width: 62ch;
  margin-bottom: var(--s-8);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink-400);
  margin-bottom: var(--s-3);
}

.section-head__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
}

.section-head__lead {
  color: var(--ink-500);
  margin-top: var(--s-3);
  font-size: var(--fs-md);
}

/* --- Fil de notifications ---------------------------------------------------------- */

.notif-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.notif {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-fast);
}

.notif:hover {
  border-color: var(--line-strong);
}

.notif.is-unread {
  border-left: 3px solid var(--brand);
  background: var(--brand-mist);
}

.notif__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.notif__icon svg {
  width: 18px;
  height: 18px;
}

.notif__title {
  font-weight: 700;
  font-size: var(--fs-base);
}

.notif__msg {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  margin-top: 2px;
}

.notif__time {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  white-space: nowrap;
  margin-left: auto;
}

/* --- Adaptations responsives -------------------------------------------------------- */

@media (max-width: 1100px) {
  .doctor-layout,
  .checkout {
    grid-template-columns: minmax(0, 1fr);
  }
  .booking-panel,
  .checkout__summary {
    position: static;
  }
  .hero__inner {
    gap: var(--s-8);
  }
  .agenda-week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .auth-page {
    padding-block: var(--s-7) var(--s-8);
  }
  .doctor-hero {
    grid-template-columns: auto 1fr;
    padding: var(--s-5);
  }
  .doctor-hero__price {
    grid-column: 1 / -1;
    text-align: left;
  }
  .search-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agenda-week {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: var(--s-6) var(--s-5);
  }
  .hours-row {
    grid-template-columns: 1fr 1fr;
  }
  .day-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Fiche praticien sur telephone : photo au-dessus, informations sur toute la
   largeur ; les badges longs peuvent passer a la ligne. */
@media (max-width: 560px) {
  .doctor-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .doctor-hero .badge {
    white-space: normal;
  }
}

/* Tres petit telephone (320 px) : un libelle de bouton ou de badge long passe a la ligne
   plutot que de deborder de l'ecran. */
@media (max-width: 400px) {
  .btn,
  .badge {
    white-space: normal;
  }
  .btn {
    text-align: center;
  }
}

/* --- Impression --------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .rail,
  .btn,
  .flash-stack {
    display: none !important;
  }
  .workspace {
    grid-template-columns: 1fr;
    padding: 0;
  }
  body {
    background: #fff;
  }
  .ticket {
    border: 2px solid #000;
  }
}

/* --- Documents legaux (CGU, confidentialite, mentions) ------------------------ */

.legal-hero {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-block: var(--s-9) 0;
}

.legal-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-400);
}

.legal-hero__title {
  font-size: var(--fs-3xl);
  letter-spacing: -0.035em;
  margin-top: var(--s-2);
}

.legal-hero__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}

.legal-hero__meta svg {
  width: 15px;
  height: 15px;
}

.legal-tabs {
  display: flex;
  gap: var(--s-1);
  margin-top: var(--s-7);
  overflow-x: auto;
}

.legal-tabs__item {
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink-500);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.legal-tabs__item:hover {
  color: var(--ink);
}

.legal-tabs__item.is-active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}

.legal-page {
  padding-block: var(--s-8) var(--s-11);
}

.legal-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: var(--s-9);
  align-items: start;
}

/* Sommaire lateral, colle en haut pendant la lecture. */
.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--s-5));
}

.legal-toc__title {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-bottom: var(--s-3);
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
}

.legal-toc nav a {
  padding: 7px var(--s-4);
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: var(--fs-sm);
  color: var(--ink-500);
  transition: color var(--t-fast), border-color var(--t-fast);
}

.legal-toc nav a:hover {
  color: var(--ink);
  border-left-color: var(--brand);
}

.legal-doc {
  max-width: 74ch;
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-700);
}

.legal-doc__intro {
  padding: var(--s-5);
  background: var(--brand-mist);
  border: 1px solid var(--brand-soft);
  border-radius: var(--r-md);
  color: var(--ink);
}

.legal-doc h2 {
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--s-9);
  margin-bottom: var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  /* Compense la hauteur de l'en-tete lors d'un saut d'ancre. */
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}

.legal-doc p + p,
.legal-doc ul + p,
.legal-doc p + ul {
  margin-top: var(--s-4);
}

.legal-doc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.legal-doc ul li {
  position: relative;
  padding-left: var(--s-5);
}

.legal-doc ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--brand);
}

/* `:not(.btn)` : sans cette exclusion, la couleur de lien ecraserait celle des
   boutons (texte noir sur fond noir) — leur specificite est plus faible. */
.legal-doc a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brand);
}

.legal-doc a:not(.btn):hover {
  color: var(--brand-deep);
}

/* Tableau cle / valeur (identite de l'editeur, definitions, durees). */
.legal-table {
  margin-top: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
}

.legal-table__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-base);
}

.legal-table__row:last-child {
  border-bottom: 0;
}

.legal-table__key {
  font-weight: 700;
  color: var(--ink);
}

.legal-table__val {
  color: var(--ink-600);
}

.legal-callout {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  margin-top: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border-left: 4px solid var(--ink-400);
  font-size: var(--fs-base);
}

.legal-callout svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-callout--danger {
  background: var(--danger-bg);
  border-left-color: var(--danger);
  color: #8c1c1c;
}

.legal-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-top: var(--s-10);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.legal-contact__title {
  font-size: var(--fs-md);
  font-weight: 800;
}

.legal-contact__text {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  margin-top: var(--s-2);
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }
  .legal-toc {
    position: static;
    padding-bottom: var(--s-5);
    border-bottom: 1px solid var(--line);
  }
  .legal-toc nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    border-left: 0;
  }
  .legal-toc nav a {
    margin-left: 0;
    border-left: 0;
    padding-inline: 0;
  }
  .legal-table__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* --- Reprogrammation d'un rendez-vous ----------------------------------------- */

.reschedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s-6);
  align-items: start;
}

@media (max-width: 1000px) {
  .reschedule-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Releve mensuel du praticien ---------------------------------------------- */

.statement {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}

.statement__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding-bottom: var(--s-5);
  border-bottom: 2px solid var(--ink);
}

.statement__brand {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-400);
}

.statement__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: var(--s-2);
}

.statement__sub {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  margin-top: var(--s-2);
}

.statement__issued {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.statement__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.statement__total {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.statement__total strong {
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Le net percu est la ligne que le praticien cherche en premier. */
.statement__total--net {
  background: var(--brand-mist);
  border-color: var(--brand);
}

.statement__section {
  font-size: var(--fs-md);
  font-weight: 800;
  margin-top: var(--s-7);
  margin-bottom: var(--s-4);
}

.statement__foot {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

@media print {
  /* Le document doit tenir seul sur la feuille, sans chrome applicatif. */
  .no-print,
  .breadcrumb,
  .page-head {
    display: none !important;
  }

  .statement {
    border: none;
    padding: 0;
    border-radius: 0;
  }

  .statement__total {
    background: #fff !important;
    border-color: #999;
  }

  .table-wrap {
    border: none;
  }
}

/* --- Liste d'attente ----------------------------------------------------------- */

/* Encart d'inscription, sous le calendrier de la fiche praticien. */
.waitlist-inline {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
}

.waitlist-inline__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--paper);
}

.waitlist-inline__text {
  font-size: var(--fs-xs);
  color: #c9d2d2;
  margin: var(--s-2) 0 var(--s-4);
}

/* Cartes de l'espace patient. */
.waitlist-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

.waitlist-card__body {
  min-width: 240px;
  flex: 1;
}

.waitlist-card__name {
  font-size: var(--fs-md);
  font-weight: 700;
}

.waitlist-card__meta {
  font-size: var(--fs-sm);
  color: var(--ink-500);
  margin-top: 2px;
}

.waitlist-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--ink-600);
}

.waitlist-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.waitlist-card__facts svg {
  width: 15px;
  height: 15px;
  color: var(--ink-400);
}

.waitlist-card__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* --- Documents partages patient / praticien ------------------------------------ */

.shared-docs {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.shared-doc {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.shared-doc__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.shared-doc__icon svg {
  width: 19px;
  height: 19px;
}

.shared-doc__body {
  flex: 1;
  min-width: 0;
}

.shared-doc__label {
  font-weight: 700;
  font-size: var(--fs-base);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.shared-doc__label:hover {
  text-decoration-color: var(--brand);
}

.shared-doc__meta {
  font-size: var(--fs-xs);
  color: var(--ink-500);
  margin-top: 2px;
}

.shared-doc__note {
  font-size: var(--fs-sm);
  color: var(--ink-600);
  margin-top: var(--s-2);
  padding-left: var(--s-3);
  border-left: 2px solid var(--line);
}

.shared-doc__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
}

.shared-docs__form {
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

/* --- Outils de la barre de recherche ------------------------------------------- */

.search-tools {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Interrupteur « disponible aujourd'hui ». */
.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 7px var(--s-4);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.search-toggle:hover {
  border-color: var(--ink-400);
}

.search-toggle input {
  accent-color: var(--ink);
  cursor: pointer;
}

.search-toggle:has(input:checked) {
  background: var(--brand-mist);
  border-color: var(--brand);
}

/* Page d'erreur : sur petit ecran, le bouton passe sous le champ de recherche. */
@media (max-width: 480px) {
  .error-search {
    grid-template-columns: minmax(0, 1fr);
  }
}
