@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  /* Officine Botanique & Clinique Privée Minimaliste — Palette Souveraine ClinicHall (ANTICA Santé) */
  --bg-canvas: #FFFFFF;
  --bg-surface: #F7FAF8;
  --bg-elevated: #EAF2ED;
  --bg-warm-subtle: #FBF9F5;
  --border-subtle: #D5E2DA;
  --border-strong: #87B09C;
  --border-control: #527866;

  --text-primary: #10241B;
  --text-secondary: #2F4B3E;
  --text-muted: #436052;

  --accent-primary: #0E5A3E;
  --accent-primary-hover: #09422D;
  --accent-soft: #177E55;

  /* Déclinaisons Apple-Health ClinicHall : Émeraude Officinal + Vert-Cyan + Lavande Botanique (WCAG 2.2 AA >= 4.5:1) */
  --accent-emerald: #0E5A3E;
  --accent-emerald-bg: #E9F6F0;
  --accent-emerald-border: #A7D7C0;

  --accent-cyan: #0088CC;
  --accent-cyan-bg: #E6F6FE;
  --accent-cyan-border: #7DD3FC;

  /* Marque ClinicHall : « H » cyan vif et neutre, tranché face à l'Émeraude */
  --brand-cyan: #0099E5;
  --brand-cyan-on-dark: #38BDF8;

  --accent-lavender: #5A48AC;
  --accent-lavender-bg: #F2EFFC;
  --accent-lavender-border: #CBC2F0;

  /* Footer Vert Forêt Souverain */
  --footer-forest-top: #0C3E2A;
  --footer-forest-bottom: #07281B;
  --footer-forest-border: #1E5940;
  --footer-forest-text: #E8F4ED;
  --footer-forest-link: #D7ECE0;
  --footer-forest-muted: #C5E0D1;

  /* Couleurs thématiques chaleureuses par Pôle Clinique (better-colors) */
  --pole-cardio: #B83B2B;
  --pole-cardio-bg: #FDF3F1;
  --pole-cardio-border: #F2C9C2;

  --pole-neuro: #3B4E87;
  --pole-neuro-bg: #F2F4FB;
  --pole-neuro-border: #C7D1EE;

  --pole-metabo: #B86B19;
  --pole-metabo-bg: #FEF7EC;
  --pole-metabo-border: #F3D5A5;

  --pole-biolab: #0E6952;
  --pole-biolab-bg: #ECF8F3;
  --pole-biolab-border: #B3E0CF;

  --pole-longevity: #744487;
  --pole-longevity-bg: #F7F2FA;
  --pole-longevity-border: #DBC5E6;

  --status-optimal: #15803D;
  --status-optimal-bg: #EAF6EE;
  --status-optimal-border: #B7E1C4;

  --status-watch: #B45309;
  --status-watch-bg: #FEF6EC;
  --status-watch-border: #F3D0A4;

  --status-alert: #B91C1C;
  --status-alert-bg: #FDF2F2;
  --status-alert-border: #F2B8B8;

  /* Typographie Triadique Santé de Qualité Fonderie (Instrument Sans + Plus Jakarta Sans + JetBrains Mono) */
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-numeral: "Plus Jakarta Sans", "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Échelle d'espacement (grille 4px / 8px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Rayons imbriqués */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Ombres neutres légères */
  --shadow-sm: 0 1px 2px rgba(15, 41, 30, 0.04), 0 1px 1px rgba(15, 41, 30, 0.02);
  --shadow-md: 0 8px 24px rgba(15, 41, 30, 0.06), 0 2px 6px rgba(15, 41, 30, 0.03);
  --shadow-lg: 0 18px 44px rgba(14, 56, 39, 0.09), 0 4px 12px rgba(14, 56, 39, 0.04);

  /* Transitions fluides (Motion Design) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 160ms;
  --duration-med: 320ms;
}

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

html {
  font-size: 16px;
  scroll-padding-block-start: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibilité clavier */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Utilitaires d'état sans style inline */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* En-tête officinal et navigation principale */
.site-header {
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--accent-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 400;
  padding-left: var(--space-3);
  border-left: 1px solid var(--border-subtle);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.nav-link--active {
  background-color: var(--bg-elevated);
  color: var(--accent-primary);
}

.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--border-subtle);
}

.header-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Conteneur principal */
.site-main {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
}

.site-main--narrow {
  max-width: 840px;
}

/* Pied de page */
.site-footer {
  background-color: var(--bg-canvas);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Typographie éditoriale & clinique */
h1, .page-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}

h2, .section-title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

h3, .card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-primary-hover);
}

/* Bandeau d'en-tête de page */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.page-header-copy {
  max-width: 680px;
}

.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Bandeau de statut souverain P0 */
.clinical-strip {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.clinical-strip-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--status-optimal);
  flex-shrink: 0;
}

.status-dot--watch {
  background-color: var(--status-watch);
}

.clinical-strip-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.clinical-strip-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Cartes et panneaux */
.card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card--narrow {
  max-width: 520px;
  margin: var(--space-6) auto;
}

.card--medium {
  max-width: 720px;
  margin: var(--space-4) auto;
}

.card--elevated {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.stack-sm > * + * {
  margin-top: var(--space-2);
}

.stack-md > * + * {
  margin-top: var(--space-4);
}

.stack-lg > * + * {
  margin-top: var(--space-6);
}

/* Badges officinaux sobres */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.badge--admin {
  background-color: var(--bg-elevated);
  color: var(--accent-primary);
  border-color: var(--border-strong);
}

.badge--adult {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.badge--minor {
  background-color: var(--status-watch-bg);
  color: var(--status-watch);
  border-color: var(--status-watch-border);
}

.badge--self {
  background-color: var(--status-optimal-bg);
  color: var(--status-optimal);
  border-color: var(--status-optimal-border);
}

/* Alertes & notifications d'état */
.alert {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert--info {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.alert--success {
  background-color: var(--status-optimal-bg);
  color: var(--status-optimal);
  border-color: var(--status-optimal-border);
}

.alert--warning {
  background-color: var(--status-watch-bg);
  color: var(--status-watch);
  border-color: var(--status-watch-border);
}

.alert--error {
  background-color: var(--status-alert-bg);
  color: var(--status-alert);
  border-color: var(--status-alert-border);
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
}

.btn--primary:hover:not(:disabled) {
  background-color: var(--accent-primary-hover);
  color: var(--bg-canvas);
}

.btn--secondary {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn--secondary:hover:not(:disabled) {
  background-color: var(--bg-surface);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover:not(:disabled) {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.btn--danger {
  background-color: var(--status-alert-bg);
  color: var(--status-alert);
  border-color: var(--status-alert-border);
}

.btn--danger:hover:not(:disabled) {
  background-color: #FCE4E4;
}

.btn--sm {
  padding: 6px var(--space-3);
  font-size: 0.8125rem;
}

.btn--full {
  width: 100%;
}

.btn-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Formulaires */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.input-control {
  width: 100%;
  padding: 10px var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.form-input--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Grille Famille & Cartes cliniques */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.member-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.member-card:hover {
  border-color: var(--border-strong);
}

.member-card--selected {
  border-color: var(--accent-primary);
  background-color: var(--bg-surface);
}

.member-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.member-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.member-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.member-meta-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.meta-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Bloc biométrique P0 & courbe 30 jours */
.clinical-hero-box {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.clinical-metrics-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.metric-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.chart-placeholder-svg {
  width: 100%;
  height: 64px;
  display: block;
}

.device-notice {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--border-subtle);
}

/* Panneau de fiche clinique détaillée */
.clinical-detail-panel {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.detail-stat {
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* Grille des 10 codes de récupération */
.recovery-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.recovery-code-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.recovery-code-index {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-right: var(--space-2);
}

/* QR Code & Carte d'invitation */
.invite-result-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.invite-qr-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: center;
}

.qr-frame {
  width: 184px;
  height: 184px;
  padding: var(--space-3);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.invite-url-box {
  padding: var(--space-3);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  word-break: break-all;
  margin-bottom: var(--space-3);
}

/* Tableaux (Journal d'accès & Audit) */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-canvas);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background-color: var(--bg-surface);
}

/* Texte du consentement éclairé & politique de confidentialité */
.consent-scroll-box {
  max-height: 440px;
  overflow-y: auto;
  padding: var(--space-6);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.prose h1:first-child,
.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-6) 0;
}

/* Liste de gestion des tuteurs */
.guardian-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guardian-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.guardian-tags {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* Icônes SVG en ligne */
.icon-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.icon-svg--lg {
  width: 22px;
  height: 22px;
}

/* Grille biométrique P1 (constantes quotidiennes réconciliées & pastilles sources) */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.vital-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vital-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.vital-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.source-pills-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.connexions-inline-link {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-left: auto;
}

/* Page /connexions */
.connexions-member-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.connexions-member-select-wrap {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cloud-connectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
}

.cloud-connector-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.cloud-connector-card--active {
  border-color: var(--border-strong);
  background-color: var(--bg-canvas);
}

.cloud-connector-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.cloud-connector-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.cloud-connector-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

.token-issued-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--space-6);
  align-items: start;
}

.code-pill {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-primary);
  word-break: break-all;
}

.setup-steps-list {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.import-progress-box {
  padding: var(--space-4);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.import-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.875rem;
}

.import-progress {
  width: 100%;
  height: 12px;
  appearance: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-canvas);
}

.import-progress::-webkit-progress-bar {
  background-color: var(--bg-canvas);
}

.import-progress::-webkit-progress-value {
  background-color: var(--accent-primary);
}

.import-progress::-moz-progress-bar {
  background-color: var(--accent-primary);
}

/* ==========================================================================
   Phase P3 & P4 : Tableau de bord clinique, Scores, Courbe SVG, Alertes & LOINC
   ========================================================================== */

.clinical-identity-banner {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.identity-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: var(--space-3);
}

.identity-kpi-cell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.identity-kpi-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.identity-kpi-delta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.clinical-tags-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.clinical-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.clinical-tag--allergy {
  background-color: var(--status-alert-bg);
  border-color: var(--status-alert-border);
  color: var(--status-alert);
}

.clinical-tag--condition {
  background-color: var(--status-watch-bg);
  border-color: var(--status-watch-border);
  color: var(--status-watch);
}

.clinical-tag--evidence {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

/* Bandeau Alertes & Risques prioritaires */
.alerts-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.clinical-alert-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.clinical-alert-card--emergency {
  background-color: var(--status-alert-bg);
  border-color: var(--status-alert-border);
  border-left: 4px solid var(--status-alert);
}

.clinical-alert-card--critical {
  background-color: var(--status-alert-bg);
  border-color: var(--status-alert-border);
  border-left: 4px solid var(--status-alert);
}

.clinical-alert-card--watch {
  background-color: var(--status-watch-bg);
  border-color: var(--status-watch-border);
  border-left: 4px solid var(--status-watch);
}

.clinical-alert-body {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.clinical-alert-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.clinical-alert-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.clinical-alert-rationale {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.clinical-alert-action {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Courbe de progression SVG interactive */
.progression-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.range-tabs {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.range-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.range-tab:hover {
  color: var(--text-primary);
}

.range-tab--active {
  background-color: var(--bg-canvas);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
}

.progression-svg-wrap {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.progression-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.progression-legend {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.legend-swatch {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--accent-primary);
}

.legend-swatch--secondary {
  background-color: var(--status-watch);
}

.legend-swatch--target {
  background-color: var(--text-muted);
}

/* Grille des scores cliniques déterministes */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: var(--space-4);
}

.score-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.score-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.score-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.score-card-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.score-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Panneau Documents médicaux & Biologie LOINC */
.webdav-path-bar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.document-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.document-row-main {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.document-row-top {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.document-row-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.badge--ai {
  background-color: var(--status-watch-bg);
  border: 1px solid var(--status-watch-border);
  color: var(--status-watch);
}

.badge--validated {
  background-color: var(--status-optimal-bg);
  border: 1px solid var(--status-optimal-border);
  color: var(--status-optimal);
}

.loinc-flag--normal {
  color: var(--status-optimal);
  font-weight: 500;
}

.loinc-flag--watch {
  color: var(--status-watch);
  font-weight: 600;
}

.loinc-flag--critical {
  color: var(--status-alert);
  font-weight: 600;
}

@keyframes valuePulse {
  0% {
    background-color: var(--bg-elevated);
  }
  100% {
    background-color: transparent;
  }
}

.value-updated {
  animation: valuePulse 900ms var(--ease-out);
}

/* Phase P5 : Équipe Soignante IA (9 Spécialistes), Plan de Santé & Preuves Scientifiques */
.care-plan-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.second-opinion-banner {
  background-color: var(--status-optimal-bg);
  border: 1px solid var(--status-optimal-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.priorities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}

.priority-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.priority-rank-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: var(--bg-elevated);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
}

.priority-progress-svg {
  width: 100%;
  height: 6px;
  display: block;
}

.citation-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--accent-primary);
  text-decoration: none;
}

.citation-pill:hover {
  border-color: var(--border-strong);
  text-decoration: underline;
}

.specialist-tabs-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.specialist-tab-btn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.specialist-tab-btn--active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #FFFFFF;
}

.specialist-detail-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.specialist-observation-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 0;
}

.specialist-chat-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}

.specialist-chat-log {
  max-height: 220px;
  overflow-y: auto;
}

.specialist-chat-form {
  display: flex;
  gap: var(--space-2);
}

.chat-bubble {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-bubble--user {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.chat-bubble--assistant {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.chat-bubble--emergency {
  background-color: var(--status-alert-bg);
  border: 1px solid var(--status-alert-border);
  color: var(--status-alert);
  font-weight: 500;
}

/* ==========================================================================
   Phase P9 : Cockpit Clinique « En un clin d'œil », Board des 9 Spécialistes,
   Sélecteur Foyer, Omnisearch & Filtres Connecteurs (Ergonomie Clinique Privée)
   ========================================================================== */

/* Harmonisation des classes alias (Body Scan, Tableaux, Formulaires) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-canvas);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.score-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.score-ref-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
}

.score-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.score-explain {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Sélecteur rapide du foyer en haut de page */
.family-switcher-bar {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-5);
}

.family-pill-card {
  appearance: none;
  text-align: left;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  min-width: 240px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.family-pill-card:hover {
  border-color: var(--border-strong);
}

.family-pill-card:active {
  transform: scale(0.98);
}

.family-pill-card--active {
  background-color: var(--bg-elevated);
  border-color: var(--accent-primary);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.family-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.family-pill-name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
}

.family-pill-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Barre de navigation clinique collante (Pôles Cliniques + Omnisearch) */
.clinical-cockpit-nav {
  position: sticky;
  top: 56px;
  z-index: 15;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.cockpit-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.cockpit-tab-btn {
  appearance: none;
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.cockpit-tab-btn:hover {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.cockpit-tab-btn--active {
  background-color: var(--accent-primary);
  color: var(--bg-canvas);
  border-color: var(--accent-primary);
}

.cockpit-tab-btn--active:hover {
  background-color: var(--accent-primary-hover);
  color: var(--bg-canvas);
}

.cockpit-tab-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: rgba(15, 41, 30, 0.08);
  font-variant-numeric: tabular-nums;
}

.cockpit-tab-btn--active .cockpit-tab-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--bg-canvas);
}

.cockpit-search-wrap {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.cockpit-search-input {
  width: 100%;
  padding: 6px var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
}

.cockpit-search-input:focus {
  background-color: var(--bg-canvas);
  border-color: var(--accent-primary);
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

/* Bandeau exécutif « Synthèse en un clin d'œil » */
.executive-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.executive-glance-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.executive-glance-card--highlight {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
}

/* Grille 3x3 du Collège des 9 Spécialistes (Vision immédiate) */
.specialist-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: var(--space-4);
}

.specialist-board-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.specialist-board-card:hover {
  border-color: var(--border-strong);
}

.specialist-board-card--selected {
  border-color: var(--accent-primary);
  background-color: var(--bg-surface);
  box-shadow: inset 0 0 0 1px var(--accent-primary);
}

.specialist-board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
}

.specialist-role-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: block;
}

.specialist-card-headline {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.specialist-takeaway {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.specialist-takeaway strong {
  color: var(--text-primary);
  font-weight: 600;
}

.specialist-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* Barre de filtres par catégorie sur /connexions */
.connector-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.connector-filter-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ==========================================================================
   Phase P10 : Jumeau Anatomique SVG, Simulateur What-If, Timeline Événements,
   Consultation Vocale Mains-Libres, Salle de Garde & Chronobiologie 24h
   ========================================================================== */

/* Barre d'en-tête Foyer + Bouton Salle de Garde */
.family-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

/* Mur Familial / Mode Salle de Garde Grand Écran */
.ward-wall-panel {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
}

.ward-wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.ward-member-col {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
}

.ward-member-col--active {
  border-color: var(--accent-primary);
  background-color: var(--bg-canvas);
}

.ward-readiness-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.ward-readiness-score {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

/* Jumeau Anatomique SVG Interactif (6 Systèmes d'Organes & 5 Zones BIA) */
.anatomical-twin-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.anatomical-svg-stage {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.anatomical-twin-svg {
  width: 100%;
  max-width: 240px;
  height: 380px;
  display: block;
}

.anatomical-organ-node {
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-out);
}

.anatomical-organ-node:hover {
  opacity: 0.85;
}

.anatomical-right-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.organ-selector-pills {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.organ-pill-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.organ-pill-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.organ-pill-btn--active {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-canvas);
}

.anatomical-organ-detail {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

/* Simulateur « What-If » de Longévité & Risque Cardiovasculaire */
.whatif-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.whatif-sliders-col {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.whatif-slider-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.whatif-slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.whatif-slider-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.whatif-slider-val {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

.whatif-range-input {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.whatif-results-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.whatif-outcome-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.whatif-outcome-card--gain {
  background-color: var(--status-optimal-bg);
  border-color: var(--status-optimal-border);
}

/* Chronobiologie Circadienne 24h & Ordonnancier de Micronutrition */
.chrono-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.chrono-window-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.chrono-time-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  font-variant-numeric: tabular-nums;
}

/* Consultation Vocale Mains-Libres */
.voice-toolbar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.btn-voice--active {
  background-color: var(--status-alert-bg);
  border-color: var(--status-alert-border);
  color: var(--status-alert);
}

/* Timeline Multi-Événements : détail d'événement sélectionné */
.timeline-events-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-3);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
}

/* Préférence utilisateur : réduction des mouvements (WCAG 2.3.3 / better-ui) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive mobile */
@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-3) var(--space-4);
  }

  .brand-subtitle {
    display: none;
  }

  .site-main {
    padding: var(--space-6) var(--space-4);
  }

  .members-grid,
  .specialist-board-grid,
  .anatomical-twin-layout,
  .whatif-layout {
    grid-template-columns: 1fr;
  }

  .member-meta-list {
    grid-template-columns: 1fr 1fr;
  }

  .clinical-cockpit-nav {
    position: static;
  }

  .cockpit-search-wrap {
    flex: 1 1 100%;
  }

  .invite-qr-layout,
  .token-issued-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ==========================================================================
   Phase P11 : Barre de Conversation Médicale Universelle (Omnibar IA),
   Pièces Jointes, Dictée Langage Naturel, 4 Garde-Fous, Couleurs Chaleureuses,
   Barres de Progression, États Vides Illustrés & Studio HyperFrames / Notion
   ========================================================================== */

/* Accents chromatiques chaleureux par pôle médical sur les cartes */
.card--pole-cardio {
  border-top: 3px solid var(--pole-cardio);
  background: linear-gradient(180deg, var(--pole-cardio-bg) 0%, var(--bg-canvas) 96px);
}

.card--pole-neuro {
  border-top: 3px solid var(--pole-neuro);
  background: linear-gradient(180deg, var(--pole-neuro-bg) 0%, var(--bg-canvas) 96px);
}

.card--pole-metabo {
  border-top: 3px solid var(--pole-metabo);
  background: linear-gradient(180deg, var(--pole-metabo-bg) 0%, var(--bg-canvas) 96px);
}

.card--pole-biolab {
  border-top: 3px solid var(--pole-biolab);
  background: linear-gradient(180deg, var(--pole-biolab-bg) 0%, var(--bg-canvas) 96px);
}

.card--pole-longevity {
  border-top: 3px solid var(--pole-longevity);
  background: linear-gradient(180deg, var(--pole-longevity-bg) 0%, var(--bg-canvas) 96px);
}

/* Barre de Conversation Médicale Universelle (Conciergerie Clinique IA) */
.clinical-omnibar {
  background: linear-gradient(135deg, #FFFCF8 0%, #F1F8F4 58%, #FAF4EA 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: 0 6px 20px rgba(15, 41, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.omnibar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.omnibar-title-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.omnibar-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(31, 157, 106, 0.18);
  flex-shrink: 0;
}

.omnibar-specialist-select {
  appearance: none;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
}

.omnibar-guardrails-strip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.guardrail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--status-optimal-bg);
  color: var(--status-optimal);
  border: 1px solid var(--status-optimal-border);
}

.guardrail-pill--warn {
  background-color: var(--status-watch-bg);
  color: var(--status-watch);
  border-color: var(--status-watch-border);
}

.guardrail-pill--alert {
  background-color: var(--status-alert-bg);
  color: var(--status-alert);
  border-color: var(--status-alert-border);
}

.omnibar-guardrail-banner {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.omnibar-guardrail-banner--emergency {
  background-color: var(--status-alert-bg);
  border: 1.5px solid var(--status-alert);
  color: var(--status-alert);
  font-weight: 600;
}

.omnibar-guardrail-banner--ansm {
  background-color: var(--status-watch-bg);
  border: 1px solid var(--status-watch-border);
  color: var(--status-watch);
}

.omnibar-guardrail-banner--pii {
  background-color: var(--pole-neuro-bg);
  border: 1px solid var(--pole-neuro-border);
  color: var(--pole-neuro);
}

.omnibar-composer {
  display: flex;
  align-items: stretch;
  gap: var(--space-2);
  background-color: var(--bg-canvas);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.omnibar-composer:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(14, 90, 62, 0.12);
}

.omnibar-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  padding: 6px var(--space-2);
  min-width: 180px;
}

.omnibar-input:focus {
  outline: none;
}

.omnibar-tool-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.omnibar-tool-btn:hover {
  background-color: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.omnibar-tool-btn--recording {
  background-color: var(--status-alert-bg);
  border-color: var(--status-alert);
  color: var(--status-alert);
}

.omnibar-attachments-tray {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.omnibar-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  background-color: var(--pole-biolab-bg);
  border: 1px solid var(--pole-biolab-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--pole-biolab);
}

.omnibar-attachment-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--pole-biolab);
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
}

.omnibar-suggestions-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.omnibar-suggestion-chip {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.omnibar-suggestion-chip:hover {
  border-color: var(--accent-primary);
  background-color: var(--bg-elevated);
  color: var(--accent-primary);
}

.omnibar-thread-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Système de Barres de Chargement, Attente, Vide & Progression — 100 % confiné au design system ClinicHall */
.clinical-loading-box {
  background: linear-gradient(135deg, var(--bg-canvas) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hh-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--accent-emerald-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.hh-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  transition: width 260ms var(--ease-out);
}

.hh-progress-fill--optimal {
  background: linear-gradient(90deg, #0E5A3E 0%, #1F9D6A 100%);
}

.hh-progress-fill--watch {
  background: linear-gradient(90deg, #B45309 0%, #D97706 100%);
}

.hh-progress-fill--alert {
  background: linear-gradient(90deg, #991B1B 0%, #DC2626 100%);
}

.hh-progress-fill--waiting,
.hh-progress-fill--indeterminate {
  width: 38%;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-emerald) 100%);
  animation: clinicallRouteSlide 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hh-progress-fill--empty {
  width: 0%;
  background: var(--accent-emerald-bg);
}

.hh-loading-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-2);
}

.hh-loading-step {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hh-loading-step--active {
  background-color: var(--status-optimal-bg);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}

.skeleton-card {
  height: 84px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #EAEFE9 25%, #F5F7F3 50%, #EAEFE9 75%);
  background-size: 200% 100%;
  animation: hh-shimmer 1.6s infinite linear;
  border: 1px solid var(--border-subtle);
}

@keyframes hh-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* États Vides Illustrés & Chaleureux (better-writing + better-ui) */
.clinical-empty-state {
  background: linear-gradient(180deg, var(--bg-warm-subtle) 0%, var(--bg-canvas) 100%);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.clinical-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--status-optimal-bg);
  border: 1px solid var(--status-optimal-border);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clinical-empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.clinical-empty-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 540px;
}

/* Mode Bento Éditorial (Notion / 21st.dev) & Studio Storyboard Vidéo HyperFrames */
.bento-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
}

.bento-cockpit-grid > .card {
  height: 100%;
}

.bento-span-full {
  grid-column: 1 / -1;
}

.hyperframes-preview-box {
  background: linear-gradient(135deg, #10241B 0%, #173B2B 60%, #244B39 100%);
  color: #F7F4EE;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  border: 1px solid #2E644C;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hyperframes-scenes-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-2);
}

.hyperframes-scene-card {
  background-color: rgba(255, 252, 248, 0.08);
  border: 1px solid rgba(255, 252, 248, 0.18);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.hyperframes-scene-card--active {
  background-color: rgba(31, 157, 106, 0.28);
  border-color: #5CE1A6;
}

@media (max-width: 960px) {
  .bento-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Phase P12 : Barre Globale de Progression, Mode Crépusculaire Circadien,
   Rituel Matinal/Vespéral, Comparateur Avant/Après (T0 vs Actuel) & Sparklines
   ========================================================================== */

/* Barre de progression globale de navigation (haut d'écran) */
.global-route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background-color: rgba(14, 90, 62, 0.12);
}

.global-route-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0E5A3E 0%, #1F9D6A 50%, #D97706 100%);
  transition: width 220ms var(--ease-out);
}

/* Mode Crépusculaire Circadien (Zéro Lumière Bleue / Préservation Mélatonine DLMO) */
body.theme-crepuscular {
  --bg-canvas: #141F19;
  --bg-surface: #0E1712;
  --bg-elevated: #1B2A22;
  --bg-warm-subtle: #18251E;
  --border-subtle: #273D31;
  --border-strong: #3C5E4B;

  --text-primary: #F3EFE6;
  --text-secondary: #C8C2B4;
  --text-muted: #989386;

  --accent-primary: #38B883;
  --accent-primary-hover: #4CD19A;
  --accent-soft: #D98A2B;

  --pole-cardio-bg: #261816;
  --pole-cardio-border: #5E2E28;
  --pole-neuro-bg: #171D2B;
  --pole-neuro-border: #324066;
  --pole-metabo-bg: #261E13;
  --pole-metabo-border: #63461D;
  --pole-biolab-bg: #13261E;
  --pole-biolab-border: #285944;
  --pole-longevity-bg: #221828;
  --pole-longevity-border: #4F335E;

  --status-optimal: #4ADE80;
  --status-optimal-bg: #13281D;
  --status-optimal-border: #234E36;

  --status-watch: #FBBF24;
  --status-watch-bg: #292011;
  --status-watch-border: #59411A;

  --status-alert: #F87171;
  --status-alert-bg: #2B1515;
  --status-alert-border: #5E2626;
}

body.theme-crepuscular .clinical-omnibar {
  background: linear-gradient(135deg, #16231C 0%, #1C2C23 60%, #242018 100%);
}

/* Bandeau Rituel Matinal & Vespéral Circadien (Proposition #10) */
.circadian-ritual-banner {
  background: linear-gradient(135deg, var(--bg-canvas) 0%, var(--pole-metabo-bg) 52%, var(--pole-biolab-bg) 100%);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.circadian-ritual-banner--evening {
  background: linear-gradient(135deg, var(--bg-canvas) 0%, var(--pole-neuro-bg) 55%, var(--pole-longevity-bg) 100%);
}

.ritual-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
}

.ritual-check-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

.ritual-check-card:hover {
  border-color: var(--accent-primary);
}

.ritual-check-card--done {
  background-color: var(--status-optimal-bg);
  border-color: var(--status-optimal-border);
}

.ritual-check-input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Comparateur Longitudinal « Avant / Après Intervention (T0 vs Aujourd'hui) » (Proposition #11) */
.split-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: var(--space-4);
}

.split-comparison-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.split-values-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}

.split-val-before {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.split-val-now {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Sparklines SVG 7 Jours en Survol Direct & Cartes Vitales du Jumeau Anatomique (Proposition #12) */
.anatomical-hover-sparkline {
  width: 100%;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vital-sparkline-svg {
  width: 100%;
  height: 28px;
  display: block;
  margin-top: 4px;
}

/* =========================================================================
   CLINICHALL — DESIGN SYSTEM COMMERCIAL, LANDING SEO/AEO/GEO, STRIPE & MCP
   ========================================================================= */

.brand-leaf-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #C8DDD0;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.brand-wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0E5A3E;
  font-size: 1.2rem;
}

.brand-h {
  color: var(--brand-cyan);
  font-weight: 800;
}

.nav-link--cta {
  background-color: #0E5A3E;
  color: #FFFFFF !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-link--cta:hover {
  background-color: #167954;
}

.hh-progress-fill--initial {
  width: 45%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 680px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.clinicall-landing {
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
  padding-bottom: 3rem;
}

.clinicall-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9F5 100%);
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

@media (max-width: 980px) {
  .clinicall-hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.clinicall-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #EBF4EE;
  border: 1px solid #B6D5C2;
  color: #0E5A3E;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.clinicall-hero-title {
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0D261C;
  margin: 0 0 1rem 0;
}

.clinicall-hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #365345;
  margin: 0 0 1.5rem 0;
}

.clinicall-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.clinicall-btn-lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

.clinicall-btn-block {
  width: 100%;
  justify-content: center;
}

.clinicall-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.clinicall-trust-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #165B40;
  background-color: #FFFFFF;
  border: 1px solid #C8DDD0;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.clinicall-emblem-showcase {
  background-color: #FFFFFF;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 28px rgba(14, 90, 62, 0.06);
}

.clinicall-emblem-img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background-color: #FFFFFF;
}

.clinicall-digest-mini {
  background-color: #F4F9F5;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.clinicall-digest-mini-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0E5A3E;
  margin-bottom: 0.6rem;
}

.clinicall-digest-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.clinicall-digest-mini-cell {
  background-color: #FFFFFF;
  border: 1px solid #DCE9E0;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clinicall-mini-k {
  font-size: 0.7rem;
  color: #4B6859;
  font-weight: 600;
}

.clinicall-mini-v {
  font-size: 1rem;
  color: #0D261C;
  font-variant-numeric: tabular-nums;
}

.clinicall-mini-d {
  font-size: 0.7rem;
  color: #0E5A3E;
}

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

.clinicall-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 820px;
}

.clinicall-section-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0E5A3E;
}

.clinicall-section-title {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.clinicall-section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.clinicall-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.15rem;
}

.clinicall-pillar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.clinicall-pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.clinicall-wow-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0E5A3E;
  background-color: #EBF4EE;
  padding: 2px 8px;
  border-radius: 999px;
}

.clinicall-pillar-title {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-primary);
}

.clinicall-pillar-big {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0E5A3E;
  font-variant-numeric: tabular-nums;
}

.clinicall-pillar-summary {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.clinicall-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.65rem;
}

.clinicall-pillar-li {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.clinicall-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.clinicall-price-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clinicall-price-card--popular {
  border: 2px solid #0E5A3E;
  background-color: #F8FCF9;
}

.clinicall-plan-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2B5943;
  background-color: #EBF4EE;
  padding: 3px 10px;
  border-radius: 999px;
}

.clinicall-plan-badge--popular {
  background-color: #0E5A3E;
  color: #FFFFFF;
}

.clinicall-plan-name {
  font-size: 1.35rem;
  margin: 0;
}

.clinicall-plan-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.clinicall-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.clinicall-price-amount {
  font-size: 2.15rem;
  font-weight: 800;
  color: #0E5A3E;
  font-variant-numeric: tabular-nums;
}

.clinicall-price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.clinicall-plan-features {
  padding-left: 1.15rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  flex: 1;
}

.clinicall-child-calc {
  background-color: #F4F9F5;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.clinicall-child-calc-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #164E38;
}

.clinicall-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.clinicall-wearables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 0.85rem;
}

.clinicall-wearable-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.clinicall-wearable-name {
  font-size: 0.92rem;
  color: #0E5A3E;
}

.clinicall-wearable-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.clinicall-wearable-metrics {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

.clinicall-bridge-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.clinicall-bridge-card {
  background-color: #F4F9F5;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clinicall-code-preview {
  background-color: #0E2219;
  color: #DDF3E6;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  overflow-x: auto;
  margin: 0;
}

.clinicall-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.clinicall-faq-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.clinicall-faq-card h3 {
  font-size: 0.98rem;
  margin: 0 0 0.5rem 0;
  color: #0E5A3E;
}

.clinicall-faq-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Signup, Login, Billing & Legal Styles */
.clinicall-signup-page,
.clinicall-billing-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
}

.clinicall-signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.clinicall-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.clinicall-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.clinicall-oauth-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.55rem;
}

.clinicall-oauth-btn {
  justify-content: center;
  font-weight: 600;
}

.clinicall-or-divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
}

.clinicall-pw-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.clinicall-pw-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.clinicall-pw-pill--ok {
  background-color: #EBF4EE;
  color: #0E5A3E;
  border-color: #9EC8B0;
  font-weight: 600;
}

.clinicall-plan-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.clinicall-plan-option {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  cursor: pointer;
  background-color: var(--bg-canvas);
}

.clinicall-plan-option--active {
  border: 2px solid #0E5A3E;
  background-color: #F4F9F5;
}

.clinicall-plan-option-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.clinicall-stripe-embedded {
  background-color: #F8FBF9;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.clinicall-stripe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.clinicall-invoice-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid #DCE9E0;
  padding-top: 0.65rem;
}

.clinicall-breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 0.5rem;
}

.clinicall-breakdown-line--total {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0E5A3E;
  border-top: 1px solid #C8DDD0;
  padding-top: 0.45rem;
}

.clinicall-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.6rem 0;
  cursor: pointer;
}

/* Pages Légales (CGU, Mentions Légales, Confidentialité, Factures HAM Ireland) */
.legal-page {
  background-color: #FAF9F5;
  color: #16241D;
  padding: 2rem 1rem;
}

.legal-container {
  max-width: 920px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border: 1px solid #DCE5DF;
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #DCE5DF;
  padding-bottom: 1.25rem;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.legal-subtitle {
  font-size: 0.85rem;
  color: #52665B;
  margin: 0.25rem 0 0 0;
}

.legal-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.legal-alert {
  background-color: #F4F9F5;
  border-left: 4px solid #0E5A3E;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.legal-section h2 {
  font-size: 1.15rem;
  color: #0E5A3E;
  margin: 0 0 0.6rem 0;
}

.legal-list {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  line-height: 1.55;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid #DCE5DF;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.legal-table th {
  background-color: #F4F9F5;
  color: #0E5A3E;
  font-weight: 700;
}

.legal-footer {
  border-top: 1px solid #DCE5DF;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #52665B;
}




/* =========================================================================
   CLINICHALL PHASE 2 — FOUNDRY TYPOGRAPHY, MOTION DESIGN, SPLIT AUTH,
   OFFICIAL BRAND MARQUEE, USE CASES, PAYWALLS, ENTERPRISE FOOTER & MOBILE
   ========================================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  text-wrap: balance;
  letter-spacing: -0.022em;
  line-height: 1.18;
}

p, li {
  text-wrap: pretty;
}

/* Tactile Buttons & Micro-Interactions (better-ui) */
.btn {
  position: relative;
  transition:
    transform 150ms var(--ease-out),
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    color 160ms var(--ease-out);
}

.btn:active:not(:disabled) {
  transform: scale(0.975);
}

.btn--primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(14, 90, 62, 0.18);
}

.btn--primary:hover:not(:disabled) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 6px 18px rgba(14, 90, 62, 0.25);
  transform: translateY(-1px);
}

.btn--primary:active:not(:disabled) {
  transform: scale(0.975) translateY(0);
}

.btn-arrow {
  display: inline-block;
  transition: transform 180ms var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Smooth Transition & Sync Progress Bars */
.global-route-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(14, 90, 62, 0.12);
  z-index: 100;
  overflow: hidden;
}

.global-route-progress-fill {
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #0E5A3E 0%, #24A170 50%, #0E5A3E 100%);
  border-radius: 999px;
  animation: clinicallRouteSlide 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes clinicallRouteSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

.hh-progress-track {
  width: 100%;
  height: 7px;
  background-color: var(--accent-emerald-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.hh-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  border-radius: 999px;
  transition: width 360ms var(--ease-out);
}

.hh-progress-fill--shimmer {
  position: relative;
  overflow: hidden;
}

.hh-progress-fill--shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: clinicallShimmer 1.6s ease-in-out infinite;
}

@keyframes clinicallShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Motion Design — Scroll Reveal & Interactive Cards */
.reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 540ms var(--ease-out),
    transform 540ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 140ms; }
.reveal-delay-3 { transition-delay: 210ms; }

.motion-card {
  transition:
    transform 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
}

.motion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.clinicall-slogan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0E5A3E;
  background-color: #EDF6F0;
  border: 1px solid #C2DEC9;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: -0.005em;
}

.clinicall-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16A34A;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: clinicallPulseDot 2.2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes clinicallPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Infinite Official Manufacturer Brand Carousel (Marquee) */
.brand-marquee-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 0 0.5rem 0;
}

.brand-marquee-caption {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}

.brand-marquee-shell {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 0.5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000000 7%, #000000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000000 7%, #000000 93%, transparent 100%);
}

.brand-marquee-track {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: max-content;
  animation: clinicallMarquee 46s linear infinite;
}

.brand-marquee-shell:hover .brand-marquee-track,
.brand-marquee-shell:focus-within .brand-marquee-track {
  animation-play-state: paused;
}

@keyframes clinicallMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.brand-marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.05rem;
  background-color: #FFFFFF;
  border: 1px solid #D7E5DC;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 41, 30, 0.03);
  flex-shrink: 0;
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.brand-marquee-chip:hover {
  border-color: #0E5A3E;
  transform: translateY(-2px);
}

.brand-logo-img {
  height: 26px;
  width: auto;
  min-width: 24px;
  max-width: 128px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo-img--icon {
  height: 26px;
  width: 26px;
  border-radius: 6px;
}

.brand-chip-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.clinicall-wearable-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.3rem;
}

.clinicall-wearable-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* Official Companion App Download Buttons (Apple Santé iOS & Google Health Connect Android) */
.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1rem;
  background-color: #0F231A;
  color: #FFFFFF;
  border: 1px solid #204233;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.store-download-btn:hover {
  background-color: #0E5A3E;
  border-color: #0E5A3E;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 90, 62, 0.22);
}

.store-download-btn--light {
  background-color: #FFFFFF;
  color: #10241B;
  border: 1px solid #C8DDD0;
}

.store-download-btn--light:hover {
  background-color: #F2F8F4;
  color: #0E5A3E;
}

.store-download-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-download-icon--invert-dark {
  filter: brightness(0) invert(1);
}

.store-download-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.18;
}

.store-download-kicker {
  font-size: 0.68rem;
  opacity: 0.84;
  font-weight: 500;
}

.store-download-title {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.companion-apps-showcase {
  background: linear-gradient(135deg, #0E2B1F 0%, #123D2B 60%, #184E38 100%);
  color: #F4FAF6;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid #265C44;
}

.companion-apps-showcase h2,
.companion-apps-showcase h3 {
  color: #FFFFFF;
}

.companion-apps-showcase p {
  color: #D2E6DA;
}

.companion-qr-card {
  background-color: #FFFFFF;
  color: #10241B;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
}

/* Interactive Use Cases Showcase */
.usecases-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.usecase-tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: #FFFFFF;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 170ms var(--ease-out),
    border-color 170ms var(--ease-out),
    color 170ms var(--ease-out),
    box-shadow 170ms var(--ease-out);
}

.usecase-tab-btn:hover {
  border-color: #0E5A3E;
  color: #0E5A3E;
}

.usecase-tab-btn--active {
  background-color: #0E5A3E;
  border-color: #0E5A3E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 90, 62, 0.2);
}

.usecase-panel {
  background-color: #FFFFFF;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.75rem;
  align-items: center;
  animation: clinicallPanelFade 280ms var(--ease-out);
}

@keyframes clinicallPanelFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.usecase-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.usecase-metric-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Monthly / Annual (-20 %) Interactive Toggle */
.billing-cycle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.billing-cycle-toggle {
  display: inline-flex;
  align-items: center;
  background-color: #EAF2ED;
  border: 1px solid #C5DCD0;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.billing-cycle-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.billing-cycle-btn--active {
  background-color: #FFFFFF;
  color: #0E5A3E;
  box-shadow: 0 2px 6px rgba(14, 90, 62, 0.1);
}

.billing-save-pill {
  background-color: #0E5A3E;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Two-Column Split-Screen Layout for Login (/login) & Signup (/inscription) */
.auth-split-shell {
  display: grid;
  grid-template-columns: minmax(340px, 0.94fr) minmax(380px, 1.06fr);
  min-height: 700px;
  background-color: #FFFFFF;
  border: 1px solid #C8DDD0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0.5rem 0 2.5rem 0;
}

.auth-split-shell--wide {
  grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr);
}

.auth-split-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  color: #FFFFFF;
  background-color: #0F2E21;
  overflow: hidden;
}

.auth-split-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 8s ease-out;
}

.auth-split-shell:hover .auth-split-photo {
  transform: scale(1.03);
}

.auth-split-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 36, 26, 0.72) 0%,
    rgba(11, 36, 26, 0.28) 42%,
    rgba(9, 31, 22, 0.86) 100%
  );
  z-index: 1;
}

.auth-split-top,
.auth-split-bottom {
  position: relative;
  z-index: 2;
}

.auth-split-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.94);
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.auth-split-brand-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: #0E5A3E;
  letter-spacing: -0.02em;
}

.auth-split-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-split-slogan {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0;
}

.auth-split-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(244, 250, 246, 0.9);
  margin: 0;
}

.auth-split-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.auth-split-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
}

.auth-split-form-pane {
  padding: 2.35rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  background-color: #FFFFFF;
}

.auth-oauth-btn-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.auth-oauth-logo {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Custom Botanical Empty States */
.clinicall-empty-state {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5FAF7 100%);
  border: 1px dashed #B5D2C1;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.clinicall-empty-svg {
  width: 56px;
  height: 56px;
  color: #0E5A3E;
}

/* Tiered Paywalls & Plan Experience Bar (/famille & /connexions) */
.plan-experience-bar {
  background-color: #FFFFFF;
  border: 1px solid #C8DDD0;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.plan-switcher-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.plan-pill-btn {
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.plan-pill-btn:hover {
  border-color: #0E5A3E;
  color: #0E5A3E;
}

.plan-pill-btn--active {
  background-color: #0E5A3E;
  border-color: #0E5A3E;
  color: #FFFFFF;
}

.paywall-gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.paywall-gate-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F9F5 100%);
  border: 1.5px solid #B7D5C3;
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
}

.paywall-gate-card--unlocked {
  border-color: #9DC3B0;
  background: #FFFFFF;
}

.paywall-lock-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.paywall-lock-ribbon--open {
  background-color: #EAF6EE;
  color: #0E5A3E;
  border-color: #B7E1C4;
}

.paywall-blurred-teaser {
  filter: blur(3.5px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-size: 0.8rem;
}

.paywall-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 31, 22, 0.58);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.paywall-modal-card {
  max-width: 540px;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #C8DDD0;
  border-radius: 18px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  animation: clinicallPanelFade 220ms var(--ease-out);
}

/* Sport & Nutrition Hub Card (MyFitnessPal + MuscleWiki) */
.sport-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.sport-partner-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* 5-Column Professional Enterprise Footer */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #D5E2DA;
  margin-top: 3rem;
}

.enterprise-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.enterprise-footer-grid {
  display: grid;
  grid-template-columns: 1.65fr repeat(4, minmax(150px, 1fr));
  gap: 2rem;
}

.enterprise-footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.enterprise-footer-slogan {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0E5A3E;
  margin: 0;
}

.enterprise-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.enterprise-footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.enterprise-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.enterprise-footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 150ms var(--ease-out);
}

.enterprise-footer-link:hover {
  color: #0E5A3E;
  text-decoration: underline;
}

.enterprise-footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.35rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Mobile Menu Toggle & Full Site/App Tree Responsiveness */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: #FFFFFF;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .enterprise-footer-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .enterprise-footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .brand-subtitle {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    gap: 0.4rem;
  }

  .main-nav.main-nav--open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.6rem 0.75rem;
  }

  .header-user {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 0.6rem;
    justify-content: space-between;
    width: 100%;
  }

  .auth-split-shell,
  .auth-split-shell--wide {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-split-visual {
    min-height: 270px;
    padding: 1.5rem;
  }

  .auth-split-form-pane {
    padding: 1.65rem 1.35rem;
  }

  .usecase-panel,
  .companion-apps-showcase {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }
}

@media (max-width: 768px) {
  .site-main {
    padding: var(--space-4);
  }

  .clinicall-form-row-2,
  .usecase-metrics-grid,
  .clinicall-digest-mini-grid {
    grid-template-columns: 1fr;
  }

  .clinicall-signup-grid,
  .clinicall-bridge-duo,
  .clinicall-pricing-grid {
    grid-template-columns: 1fr;
  }

  .enterprise-footer-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1.5rem;
  }

  /* Prevent iOS Safari auto-zoom on form focus */
  input,
  select,
  textarea,
  .form-input,
  .form-select {
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .enterprise-footer-grid {
    grid-template-columns: 1fr;
  }

  .store-badges-row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-download-btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .brand-marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .brand-marquee-shell {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .clinicall-live-dot,
  .global-route-progress-fill,
  .hh-progress-fill--shimmer::after {
    animation: none !important;
  }
}


/* =========================================================================
   CLINICHALL PHASE 3 — NUMERAL FOUNDRY TYPOGRAPHY (PLUS JAKARTA SANS),
   FOREST GREEN FOOTER, GENEROUS BADGE/TEXT RHYTHM, CUSTOM CHECKBOXES &
   SELECTORS, ADDRESS PREFILL COMBOBOX, STRIPE CB/SEPA/LINK & WCAG 2.2 AA
   ========================================================================= */

/* 1. Accessibilité clavier, Skip Link & Lecteurs d'écran (WCAG 2.2 AA 2.4.1 / 2.4.7 / 4.1.3) */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  background-color: #093524;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: top 150ms var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid #38B883;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* 2. Police des chiffres de fonderie (Plus Jakarta Sans Tabular Lining Numerals) */
.numeral,
.tabular-nums,
.clinicall-price-amount,
.clinicall-pillar-big,
.clinicall-mini-v,
.clinicall-mini-d,
.clinicall-wow-badge,
.clinicall-breakdown-line strong,
.clinicall-breakdown-line--total,
.metric-value,
.vital-value,
.ward-readiness-score,
.whatif-slider-val,
.split-val-now,
.split-val-before,
.score-ring-val,
.kpi-num {
  font-family: var(--font-numeral);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1, "cv01" 1;
  letter-spacing: -0.018em;
}

.clinicall-price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.08;
  color: var(--accent-primary);
}

.clinicall-pillar-big {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.12;
}

.clinicall-mini-v {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-h {
  color: var(--brand-cyan);
  font-weight: 800;
}

/* 3. Mise en page aérée & Respiration généreuse entre Badges et Textes (Grille 4px) */
.clinicall-landing {
  gap: 3.75rem;
  padding-bottom: 3.5rem;
}

.clinicall-section {
  gap: 2rem;
}

.clinicall-section-head {
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.clinicall-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.badge,
.clinical-tag,
.clinicall-plan-badge,
.clinicall-wow-badge,
.paywall-lock-ribbon,
.guardrail-pill,
.clinicall-trust-pill,
.auth-split-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  line-height: 1.35;
}

.clinicall-eyebrow {
  padding: 7px 14px;
  gap: 10px;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.stack-sm > .badge,
.stack-sm > .clinical-tag,
.card > .badge,
.card > .clinical-tag,
.paywall-gate-card > .paywall-lock-ribbon,
.clinicall-price-card > .clinicall-plan-badge {
  margin-bottom: 0.35rem;
}

.clinicall-hero {
  padding: 2.75rem;
  gap: 2.75rem;
}

.clinicall-hero-title {
  margin: 0 0 1.25rem 0;
  line-height: 1.14;
}

.clinicall-hero-lead {
  margin: 0 0 1.75rem 0;
  line-height: 1.68;
}

.clinicall-cta-row {
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.clinicall-trust-bar {
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.clinicall-trust-pill {
  padding: 6px 12px;
  color: #104D36;
  border-color: #B4D2C1;
}

.clinicall-pillar-card {
  padding: 1.5rem;
  gap: 0.85rem;
}

.clinicall-pillar-top {
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.clinicall-price-card {
  padding: 1.85rem;
  gap: 1rem;
}

.clinicall-price-box {
  gap: 0.55rem;
  padding: 0.65rem 0 0.85rem 0;
}

.clinicall-plan-features {
  gap: 0.6rem;
  line-height: 1.5;
}

.clinicall-wearables-grid {
  gap: 1rem;
}

.clinicall-wearable-card {
  padding: 1.15rem 1.25rem;
  gap: 0.45rem;
}

.auth-split-badges {
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.card-header {
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.header-user {
  gap: 0.65rem;
}

/* 4. Pictogrammes SVG unifiés (1.75px stroke, boîte alignée) */
.ico-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -3px;
}

.ico-svg--sm {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

.ico-svg--lg {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
}

.label-with-ico {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* 5. Champs obligatoires (*), Légende & Messages d'erreur accessibles (WCAG 3.3.1 / 3.3.2) */
.required-star {
  color: #B42318;
  font-weight: 700;
  margin-left: 3px;
  font-family: var(--font-sans);
}

.required-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 0.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea,
.form-input,
.form-select,
.input-control {
  min-height: 44px;
  border: 1.5px solid var(--border-control);
  border-radius: var(--radius-sm);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 0.58rem 0.85rem;
  transition:
    border-color 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out),
    background-color 150ms var(--ease-out);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
select:hover,
textarea:hover,
.form-input:hover,
.form-select:hover {
  border-color: var(--accent-primary);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--status-alert) !important;
  background-color: var(--status-alert-bg);
}

.field-error-msg {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--status-alert);
  margin-top: 2px;
}

/* Sélecteurs <select> normalisés avec chevron SVG sur mesure */
select,
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310241B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
}

/* Groupe téléphone normalisé (Sélecteur indicatif + Numéro) */
.phone-normalized-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0.55rem;
}

@media (max-width: 520px) {
  .phone-normalized-row {
    grid-template-columns: 1fr;
  }
}

/* 6. Cases à cocher personnalisées haute lisibilité (20x20px, contraste >= 4.8:1) */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0 0;
  border: 1.75px solid var(--border-control);
  border-radius: 6px;
  background-color: var(--bg-canvas);
  cursor: pointer;
  position: relative;
  display: inline-grid;
  place-content: center;
  transition:
    background-color 140ms var(--ease-out),
    border-color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out),
    transform 120ms var(--ease-out);
}

input[type="checkbox"]:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(14, 90, 62, 0.1);
}

input[type="checkbox"]::after {
  content: "";
  width: 11px;
  height: 7px;
  border-left: 2.25px solid #FFFFFF;
  border-bottom: 2.25px solid #FFFFFF;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 130ms var(--ease-out);
}

input[type="checkbox"]:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

input[type="checkbox"]:checked::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.clinicall-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  margin: 0.4rem 0;
  cursor: pointer;
  line-height: 1.5;
  font-size: 0.84rem;
  color: var(--text-primary);
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.clinicall-checkbox-row:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-elevated);
}

/* 7. Autocomplétion & Pré-remplissage d'adresse en direct (WAI-ARIA Combobox) */
.addr-autocomplete-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.addr-suggestions-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  list-style: none;
  margin: 0;
  padding: 6px;
  background-color: var(--bg-canvas);
  border: 1.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
}

.addr-suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: background-color 120ms var(--ease-out);
}

.addr-suggestion-item:hover,
.addr-suggestion-item--active {
  background-color: var(--bg-elevated);
  color: var(--accent-primary);
  font-weight: 600;
}

.addr-suggestion-country {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* 8. Sélecteur Stripe Embedded Multi-Moyens : CB + Prélèvement SEPA + Stripe Link */
.stripe-pm-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 560px) {
  .stripe-pm-tabs {
    grid-template-columns: 1fr;
  }
}

.stripe-pm-tab {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-control);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition:
    border-color 150ms var(--ease-out),
    background-color 150ms var(--ease-out),
    box-shadow 150ms var(--ease-out);
}

.stripe-pm-tab:hover {
  border-color: var(--accent-primary);
}

.stripe-pm-tab--active {
  border: 2px solid var(--accent-primary);
  background-color: #EDF7F1;
  box-shadow: 0 2px 8px rgba(14, 90, 62, 0.1);
}

.stripe-pm-tab-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stripe-pm-tab-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.stripe-pm-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.sepa-mandate-box {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.link-express-box {
  background-color: #EDFDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background-color: #054F31;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.iban-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
}

.iban-status-pill--ok {
  background-color: var(--status-optimal-bg);
  color: var(--status-optimal);
  border: 1px solid var(--status-optimal-border);
}

.iban-status-pill--err {
  background-color: var(--status-alert-bg);
  color: var(--status-alert);
  border: 1px solid var(--status-alert-border);
}

/* 9. Footer Vert Forêt Souverain (Toutes pages publiques, légales & application) */
.site-footer {
  background: linear-gradient(180deg, var(--footer-forest-top) 0%, var(--footer-forest-bottom) 100%);
  border-top: 1px solid var(--footer-forest-border);
  color: var(--footer-forest-text);
  margin-top: 3.5rem;
}

.site-footer .brand {
  background-color: #FFFFFF;
  color: #0B3B28;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.site-footer .brand-wordmark {
  color: #0B3B28;
}

.site-footer .brand-h {
  color: var(--brand-cyan);
}

.site-footer .enterprise-footer-slogan {
  color: #B9E8CE;
  font-size: 0.95rem;
}

.site-footer .enterprise-footer-heading {
  color: #FFFFFF;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.site-footer .enterprise-footer-link,
.site-footer .footer-link {
  color: var(--footer-forest-link);
  text-decoration: none;
}

.site-footer .enterprise-footer-link:hover,
.site-footer .footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.site-footer .enterprise-footer-link:focus-visible,
.site-footer .footer-link:focus-visible,
.site-footer .brand:focus-visible,
.site-footer .store-download-btn:focus-visible {
  outline: 3px solid #75E6B3;
  outline-offset: 3px;
}

.site-footer .footer-disclaimer,
.site-footer .footer-inner > span {
  color: var(--footer-forest-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-footer .enterprise-footer-bottom,
.site-footer .footer-inner {
  border-top-color: rgba(215, 236, 224, 0.22);
}

.site-footer .store-download-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.site-footer .store-download-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
}

.site-footer .store-download-kicker {
  color: #D2EBDD;
}

.site-footer .store-download-title {
  color: #FFFFFF;
}

.site-footer .store-download-icon--invert-dark {
  filter: brightness(0) invert(1);
}

/* 10. Mode Crépusculaire — Conformité intégrale WCAG 2.2 AA (>= 4.5:1 texte, >= 3:1 bordures) */
body.theme-crepuscular {
  --border-control: #6E9480;
  --text-muted: #AEB5A8;
}

body.theme-crepuscular .required-star {
  color: #FF8B82;
}

body.theme-crepuscular select,
body.theme-crepuscular .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F3EFE6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

body.theme-crepuscular .btn--primary,
body.theme-crepuscular .nav-link--cta,
body.theme-crepuscular .plan-pill-btn--active,
body.theme-crepuscular .organ-pill-btn--active,
body.theme-crepuscular input[type="checkbox"]:checked {
  background-color: #38B883;
  border-color: #38B883;
  color: #062115 !important;
}

body.theme-crepuscular input[type="checkbox"]::after {
  border-left-color: #062115;
  border-bottom-color: #062115;
}

body.theme-crepuscular .clinicall-hero,
body.theme-crepuscular .clinicall-emblem-showcase,
body.theme-crepuscular .clinicall-price-card--popular,
body.theme-crepuscular .clinicall-bridge-card,
body.theme-crepuscular .clinicall-stripe-embedded,
body.theme-crepuscular .clinicall-child-calc,
body.theme-crepuscular .clinicall-digest-mini,
body.theme-crepuscular .clinicall-digest-mini-cell,
body.theme-crepuscular .auth-split-form-pane,
body.theme-crepuscular .plan-experience-bar,
body.theme-crepuscular .paywall-gate-card,
body.theme-crepuscular .paywall-modal-card,
body.theme-crepuscular .sport-partner-card,
body.theme-crepuscular .clinicall-empty-state,
body.theme-crepuscular .stripe-pm-tab,
body.theme-crepuscular .sepa-mandate-box,
body.theme-crepuscular .legal-container {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

body.theme-crepuscular .stripe-pm-tab--active,
body.theme-crepuscular .clinicall-plan-option--active,
body.theme-crepuscular .link-express-box {
  background-color: #153325;
  border-color: #38B883;
}

body.theme-crepuscular .clinicall-hero-title,
body.theme-crepuscular .clinicall-mini-v,
body.theme-crepuscular .stripe-pm-tab-title {
  color: var(--text-primary);
}

body.theme-crepuscular .clinicall-hero-lead,
body.theme-crepuscular .clinicall-mini-k {
  color: var(--text-secondary);
}

body.theme-crepuscular .clinicall-eyebrow,
body.theme-crepuscular .clinicall-wow-badge,
body.theme-crepuscular .clinicall-plan-badge,
body.theme-crepuscular .clinicall-trust-pill,
body.theme-crepuscular .clinicall-pw-pill--ok {
  background-color: #163326;
  border-color: #38B883;
  color: #8CE8BE;
}

body.theme-crepuscular .clinicall-price-amount,
body.theme-crepuscular .clinicall-pillar-big,
body.theme-crepuscular .clinicall-section-kicker,
body.theme-crepuscular .clinicall-wearable-name,
body.theme-crepuscular .clinicall-faq-card h3,
body.theme-crepuscular .clinicall-breakdown-line--total,
body.theme-crepuscular .brand-wordmark {
  color: #6EE7B7;
}

body.theme-crepuscular .site-footer {
  background: linear-gradient(180deg, #0A3322 0%, #051E14 100%);
  border-top-color: #1E5940;
}

body.theme-crepuscular .site-footer .brand-wordmark {
  color: #0B3B28;
}

body.theme-crepuscular .brand-h,
body.theme-crepuscular .auth-sidebar-brand-text .brand-h {
  color: var(--brand-cyan-on-dark);
}

body.theme-crepuscular .site-footer .brand-h {
  color: var(--brand-cyan);
}

/* 11. Utilitaires CSP-Safe sans attribut inline-style ni mutation .style.* */
.cursor-pointer { cursor: pointer; }
.max-w-320 { max-width: 320px; }
.hf-stage-label { font-size: 0.78rem; color: var(--text-secondary); }
.hf-counter-sub { margin-left: 8px; font-weight: 400; color: var(--text-secondary); }
.hf-counter-accent { font-weight: 700; color: var(--accent-primary); }
.bar-track-mini { height: 6px; margin-bottom: 4px; }
.bar-track-now { height: 8px; }
.bar-fill-muted { background-color: var(--border-strong); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }
.bar-fill-accent { background-color: var(--accent-primary); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }
.bar-fill-cardio { background-color: var(--pole-cardio); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }
.bar-fill-neuro { background-color: var(--pole-neuro); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }
.bar-fill-metabo { background-color: var(--pole-metabo); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }
.bar-fill-biolab { background-color: var(--pole-biolab); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }
.bar-fill-longevity { background-color: var(--pole-longevity); height: 100%; border-radius: 999px; transition: width 240ms var(--ease-out); }

.w-pct-0 { width: 0%; } .w-pct-1 { width: 1%; } .w-pct-2 { width: 2%; } .w-pct-3 { width: 3%; } .w-pct-4 { width: 4%; }
.w-pct-5 { width: 5%; } .w-pct-6 { width: 6%; } .w-pct-7 { width: 7%; } .w-pct-8 { width: 8%; } .w-pct-9 { width: 9%; }
.w-pct-10 { width: 10%; } .w-pct-11 { width: 11%; } .w-pct-12 { width: 12%; } .w-pct-13 { width: 13%; } .w-pct-14 { width: 14%; }
.w-pct-15 { width: 15%; } .w-pct-16 { width: 16%; } .w-pct-17 { width: 17%; } .w-pct-18 { width: 18%; } .w-pct-19 { width: 19%; }
.w-pct-20 { width: 20%; } .w-pct-21 { width: 21%; } .w-pct-22 { width: 22%; } .w-pct-23 { width: 23%; } .w-pct-24 { width: 24%; }
.w-pct-25 { width: 25%; } .w-pct-26 { width: 26%; } .w-pct-27 { width: 27%; } .w-pct-28 { width: 28%; } .w-pct-29 { width: 29%; }
.w-pct-30 { width: 30%; } .w-pct-31 { width: 31%; } .w-pct-32 { width: 32%; } .w-pct-33 { width: 33%; } .w-pct-34 { width: 34%; }
.w-pct-35 { width: 35%; } .w-pct-36 { width: 36%; } .w-pct-37 { width: 37%; } .w-pct-38 { width: 38%; } .w-pct-39 { width: 39%; }
.w-pct-40 { width: 40%; } .w-pct-41 { width: 41%; } .w-pct-42 { width: 42%; } .w-pct-43 { width: 43%; } .w-pct-44 { width: 44%; }
.w-pct-45 { width: 45%; } .w-pct-46 { width: 46%; } .w-pct-47 { width: 47%; } .w-pct-48 { width: 48%; } .w-pct-49 { width: 49%; }
.w-pct-50 { width: 50%; } .w-pct-51 { width: 51%; } .w-pct-52 { width: 52%; } .w-pct-53 { width: 53%; } .w-pct-54 { width: 54%; }
.w-pct-55 { width: 55%; } .w-pct-56 { width: 56%; } .w-pct-57 { width: 57%; } .w-pct-58 { width: 58%; } .w-pct-59 { width: 59%; }
.w-pct-60 { width: 60%; } .w-pct-61 { width: 61%; } .w-pct-62 { width: 62%; } .w-pct-63 { width: 63%; } .w-pct-64 { width: 64%; }
.w-pct-65 { width: 65%; } .w-pct-66 { width: 66%; } .w-pct-67 { width: 67%; } .w-pct-68 { width: 68%; } .w-pct-69 { width: 69%; }
.w-pct-70 { width: 70%; } .w-pct-71 { width: 71%; } .w-pct-72 { width: 72%; } .w-pct-73 { width: 73%; } .w-pct-74 { width: 74%; }
.w-pct-75 { width: 75%; } .w-pct-76 { width: 76%; } .w-pct-77 { width: 77%; } .w-pct-78 { width: 78%; } .w-pct-79 { width: 79%; }
.w-pct-80 { width: 80%; } .w-pct-81 { width: 81%; } .w-pct-82 { width: 82%; } .w-pct-83 { width: 83%; } .w-pct-84 { width: 84%; }
.w-pct-85 { width: 85%; } .w-pct-86 { width: 86%; } .w-pct-87 { width: 87%; } .w-pct-88 { width: 88%; } .w-pct-89 { width: 89%; }
.w-pct-90 { width: 90%; } .w-pct-91 { width: 91%; } .w-pct-92 { width: 92%; } .w-pct-93 { width: 93%; } .w-pct-94 { width: 94%; }
.w-pct-95 { width: 95%; } .w-pct-96 { width: 96%; } .w-pct-97 { width: 97%; } .w-pct-98 { width: 98%; } .w-pct-99 { width: 99%; }
.w-pct-100 { width: 100%; }

/* ==========================================================================
   Phase 4 — Apple HIG Design System (Émeraude + Vert-Cyan + Lavande),
   Barre Latérale Gauche Repliable (9+ icônes distinctes), Mode Clair / Mode Sombre,
   Menus Déroulants Luxueux, Grilles Bento (1/3, 2/3, 4/4), Charts/Donuts/Corps Humain,
   Tunnel d'Inscription 3 Étapes + Animation Célébration, QR Discret & Studio Rapports
   ========================================================================== */

.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: none !important;
}

/* Mode Sombre harmonisé (aliasé avec .theme-crepuscular pour compatibilité complète) */
body.theme-dark,
body.theme-crepuscular {
  --accent-emerald: #34D399;
  --accent-emerald-bg: #122D22;
  --accent-emerald-border: #2B6B4F;

  --accent-cyan: #38BDF8;
  --accent-cyan-bg: #0C2538;
  --accent-cyan-border: #0284C7;

  --accent-lavender: #C4B5FD;
  --accent-lavender-bg: #1D1933;
  --accent-lavender-border: #4C3F82;

  --border-control: #6E9480;
  --text-muted: #B6C0B4;
}

/* 1. En-tête Public Apple HIG Frosted Glass */
.site-header {
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(135, 176, 156, 0.35);
  z-index: 40;
}

body.theme-dark .site-header,
body.theme-crepuscular .site-header {
  background-color: rgba(20, 31, 25, 0.88);
  border-bottom-color: rgba(92, 138, 114, 0.35);
}

/* Masque la barre horizontale sur ordinateur dès que la barre latérale authentifiée est active */
@media (min-width: 961px) {
  body.has-auth-sidebar .site-header {
    display: none;
  }
}

@media (max-width: 960px) {
  body.has-auth-sidebar #primary-nav-menu,
  body.has-auth-sidebar #btn-mobile-nav,
  body.has-auth-sidebar .brand-subtitle {
    display: none !important;
  }
}

.sidebar-mobile-trigger {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-control);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sidebar-mobile-bars {
  width: 18px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  border-radius: 2px;
}

.sidebar-mobile-bars::before,
.sidebar-mobile-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

.sidebar-mobile-bars::before { top: -5px; }
.sidebar-mobile-bars::after { top: 5px; }

/* 2. Commutateur explicite à 2 boutons : Mode clair | Mode sombre */
.theme-segmented-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.theme-segmented-group--sidebar {
  width: 100%;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.theme-seg-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.theme-segmented-group--sidebar .theme-seg-btn {
  border-radius: 9px;
  padding: 6px 8px;
}

.theme-seg-btn:hover {
  color: var(--text-primary);
}

.theme-seg-btn--active {
  background-color: var(--bg-canvas);
  color: var(--accent-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

body.theme-dark .theme-seg-btn--active,
body.theme-crepuscular .theme-seg-btn--active {
  background-color: #1F3429;
  color: #8CE8BE;
  border-color: #38B883;
}

.theme-seg-ico .ico-svg {
  width: 15px;
  height: 15px;
  vertical-align: -2px;
}

/* 3. Coque & Barre Latérale Gauche Repliable/Dépliable de l'Espace Client */
.app-workspace-shell {
  display: flex;
  flex: 1;
  min-height: 100vh;
  width: 100%;
}

.app-workspace-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.has-auth-sidebar .site-main {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-6) var(--space-8);
}

.auth-sidebar {
  width: 268px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-surface) 100%);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0.85rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 45;
  transition: width 240ms var(--ease-out), padding 240ms var(--ease-out);
}

body.theme-dark .auth-sidebar,
body.theme-crepuscular .auth-sidebar {
  background: linear-gradient(180deg, #132019 0%, #0E1813 100%);
  border-right-color: var(--border-subtle);
}

.auth-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 8px 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  min-width: 0;
}

.sidebar-collapse-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.sidebar-collapse-btn:hover {
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
}

.auth-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.auth-sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  color: #FFFFFF;
  font-family: var(--font-numeral);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-sidebar-profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.auth-sidebar-user-name {
  font-size: 0.86rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.auth-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.auth-sidebar-group-label {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 10px 4px 10px;
}

.auth-sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    background-color 150ms var(--ease-out),
    color 150ms var(--ease-out),
    border-color 150ms var(--ease-out),
    transform 150ms var(--ease-out);
}

.auth-sidebar-link:hover {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

.auth-sidebar-link--active {
  background: linear-gradient(90deg, var(--accent-emerald-bg) 0%, var(--accent-cyan-bg) 100%);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

body.theme-dark .auth-sidebar-link--active,
body.theme-crepuscular .auth-sidebar-link--active {
  background: linear-gradient(90deg, #163729 0%, #133136 100%);
  color: #8CE8BE;
  border-color: #34D399;
}

.auth-sidebar-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-sidebar-ico .ico-svg {
  width: 19px;
  height: 19px;
  vertical-align: 0;
}

.auth-sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.auth-sidebar-logout {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  background-color: rgba(220, 38, 38, 0.05);
  color: #DC2626;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.auth-sidebar-logout .ico-svg,
.auth-sidebar-logout .auth-sidebar-ico,
.auth-sidebar-logout .auth-sidebar-label {
  color: #DC2626;
}

.auth-sidebar-logout .ico-svg {
  stroke: currentColor;
}

.auth-sidebar-logout:hover,
.auth-sidebar-logout:focus-visible {
  background-color: rgba(220, 38, 38, 0.12);
  color: #B91C1C;
  border-color: rgba(220, 38, 38, 0.45);
}

.auth-sidebar-logout:hover .ico-svg,
.auth-sidebar-logout:hover .auth-sidebar-ico,
.auth-sidebar-logout:hover .auth-sidebar-label {
  color: #B91C1C;
}

body.theme-dark .auth-sidebar-logout,
body.theme-crepuscular .auth-sidebar-logout {
  border-color: rgba(248, 113, 113, 0.28);
  background-color: rgba(239, 68, 68, 0.10);
  color: #F87171;
}

body.theme-dark .auth-sidebar-logout .ico-svg,
body.theme-dark .auth-sidebar-logout .auth-sidebar-ico,
body.theme-dark .auth-sidebar-logout .auth-sidebar-label,
body.theme-crepuscular .auth-sidebar-logout .ico-svg,
body.theme-crepuscular .auth-sidebar-logout .auth-sidebar-ico,
body.theme-crepuscular .auth-sidebar-logout .auth-sidebar-label {
  color: #F87171;
}

body.theme-dark .auth-sidebar-logout:hover,
body.theme-crepuscular .auth-sidebar-logout:hover {
  background-color: rgba(239, 68, 68, 0.18);
  color: #FCA5A5;
  border-color: rgba(248, 113, 113, 0.5);
}

body.theme-dark .auth-sidebar-logout:hover .ico-svg,
body.theme-dark .auth-sidebar-logout:hover .auth-sidebar-ico,
body.theme-dark .auth-sidebar-logout:hover .auth-sidebar-label,
body.theme-crepuscular .auth-sidebar-logout:hover .ico-svg,
body.theme-crepuscular .auth-sidebar-logout:hover .auth-sidebar-ico,
body.theme-crepuscular .auth-sidebar-logout:hover .auth-sidebar-label {
  color: #FCA5A5;
}

/* Mode replié de la barre latérale (Rail compact 76px pour maximiser la largeur centrale) */
@media (min-width: 961px) {
  body.sidebar-collapsed .auth-sidebar {
    width: 76px;
    padding: 1rem 0.55rem;
  }

  body.sidebar-collapsed .auth-sidebar-brand-text,
  body.sidebar-collapsed .auth-sidebar-profile-copy,
  body.sidebar-collapsed .auth-sidebar-group-label,
  body.sidebar-collapsed .auth-sidebar-label,
  body.sidebar-collapsed .theme-seg-txt,
  body.sidebar-collapsed .sidebar-lang-host {
    display: none;
  }

  body.sidebar-collapsed .auth-sidebar-top {
    flex-direction: column;
    gap: 8px;
  }

  body.sidebar-collapsed .auth-sidebar-profile,
  body.sidebar-collapsed .auth-sidebar-link,
  body.sidebar-collapsed .auth-sidebar-logout {
    justify-content: center;
    padding: 10px 0;
  }
}

/* Tiroir mobile < 960px */
@media (max-width: 960px) {
  body.has-auth-sidebar .site-main {
    padding: var(--space-4);
  }

  .auth-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-104%);
    box-shadow: var(--shadow-lg);
    transition: transform 240ms var(--ease-out);
  }

  body.auth-drawer-open .auth-sidebar {
    transform: translateX(0);
  }

  .auth-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 28, 20, 0.48);
    backdrop-filter: blur(3px);
    z-index: 42;
  }
}

/* 4. Sélecteurs & Menus Déroulants Luxueux ClinicHall (Frosted Popover) */
.lux-select-wrap {
  position: relative;
  width: 100%;
  display: inline-flex;
  flex-direction: column;
}

.lux-select-wrap--compact {
  width: auto;
  min-width: 126px;
}

.lux-native-select {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.lux-select-trigger {
  position: relative;
  z-index: 2;
  appearance: none;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0.56rem 0.9rem;
  border-radius: 11px;
  border: 1.5px solid var(--border-control);
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-surface) 100%);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.91rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(14, 56, 39, 0.05);
  transition:
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    background-color 160ms var(--ease-out);
}

.lux-select-trigger--compact {
  min-height: 36px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.lux-select-trigger:hover {
  border-color: var(--accent-emerald);
  box-shadow: 0 3px 10px rgba(14, 90, 62, 0.09);
}

.lux-select-wrap--open .lux-select-trigger {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(14, 90, 62, 0.14);
}

.lux-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lux-select-chevron {
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  transition: transform 180ms var(--ease-out);
  flex-shrink: 0;
}

.lux-select-wrap--open .lux-select-chevron {
  transform: rotate(180deg);
}

.lux-select-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 210px;
  z-index: 85;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1.5px solid var(--accent-emerald-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  animation: luxPopoverIn 150ms var(--ease-out);
}

body.theme-dark .lux-select-popover,
body.theme-crepuscular .lux-select-popover {
  background-color: rgba(23, 37, 30, 0.97);
  border-color: var(--accent-emerald-border);
}

@keyframes luxPopoverIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lux-select-search-box {
  padding: 4px 4px 6px 4px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.lux-select-search-input {
  width: 100%;
  min-height: 36px !important;
  font-size: 0.83rem !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 8px !important;
}

.lux-select-options {
  max-height: 248px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lux-select-option {
  appearance: none;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out);
}

.lux-select-option:hover {
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.lux-select-option--selected {
  background: linear-gradient(90deg, var(--accent-emerald-bg) 0%, var(--accent-cyan-bg) 100%);
  color: var(--accent-emerald);
  font-weight: 600;
}

.lux-select-option-check {
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
}

.lux-select-empty {
  padding: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* 5. Grilles Bento (1/3, 2/3, 3/3, 4/4) & Cartes Thématiques (Émeraude, Cyan, Lavande) */
.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}

.bento-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.bento-span-1 { grid-column: span 1; }
.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }

@media (max-width: 1120px) {
  .bento-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-span-3,
  .bento-span-4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .bento-grid-3,
  .bento-grid-4 {
    grid-template-columns: 1fr;
  }
  .bento-span-1,
  .bento-span-2,
  .bento-span-3,
  .bento-span-4 {
    grid-column: 1 / -1;
  }
}

.card--emerald {
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--accent-emerald-bg) 160%);
  border: 1px solid var(--accent-emerald-border);
}

.card--cyan {
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--accent-cyan-bg) 160%);
  border: 1px solid var(--accent-cyan-border);
}

.card--lavender {
  background: linear-gradient(180deg, var(--bg-canvas) 0%, var(--accent-lavender-bg) 160%);
  border: 1px solid var(--accent-lavender-border);
}

.badge--emerald {
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.badge--cyan {
  background-color: var(--accent-cyan-bg);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-border);
}

.badge--lavender {
  background-color: var(--accent-lavender-bg);
  color: var(--accent-lavender);
  border: 1px solid var(--accent-lavender-border);
}

.kpi-tile {
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.kpi-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-tile-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kpi-tile-value {
  font-family: var(--font-numeral);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.68rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.15;
}

.kpi-tile-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 6. Composants Visuels Interactifs (Anneaux, Donuts, Courbes Lissées, Jauges, Corps Humain) */
.chart-stroke--emerald { stroke: var(--accent-emerald); }
.chart-stroke--cyan { stroke: var(--accent-cyan); }
.chart-stroke--lavender { stroke: var(--accent-lavender); }
.chart-stroke--amber { stroke: var(--status-watch); }

.chart-fill--emerald { fill: var(--accent-emerald); }
.chart-fill--cyan { fill: var(--accent-cyan); }
.chart-fill--lavender { fill: var(--accent-lavender); }
.chart-fill--amber { fill: var(--status-watch); }

.viz-rings-layout {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.viz-rings-svg-box {
  width: 164px;
  height: 164px;
  flex-shrink: 0;
  margin: 0 auto;
}

.viz-rings-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.viz-ring-track {
  fill: none;
  stroke-width: 11;
  opacity: 0.18;
}

.viz-ring-track--emerald { stroke: var(--accent-emerald); }
.viz-ring-track--cyan { stroke: var(--accent-cyan); }
.viz-ring-track--lavender { stroke: var(--accent-lavender); }

.viz-ring-arc {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  transition: stroke-dashoffset 680ms var(--ease-out);
}

.viz-ring-center-val {
  font-family: var(--font-numeral);
  font-size: 28px;
  font-weight: 700;
  fill: var(--text-primary);
}

.viz-ring-center-lbl {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  fill: var(--text-secondary);
}

.viz-rings-legend {
  flex: 1;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.viz-ring-legend-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 150ms var(--ease-out), transform 150ms var(--ease-out);
}

.viz-ring-legend-btn:hover {
  border-color: var(--accent-emerald);
  transform: translateX(2px);
}

.viz-ring-legend-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  font-size: 0.83rem;
}

.viz-ring-legend-title {
  color: var(--text-secondary);
}

.viz-ring-legend-val {
  font-family: var(--font-numeral);
  color: var(--text-primary);
}

.viz-tone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.viz-tone-dot--emerald { background-color: var(--accent-emerald); }
.viz-tone-dot--cyan { background-color: var(--accent-cyan); }
.viz-tone-dot--lavender { background-color: var(--accent-lavender); }
.viz-tone-dot--amber { background-color: var(--status-watch); }

/* Donut */
.viz-donut-layout {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.viz-donut-svg {
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  margin: 0 auto;
}

.viz-donut-base {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 16;
}

.viz-donut-seg {
  fill: none;
  stroke-width: 16;
  stroke-linecap: butt;
  transition: stroke-dasharray 450ms var(--ease-out);
}

.viz-donut-center-val {
  font-family: var(--font-numeral);
  font-size: 20px;
  font-weight: 700;
  fill: var(--text-primary);
}

.viz-donut-center-lbl {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--text-secondary);
}

.viz-donut-legend {
  flex: 1;
  min-width: 165px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viz-donut-legend-row {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  border-radius: 9px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.81rem;
  color: var(--text-primary);
  cursor: pointer;
}

.viz-donut-legend-row:hover {
  border-color: var(--accent-cyan);
}

.viz-donut-legend-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Courbe lissée Bezier */
.viz-trend-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.viz-trend-readout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.viz-trend-series-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.viz-series-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.viz-trend-active-val {
  font-family: var(--font-numeral);
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background-color: var(--accent-emerald-bg);
  border: 1px solid var(--accent-emerald-border);
  padding: 4px 11px;
  border-radius: 999px;
}

.viz-trend-svg {
  width: 100%;
  height: auto;
  display: block;
}

.viz-optimal-band {
  fill: var(--accent-emerald);
  opacity: 0.08;
}

.viz-grid-line {
  stroke: var(--border-subtle);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.viz-axis-label {
  font-family: var(--font-numeral);
  font-size: 10.5px;
  fill: var(--text-muted);
}

.viz-trend-line {
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viz-trend-dot {
  stroke: var(--bg-canvas);
  stroke-width: 2;
  transition: cx 110ms var(--ease-out), cy 110ms var(--ease-out);
}

.viz-crosshair {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.viz-hit-col {
  fill: transparent;
  cursor: crosshair;
}

/* Jauges de progression */
.viz-gauge-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.viz-gauge-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.viz-gauge-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.viz-gauge-val {
  font-family: var(--font-numeral);
  font-size: 0.92rem;
}

.viz-gauge-val--emerald { color: var(--accent-emerald); }
.viz-gauge-val--cyan { color: var(--accent-cyan); }
.viz-gauge-val--lavender { color: var(--accent-lavender); }
.viz-gauge-val--amber { color: var(--status-watch); }

.viz-gauge-fill--emerald { background: linear-gradient(90deg, var(--accent-emerald) 0%, #22A06B 100%); }
.viz-gauge-fill--cyan { background: linear-gradient(90deg, var(--accent-cyan) 0%, #1496A0 100%); }
.viz-gauge-fill--lavender { background: linear-gradient(90deg, var(--accent-lavender) 0%, #7C69D6 100%); }
.viz-gauge-fill--amber { background: linear-gradient(90deg, var(--status-watch) 0%, #E07A16 100%); }

.viz-gauge-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Cartographie Corporelle Humaine Interactive */
.viz-body-explorer {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

@media (max-width: 680px) {
  .viz-body-explorer {
    grid-template-columns: 1fr;
  }
}

.viz-body-figure-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, var(--accent-emerald-bg) 0%, transparent 72%);
  border-radius: 16px;
  padding: 0.5rem;
}

.viz-body-svg {
  width: 184px;
  height: auto;
  max-height: 292px;
}

.viz-body-aura {
  fill: var(--accent-cyan);
  opacity: 0.05;
}

.viz-body-silhouette {
  fill: var(--bg-elevated);
  stroke: var(--border-strong);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.viz-body-inner-lines {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.viz-body-hotspot {
  cursor: pointer;
}

.viz-body-hotspot-pulse {
  fill: var(--accent-emerald);
  opacity: 0.16;
  transform-origin: center;
  transition: r 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.viz-body-hotspot--cyan .viz-body-hotspot-pulse { fill: var(--accent-cyan); }
.viz-body-hotspot--lavender .viz-body-hotspot-pulse { fill: var(--accent-lavender); }

.viz-body-hotspot-core {
  fill: var(--accent-emerald);
  stroke: var(--bg-canvas);
  stroke-width: 2;
}

.viz-body-hotspot--cyan .viz-body-hotspot-core { fill: var(--accent-cyan); }
.viz-body-hotspot--lavender .viz-body-hotspot-core { fill: var(--accent-lavender); }

.viz-body-hotspot--active .viz-body-hotspot-pulse {
  opacity: 0.34;
  animation: bodyHotspotPulse 2.1s infinite ease-in-out;
}

@keyframes bodyHotspotPulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.45; }
}

.viz-body-detail-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.viz-body-zone-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

@media (max-width: 540px) {
  .viz-body-zone-list {
    grid-template-columns: 1fr;
  }
}

.viz-body-zone-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 7px 10px;
  font-family: var(--font-sans);
  font-size: 0.79rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.viz-body-zone-btn:hover {
  border-color: var(--accent-emerald);
}

.viz-body-zone-btn--active.viz-body-zone-btn--emerald {
  background-color: var(--accent-emerald-bg);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  font-weight: 600;
}

.viz-body-zone-btn--active.viz-body-zone-btn--cyan {
  background-color: var(--accent-cyan-bg);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

.viz-body-zone-btn--active.viz-body-zone-btn--lavender {
  background-color: var(--accent-lavender-bg);
  border-color: var(--accent-lavender);
  color: var(--accent-lavender);
  font-weight: 600;
}

.viz-body-readout-card {
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viz-body-readout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.viz-body-readout-title {
  font-size: 0.92rem;
  color: var(--text-primary);
}

.viz-body-readout-metrics {
  font-family: var(--font-numeral);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.viz-body-readout-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 7. Tunnel d'Inscription en 3 Étapes + Animation de Bienvenue & Redirection Automatique */
.signup-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .signup-stepper {
    grid-template-columns: 1fr;
  }
}

.signup-step-pill {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 160ms var(--ease-out);
}

.signup-step-pill--active {
  border-color: var(--accent-emerald);
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  box-shadow: var(--shadow-sm);
}

.signup-step-pill--done {
  border-color: var(--accent-cyan-border);
  background-color: var(--accent-cyan-bg);
  color: var(--accent-cyan);
}

.signup-step-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: luxPopoverIn 220ms var(--ease-out);
}

.signup-celebration {
  padding: 2.5rem 1.75rem;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 0%, var(--accent-emerald-bg) 0%, var(--bg-canvas) 70%);
  border: 1.5px solid var(--accent-emerald-border);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  animation: celebrationPop 420ms var(--ease-spring);
}

@keyframes celebrationPop {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.signup-celebration-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(14, 90, 62, 0.28);
  animation: celebrationPulse 1.6s infinite ease-in-out;
}

@keyframes celebrationPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 90, 62, 0.32); }
  50% { box-shadow: 0 0 0 14px rgba(14, 90, 62, 0); }
}

.signup-celebration-check {
  width: 40px;
  height: 40px;
}

.signup-redirect-bar {
  width: 100%;
  max-width: 340px;
  height: 7px;
  border-radius: 999px;
  background-color: var(--bg-elevated);
  overflow: hidden;
}

.signup-redirect-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 60%, var(--accent-lavender) 100%);
  animation: signupRedirectFill 3.2s linear forwards;
}

@keyframes signupRedirectFill {
  from { width: 4%; }
  to { width: 100%; }
}

/* 8. Badge QR Code Discret & Élégant (64×64px) */
.qr-compact-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  max-width: 320px;
}

.qr-compact-svg-wrap {
  width: 64px;
  height: 64px;
  min-width: 64px;
  padding: 4px;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qr-compact-svg-wrap svg,
.qr-compact-svg-wrap img {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  max-height: 54px !important;
}

/* 9. Onglets Connecteur MCP 5 Fournisseurs (Claude, Codex, Cursor, Antigravity, Mistral) */
.mcp-provider-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mcp-provider-tab {
  appearance: none;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms var(--ease-out);
}

.mcp-provider-tab:hover {
  border-color: var(--accent-emerald);
  color: var(--text-primary);
}

.mcp-provider-tab--active {
  background-color: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #FFFFFF;
}

body.theme-dark .mcp-provider-tab--active,
body.theme-crepuscular .mcp-provider-tab--active {
  background-color: #34D399;
  border-color: #34D399;
  color: #062115;
}

.mcp-snippet-box {
  background-color: #0D1F17;
  color: #E5F5EC;
  border: 1px solid #24523D;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

/* 10. Studio Rapports & Exports (/rapports) + Génération Automatique des Avis Spécialistes */
.report-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.report-template-card {
  appearance: none;
  text-align: left;
  padding: 1.05rem;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 160ms var(--ease-out);
}

.report-template-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.report-template-card--active {
  border-color: var(--accent-emerald);
  background: linear-gradient(180deg, var(--accent-emerald-bg) 0%, var(--bg-canvas) 100%);
  box-shadow: var(--shadow-md);
}

.report-preview-sheet {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background-color: var(--bg-canvas);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.specialist-auto-banner {
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  background: linear-gradient(125deg, var(--accent-emerald-bg) 0%, var(--accent-cyan-bg) 52%, var(--accent-lavender-bg) 100%);
  border: 1px solid var(--accent-emerald-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.specialist-auto-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(14, 90, 62, 0.18);
  animation: celebrationPulse 1.8s infinite ease-in-out;
}

/* ============================================================================
   BOUTON COMPACT UNIQUE LUNE / SOLEIL (ESPACE AUTHENTIFIÉ UNIQUEMENT)
   ============================================================================ */
.auth-sidebar-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.auth-theme-single-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.auth-theme-single-btn .sidebar-ico-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms var(--ease-out);
}

.auth-theme-single-btn .ico-svg {
  width: 17px;
  height: 17px;
}

.auth-theme-single-btn:hover {
  border-color: var(--accent-emerald-border);
  background-color: var(--bg-canvas);
  color: var(--accent-emerald);
}

.auth-theme-single-btn:hover .sidebar-ico-slot {
  transform: rotate(-12deg);
}

.auth-theme-single-btn:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

.auth-theme-single-btn--dark,
body.theme-dark .auth-theme-single-btn {
  background-color: var(--bg-elevated);
  border-color: rgba(251, 191, 36, 0.35);
  color: #FBBF24;
}

.auth-theme-single-btn--dark:hover,
body.theme-dark .auth-theme-single-btn:hover {
  background-color: rgba(251, 191, 36, 0.14);
  color: #FDE68A;
}

@media (min-width: 961px) {
  body.sidebar-collapsed .auth-sidebar-top-actions {
    flex-direction: column;
    gap: 6px;
  }

  body.sidebar-collapsed .auth-theme-single-btn {
    width: 30px;
    height: 30px;
  }
}

/* ============================================================================
   UTILITAIRES PARTAGÉS DE MISE EN PAGE CLINIQUE (WCAG 2.2 AA)
   ============================================================================ */
.stack-2xs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stack-xs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stack-xs > .badge,
.stack-xs > .clinical-tag {
  align-self: flex-start;
}

.btn-with-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.req-star {
  color: #C92A2A;
  font-weight: 700;
  margin-left: 0.2rem;
}

body.theme-dark .req-star {
  color: #FF8787;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

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

@media (max-width: 820px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

.clinical-row-box {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.clinical-row-box--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================================
   OMNIBAR HYBRIDE RAG — BANDEAU INSTITUTIONNEL & CITATIONS VÉRIFIÉES
   ============================================================================ */
.omnibar-inline-text-wrap {
  margin-top: 0.5rem;
}

.omnibar-institutions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.omnibar-institutions-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.omnibar-institutions-kicker {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 0.15rem;
}

.omnibar-inst-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.omnibar-privacy-seal {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.rag-answer-body {
  line-height: 1.62;
  color: var(--text-primary);
  white-space: pre-line;
}

.rag-context-box,
.rag-citations-box {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.rag-sub-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.rag-hits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rag-dossier-hit {
  font-size: 0.79rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background-color: var(--accent-cyan-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.rag-citations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
}

.rag-citation-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.rag-citation-card:hover {
  border-color: var(--accent-emerald-border);
  background-color: var(--accent-emerald-bg);
}

.rag-citation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rag-citation-year {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rag-citation-title {
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ============================================================================
   CONTRE-ANNOTATIONS MÉDECINS & PORTAIL DE CONSULTATION (/s)
   ============================================================================ */
.share-patient-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-vitals-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.share-vital-kpi {
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.physician-annot-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent-emerald-border);
  background-color: var(--bg-surface);
}

.physician-annot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.physician-annot-who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.physician-annot-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.physician-annot-name {
  font-size: 0.96rem;
  color: var(--text-primary);
}

.physician-annot-note {
  margin: 0.25rem 0;
  line-height: 1.58;
  color: var(--text-primary);
}

.physician-annot-foot {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.4rem;
}

.physician-annot-empty {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background-color: var(--bg-surface);
}

/* ============================================================================
   EXTRACTION INTELLIGENTE D'ORDONNANCES & BILANS BIOLOGIQUES
   ============================================================================ */
.extract-result-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.extract-analytes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0.65rem;
}

.extract-analyte-item {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.extract-analyte-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.extract-analyte-val {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================================
   PASS D'URGENCE MÉDICALE & CARTE PHYSIQUE ICE (WALLET)
   ============================================================================ */
.wallet-pass-layout {
  display: grid;
  grid-template-columns: minmax(290px, 1.05fr) minmax(300px, 1.15fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .wallet-pass-layout {
    grid-template-columns: 1fr;
  }
}

.wallet-emergency-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--accent-emerald-border);
  background-color: var(--bg-canvas);
  box-shadow: var(--shadow-md);
}

.wallet-emergency-card-header {
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #0B4A33 0%, #0E5A3E 60%, #136F4D 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.wallet-emergency-brand {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.wallet-emergency-holder {
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
}

.wallet-blood-badge {
  min-width: 58px;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.wallet-blood-badge span {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.wallet-blood-badge strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.wallet-emergency-card-body {
  padding: 0.95rem 1.15rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .wallet-emergency-card-body {
    grid-template-columns: 1fr;
  }
}

.wallet-card-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wallet-card-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.wallet-card-val {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.wallet-emergency-card-footer {
  padding: 0.6rem 1.15rem;
  background-color: var(--accent-emerald-bg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.wallet-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* ============================================================================
   COMPARATEUR TEMPOREL AVANT / APRÈS (6 MOIS · 12 MOIS) & APERÇU RAPPORTS
   ============================================================================ */
.temporal-horizon-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.temporal-pill-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}

.temporal-pill-btn--active {
  background-color: var(--accent-emerald);
  color: #FFFFFF;
}

body.theme-dark .temporal-pill-btn--active {
  background-color: #1B7A56;
  color: #FFFFFF;
}

.temporal-summary-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.viz-temporal-wrap {
  width: 100%;
}

.viz-temporal-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.viz-temporal-legend-items {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.viz-temporal-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.viz-temporal-dot-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.viz-temporal-dot-swatch--t0 {
  background-color: transparent;
  border: 2px solid var(--text-secondary);
}

.viz-temporal-dot-swatch--now {
  background-color: var(--accent-emerald);
}

.viz-temporal-svg {
  width: 100%;
  height: auto;
  display: block;
}

.viz-temporal-col-hdr {
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-secondary);
}

.viz-temporal-row {
  cursor: pointer;
}

.viz-temporal-row-bg {
  fill: transparent;
  transition: fill 140ms ease;
}

.viz-temporal-row:hover .viz-temporal-row-bg,
.viz-temporal-row--active .viz-temporal-row-bg {
  fill: var(--bg-surface);
}

.viz-temporal-metric-title {
  font-size: 13px;
  font-weight: 600;
  fill: var(--text-primary);
}

.viz-temporal-metric-sub {
  font-size: 11.5px;
  fill: var(--text-secondary);
}

.viz-temporal-track {
  fill: var(--bg-surface);
  stroke: var(--border-subtle);
  stroke-width: 1;
}

.viz-temporal-bar-t0 {
  fill: var(--text-muted, #7D8B83);
  opacity: 0.45;
}

.viz-temporal-bar-now--emerald {
  fill: var(--accent-emerald);
}

.viz-temporal-bar-now--cyan {
  fill: var(--accent-cyan);
}

.viz-temporal-bar-now--amber {
  fill: #B45309;
}

.viz-temporal-connector {
  fill: none;
  stroke-width: 1.75;
  stroke-dasharray: 3 2;
}

.viz-temporal-connector--emerald {
  stroke: var(--accent-emerald);
}

.viz-temporal-connector--cyan {
  stroke: var(--accent-cyan);
}

.viz-temporal-connector--amber {
  stroke: #B45309;
}

.viz-temporal-node-t0 {
  fill: var(--bg-canvas);
  stroke: var(--text-secondary);
  stroke-width: 2;
}

.viz-temporal-node-now--emerald {
  fill: var(--accent-emerald);
}

.viz-temporal-node-now--cyan {
  fill: var(--accent-cyan);
}

.viz-temporal-node-now--amber {
  fill: #B45309;
}

.viz-temporal-delta-pill--emerald {
  fill: var(--accent-emerald-bg);
  stroke: var(--accent-emerald-border);
  stroke-width: 1;
}

.viz-temporal-delta-pill--cyan {
  fill: var(--accent-cyan-bg);
  stroke: var(--border-subtle);
  stroke-width: 1;
}

.viz-temporal-delta-pill--amber {
  fill: rgba(180, 83, 9, 0.12);
  stroke: rgba(180, 83, 9, 0.32);
  stroke-width: 1;
}

.viz-temporal-delta-txt {
  font-size: 12px;
  font-weight: 700;
}

.viz-temporal-delta-txt--emerald {
  fill: var(--accent-emerald);
}

.viz-temporal-delta-txt--cyan {
  fill: var(--accent-cyan);
}

.viz-temporal-delta-txt--amber {
  fill: #B45309;
}

body.theme-dark .viz-temporal-delta-txt--amber {
  fill: #FBBF24;
}

.viz-temporal-readout {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.viz-temporal-readout-note {
  color: var(--text-secondary);
}

.report-advanced-options {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.report-temporal-preview {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.report-annot-preview-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background-color: var(--accent-emerald-bg);
  border: 1px solid var(--accent-emerald-border);
}

.report-before-after-table th,
.report-before-after-table td {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

/* ============================================================================
   CARTE NOTIFICATIONS COURRIEL CLINICHALL (/facturation)
   ============================================================================ */
.email-notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.email-notif-subject {
  font-size: 0.88rem;
  color: var(--text-primary);
}

/* ============================================================================
   PHASE 6 : CARROUSEL VERTICAL VIVANT ASYNCHRONE DES 32 INSTITUTIONS MONDIALES,
   7 CONNECTEURS CLOUD GED BIDIRECTIONNELS, 10 MODULES CLINIQUES & RESPONSIVE
   ============================================================================ */

/* Accessibilité lecteur d'écran sans décalage visuel */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 1. Carrousel Vertical Vivant Asynchrone (#institutional-vertical-carousel) */
.inst-carousel-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.inst-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.inst-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inst-filter-pill {
  appearance: none;
  border: 1px solid #C8DDD0;
  background-color: #FFFFFF;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.inst-filter-pill:hover {
  border-color: #1B4332;
  color: #1B4332;
}

.inst-filter-pill--active {
  background-color: #1B4332;
  border-color: #1B4332;
  color: #FFFFFF;
}

.inst-live-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inst-vslot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.inst-vslot {
  position: relative;
  height: 124px;
  overflow: hidden;
  border-radius: 14px;
  background-color: #FFFFFF;
  border: 1px solid #D4E3DA;
  box-shadow: 0 2px 8px rgba(15, 41, 30, 0.04);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.inst-vslot:hover,
.inst-vslot:focus-within {
  border-color: #2D6A4F;
  box-shadow: 0 6px 18px rgba(15, 41, 30, 0.08);
  outline: none;
}

.inst-card {
  position: absolute;
  inset: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #FFFFFF;
  will-change: transform, opacity;
  transition:
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 440ms cubic-bezier(0.22, 1, 0.36, 1);
}

.inst-card--active {
  transform: translateY(0);
  opacity: 1;
  z-index: 2;
}

.inst-card--prep-from-bottom {
  transform: translateY(105%);
  opacity: 0;
  transition: none;
  z-index: 3;
}

.inst-card--prep-from-top {
  transform: translateY(-105%);
  opacity: 0;
  transition: none;
  z-index: 3;
}

.inst-card--exit-up {
  transform: translateY(-105%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.inst-card--exit-down {
  transform: translateY(105%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.inst-monogram {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
}

.inst-monogram--sm {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 0.7rem;
}

.inst-monogram--emerald {
  background-color: #EAF5EE;
  color: #1B4332;
  border-color: #B9DEC8;
}

.inst-monogram--cyan {
  background-color: #E6F6FE;
  color: #0077B6;
  border-color: #7DD3FC;
}

.inst-monogram--lavender {
  background-color: #F2EFFA;
  color: #4A3B7A;
  border-color: #D7CEEE;
}

.inst-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inst-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inst-region-pill {
  font-size: 0.7rem;
  font-weight: 600;
  color: #2D6A4F;
  background-color: #F1F8F4;
  border: 1px solid #CFE5D7;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 190px;
}

.inst-order-num {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.inst-card-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.26;
  color: #10241B;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inst-card-spec {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Annuaire complet dépliable des 32 institutions (SEO / AEO / GEO) */
.inst-directory-drawer {
  background-color: #FFFFFF;
  border: 1px solid #D4E3DA;
  border-radius: 14px;
  overflow: hidden;
}

.inst-directory-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1B4332;
  background-color: #F7FBF8;
}

.inst-directory-summary::-webkit-details-marker {
  display: none;
}

.inst-directory-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inst-directory-grid {
  padding: 16px 18px 20px 18px;
  border-top: 1px solid #E2EDE6;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.inst-directory-card {
  background-color: #FAFDFB;
  border: 1px solid #DCE9E1;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inst-directory-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inst-directory-name {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  color: #10241B;
  margin: 0;
}

.inst-directory-spec {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0;
}

/* 2. Vitrine & Cartes des 7 Connecteurs Cloud GED Bidirectionnels */
.ged-landing-showcase {
  background-color: #FFFFFF;
  border: 1px solid #CFE2D6;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ged-landing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ged-landing-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr));
  gap: 12px;
}

.ged-landing-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: #FAFDFB;
  border: 1px solid #D9E8DF;
}

.ged-brand-svg {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.ged-landing-brand-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ged-landing-brand-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ged-landing-brand-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ged-connectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.ged-connectors-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
  gap: 12px;
}

.ged-provider-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.ged-provider-card--connected {
  border-color: var(--accent-emerald-border);
  box-shadow: var(--shadow-sm);
}

.ged-provider-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ged-provider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ged-provider-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ged-provider-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.ged-counters-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ged-counter-pill {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.ged-counter-pill strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-input--sm {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.ged-bidir-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.ged-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ged-inline-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ged-inbound-drawer {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.ged-inbound-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.ged-inbound-summary::-webkit-details-marker {
  display: none;
}

.ged-inbound-body {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.ged-sample-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ged-file-label {
  cursor: pointer;
}

.ged-inbound-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ged-analysis-result-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--accent-emerald-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.ged-bio-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 8px;
}

.ged-bio-chip {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ged-sub-note {
  padding: 8px 12px;
  border-radius: 9px;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
}

.ged-citations-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ged-events-journal {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.ged-event-row {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.ged-event-left,
.ged-event-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ged-event-summary {
  flex: 1 1 100%;
  margin: 2px 0 0 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* 3. Modules Cliniques Phase 6 (Briefing 90 s, Calendrier Zéro-Admin, Omics, FHIR, E-Sig, B2B2C, RGPD Art. 17) */
.phase6-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phase6-briefing-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.phase6-wins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phase6-win-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.phase6-win-tile p {
  margin: 0;
}

.phase6-transcript-box {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border-left: 3px solid var(--accent-emerald);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.phase6-zero-admin-note {
  margin: 4px 0 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: var(--accent-emerald-bg);
  border: 1px solid var(--accent-emerald-border);
  color: var(--text-primary);
  font-size: 0.83rem;
  line-height: 1.45;
}

.phase6-checkup-item {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
}

.phase6-preconsult-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.phase6-questions-list {
  margin: 4px 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase6-booking-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.phase6-booking-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phase6-kpi-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr));
  gap: 10px;
}

.phase6-mini-stat {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase6-upgrade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  background-color: var(--accent-lavender-bg);
  border: 1px solid var(--accent-lavender-border);
}

.phase6-pace-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
}

.phase6-cpic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.phase6-cpic-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.phase6-esig-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase6-two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.phase6-subpanel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
}

.phase6-danger-card {
  border: 1.5px solid var(--status-alert-border);
  background-color: var(--bg-canvas);
}

.phase6-delete-form {
  max-width: 560px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* 4. Responsive Intégral (1440px, 1024px, 768px, 480px, 390px, 375px, 320px)
   Garantie stricte : zéro débordement horizontal (scrollWidth <= innerWidth) et cibles >= 44x44px */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app-workspace-shell,
.app-workspace-content,
.site-main,
.clinicall-landing,
.card {
  max-width: 100%;
  min-width: 0;
}

.table-wrap,
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mcp-snippet-box,
.code-pill {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 1024px) {
  .inst-vslot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inst-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-split-shell,
  .auth-split-shell--wide,
  .companion-apps-showcase,
  .usecase-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  /* Cibles tactiles >= 44x44px conformes Apple HIG / WCAG 2.2 */
  .sidebar-mobile-trigger,
  .btn-mobile-nav,
  .sidebar-collapse-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
  }

  .auth-sidebar-link,
  .auth-sidebar-logout {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  .phase6-wins-grid,
  .phase6-two-col-grid,
  .form-grid-2,
  .form-grid-3,
  .form-grid-4,
  .paywall-gate-grid,
  .sport-nutrition-grid,
  .members-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .omnibar-composer {
    flex-wrap: wrap;
  }

  .omnibar-input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .auth-split-form-pane,
  .auth-split-visual,
  .ged-landing-showcase,
  .companion-apps-showcase,
  .usecase-panel {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  /* Carrousel vertical mobile : 1 colonne de 4 fenêtres vivantes autonomes */
  .inst-vslot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inst-vslot--desktop-tablet {
    display: none;
  }

  .inst-vslot {
    height: 120px;
  }

  .inst-directory-grid,
  .enterprise-footer-grid,
  .usecase-metrics-grid,
  .ged-counters-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  body.has-auth-sidebar .site-main,
  .site-main {
    padding: 1rem 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .inst-card {
    padding: 12px 14px;
    gap: 10px;
  }

  .inst-monogram {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
  }
}

/* =========================================================================
   Phase 7 — Scores de Santé Unifiés (0–100), Observabilité & Coffre de Rejeu
   ========================================================================= */

.unified-scores-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 20px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  background: var(--surface-subtle, rgba(14, 90, 62, 0.03));
  align-items: center;
}

.unified-scores-hero-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.unified-score-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary, #475569);
}

.unified-hero-figure-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.unified-hero-number {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
  color: var(--emerald-700, #0e5a3e);
  font-variant-numeric: tabular-nums;
}

body[data-theme="dark"] .unified-hero-number {
  color: #34d399;
}

.unified-hero-denom {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.unified-providers-box {
  min-width: 0;
}

.unified-scores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.unified-score-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  background: var(--surface, #ffffff);
  min-width: 0;
}

body[data-theme="dark"] .unified-score-tile {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

.unified-score-tile-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.unified-score-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary, #0f172a);
}

body[data-theme="dark"] .unified-score-title {
  color: #f1f5f9;
}

.unified-score-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body[data-theme="dark"] .unified-score-value {
  color: #f8fafc;
}

.unified-score-bar {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(15, 23, 42, 0.08);
}

body[data-theme="dark"] .unified-score-bar {
  background-color: rgba(255, 255, 255, 0.1);
}

.unified-score-bar::-webkit-progress-bar {
  background-color: transparent;
  border-radius: 4px;
}

.unified-score-bar::-webkit-progress-value {
  border-radius: 4px;
  background-color: #0e5a3e;
}

.unified-score-bar::-moz-progress-bar {
  border-radius: 4px;
  background-color: #0e5a3e;
}

.unified-score-bar--steady::-webkit-progress-value {
  background-color: var(--accent-cyan);
}

.unified-score-bar--steady::-moz-progress-bar {
  background-color: var(--accent-cyan);
}

.unified-score-bar--watch::-webkit-progress-value {
  background-color: #b45309;
}

.unified-score-bar--watch::-moz-progress-bar {
  background-color: #b45309;
}

.unified-score-tile-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.unified-score-state {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--emerald-700, #0e5a3e);
}

body[data-theme="dark"] .unified-score-state {
  color: #5eead4;
}

.obs-bridge-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  background: var(--surface-subtle, rgba(14, 90, 62, 0.03));
}

.obs-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  flex-shrink: 0;
}

.obs-live-dot--online {
  background-color: #0e5a3e;
}

.obs-live-dot--standby {
  background-color: var(--accent-cyan);
}

.obs-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.obs-kpi-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  background: var(--surface, #ffffff);
  min-width: 0;
}

body[data-theme="dark"] .obs-kpi-tile {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
}

.obs-kpi-label {
  font-size: 0.8125rem;
  color: var(--text-secondary, #475569);
}

.obs-kpi-value {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-primary, #0f172a);
  font-variant-numeric: tabular-nums;
}

body[data-theme="dark"] .obs-kpi-value {
  color: #f8fafc;
}

.obs-sla-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.obs-sla-pill--ok {
  background-color: rgba(14, 90, 62, 0.1);
  color: #0e5a3e;
}

body[data-theme="dark"] .obs-sla-pill--ok {
  background-color: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.obs-sla-pill--warn {
  background-color: rgba(180, 83, 9, 0.1);
  color: #92400e;
}

body[data-theme="dark"] .obs-sla-pill--warn {
  background-color: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

.raw-vault-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .unified-scores-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .obs-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .unified-scores-grid,
  .obs-kpi-grid,
  .raw-vault-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .unified-scores-hero {
    padding: 16px;
  }

  .unified-hero-number {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Phase 8 — Security Hardening, Standalone 6-Box Login, Language Clinical Info,
   Flat Top-to-Bottom Vertical Institution Axis, Landing Counters, Portals,
   11-Specialty Medical Framework, Coloured Pricing, Footer Box & Super Admin
   ========================================================================== */

/* 1. Sélecteur de langue avec information clinique / unités à côté de chaque langue */
.lux-select-option-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lux-select-option-meta {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-cyan);
  line-height: 1.25;
}

/* 2. Mode page autonome /login hors du site public & sidebar */
body.standalone-login-mode {
  background-color: var(--bg-canvas);
}

body.standalone-login-mode .site-header,
body.standalone-login-mode .site-footer,
body.standalone-login-mode .auth-sidebar,
body.standalone-login-mode .auth-sidebar-backdrop {
  display: none !important;
}

body.standalone-login-mode .app-workspace-shell {
  display: block;
}

body.standalone-login-mode .app-workspace-content {
  margin-left: 0 !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

body.standalone-login-mode .site-main {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0;
}

.login-standalone-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

/* 3. Six cases individuelles pour le code TOTP (auto-submit immédiat) */
.totp-six-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 340px;
}

.totp-digit-box {
  height: 3.15rem;
  width: 100%;
  min-width: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 12px;
  border: 1.5px solid var(--border-control);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.totp-digit-box:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.22);
}

body.theme-crepuscular .totp-digit-box,
body.theme-dark .totp-digit-box {
  background-color: #0F231A;
  border-color: #3D6D56;
  color: #F4FAF6;
}

/* 4. Tarifs colorés distinctifs + ruban RECOMMANDÉ sur ClinicHall Avancé */
.clinicall-price-amount--emerald {
  color: #0E5A3E;
}

.clinicall-price-amount--cyan {
  color: #0088CC;
}

.clinicall-price-amount--lavender {
  color: #6D28D9;
}

body.theme-crepuscular .clinicall-price-amount.clinicall-price-amount--emerald,
body.theme-dark .clinicall-price-amount.clinicall-price-amount--emerald {
  color: #34D399;
}

body.theme-crepuscular .clinicall-price-amount.clinicall-price-amount--cyan,
body.theme-dark .clinicall-price-amount.clinicall-price-amount--cyan {
  color: #38BDF8;
}

body.theme-crepuscular .clinicall-price-amount.clinicall-price-amount--lavender,
body.theme-dark .clinicall-price-amount.clinicall-price-amount--lavender {
  color: #C4B5FD;
}

.clinicall-recommended-ribbon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  background-color: #006FA8;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14);
}

/* 5. Logos officiels des 32 institutions + Axe vertical plat (Haut -> Centre -> Bas) */
.inst-logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 4px;
  flex-shrink: 0;
}

.inst-logo-img--sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  padding: 3px;
}

.inst-vaxis-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
}

.inst-vaxis-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.6rem;
}

.inst-vaxis-stage::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-emerald) 50%, var(--accent-cyan) 100%);
}

.inst-vaxis-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 14px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), opacity 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.inst-vaxis-row::before {
  content: "";
  position: absolute;
  left: -1.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-cyan);
}

.inst-vaxis-row--preceding,
.inst-vaxis-row--following {
  opacity: 0.82;
  background-color: var(--bg-surface);
}

.inst-vaxis-row--active {
  opacity: 1;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 10px 26px rgba(0, 136, 204, 0.12);
}

.inst-vaxis-row--active::before {
  width: 14px;
  height: 14px;
  left: -1.48rem;
  background-color: var(--accent-emerald);
  border-color: var(--accent-cyan);
}

.inst-vaxis-role-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.inst-vaxis-role-pill--preceding,
.inst-vaxis-role-pill--following {
  background-color: var(--accent-cyan-bg);
  color: var(--accent-cyan);
}

.inst-vaxis-role-pill--active {
  background-color: var(--accent-emerald);
  color: #FFFFFF;
}

.inst-vaxis-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

/* 6. Compteurs Hero, Sécurité Hospitalière, Portails Officiels, Praticiens */
.landing-counters-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.landing-counter-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-counter-card--emerald {
  border-top-color: var(--accent-emerald);
}

.landing-counter-val {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent-emerald);
  font-variant-numeric: tabular-nums;
}

.landing-counter-card--cyan .landing-counter-val {
  color: var(--accent-cyan);
}

.landing-counter-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.landing-counter-sub {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.hospital-security-showcase {
  background-color: var(--accent-cyan-bg);
  border: 1.5px solid var(--accent-cyan-border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hospital-security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hospital-security-tile {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.official-portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.85rem;
}

.official-portal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.practitioners-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.practitioner-quote-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.practitioner-quote-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}

/* 7. Encart proéminent Non-Consultation à côté d'ANTICA S.L., Principat d'Andorra */
.footer-medical-disclaimer-box {
  background-color: rgba(230, 246, 254, 0.14);
  border: 1.5px solid #38BDF8;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  max-width: 680px;
  color: #F2FAF6;
  font-size: 0.81rem;
  line-height: 1.5;
}

/* 8. Cockpit Super Admin & Tableaux enrichis /famille */
.superadmin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.superadmin-kpi-grid > .card {
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
}

.superadmin-kpi-grid > .card > strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0.125rem 0;
}

.bento-grid-3 > .card.stack-xs > .clinicall-price-amount {
  display: block;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  margin: 0.125rem 0;
}

.superadmin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background-color: var(--bg-canvas);
}

.superadmin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.superadmin-table th,
.superadmin-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.superadmin-table th {
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  font-weight: 700;
  white-space: nowrap;
}

body.theme-crepuscular .inst-vaxis-row,
body.theme-dark .inst-vaxis-row,
body.theme-crepuscular .landing-counter-card,
body.theme-dark .landing-counter-card,
body.theme-crepuscular .hospital-security-tile,
body.theme-dark .hospital-security-tile,
body.theme-crepuscular .practitioner-quote-card,
body.theme-dark .practitioner-quote-card {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
}

@media (max-width: 1020px) {
  .landing-counters-strip,
  .hospital-security-grid,
  .superadmin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inst-vaxis-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .inst-vaxis-controls {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .landing-counters-strip,
  .hospital-security-grid,
  .superadmin-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.qr-seal-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  background-color: #f4f9f6;
  border: 1px solid #d5e5dc;
  border-left: 4px solid #0e5a3e;
  border-radius: 8px;
}

.qr-seal-code {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  padding: 4px;
  background-color: #ffffff;
  border: 1px solid #d5e5dc;
  border-radius: 6px;
}

.qr-seal-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- ClinicHall Anti-Bot Turnstile, DocuSeal Modal, Physician Cabinet & Patient Sharing --- */
.turnstile-slot {
  margin: var(--space-3) 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.turnstile-slot__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.docuseal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background-color: rgba(7, 25, 18, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.docuseal-modal-dialog {
  width: min(920px, 100%);
  max-height: 92vh;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.docuseal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.docuseal-modal-body {
  padding: 0;
  flex: 1 1 auto;
  min-height: 68vh;
  background-color: var(--bg-canvas);
}

.docuseal-modal-iframe {
  width: 100%;
  height: 68vh;
  border: 0;
  display: block;
}

.physician-portal-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.physician-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
}

.physician-patient-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.physician-patient-table th,
.physician-patient-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.physician-patient-table th {
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
}

.physician-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--pole-cardio);
  border-radius: 10px;
  background-color: var(--bg-surface);
}

.pcp-sharing-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pcp-scopes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
}

.pcp-cabinet-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pcp-cabinet-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background-color: var(--bg-surface);
}

.physician-onboarding-card,
.physician-dossier-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.physician-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

.physician-samples-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.physician-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ============================================================================
 * STITCH DESIGN SYSTEM HARMONISATION — SIGNUP, LANDING & /FAMILLE WORKSPACE
 * (Sans dégradés néon, contrastes WCAG AA >= 4.5:1, tabular-nums)
 * ============================================================================ */

.clinicall-form-row-3 {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0.85rem;
  align-items: end;
}

@media (max-width: 720px) {
  .clinicall-form-row-3 {
    grid-template-columns: 1fr;
  }
}

.stripe-checkout-notice {
  padding: 0.9rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--accent-emerald-border);
  background-color: var(--accent-emerald-bg);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* --- Landing Hero Stitch --- */
.stitch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 2.25rem;
  align-items: center;
  padding: 2rem 0 1.25rem;
}

@media (max-width: 980px) {
  .stitch-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stitch-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  width: fit-content;
}

.stitch-hero-title {
  font-family: "Plus Jakarta Sans", "Instrument Sans", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}

.stitch-hero-accent {
  color: var(--accent-emerald);
  display: block;
}

.stitch-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0;
}

.stitch-cta-primary {
  font-weight: 600;
}

.stitch-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.stitch-hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .stitch-hero-proof-grid {
    grid-template-columns: 1fr;
  }
}

.stitch-hero-proof-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stitch-proof-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stitch-proof-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Floating Clinical Telemetry Preview Card --- */
.stitch-telemetry-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 10px 28px rgba(16, 36, 27, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stitch-tele-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.stitch-tele-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.stitch-status-pill-emerald,
.stitch-pill-emerald {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
  white-space: nowrap;
}

.stitch-pill-cyan {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--accent-cyan-bg);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan-border);
  white-space: nowrap;
}

.stitch-tele-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stitch-tele-kpi-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stitch-tele-k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stitch-tele-val-line {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stitch-tele-big {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
}

.stitch-tele-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stitch-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: var(--bg-elevated);
  overflow: hidden;
}

.stitch-progress-fill {
  height: 100%;
  border-radius: 999px;
  background-color: var(--accent-emerald);
}

.stitch-tele-note {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.stitch-tele-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stitch-tele-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.stitch-tele-row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.stitch-tele-row-mid {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
}

.stitch-tele-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.stitch-tele-row-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stitch-tele-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-emerald);
}

.stitch-tele-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
}

.stitch-tele-foot-ok {
  font-size: 0.82rem;
  color: var(--accent-emerald);
}

/* --- Stitch 4 Biological Pillars Matrix (Landing) --- */
.stitch-section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stitch-sync-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.stitch-pillars-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1120px) {
  .stitch-pillars-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .stitch-pillars-4col {
    grid-template-columns: 1fr;
  }
}

.stitch-pillar-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stitch-pillar-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.stitch-pillar-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stitch-pillar-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
}

.stitch-pillar-desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.stitch-pillar-kv-box {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background-color: var(--bg-surface);
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stitch-pillar-kv-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.stitch-pillar-kv-row span {
  color: var(--text-muted);
}

.stitch-pillar-kv-row strong {
  color: var(--text-primary);
  font-weight: 700;
}

.stitch-pillar-foot-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-subtle);
  padding: 0.6rem 0 0;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  cursor: pointer;
}

/* --- Stitch Split: 28+ Sensors & Automated Blood Panel OCR IA --- */
.stitch-interop-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .stitch-interop-split {
    grid-template-columns: 1fr;
  }
}

.stitch-flagship-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .stitch-flagship-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stitch-flagship-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.stitch-flagship-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stitch-ocr-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
}

.stitch-ocr-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
}

.stitch-ocr-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.stitch-ocr-dropzone {
  width: 100%;
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  background-color: var(--bg-surface);
  padding: 1.35rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-primary);
  cursor: pointer;
}

.stitch-ocr-dropzone:hover {
  border-color: var(--accent-emerald);
  background-color: var(--accent-emerald-bg);
}

.stitch-ocr-drop-icon {
  color: var(--accent-emerald);
}

.stitch-ocr-steps-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 600px) {
  .stitch-ocr-steps-3 {
    grid-template-columns: 1fr;
  }
}

.stitch-ocr-step-box {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.78rem;
}

/* --- Stitch Pricing Cards --- */
.stitch-pricing-grid {
  align-items: stretch;
}

.stitch-price-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background-color: var(--bg-canvas);
  display: flex;
  flex-direction: column;
}

.stitch-price-card--recommended {
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 12px 26px rgba(14, 90, 62, 0.08);
}

.stitch-recommended-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background-color: var(--accent-emerald);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stitch-price-tier {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stitch-price-tier--emerald {
  color: var(--accent-emerald);
}

.stitch-price-amount--emerald {
  color: var(--accent-emerald);
}

.stitch-price-cta {
  margin-top: auto;
}

/* --- Stitch Security Vault + Regulatory Notice + Bottom Bands --- */
.stitch-security-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stitch-security-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.65fr);
  gap: 1.5rem;
  align-items: center;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .stitch-security-card {
    grid-template-columns: 1fr;
  }
}

.stitch-sec-heading {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stitch-security-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding-top: 0.4rem;
}

@media (max-width: 720px) {
  .stitch-security-cols {
    grid-template-columns: 1fr;
  }
}

.stitch-sec-mini {
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
}

.stitch-security-seal {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

.stitch-seal-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
}

.stitch-seal-title {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.stitch-seal-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-decoration: none;
}

.stitch-regulatory-notice {
  padding: 0.85rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--accent-cyan-border);
  background-color: var(--accent-cyan-bg);
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.stitch-mini-pillars-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1024px) {
  .stitch-mini-pillars-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stitch-mini-pillars-4 {
    grid-template-columns: 1fr;
  }
}

.stitch-mini-pillar-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stitch-mini-pillar-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-emerald);
}

.stitch-mini-pillar-head h3,
.stitch-mini-pillar-head h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stitch-ecosystem-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stitch-eco-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.stitch-eco-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.stitch-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 960px) {
  .stitch-ecosystem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stitch-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stitch-eco-tile {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background-color: var(--bg-surface);
  padding: 0.65rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
}

/* --- /famille Authenticated Stitch Overview --- */
.stitch-auth-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-canvas);
}

.stitch-auth-head-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stitch-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.stitch-id-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.stitch-id-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
}

.stitch-auth-title {
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stitch-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stitch-empty-state {
  padding: 1.05rem 1.15rem;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stitch-empty-onboarding {
  border-style: solid;
  border-color: var(--accent-emerald-border);
  background-color: var(--accent-emerald-bg);
}

.stitch-profile-omnibar-drawer {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background-color: var(--bg-canvas);
  padding: 0.7rem 1rem;
}

.stitch-profile-omnibar-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.stitch-kpi-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1080px) {
  .stitch-kpi-4col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .stitch-kpi-4col {
    grid-template-columns: 1fr;
  }
}

.stitch-kpi-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stitch-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}

.stitch-kpi-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stitch-kpi-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stitch-kpi-val {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stitch-kpi-unit {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stitch-kpi-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stitch-kpi-sub--emerald {
  color: var(--accent-emerald);
  font-weight: 600;
}

.stitch-kpi-sub--cyan {
  color: var(--accent-cyan);
  font-weight: 600;
}

.stitch-matrix-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.stitch-kicker-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-emerald);
}

.stitch-matrix-heading {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stitch-matrix-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .stitch-matrix-2x2 {
    grid-template-columns: 1fr;
  }
}

.stitch-matrix-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stitch-matrix-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.stitch-matrix-title-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.stitch-matrix-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.stitch-matrix-ico--cyan {
  background-color: var(--accent-cyan-bg);
  color: var(--accent-cyan);
}

.stitch-matrix-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (max-width: 540px) {
  .stitch-matrix-stats-3 {
    grid-template-columns: 1fr;
  }
}

.stitch-matrix-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.stitch-ms-k {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.stitch-ms-v {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stitch-ms-d {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.stitch-matrix-visual-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.stitch-matrix-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.stitch-matrix-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.stitch-hypnogram-bar {
  display: flex;
  height: 10px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background-color: var(--bg-elevated);
}

.stitch-hypno-seg {
  height: 100%;
}

.stitch-hypno-deep {
  background-color: #0e5a3e;
}

.stitch-hypno-rem {
  background-color: #0088cc;
}

.stitch-hypno-light {
  background-color: #87b09c;
}

.stitch-hypno-awake {
  background-color: #d97706;
}

.stitch-mid-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 960px) {
  .stitch-mid-split {
    grid-template-columns: 1fr;
  }
}

.stitch-split-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem;
}

.stitch-split-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.stitch-split-title-row h3 {
  font-size: 1rem;
  margin: 0;
}

.stitch-spec-quote-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 0.95rem;
}

.stitch-action-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.stitch-action-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.stitch-conn-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stitch-conn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.stitch-conn-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.stitch-biomarker-registry {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem;
}

.stitch-reg-filter {
  max-width: 240px;
}

.stitch-bio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stitch-bio-table th,
.stitch-bio-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.stitch-bio-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background-color: var(--bg-surface);
}

/* ============================================================================
 * ARCHITECTURE ESPACES AUTHENTIFIÉS (/client/* & /doctor/*), GRILLES 1/4, 2/3-1/3,
 * MOTION DESIGN DISCRET (UNSLOP) & RESPONSIVE ZÉRO DÉBORDEMENT HORIZONTAL
 * ============================================================================ */

/* Suppression stricte du footer public dans tout espace authentifié ou login autonome */
body.has-auth-sidebar .site-footer,
body.standalone-login-mode .site-footer {
  display: none !important;
}

/* Nom de famille systématiquement en majuscules visuelles */
.input-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: 600;
}

.input-uppercase::placeholder {
  text-transform: uppercase;
  font-weight: 400;
}

/* Grilles architecturales ClinicHall : 1/4, 2/3 - 1/3, 1/3 - 2/3, identité médecin 3 cols */
.ch-grid-quarter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ch-grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.ch-grid-1-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.25rem;
  align-items: start;
}

.ch-doctor-identity-grid {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: end;
}

.ch-grid-quarter > *,
.ch-grid-2-1 > *,
.ch-grid-1-2 > *,
.ch-doctor-identity-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Enveloppes & cartes interactives avec micro-transitions CSS pures */
.ch-interactive-card {
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.ch-interactive-card[role="link"] {
  cursor: pointer;
}

.ch-interactive-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-emerald-border);
  box-shadow: var(--shadow-md);
}

.ch-interactive-card[role="link"]:active {
  transform: scale(0.992);
}

.ch-kpi-val-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Anneaux de score radiaux SVG */
.ch-score-ring {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}

.ch-score-ring-bg {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 3.5;
}

.ch-score-ring-fg {
  fill: none;
  stroke: var(--accent-emerald);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ch-score-ring-fg--cyan {
  stroke: var(--accent-cyan);
}

.ch-score-ring-fg--lavender {
  stroke: #8B5CF6;
}

/* Contrôle segmenté interactif (Matrice 4 Piliers / Jumeau 3 onglets) */
.ch-seg-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.ch-seg-tabs::-webkit-scrollbar {
  display: none;
}

.ch-seg-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out);
}

.ch-seg-tab:hover {
  color: var(--text-primary);
  background-color: var(--bg-canvas);
}

.ch-seg-tab--active {
  background-color: var(--bg-canvas);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald-border);
  box-shadow: var(--shadow-sm);
}

body.theme-dark .ch-seg-tab--active,
body.theme-crepuscular .ch-seg-tab--active {
  background-color: #163729;
  color: #8CE8BE;
  border-color: #34D399;
}

.stitch-matrix-shell {
  min-width: 0;
}

.stitch-matrix-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.stitch-matrix-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease;
}

.stitch-matrix-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Barre de filtre + recherche instantanée (Biomarqueurs / File patients) */
.ch-reg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ch-reg-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.ch-reg-search {
  min-width: 190px;
  max-width: 260px;
}

/* Entrée échelonnée douce sur les grilles authentifiées */
@keyframes chFadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ch-motion-stagger > * {
  animation: chFadeSlideUp 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ch-motion-stagger > *:nth-child(1) { animation-delay: 0ms; }
.ch-motion-stagger > *:nth-child(2) { animation-delay: 40ms; }
.ch-motion-stagger > *:nth-child(3) { animation-delay: 80ms; }
.ch-motion-stagger > *:nth-child(4) { animation-delay: 120ms; }

@media (prefers-reduced-motion: reduce) {
  .ch-motion-stagger > * {
    animation: none !important;
  }
  .ch-interactive-card,
  .ch-score-ring-fg,
  .auth-theme-single-btn,
  .auth-theme-single-btn .sidebar-ico-slot,
  .stitch-matrix-link {
    transition: none !important;
  }
  .ch-interactive-card:hover {
    transform: none !important;
  }
}

/* Points de rupture responsive stricts (tablette 768px & mobile 375px sans overflow) */
@media (max-width: 1180px) {
  .ch-grid-quarter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ch-grid-2-1,
  .ch-grid-1-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .stitch-auth-header {
    padding: 0.9rem 1rem;
  }

  .stitch-auth-head-left {
    width: 100%;
    align-items: flex-start;
  }

  .stitch-auth-actions {
    width: 100%;
  }

  .table-scroll,
  .superadmin-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .physician-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ch-grid-quarter,
  .ch-doctor-identity-grid {
    grid-template-columns: 1fr;
  }

  body.has-auth-sidebar .site-main {
    padding: var(--space-3);
  }

  .ch-reg-controls {
    width: 100%;
  }

  .ch-reg-search,
  .stitch-reg-filter {
    width: 100%;
    max-width: 100%;
  }

  .stitch-matrix-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stitch-id-meta-row .badge,
  .stitch-id-meta-row .stitch-pill-emerald {
    white-space: normal;
    max-width: 100%;
    line-height: 1.35;
    text-align: left;
  }

  .stitch-auth-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stitch-auth-head-left > * {
  min-width: 0;
  max-width: 100%;
}

