/* ============================================================
   Elqano - page-demo.css
   CSS specifique a la page Book a Demo uniquement
   ============================================================ */

/* ============================================================
   DEMO LAYOUT
   ============================================================ */
.demo-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 64px;
}

/* LEFT - DARK */
.demo-left {
  background: var(--dark);
  padding: 80px 72px 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.demo-left::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(151,71,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.demo-eyebrow {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.demo-title {
  font-family: 'Crimson Text', serif;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.91;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 36px;
}

.demo-title em { font-style: italic; color: var(--orange); }

.demo-intro {
  font-size: 16px;
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 56px;
}

.demo-steps { display: flex; flex-direction: column; gap: 0; }

.demo-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.demo-step-num {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  padding-top: 3px;
}

.demo-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.demo-step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
}

.demo-proof {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.demo-proof-n {
  font-family: 'Crimson Text', serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.demo-proof-l {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: -0.01em;
  margin-top: 4px;
}

/* RIGHT - FORM */
.demo-right {
  background: var(--cream);
  padding: 80px 48px 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-left: 1px solid var(--div);
}

.demo-form-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ============================================================
   BOOKING WIDGET (custom, branche sur l'API Scheduler HubSpot)
   ============================================================ */
.booking { background: var(--white); border: 1px solid var(--div); border-radius: 12px; overflow: hidden; }

.booking-header { padding: 20px 24px; border-bottom: 1px solid var(--div); display: flex; align-items: center; gap: 12px; }
.booking-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.booking-host-name { font-size: 14px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; }
.booking-host-role { font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: -0.01em; margin-top: 2px; }

.booking-meta { display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--div); flex-wrap: wrap; }
.booking-meta-item { display: flex; align-items: center; gap: 6px; font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: -0.01em; }

.booking-duration { padding: 16px 24px; border-bottom: 1px solid var(--div); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booking-duration-label { font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.duration-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border: 1px solid var(--div); border-radius: 100px; padding: 4px; }
.duration-toggle .toggle-option { padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; letter-spacing: -0.01em; color: var(--muted); }
.duration-toggle .toggle-option.active { background: var(--purple); color: white; }

.booking-step { display: none; padding: 24px; }
.booking-step.active { display: block; }

.booking.is-confirm .booking-header,
.booking.is-confirm .booking-meta,
.booking.is-confirm .booking-duration { display: none; }

.booking-status { font-size: 14px; color: var(--gray); text-align: center; padding: 12px 0; }
.booking-status-error { color: #C0392B; }
.booking-status-fallback { display: block; text-align: center; font-size: 13px; color: var(--purple); margin-top: 8px; }

/* Calendrier + creneaux cote a cote */
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.picker-slots { border-left: 1px solid var(--div); padding-left: 24px; min-width: 0; }
.slots-empty { font-size: 13px; color: var(--muted); padding: 12px 0; }

@media (max-width: 640px) {
  .picker-grid { grid-template-columns: 1fr; gap: 20px; }
  .picker-slots { border-left: none; padding-left: 0; border-top: 1px solid var(--div); padding-top: 20px; }
}

/* Calendrier */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-month { font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; }
.cal-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--div); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: border-color 0.15s, color 0.15s; }
.cal-btn:hover { border-color: #bbb; color: var(--black); }
.cal-btn:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day-label { font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--muted); text-align: center; padding: 4px 0; letter-spacing: -0.01em; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: default; color: var(--muted); }
.cal-day.available { color: var(--black); cursor: pointer; transition: background 0.15s, color 0.15s; }
.cal-day.available:hover { background: rgba(151,71,255,0.08); color: var(--purple); }
.cal-day.selected { background: var(--purple); color: white !important; }
.cal-day.today { font-weight: 700; }

/* Creneaux */
.slots-back, .form-back { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; margin-bottom: 16px; transition: color 0.15s; }
.slots-back:hover, .form-back:hover { color: var(--black); }
.slots-selected-date { font-size: 15px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; margin-bottom: 16px; }
.slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { padding: 10px; border: 1px solid var(--div); border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--black); text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; background: none; }
.slot:hover { border-color: var(--purple); color: var(--purple); background: rgba(151,71,255,0.04); }

/* Formulaire */
/* Honeypot anti-spam : invisible pour un humain (hors ecran + non focusable),
   present dans le DOM pour les bots qui remplissent tous les champs. */
.elq-hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { background: var(--cream); border: 1px solid var(--div); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.form-summary-date { font-size: 13px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; }
.form-summary-dur { font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 3px; letter-spacing: -0.01em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.form-label { font-family: 'Roboto Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; }
.form-input { padding: 10px 13px; border: 1px solid var(--div); border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--black); outline: none; transition: border-color 0.15s; background: var(--white); width: 100%; }
.form-input:focus { border-color: var(--purple); }

/* Label flottant : repose dans le champ comme un placeholder au repos, puis
   remonte sur la bordure superieure au focus/remplissage - remplace le
   placeholder d'exemple (evite le cote "donnee de demo IA") sans perdre le
   label. Ordre input->label en HTML pour le selecteur + (input avant label). */
.form-field-float { position: relative; flex-direction: column-reverse; gap: 0; }
.form-field-float .form-input { padding: 18px 13px 8px; }
.form-field-float .form-label {
  position: absolute;
  left: 13px;
  top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--gray);
  background: var(--white);
  padding: 0 4px;
  margin-left: -4px;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.form-field-float .form-input:focus + .form-label,
.form-field-float .form-input:not(:placeholder-shown) + .form-label {
  top: -7px;
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field-float .form-input:focus + .form-label { color: var(--purple); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239A9A9A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-submit { width: 100%; padding: 13px; background: var(--purple); color: white; border: none; border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -0.02em; cursor: pointer; transition: background 0.2s, transform 0.15s; margin-top: 4px; }
.form-submit:hover { background: #8030ee; transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.form-submit.is-loading { position: relative; color: transparent; }
.form-submit.is-loading::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px;
  margin: -8px 0 0 -8px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: elq-spin 0.7s linear infinite;
}
@keyframes elq-spin { to { transform: rotate(360deg); } }

/* Confirmation */
.booking-confirm { text-align: center; padding: 32px 24px; }
.confirm-icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.confirm-title { font-family: 'Crimson Text', serif; font-size: 24px; letter-spacing: -0.02em; color: var(--black); margin-bottom: 8px; }
.confirm-sub { font-size: 13px; color: var(--muted); line-height: 1.6; }
.confirm-email-note { margin-top: 16px; }

.confirm-recap { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--div); border-radius: 10px; background: var(--cream); text-align: left; }
.confirm-recap-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.confirm-recap-row + .confirm-recap-row { border-top: 1px solid var(--div); }
.confirm-recap-row span { font-family: 'Roboto Mono', monospace; font-size: 10px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.confirm-recap-row strong { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 13px; color: var(--black); text-align: right; }


.demo-form-trust { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
}

.trust-icon { color: var(--muted); flex-shrink: 0; }
.trust-icon-svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .demo-wrap { grid-template-columns: 1fr; min-height: auto; }
  .demo-left { padding: 100px 32px 64px; }
  .demo-right { padding: 64px 32px 80px; border-left: none; border-top: 1px solid var(--div); }
}

@media (max-width: 768px) {
  .demo-proof { flex-wrap: wrap; gap: 20px; }
}
