/* ============================================================
   Comète Studio — vitrine
   DA reprise de louisgirault.fr : void / acid / bone,
   Space Grotesk + JetBrains Mono + Inter, grain.
   Sans la couche « terminal » de l'ancien site.
   ============================================================ */

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

:root {
  --void: #0A0A0A;
  --void-2: #141414;
  --void-3: #1C1C1C;
  --acid: #39FF14;
  --bone: #F2F2F0;
  --bone-dim: #999996;
  --rule: #2A2A2A;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-body: 'Inter', system-ui, sans-serif;

  --wrap: 1080px;
  --gut: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

/* ---------- a11y ---------- */
.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;
}
.skip-link {
  position: absolute; top: -60px; left: 0; z-index: 999;
  background: var(--void); color: var(--acid); padding: 10px 16px;
  font-family: var(--font-mono); font-weight: 700; text-decoration: none;
  border: 1px solid var(--acid);
}
.skip-link:focus { top: 0; }
*:focus { outline: none; }
*:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

@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;
  }
  .grain { display: none !important; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url('/assets/grain.svg');
  opacity: 0.15; mix-blend-mode: overlay;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { position: relative; z-index: 2; padding: 96px 0; border-top: 1px solid var(--rule); }
.section--alt { background: var(--void-2); }

.label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid);
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

h2.heading { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 20px; }
h3.sub { font-size: clamp(20px, 2.4vw, 24px); margin-bottom: 10px; }
.lede { font-size: 18px; color: var(--bone-dim); max-width: 62ch; }
p + p { margin-top: 16px; }
strong { color: var(--bone); font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.nav__brand img { height: 22px; width: auto; display: block; }
.nav__brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav__links a {
  font-family: var(--font-mono); font-size: 13px; color: var(--bone-dim);
  text-decoration: none; transition: color .15s;
}
.nav__links a:hover { color: var(--acid); }
@media (max-width: 860px) { .nav__links li:not(.nav__links--cta) { display: none; } }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--acid); transition: transform .12s, background .15s, color .15s;
}
.btn--primary { background: var(--acid); color: var(--void); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--rule); }
.btn--ghost:hover { border-color: var(--acid); color: var(--acid); }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; padding: 110px 0 84px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 560px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(57,255,20,0.14), transparent 68%);
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--acid); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); max-width: 16ch; margin-bottom: 26px; }
.hero__sub { font-size: clamp(17px, 2vw, 20px); color: var(--bone-dim); max-width: 56ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__note { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--bone-dim); }

/* ---------- preuves ---------- */
.proof { background: var(--void-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 64px 0; position: relative; z-index: 2; }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 800px) { .proof__grid { grid-template-columns: 1fr; gap: 36px; } }
.stat__fig {
  font-family: var(--font-display); font-weight: 700; color: var(--acid);
  font-size: clamp(44px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em;
}
.stat__desc { margin-top: 12px; font-size: 15px; color: var(--bone); max-width: 34ch; }
.stat__src {
  margin-top: 10px; font-family: var(--font-mono); font-size: 12px;
  color: var(--bone-dim); letter-spacing: 0.06em; text-transform: uppercase;
}
.proof__note { margin-top: 40px; font-family: var(--font-mono); font-size: 12px; color: var(--bone-dim); }

/* ---------- deux colonnes ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 32px; } }

.panel { border: 1px solid var(--rule); padding: 30px; background: var(--void); }
.panel--yes { border-left: 3px solid var(--acid); }
.panel--no { border-left: 3px solid var(--rule); }
.panel h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; color: var(--acid); }
.panel--no h3 { color: var(--bone-dim); }
.panel p { font-size: 16px; }
.panel--no p { color: var(--bone-dim); }

/* ---------- profils ---------- */
.profils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 940px) { .profils { grid-template-columns: 1fr; } }
.profil { border: 1px solid var(--rule); background: var(--void); padding: 30px; display: flex; flex-direction: column; }
.profil__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--acid); margin-bottom: 14px; }
.profil h3 { font-size: 22px; margin-bottom: 16px; }
.profil dl { margin-top: 6px; }
.profil dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bone-dim); margin-top: 20px; margin-bottom: 6px;
}
.profil dd { font-size: 15px; color: var(--bone); }

/* ---------- listes ---------- */
.ticks { list-style: none; margin-top: 8px; }
.ticks li { position: relative; padding-left: 26px; margin-top: 14px; font-size: 16px; }
.ticks li::before {
  content: '+'; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-weight: 700; color: var(--acid);
}

/* ---------- prix ---------- */
.price { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 860px) { .price { grid-template-columns: 1fr; } }
.price__card { border: 1px solid var(--rule); padding: 34px; background: var(--void); }
.price__card--main { border-color: var(--acid); }
.price__amount { font-family: var(--font-display); font-weight: 700; font-size: 52px; letter-spacing: -0.04em; line-height: 1; }
.price__card--main .price__amount { color: var(--acid); }
.price__per { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 13px; color: var(--bone-dim); letter-spacing: 0.04em; }
.price__card p { font-size: 15px; }
.price__card p:first-of-type { margin-top: 20px; }
.price__total {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 13px; color: var(--bone-dim);
}

/* ---------- promesse ---------- */
.promise { border-left: 3px solid var(--acid); padding-left: 26px; }
.promise__no { border-left-color: var(--rule); color: var(--bone-dim); margin-top: 32px; }

/* ---------- faq ---------- */
.faq { margin-top: 36px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex;
  align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); color: var(--acid); font-size: 22px; flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details > p { padding: 0 0 24px; color: var(--bone-dim); max-width: 70ch; font-size: 16px; }

/* ---------- cta final ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 20px; }
.final .lede { margin: 0 auto 34px; }
.final__note { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--bone-dim); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--rule); padding: 48px 0; background: var(--void-2); }
.foot__grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot p, .foot a { font-family: var(--font-mono); font-size: 12px; color: var(--bone-dim); line-height: 1.9; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--acid); }

/* ============================================================
   Widget de réservation — repris de l'ancien site (Cal.eu)
   ============================================================ */
.booking {
  border-top: 1.5px solid var(--acid);
  background: var(--void);
  padding: 40px;
}

.booking__step {
  display: none;
}

.booking__step.is-active {
  display: block;
}

/* ── Calendar ── */
.booking__layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.booking__calendar {
  flex: 0 0 320px;
}

.booking__cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.booking__cal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--bone);
  letter-spacing: -0.01em;
}

.booking__cal-nav {
  background: none;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.booking__cal-nav:hover {
  background: var(--acid);
  color: var(--void);
}

.booking__cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.booking__cal-nav:disabled:hover {
  background: none;
  color: var(--acid);
}

.booking__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.booking__cal-dow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--bone-dim);
  text-transform: uppercase;
  padding: 8px 0;
}

.booking__cal-day {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 0;
  background: none;
  border: none;
  color: var(--bone-dim);
  cursor: default;
  transition: background 0.15s, color 0.15s;
}

.booking__cal-day--empty {
  visibility: hidden;
}

.booking__cal-day--past {
  color: var(--rule);
}

.booking__cal-day--available {
  color: var(--bone);
  cursor: pointer;
}

.booking__cal-day--available:hover {
  background: rgba(57, 255, 20, 0.12);
}

.booking__cal-day--available::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
}

.booking__cal-day--selected {
  background: var(--acid) !important;
  color: var(--void) !important;
}

.booking__cal-day--selected::after {
  background: var(--void);
}

/* ── Slots list ── */
.booking__slots {
  flex: 1;
  min-width: 0;
}

.booking__slots-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-dim);
  margin-bottom: 16px;
}

.booking__slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.booking__slot-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.booking__slot-btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.booking__slot-btn--selected {
  background: var(--acid);
  color: var(--void);
  border-color: var(--acid);
}

.booking__loading,
.booking__no-slots {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--bone-dim);
  padding: 16px 0;
}

.booking__loading {
  color: var(--acid);
}

/* ── Form (step 2) ── */
.booking__recap {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--acid);
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--void-2);
  z-index: 2;
}

.booking__step[data-step="2"] {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}

.booking__step[data-step="2"]::-webkit-scrollbar {
  width: 4px;
}

.booking__step[data-step="2"]::-webkit-scrollbar-track {
  background: transparent;
}

.booking__step[data-step="2"]::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 2px;
}

.booking__form-group {
  margin-bottom: 24px;
}

.booking__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--acid);
  margin-bottom: 8px;
}

.booking__input,
.booking__textarea {
  width: 100%;
  max-width: 480px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
}

.booking__input:focus,
.booking__textarea:focus {
  border-color: var(--acid);
}

.booking__textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.booking__form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.booking__back {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--bone-dim);
  cursor: pointer;
  transition: color 0.2s;
}

.booking__back:hover {
  color: var(--bone);
}

.booking__submit {
  background: none;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.booking__submit:hover {
  background: var(--acid);
  color: var(--void);
}

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

.booking__submit:disabled:hover {
  background: none;
  color: var(--acid);
}

.booking__error {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ff6b6b;
  margin-top: 16px;
  display: none;
}

.booking__error.is-visible {
  display: block;
}

/* ── Confirmation (step 3) ── */
.booking__confirm-box {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--acid);
  margin-bottom: 24px;
  line-height: 1.6;
  white-space: pre;
}

.booking__confirm-recap {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--bone);
  margin-bottom: 16px;
}

.booking__confirm-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--bone-dim);
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .booking {
    padding: 24px;
  }

  .booking__layout {
    flex-direction: column;
    gap: 32px;
  }

  .booking__calendar {
    flex: none;
    width: 100%;
    max-width: 360px;
  }

  .booking__slots-list {
    gap: 8px;
  }

  .booking__slot-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .booking__form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Listes deroulantes du formulaire (nouveaux champs praticiens) */
.booking__select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--acid) 50%), linear-gradient(135deg, var(--acid) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 28px;
}
.booking__select option { background: var(--void-2); color: var(--bone); }
