/* ============================================
   CONTACT — FORMULAIRE PLEIN ÉCRAN
   ============================================ */

.cf-page {
  position: relative;
  min-height: 100vh;
  background: var(--white);
  overflow-x: hidden;
}

/* ── Barre de progression ───────────────────── */
.cf-progress {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.07);
  z-index: 200;
  pointer-events: none;
}

.cf-progress__fill {
  height: 100%;
  background: #c9a96e;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Compteur ───────────────────────────────── */
.cf-counter {
  position: fixed;
  top: 88px;
  left: 5vw;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.25);
  z-index: 100;
}

/* ── Zone des steps ─────────────────────────── */
.cf-steps {
  position: relative;
}

.cf-step {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 8vw 80px;
  gap: 5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cf-step.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.cf-step.exit-up {
  display: flex;
  opacity: 0;
  transform: translateY(-24px);
}

/* ── Question ───────────────────────────────── */
.cf-question {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--black);
  text-align: left;
  flex: 0 0 auto;
  width: auto;
}

/* ── Côté droit (contenu + bouton suivant) ── */
.cf-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  max-width: 640px;
}

/* ── Inputs ─────────────────────────────────── */
.cf-input-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 560px;
}

.cf-input {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: var(--black);
  outline: none;
  width: 100%;
  text-align: center;
  transition: border-color 0.3s;
}

.cf-input:focus { border-bottom-color: #c9a96e; }

.cf-input::placeholder {
  color: rgba(0, 0, 0, 0.2);
  font-style: italic;
}

.cf-textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: var(--black);
  outline: none;
  width: 100%;
  max-width: 600px;
  resize: none;
  min-height: 160px;
  text-align: left;
  transition: border-color 0.3s;
}

.cf-textarea:focus { border-color: #c9a96e; }
.cf-textarea::placeholder { color: rgba(0, 0, 0, 0.22); font-style: italic; }

.cf-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 480px;
}

.cf-fields-centered {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 400px;
}

.cf-input--sm {
  font-size: 1.1rem;
  text-align: center;
}

/* ── Step aligné en haut ────────────────────── */
.cf-step--top {
  align-items: flex-start;
  padding-top: 200px;
}

/* ── Wrapper interne (centre verticalement, question en haut) ── */
.cf-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5rem;
}

/* ── Step centré (colonne) ──────────────────── */
.cf-step--centered {
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 22vh;
}

.cf-step--centered .cf-question {
  text-align: center;
}

/* ── Options ────────────────────────────────── */
.cf-opts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 700px;
}

.cf-opts--col {
  flex-direction: column;
  align-items: center;
  max-width: 420px;
}

.cf-opts--row {
  flex-wrap: nowrap;
  gap: 1rem;
}

.cf-opts--row .cf-opt {
  width: auto;
  padding: 0.9rem 1.5rem;
}

.cf-opts--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 440px;
}

.cf-opt {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  color: var(--grey-dark);
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  text-align: center;
}

.cf-opt:hover {
  border-color: var(--black);
  color: var(--black);
}

.cf-opt.selected {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ── Calendrier ─────────────────────────────── */
.cf-calendar {
  max-width: 400px;
  width: 100%;
}

.cf-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.cf-cal-header--year { margin-bottom: 0.1rem; }

.cf-cal-year {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(0, 0, 0, 0.35);
}

.cf-cal-month {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
}

.cf-cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0.6rem;
  transition: color 0.2s;
}

.cf-cal-nav:hover { color: var(--black); }

.cf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cf-cal-name {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.28);
  text-align: center;
  padding: 0.5rem 0;
}

.cf-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cf-cal-day.past {
  color: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.cf-cal-day.available:hover { background: rgba(201, 169, 110, 0.12); }

.cf-cal-day.selected {
  background: #c9a96e;
  color: #fff;
}

/* ── Erreur ─────────────────────────────────── */
.cf-error {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #b94a48;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ── RGPD ───────────────────────────────────── */
.cf-rgpd {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 520px;
}

.cf-rgpd input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--black);
}

.cf-rgpd label {
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.38);
  font-weight: 300;
  line-height: 1.7;
}

.cf-rgpd label a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.18);
}

/* ── Succès ─────────────────────────────────── */
.cf-step--success { gap: 2rem; }

.cf-success-icon {
  font-size: 2.5rem;
  color: #c9a96e;
}

.cf-success-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.9;
  max-width: 460px;
  text-align: center;
}

/* ── Rangée input + bouton ──────────────────── */
.cf-input-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.cf-input-row .cf-input {
  flex: 1;
  border-bottom: 1px solid #c9a96e;
  border-right: none;
  text-align: left;
}

/* ── Bouton Suivant ─────────────────────────── */
.cf-next-btn {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #c9a96e;
  border: none;
  padding: 0.75rem 2.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.cf-next-btn:hover { background: #b8945a; }

/* ── Retour fixe bas gauche ─────────────────── */
.cf-nav {
  position: fixed;
  bottom: 2rem;
  left: 5vw;
  z-index: 100;
}

.cf-back {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.28);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.cf-back:hover { color: var(--black); }
.cf-back[hidden] { visibility: hidden; pointer-events: none; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .cf-question { font-size: clamp(2rem, 8vw, 3rem); }
  .cf-input { font-size: 1.3rem; }
  .cf-step { padding: 100px 6vw 90px; gap: 2.5rem; }
}
