* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1f2937;
}

a { text-decoration: none; }

.site { width: 100%; background: #ffffff; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 20; background: #1c3a57; }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1080px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-mark { width: 32px; height: 32px; border-radius: 8px; background: #ffffff; padding: 4px; flex-shrink: 0; }
.nav-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-word { color: #ffffff; font-size: 16px; font-weight: 700; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #085f98; color: #ffffff; font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px; border: none; cursor: pointer; white-space: nowrap;
  font-family: inherit;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .7; cursor: default; }

.btn-ghost-light {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: #ffffff; font-weight: 700; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); cursor: pointer; white-space: nowrap;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }

.btn-ghost {
  border: 1px solid #e2e6ec; background: #ffffff; color: #1f2937;
  border-radius: 999px; padding: 12px 20px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { background: #f5f7fa; }

/* Hero */
.hero { position: relative; overflow: hidden; background: #1c3a57; color: #ffffff; padding: 72px 24px 96px; }
.hero-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-eyebrow { color: #5ad1a1; margin-bottom: 14px; }
.hero-title { font-size: 42px; line-height: 1.18; font-weight: 700; margin: 0 0 18px; max-width: 560px; }
.hero-sub { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0 0 30px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { flex: 0 0 480px; display: flex; justify-content: center; }

/* Browser mock of the real product */
.browser-frame { width: 340px; max-width: 100%; background: #ffffff; border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.45); overflow: hidden; }
.browser-frame.wide { width: 460px; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #eef1f5; }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #d7dde5; }
.browser-body { padding: 30px 24px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mini-logo { width: 36px; height: 36px; border-radius: 50%; background: #085f98; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.mini-clinic { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a93a6; }
.mini-title { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0; }
.mini-field { width: 100%; height: 34px; border-radius: 999px; background: #f2f4f7; border: 1px solid #e2e6ec; }
.mini-btn { width: 100%; height: 36px; border-radius: 999px; background: #085f98; }

/* Hero visual: a flat, front-facing laptop showing an actual patient record on screen —
   proves it's software, not an abstract document illustration. Deliberately not tilted
   in 3D like the old browser-frame mock: a laptop silhouette already reads as "a real
   computer" without needing the perspective trick. */
.laptop { width: 460px; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.laptop-screen { width: 100%; background: #0b1b2d; border-radius: 14px 14px 6px 6px; padding: 12px 12px 8px; position: relative; box-shadow: 0 30px 70px -24px rgba(0,0,0,.45); }
.laptop-cam { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #24405f; }
.laptop-screen-inner { background: #ffffff; border-radius: 6px; overflow: hidden; display: flex; align-items: stretch; }
.laptop-hinge { width: 100%; height: 6px; background: #c7ccd3; }
.laptop-base { width: 114%; height: 14px; background: linear-gradient(180deg, #e2e6ec, #cfd4db); border-radius: 0 0 10px 10px; position: relative; box-shadow: 0 10px 18px -12px rgba(0,0,0,.3); }
.laptop-base::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 74px; height: 5px; background: #c7ccd3; border-radius: 0 0 6px 6px; }

/* Left icon rail — mirrors the real app's own sidebar nav, icons only for now */
.screen-sidebar { width: 32px; flex-shrink: 0; background: #f8f9fb; border-right: 1px solid #eef0f3; display: flex; flex-direction: column; align-items: center; padding: 9px 0; gap: 5px; }
.sidebar-mark { width: 18px; height: 18px; border-radius: 5px; background: #085f98; margin-bottom: 6px; flex-shrink: 0; }
.sidebar-icon { width: 20px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #9aa4b2; flex-shrink: 0; }
.sidebar-icon svg { width: 11px; height: 11px; }
.sidebar-icon.active { background: rgba(8,95,152,.12); color: #085f98; }
.screen-main { flex: 1 1 auto; min-width: 0; }
.screen-body { padding: 14px 16px 16px; }

.patient-head { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #eef0f3; margin-bottom: 8px; }
.patient-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(14,138,99,.12); color: #0e8a63; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }
.patient-name { font-size: 11px; font-weight: 700; color: #1f2937; }
.patient-meta { font-size: 8px; color: #9aa4b2; margin-top: 1px; }

/* Dense replica of the real PatientDetail screen — every section from that page, at the
   scale a shrunk hero screenshot actually renders at. Legibility is not the point here;
   density is: it has to read as "a real, serious record", not a marketing simplification. */
.record-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9px; align-items: start; }
.record-main, .record-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini-card { background: #f8f9fb; border: 1px solid #eef0f3; border-radius: 7px; padding: 6px 8px; }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 6.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9aa4b2; margin-bottom: 4px; }
.mini-count { background: #eef0f3; color: #9aa4b2; border-radius: 100px; padding: 1px 5px; font-size: 6px; font-weight: 700; min-width: 11px; text-align: center; flex-shrink: 0; }
.mini-count.danger { background: rgba(181,68,46,.1); color: #b5442e; }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 2.5px 0; border-top: 1px solid #eef0f3; }
.mini-row:first-of-type { border-top: none; }
.mr-label { font-size: 7px; font-weight: 600; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mr-date { font-size: 6px; color: #9aa4b2; flex-shrink: 0; }
.mini-sub { font-size: 6.5px; color: #9aa4b2; margin-top: 2px; }
.mini-pill { font-size: 5.5px; font-weight: 700; padding: 1.5px 5px; border-radius: 100px; white-space: nowrap; flex-shrink: 0; }
.mini-pill.pill-green { background: rgba(14,138,99,.12); color: #0e8a63; }
.mini-pill.pill-red { background: rgba(181,68,46,.1); color: #b5442e; }
.mini-pill.pill-amber { background: rgba(234,160,32,.15); color: #9c6f0c; }
.mini-pill.pill-neutral { background: #eef0f3; color: #9aa4b2; }
.mini-note-text { font-size: 6.5px; color: #5b6472; line-height: 1.4; margin-top: 2px; }

/* "Facile d'utiliser" section: no illustration, so center the text block instead of
   leaving it stretched full-width in the now-empty flex row. */
.split.no-visual { justify-content: center; }
.split.no-visual .split-text { flex: 0 1 620px; }

/* Sections */
.section { padding: 88px 24px; }
.section-canvas { background: #f5f6f4; }
.section-dark { background: #1c3a57; color: #ffffff; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.eyebrow, .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow { color: #085f98; margin-bottom: 12px; }
.section-dark .eyebrow { color: #5ad1a1; }
/* The brand mark's own EKG pulse, echoed as a small flourish before every section
   kicker — a mask so it always picks up currentColor instead of a fixed fill. */
.eyebrow::before, .hero-eyebrow::before {
  content: '';
  width: 22px; height: 11px; flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 11'%3E%3Cpath d='M0 5.5H7L9 1L11 10L13 5.5H22' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 11'%3E%3Cpath d='M0 5.5H7L9 1L11 10L13 5.5H22' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.h2 { font-size: 30px; font-weight: 700; margin: 0 0 14px; color: #1f2937; }
.section-dark .h2 { color: #ffffff; }
.lede { font-size: 16px; line-height: 1.6; color: #5b6472; margin: 0; }
.section-dark .lede { color: rgba(255,255,255,.82); }

/* Pain points */
.pain-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pain-card { background: #ffffff; border: 1px solid #e2e6ec; border-radius: 14px; padding: 28px 24px; }
.pain-icon { width: 40px; height: 40px; border-radius: 10px; background: #fdf1f0; color: #c0392b; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pain-title { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; color: #1f2937; }
.pain-text { font-size: 14.5px; line-height: 1.55; color: #5b6472; margin: 0; }

/* Features */
.feature-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card { background: #ffffff; border: 1px solid #e2e6ec; border-radius: 14px; padding: 26px 22px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(8,95,152,.10); color: #085f98; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #1f2937; }
.feature-text { font-size: 14px; line-height: 1.5; color: #5b6472; margin: 0; }

/* Specialties */
.specialty-tags {
  max-width: 980px; margin: 36px auto 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: #e2e6ec; border: 1px solid #e2e6ec; border-radius: 14px; overflow: hidden;
}
.specialty-tag {
  background: #ffffff; padding: 14px 22px; font-size: 14.5px; font-weight: 600; color: #1f2937;
  display: flex; align-items: center; gap: 12px;
}
.specialty-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,95,152,.1); color: #085f98;
}
.specialty-tag:nth-child(even) .specialty-icon { background: rgba(14,138,99,.1); color: #0e8a63; }
.specialty-note { text-align: center; font-size: 13.5px; color: #9aa4b2; margin: 22px 0 0; }

/* Split (facile a utiliser) */
.split { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 56px; }
.split-text { flex: 1 1 420px; min-width: 0; }
.split-visual { flex: 0 0 400px; display: flex; justify-content: center; }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #1f2937; }
.check-item svg { flex-shrink: 0; margin-top: 2px; color: #0e8a63; }

/* Adapte-a-votre-clinique band */
.adapt-list { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.adapt-item { text-align: center; }
.adapt-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #5ad1a1; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.adapt-title { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.adapt-text { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); margin: 0; }

/* Trust */
.trust-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trust-card { text-align: center; padding: 8px; }
.trust-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(14,138,99,.10); color: #0e8a63; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.trust-title { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: #1f2937; }
.trust-text { font-size: 13.5px; line-height: 1.5; color: #5b6472; margin: 0; }

/* Pricing teaser */
.pricing-box { max-width: 640px; margin: 0 auto; text-align: center; }

/* Demo form */
.demo-grid { max-width: 1080px; margin: 0 auto; display: flex; gap: 56px; align-items: flex-start; }
.demo-copy { flex: 1 1 380px; min-width: 0; }
.demo-card { flex: 0 0 420px; max-width: 100%; background: #ffffff; border: 1px solid #e2e6ec; border-radius: 18px; padding: 32px 28px; box-shadow: 0 20px 50px -24px rgba(15,23,42,.18); }
.form-row { margin-bottom: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #3f4757; margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; padding: 11px 14px; border: 1px solid #e2e6ec; border-radius: 10px;
  font-size: 14.5px; color: #1f2937; background: #f8f9fb; font-family: inherit;
}
.form-input:focus, .form-select:focus { outline: none; border-color: #c3cdda; background: #ffffff; box-shadow: 0 0 0 4px rgba(8,95,152,.10); }
textarea.form-input { resize: vertical; min-height: 44px; }
.demo-note { font-size: 12.5px; color: #9aa4b2; margin-top: 14px; text-align: center; }
.demo-success { display: none; text-align: center; padding: 12px 0; }
.demo-success.is-visible { display: block; }
.demo-success-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #eaf7f0; color: #1f8a5c;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.demo-error { display: none; background: #fdf1f0; border: 1px solid #f3c9c4; color: #9a2f24; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.demo-error.is-visible { display: block; }

/* Footer */
.site-footer { background: #1c3a57; color: rgba(255,255,255,.65); padding: 48px 24px 28px; }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-word { color: #ffffff; font-weight: 700; font-size: 15px; }
.footer-tagline { font-size: 13px; margin-top: 6px; max-width: 320px; }
.footer-contact { font-size: 13.5px; line-height: 1.8; }
.footer-bottom { max-width: 1080px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; }

@media (max-width: 860px) {
  .hero-inner, .split, .demo-grid { flex-direction: column; }
  .hero-visual, .split-visual { order: -1; }
  .pain-grid, .feature-grid, .adapt-list, .trust-grid { grid-template-columns: 1fr; }
  .specialty-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}

/* On phones, the laptop mockup is too cramped to read and just adds dead weight above
   the fold — drop it and let the hero copy carry the section on its own. */
@media (max-width: 600px) {
  .hero-visual { display: none; }
}
