/* ============================================================
   Health-Comm — Espace Client
   Page d'onboarding nouveaux clients
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,30..100&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Palette Health-Comm — bleu cyan officiel #0098D1 du logo */
  --hc-primary: #0098D1;          /* Bleu cyan du logo Health-Comm */
  --hc-primary-dark: #00547A;     /* Bleu profond pour fonds sombres */
  --hc-primary-darker: #002F45;   /* Bleu nuit pour les hero & contact */
  --hc-primary-light: #4FB7DD;    /* Variante claire */
  --hc-secondary: #1A3A6E;        /* Bleu marine institutionnel d'appui */
  --hc-accent: #FF6B4A;           /* Corail — accent chaleureux */
  --hc-accent-soft: #FFB199;      /* Corail clair */

  --hc-ink: #08263A;              /* Quasi-noir bleuté */
  --hc-text: #2A3548;
  --hc-text-soft: #5C6B82;
  --hc-line: #E2E8F2;
  --hc-bg: #F7F9FC;               /* Beige bleuté très léger */
  --hc-bg-alt: #EDF2F9;
  --hc-white: #FFFFFF;

  /* Couleurs accentuées par slide */
  --slide-blue: #1A3A6E;
  --slide-teal: #1F5F73;
  --slide-coral: #B84A2E;
  --slide-violet: #4A3B7C;
  --slide-emerald: #1F6B5C;
  --slide-amber: #8B5A1A;
  --slide-rose: #8B2E5A;

  /* Typographie */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 36, 71, .06), 0 2px 8px rgba(15, 36, 71, .04);
  --shadow-md: 0 4px 12px rgba(15, 36, 71, .08), 0 8px 24px rgba(15, 36, 71, .06);
  --shadow-lg: 0 10px 30px rgba(15, 36, 71, .12), 0 20px 60px rgba(15, 36, 71, .08);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hc-text);
  background: var(--hc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15, 36, 71, .08);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  /* Le logo est sur fond blanc — sur le header semi-transparent on le garde tel quel */
}
.brand-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: rgba(0, 152, 209, .25);
}
.brand-baseline {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--hc-text-soft);
  font-weight: 600;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--hc-text);
  position: relative;
  transition: color .2s var(--ease);
}
.main-nav a:hover { color: var(--hc-primary); }
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--hc-accent);
  transition: width .25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--hc-primary);
  color: var(--hc-white) !important;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover {
  background: var(--hc-primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .main-nav { gap: 1rem; }
  .main-nav a:not(.nav-cta) { display: none; }
  .brand-baseline, .brand-divider { display: none; }
  .brand-logo { height: 24px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--hc-primary-darker) 0%, var(--hc-primary-dark) 100%);
  color: var(--hc-white);
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--hc-accent) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: glow-drift 14s ease-in-out infinite;
}
.hero-glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--hc-secondary) 0%, transparent 70%);
  bottom: -200px; left: -150px;
  animation: glow-drift 18s ease-in-out infinite reverse;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 2rem;
  animation: fade-up .7s var(--ease) both;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hc-accent);
  box-shadow: 0 0 0 0 var(--hc-accent);
  animation: pulse 2s infinite;
}
.pulse-dot-light {
  background: var(--hc-accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 74, .8);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 107, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 74, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.6rem;
  animation: fade-up .8s .1s var(--ease) both;
  font-variation-settings: "opsz" 144;
}
.hero-title em {
  font-style: italic;
  color: var(--hc-accent-soft);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-accent {
  position: relative;
  color: var(--hc-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  max-width: 640px;
  margin-bottom: 2.5rem;
  animation: fade-up .9s .2s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
  animation: fade-up 1s .3s var(--ease) both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--hc-accent);
  color: var(--hc-white);
  box-shadow: 0 8px 22px rgba(255, 107, 74, .35);
}
.btn-primary:hover {
  background: #FF7B5C;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 74, .45);
}
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--hc-white);
  border: 1px solid rgba(255, 255, 255, .2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .15);
  transform: translateY(-2px);
}
.btn-ghost span { transition: transform .25s var(--ease); }
.btn-ghost:hover span { transform: translateX(4px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: 720px;
  animation: fade-up 1.1s .4s var(--ease) both;
}
.hero-stats div { display: flex; flex-direction: column; gap: .25rem; }
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  color: var(--hc-white);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.hero-stats dd {
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .01em;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTIONS GENERIC
   ============================================================ */
.section-head {
  max-width: 780px;
  margin-bottom: 3.5rem;
}
.section-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc-accent);
  margin-bottom: 1rem;
  padding: .35rem .8rem;
  background: rgba(255, 107, 74, .08);
  border-radius: 4px;
}
.section-kicker-light {
  color: var(--hc-accent);
  background: rgba(255, 255, 255, .12);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--hc-ink);
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 144;
}
.text-accent {
  color: var(--hc-primary);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.text-accent-light {
  color: var(--hc-accent);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.section-lede {
  font-size: 1.08rem;
  color: var(--hc-text-soft);
  line-height: 1.6;
}

/* ============================================================
   PLATFORM
   ============================================================ */
.platform {
  padding: clamp(4rem, 7vw, 6rem) 0 0;
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.tools-carousel {
  padding: 2rem 0 clamp(4rem, 8vw, 6rem);
}
.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.carousel-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 360px;
}
.carousel-counter {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--hc-text-soft);
  letter-spacing: .04em;
}
.carousel-counter #current-slide { color: var(--hc-primary); font-weight: 600; }
.counter-sep { margin: 0 .35rem; opacity: .5; }
.carousel-progress {
  flex: 1;
  height: 3px;
  background: var(--hc-line);
  border-radius: 2px;
  overflow: hidden;
}
.carousel-progress-bar {
  display: block;
  height: 100%;
  width: 14.28%; /* 1/7 */
  background: var(--hc-primary);
  border-radius: 2px;
  transition: width .5s var(--ease);
}
.carousel-controls {
  display: flex;
  gap: .5rem;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--hc-white);
  border: 1px solid var(--hc-line);
  color: var(--hc-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s var(--ease);
}
.carousel-btn:hover {
  background: var(--hc-primary);
  color: var(--hc-white);
  border-color: var(--hc-primary);
  transform: scale(1.05);
}

/* The slides */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--hc-primary-dark);
  min-height: 540px;
}
.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  background: linear-gradient(135deg, var(--hc-primary-darker), var(--hc-primary-dark));
  color: var(--hc-white);
}
.slide[data-color="blue"] { background: linear-gradient(135deg, #002F45, #00547A); }
.slide[data-color="teal"] { background: linear-gradient(135deg, #0E3340, #1F5F73); }
.slide[data-color="coral"] { background: linear-gradient(135deg, #5C1A0A, #B84A2E); }
.slide[data-color="violet"] { background: linear-gradient(135deg, #1F1838, #4A3B7C); }
.slide[data-color="emerald"] { background: linear-gradient(135deg, #0A2E26, #1F6B5C); }
.slide[data-color="amber"] { background: linear-gradient(135deg, #3A2510, #8B5A1A); }
.slide[data-color="rose"] { background: linear-gradient(135deg, #3D0F26, #8B2E5A); }

.slide-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}
.slide-active .slide-content > * {
  animation: slide-fade-up .7s var(--ease) both;
}
.slide-active .slide-content > *:nth-child(1) { animation-delay: .1s; }
.slide-active .slide-content > *:nth-child(2) { animation-delay: .18s; }
.slide-active .slide-content > *:nth-child(3) { animation-delay: .26s; }
.slide-active .slide-content > *:nth-child(4) { animation-delay: .34s; }
.slide-active .slide-content > *:nth-child(5) { animation-delay: .42s; }
.slide-active .slide-visual { animation: slide-fade-in .8s .25s var(--ease) both; }

@keyframes slide-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-fade-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.slide-content {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .8rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.slide-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 144;
}
.slide-title sup { font-size: .5em; vertical-align: super; opacity: .8; }
.slide-description {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.75rem;
}
.slide-features {
  display: grid;
  gap: .65rem;
  margin-bottom: 2rem;
}
.slide-features li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .9);
}
.feat-bullet {
  font-weight: 600;
  color: var(--hc-accent-soft);
  flex-shrink: 0;
}
.slide-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.4rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: all .25s var(--ease);
}
.slide-link:hover {
  background: var(--hc-white);
  color: var(--hc-ink);
  border-color: var(--hc-white);
  transform: translateY(-2px);
}

/* Slide visual side */
.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.visual-frame {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

/* --- Cloverleaf Diagram (slide 1) --- */
.cloverleaf-diagram {
  position: relative;
  width: 320px; height: 320px;
}
.cloverleaf-diagram .cl-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: pulse-lines 3s ease-in-out infinite;
}
@keyframes pulse-lines {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}
.cl-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.95);
  color: var(--hc-primary-dark);
  border-radius: 50%;
  width: 60px; height: 60px;
  font-size: .72rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.cl-center {
  width: 110px; height: 110px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--hc-accent), #FF8B6B);
  color: white;
  font-size: .85rem;
  z-index: 2;
}
.cl-center span { margin-top: 4px; }
.cl-n1 { top: 10px; left: 10px; }
.cl-n2 { top: 10px; right: 10px; }
.cl-n3 { top: 50%; left: 0; transform: translateY(-50%); }
.cl-n4 { top: 50%; right: 0; transform: translateY(-50%); }
.cl-n5 { bottom: 10px; left: 10px; }
.cl-n6 { bottom: 10px; right: 10px; }

/* --- HCmanager mock window (slide 2) --- */
.mock-window {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
}
.mock-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1rem;
  background: rgba(0, 0, 0, .2);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.mock-dot:nth-child(1) { background: #FF6B6B; }
.mock-dot:nth-child(2) { background: #FFD66B; }
.mock-dot:nth-child(3) { background: #6BD891; }
.mock-title {
  margin-left: auto;
  font-size: .78rem;
  color: rgba(255, 255, 255, .6);
  font-family: var(--font-mono);
}
.mock-body { padding: 1rem; }
.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .7fr;
  gap: 1rem;
  padding: .65rem .25rem;
  font-size: .82rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mock-row:last-child { border-bottom: none; }
.mock-row-header {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}
.mock-pill-ok { color: #6BD891; }
.mock-pill-warn { color: #FFD66B; }
.mock-pill-idle { color: rgba(255, 255, 255, .5); }

/* --- HC Statistics dashboard (slide 3) --- */
.mock-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  width: 100%;
}
.dash-card {
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dash-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .55);
  font-weight: 600;
}
.dash-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  line-height: 1;
}
.dash-value small {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 400;
}
.dash-trend {
  font-size: .78rem;
  font-weight: 600;
}
.dash-up { color: #6BD891; }
.dash-down { color: var(--hc-accent-soft); }
.dash-card-chart {
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}
.dash-card-chart svg {
  width: 100%; height: 100%;
}
.dash-card-wide {
  grid-column: span 2;
}
.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 50px;
  margin-top: .5rem;
}
.dash-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--hc-accent-soft), var(--hc-accent));
  border-radius: 2px;
  transition: height .5s var(--ease);
}

/* --- Cartographie (slide 4) --- */
.carto-map {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carto-map svg { width: 100%; height: auto; max-width: 380px; }
.carto-node circle {
  transition: transform .3s var(--ease);
  transform-origin: center;
}
.carto-node:hover circle {
  transform: scale(1.15);
}

/* --- FHIR code (slide 5) --- */
.mock-code {
  width: 100%;
  background: rgba(0, 0, 0, .35);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-mono);
}
.code-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(0, 0, 0, .25);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
}
.code-method {
  font-weight: 700;
  padding: .2rem .55rem;
  background: #6BD891;
  color: var(--hc-ink);
  border-radius: 4px;
  font-size: .7rem;
}
.code-url { color: rgba(255, 255, 255, .85); }
.code-body {
  padding: 1.25rem;
  font-size: .82rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .9);
  white-space: pre;
  overflow-x: auto;
}
.code-key { color: var(--hc-accent-soft); }
.code-string { color: #6BD891; }
.code-bracket { color: rgba(255, 255, 255, .6); }

/* --- Global Monitor (slide 6) --- */
.mock-monitor {
  width: 100%;
  background: rgba(0, 0, 0, .25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.monitor-row {
  display: flex;
  justify-content: space-between;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: .88rem;
}
.monitor-row:last-of-type { border-bottom: none; }
.monitor-host {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: rgba(255, 255, 255, .85);
}
.monitor-status {
  font-size: .78rem;
  font-weight: 600;
}
.monitor-ok { color: #6BD891; }
.monitor-warn { color: #FFD66B; }
.monitor-row-alert { background: rgba(255, 214, 107, .08); }
.monitor-meta {
  padding: .75rem 1rem;
  background: rgba(0, 0, 0, .2);
  font-size: .75rem;
  color: rgba(255, 255, 255, .55);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6BD891;
  box-shadow: 0 0 8px #6BD891;
  animation: live-blink 1.5s infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* --- Forum (slide 7) --- */
.mock-forum {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.forum-thread {
  display: flex;
  gap: .85rem;
  padding: .9rem 1rem;
  background: rgba(0, 0, 0, .2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  transition: transform .2s var(--ease);
}
.forum-thread:hover { transform: translateX(4px); }
.forum-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .78rem;
  color: white;
  flex-shrink: 0;
}
.forum-content { flex: 1; min-width: 0; }
.forum-meta {
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .15rem;
}
.forum-meta strong { color: rgba(255, 255, 255, .85); font-weight: 600; }
.forum-title {
  font-size: .9rem;
  font-weight: 500;
  color: var(--hc-white);
  margin-bottom: .2rem;
  line-height: 1.35;
}
.forum-stats {
  font-size: .72rem;
  color: rgba(255, 255, 255, .5);
}
.forum-thread-new {
  background: rgba(255, 107, 74, .12);
  border-color: rgba(255, 107, 74, .25);
}
.forum-thread-new .forum-stats {
  color: var(--hc-accent-soft);
  font-weight: 600;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--hc-line);
  transition: all .25s var(--ease);
}
.dot:hover { background: var(--hc-text-soft); transform: scale(1.2); }
.dot-active {
  background: var(--hc-primary);
  width: 26px;
  border-radius: 999px;
}

@media (max-width: 880px) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .carousel { min-height: auto; }
  .slide { position: relative; }
  .slide:not(.slide-active) { display: none; }
  .slide-visual { padding-top: 0; padding-bottom: 2rem; }
  .visual-frame { aspect-ratio: 4/3; max-width: 320px; }
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--hc-bg-alt);
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step-card {
  background: var(--hc-white);
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--hc-line);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--hc-primary), var(--hc-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.step-card:hover::before { transform: scaleX(1); }
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--hc-accent);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  line-height: 1;
  margin-bottom: 1rem;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--hc-ink);
  margin-bottom: .65rem;
  letter-spacing: -.01em;
  font-variation-settings: "opsz" 144;
}
.step-card p {
  font-size: .95rem;
  color: var(--hc-text-soft);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--hc-primary-darker);
  color: var(--hc-white);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 74, .25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-text .section-title { color: var(--hc-white); }
.contact-lede {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .75);
  margin: 1.5rem 0 2.5rem;
  max-width: 560px;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  color: var(--hc-white);
}
.channel-card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--hc-accent);
  transform: translateX(4px);
}
.channel-card svg { color: var(--hc-accent); flex-shrink: 0; }
.channel-card div { display: flex; flex-direction: column; }
.channel-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}
.channel-value {
  font-size: 1rem;
  font-weight: 500;
}

.contact-card {
  background: linear-gradient(140deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.contact-card-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .65);
  font-weight: 600;
  margin-bottom: 1rem;
}
.contact-card address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}
.contact-card-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), transparent);
  margin: 1.5rem 0;
}
.contact-card-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.contact-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .5rem .85rem;
  background: rgba(255, 215, 0, .1);
  border: 1px solid rgba(255, 215, 0, .25);
  border-radius: 999px;
  font-size: .78rem;
  color: #FFD66B;
  font-weight: 500;
}

@media (max-width: 880px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--hc-ink);
  color: rgba(255, 255, 255, .65);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--hc-white);
}
.footer-logo {
  height: 22px;
  width: auto;
  display: block;
}
.footer-tagline {
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
}
.footer-links a {
  font-size: .85rem;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--hc-accent); }
.footer-meta {
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
