/* ============================================================
   CGP CHEVERNEUIL — Tunnel de prise de RDV
   Styles spécifiques, alignés sur le design system du site
   (Playfair Display + Montserrat, bleu nuit + or, fond crème)
   ============================================================ */

/* ============ HERO DE PAGE ============ */
.prdv-hero {
  padding: clamp(48px, 6vw, 80px) var(--pad-x) 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.prdv-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.prdv-hero-title {
  font-family: var(--serif);
  font-size: var(--t-h1);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  margin: 16px 0 12px;
  letter-spacing: -0.01em;
}
.prdv-hero-title em {
  font-style: italic;
  color: var(--gold-ink);
}
.prdv-hero-lede {
  font-size: var(--t-lede);
  color: var(--ink-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* ============ CONTENEUR TUNNEL ============ */
.prdv-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px var(--pad-x) 80px;
  width: 100%;
}

/* ============ BARRE DE PROGRESSION ============ */
.prdv-progress {
  margin-bottom: 32px;
}
.prdv-progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.prdv-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.prdv-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: var(--t-tag);
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prdv-progress-step {
  color: var(--gold-ink);
  font-weight: 600;
}

/* ============ CARTE D'ÉTAPE ============ */
.prdv-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 40px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: prdvFadeIn 0.4s ease-out;
}
@keyframes prdvFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.prdv-hidden { display: none; }

.prdv-step-title {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.prdv-required { color: var(--gold-ink); font-weight: 400; }
.prdv-step-subtitle {
  color: var(--ink-muted);
  font-size: var(--t-small);
  margin: 0 0 28px;
  line-height: 1.6;
}

/* ============ CHOIX (RADIO) ============ */
.prdv-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.prdv-choice {
  display: block;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
  font-size: var(--t-body);
  position: relative;
}
.prdv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.prdv-choice:hover {
  border-color: var(--gold);
  background: var(--bg-alt);
}
.prdv-choice.prdv-selected {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.prdv-choice-desc {
  display: block;
  font-size: var(--t-small);
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ============ CHAMPS ============ */
.prdv-field { margin-bottom: 20px; }
.prdv-field-label {
  display: block;
  font-size: var(--t-small);
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.prdv-field-label .prdv-required { color: var(--gold-ink); }
.prdv-field-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-size: var(--t-body);
  font-family: inherit;
  transition: border-color 0.2s;
}
.prdv-field-input:focus {
  outline: none;
  border-color: var(--gold);
}
.prdv-field-input::placeholder { color: var(--ink-faint); }

textarea.prdv-field-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Téléphone : drapeau + input */
.prdv-field-tel {
  display: flex;
  gap: 8px;
  align-items: center;
}
.prdv-field-tel-flag {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
}
.prdv-field-tel input { flex: 1; }

/* Checkbox RGPD */
.prdv-checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
  cursor: pointer;
  font-size: var(--t-small);
  color: var(--ink-muted);
  line-height: 1.6;
  padding: 12px 0;
}
.prdv-checkbox-field input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}
.prdv-checkbox-field a { color: var(--forest); text-decoration: underline; }
.prdv-checkbox-field .prdv-required { color: var(--gold-ink); }

/* ============ NAVIGATION ============ */
.prdv-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prdv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
}
.prdv-btn-primary {
  background: var(--forest);
  color: #f8f7f4;
}
.prdv-btn-primary:hover:not(:disabled) {
  background: var(--forest-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.prdv-btn-primary:disabled {
  background: var(--sage);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.prdv-btn-ghost {
  color: var(--ink-muted);
  background: transparent;
}
.prdv-btn-ghost:hover { color: var(--ink); }

/* ============ RÉCAP FINAL ============ */
.prdv-recap-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.prdv-recap-title {
  font-family: var(--sans);
  font-size: var(--t-tag);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 500;
  margin: 0 0 12px;
}
.prdv-recap-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: var(--t-small);
  border-bottom: 1px solid var(--line);
}
.prdv-recap-row:last-child { border-bottom: 0; }
.prdv-recap-label { color: var(--ink-muted); }
.prdv-recap-value { color: var(--ink); text-align: right; max-width: 60%; }

/* ============ ÉCRAN DE SUCCÈS ============ */
.prdv-success {
  text-align: center;
  padding: 40px 20px;
}
.prdv-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prdv-success-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--gold);
}
.prdv-success-title {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.prdv-success-text {
  color: var(--ink-muted);
  font-size: var(--t-body);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.prdv-success-recap {
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: left;
}
.prdv-success-note {
  color: var(--ink-muted);
  font-size: var(--t-small);
}
.prdv-success-note a { color: var(--gold-ink); }

/* ============ ERREURS ============ */
.prdv-error-msg {
  padding: 14px 18px;
  background: rgba(160, 64, 64, 0.08);
  border: 1px solid rgba(160, 64, 64, 0.3);
  border-radius: 4px;
  color: var(--no);
  font-size: var(--t-small);
  margin-bottom: 16px;
  display: none;
}
.prdv-error-msg.prdv-visible { display: block; }

/* ============ HONEYPOT ============ */
.prdv-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .prdv-hero { padding: 36px 20px 28px; }
  .prdv-wrap { padding: 24px 16px 48px; }
  .prdv-step { padding: 28px 22px 22px; }
  .prdv-step-title { font-size: 24px; }
  .prdv-btn { padding: 11px 20px; font-size: 11px; }
  .prdv-field-input { padding: 13px 15px; font-size: 15px; }
  .prdv-choice { padding: 14px 16px; font-size: 15px; }
}
