* { 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: #0b1b2d; }
.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: #0b1b2d; color: #ffffff; padding: 72px 24px 96px; }
.hero-pattern { position: absolute; inset: 0; pointer-events: none; }
.hero-pattern .pulse-line {
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: pulse-draw 2.6s ease-out .3s forwards, pulse-glow 2s ease-in-out 2.9s infinite;
}
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }
@keyframes pulse-glow { 0%, 100% { opacity: .35; } 50% { opacity: .08; } }
@media (prefers-reduced-motion: reduce) {
  .hero-pattern .pulse-line { animation: none; stroke-dashoffset: 0; opacity: .25; }
}
.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 440px; 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: 420px; }
.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; }

/* Browser mock variant: a day's agenda, used in the "Facile d'utiliser" section so it
   doesn't just repeat the hero's login screen. */
.browser-body.mini-agenda { align-items: stretch; padding: 22px 20px 24px; gap: 10px; }
.mini-agenda-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.mini-agenda-title { font-size: 15px; font-weight: 700; color: #1f2937; }
.mini-agenda-date { font-size: 12px; color: #9aa4b2; }
.mini-agenda-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; background: #f8f9fb; border: 1px solid #eef0f3;
}
.mini-agenda-row.is-active { background: rgba(8,95,152,.07); border-color: rgba(8,95,152,.25); }
.mini-agenda-time { font-size: 12.5px; font-weight: 700; color: #5b6472; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mini-agenda-name { font-size: 13.5px; font-weight: 600; color: #1f2937; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-agenda-tag { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; }
.mini-agenda-tag.tag-blue { background: rgba(8,95,152,.12); color: #085f98; }
.mini-agenda-tag.tag-green { background: rgba(14,138,99,.12); color: #0e8a63; }
.mini-agenda-tag.tag-navy { background: rgba(11,27,45,.08); color: #0b1b2d; }

/* "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: #0b1b2d; 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); }

/* Pulse divider — a thin ECG line marking the seam between two sections, reusing
   the same motif as the eyebrow flourish and the hero background. */
.pulse-divider { line-height: 0; }
.pulse-divider svg { display: block; width: 100%; height: 28px; }
.pulse-divider.on-light { background: #ffffff; }
.pulse-divider.on-dark { background: #0b1b2d; }

/* 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: #06101b; 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; }
}
