:root {
  --bg: #0b0d10;
  --bg-2: #14171c;
  --bg-3: #1b1f26;
  --accent: #3ecf8e;
  --accent-2: #6fe3ac;
  --text: #f1f4f2;
  --muted: #9aa4a0;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.22);
  --radius: 12px;
  --radius-lg: 18px;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

.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;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid,
.bg-grid-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bg-grid-glow {
  background-image:
    linear-gradient(rgba(120, 255, 195, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 195, 0.35) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(140px circle at var(--mx, -500px) var(--my, -500px), black 0%, transparent 75%);
  mask-image: radial-gradient(140px circle at var(--mx, -500px) var(--my, -500px), black 0%, transparent 75%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.bg-grid-glow.is-active {
  opacity: 1;
}

.accent {
  color: var(--accent);
}

.service-pill.on,
.payment-pill.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(62, 207, 142, 0.1);
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px rgba(62, 207, 142, 0.25), 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.shine-text,
.shine {
  background-image: linear-gradient(
    100deg,
    var(--text) 25%,
    var(--accent-2) 42%,
    #ffffff 50%,
    var(--accent-2) 58%,
    var(--text) 75%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine-sweep 5.5s linear infinite;
}

.shine-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 12px;
}

@keyframes shine-sweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shine-text,
  .shine {
    animation: none;
    background-position: 0 0;
  }
}

.viz-root {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: visible;
}

.chart-baseline {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--font-ui);
}

.chart-row-label,
.chart-value-label {
  fill: var(--text);
  font-size: 12px;
  font-family: var(--font-ui);
}

.chart-value-label {
  fill: var(--muted);
}

.viz-root rect[data-tip-value] {
  transition: opacity 0.12s ease;
  outline: none;
}

.viz-root rect.mark-hover {
  opacity: 0.82;
}

.chart-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 20px 0;
}

.chart-tooltip {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: var(--shadow, 0 10px 30px rgba(0, 0, 0, 0.4));
  display: grid;
  gap: 2px;
}

.chart-tooltip strong {
  font-size: 14px;
  color: var(--text);
}

.chart-tooltip span {
  color: var(--muted);
}

.dash-tabs {
  display: flex;
  gap: 4px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-ui);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.dash-tab.active {
  color: var(--text);
  border-color: var(--accent);
}

.dash-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  text-align: left;
}

.dash-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-align: left;
}

.dash-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.dash-input {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-family: var(--font-ui);
}

.dash-input:focus {
  outline: none;
  border-color: var(--accent);
}

.dash-input[type="number"] {
  -moz-appearance: textfield;
}

.dash-input[type="number"]::-webkit-outer-spin-button,
.dash-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dash-list {
  display: grid;
  gap: 10px;
}

.dash-row {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color 0.15s ease;
}

.dash-row:hover {
  border-color: var(--line-strong);
}

.appt-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.appt-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.appt-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 13px;
}

.appt-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.agenda-daycol {
  position: relative;
  border-left: 1px solid var(--line);
  /* Une ligne toutes les 48px = une ligne par heure (AGENDA_HOUR_PX en JS) */
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent 48px
  );
}

.agenda-appt {
  position: absolute;
  left: 3px;
  right: 3px;
  border: 1px solid;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.agenda-appt:hover {
  filter: brightness(1.2);
}

.agenda-appt.selected {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.dash-row-main strong {
  display: block;
  margin-bottom: 3px;
}

.dash-row-meta {
  color: var(--muted);
  font-size: 13px;
}

.dash-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.dash-badge.confirmed {
  color: var(--accent);
  border-color: rgba(62, 207, 142, 0.4);
  background: rgba(62, 207, 142, 0.18);
}

.dash-badge.pending {
  color: #e0b23c;
  border-color: rgba(224, 178, 60, 0.4);
  background: rgba(224, 178, 60, 0.18);
}

.dash-badge.cancelled,
.dash-badge.no_show {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.18);
}

.dash-badge.done {
  color: #6fa8ff;
  border-color: rgba(111, 168, 255, 0.4);
  background: rgba(111, 168, 255, 0.18);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 7px;
}

.btn-danger {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.btn-danger:hover {
  background: rgba(255, 107, 107, 0.18);
}

.empty-state {
  color: var(--muted);
  text-align: left;
  padding: 8px 0 20px;
}

.account-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.plan-badge {
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.topbar,
.hero,
.stats-bar,
.section,
.site-foot {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 10px;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #04140c;
}

.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 24px rgba(62, 207, 142, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(62, 207, 142, 0.12);
  border-color: rgba(62, 207, 142, 0.45);
  color: var(--accent);
}

.hero {
  padding: 100px 40px 80px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.stats-bar {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding: 0 40px 80px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--accent);
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 64px 40px;
  max-width: 1080px;
  margin: 0 auto;
}

.dash-body {
  padding: 32px 40px 64px;
  max-width: 1440px;
  margin: 0 auto;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.dash-grid > .dash-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-grid-sidebar {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

.dash-grid > .dash-card,
.dash-grid-sidebar > .dash-card {
  margin-bottom: 0;
}

.dash-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .dash-grid,
  .dash-grid-sidebar {
    grid-template-columns: 1fr;
  }
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 48px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(62, 207, 142, 0.14);
  color: var(--accent);
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.3), 0 20px 50px rgba(62, 207, 142, 0.1);
}

.plan h3 {
  font-family: var(--font-display);
  margin: 0 0 6px;
}

.plan .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0 20px;
}

.plan .price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 10px;
}

.plan ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 32px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 800px) {
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 16px 20px;
  }

  .hero {
    padding: 64px 20px 56px;
  }

  .section {
    padding: 48px 20px;
  }

  .dash-tabs {
    padding: 0 16px;
  }

  .dash-body {
    padding: 24px 16px;
  }

  .nav-biz-name {
    display: none;
  }

  .dash-row {
    padding: 14px 16px;
  }

  .dash-list {
    gap: 8px;
  }
}
