/* ============================================================
   MOBILIS TOURS & LOISIRS — devis.css (Refonte complète)
   ============================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + var(--space-2xl));
  padding-bottom: var(--space-4xl);
  overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,27,53,0.92) 0%, rgba(26,26,46,0.85) 100%);
}
.page-hero__container {
  position: relative; z-index: 1;
  max-width: 700px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-lg);
}
.page-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-black);
  color: var(--color-white); line-height: 1.15;
}
.page-hero__title span { color: var(--color-primary); }
.page-hero__subtitle { font-size: var(--font-size-md); color: rgba(255,255,255,0.8); line-height: 1.7; }


/* ═══════════════════════════════════════════════════════════
   SECTION 1 — FORMULAIRE
   ═══════════════════════════════════════════════════════════ */
.devis-form-section {
  padding: var(--space-6xl) 0;
  background: #F8F9FC;
}

/* En-tête de section */
.devis-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
}
.devis-section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: var(--font-weight-black);
  color: var(--color-dark);
  margin: var(--space-md) 0 var(--space-sm);
}
.devis-section-header p {
  color: var(--color-text-light);
  font-size: var(--font-size-md);
  line-height: 1.7;
}

/* Carte formulaire */
.devis-form-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.08);
  padding: 3rem 3.5rem;
}

/* ── STEPPER ────────────────────────────────────────────────── */
.devis-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #b0b8c9;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}
.step.active { color: var(--color-primary); }
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #eef0f5;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.3s;
  color: #8090a8;
}
.step.active .step-num {
  background: rgba(232,160,32,0.12);
  border-color: var(--color-primary);
  color: var(--color-dark);
}
.step.done .step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
}
.step-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.step-connector {
  flex: 1;
  height: 2px;
  background: #eef0f5;
  margin: 0 0.75rem;
  margin-bottom: 1.2rem;
}

/* ── ÉTAPES ─────────────────────────────────────────────────── */
.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.35s ease; }
@keyframes stepIn { from { opacity: 0; } to { opacity: 1; } }

.form-step-header { margin-bottom: 2rem; }
.form-step-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.4rem;
}
.form-step-header p { color: var(--color-text-light); font-size: 0.92rem; line-height: 1.6; }

/* ── CARTES DE SERVICE (ÉTAPE 1) ────────────────────────────── */
.service-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.choice-card { cursor: pointer; }
.choice-card input { display: none; }
.choice-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.4rem 1rem;
  background: #F8F9FC;
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}
.choice-card__icon {
  width: 52px; height: 52px;
  background: white;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: all 0.25s;
}
.choice-card__icon svg { width: 24px; height: 24px; color: var(--color-text-light); transition: all 0.25s; }
.choice-card__label { font-size: 0.82rem; font-weight: 600; color: var(--color-dark); }
.choice-card__check {
  position: absolute;
  top: 8px; right: 8px;
  width: 20px; height: 20px;
  background: var(--color-primary);
  color: var(--color-dark);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
.choice-card:hover .choice-card__inner {
  background: white;
  border-color: rgba(232,160,32,0.4);
  box-shadow: 0 4px 20px rgba(232,160,32,0.12);
  transform: translateY(-2px);
}
.choice-card input:checked ~ .choice-card__inner {
  background: white;
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(232,160,32,0.2);
}
.choice-card input:checked ~ .choice-card__inner .choice-card__icon svg { color: var(--color-primary); }
.choice-card input:checked ~ .choice-card__inner .choice-card__check {
  opacity: 1;
  transform: scale(1);
}

/* ── CHAMPS (ÉTAPES 2 & 3) ──────────────────────────────────── */
.form-fields { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.optional { font-weight: 400; color: var(--color-text-light); font-style: italic; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: #F8F9FC;
  border: 1.5px solid #e5e9f2;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--color-dark);
  transition: all 0.2s;
  outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(232,160,32,0.1);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ── NAVIGATION (BOUTONS) ───────────────────────────────────── */
.form-nav {
  display: flex;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f2f7;
  margin-top: 0.5rem;
}
.form-nav--right { justify-content: flex-end; }
.form-nav--split { justify-content: space-between; }

.btn--ghost {
  background: transparent;
  border: 1.5px solid #e5e9f2;
  color: var(--color-text-light);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.btn--ghost:hover { border-color: var(--color-dark); color: var(--color-dark); }


/* ═══════════════════════════════════════════════════════════
   SECTION 2 — WHATSAPP DIRECT
   ═══════════════════════════════════════════════════════════ */
.whatsapp-direct-section {
  padding: var(--space-6xl) 0;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.whatsapp-direct-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(37,211,102,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.whatsapp-direct-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,160,32,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.whatsapp-direct-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Côté gauche */
.whatsapp-direct-left { color: white; }
.whatsapp-direct-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25D366;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.whatsapp-direct-left h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: white;
  margin-bottom: 1rem;
}
.whatsapp-direct-left h2 em { color: #25D366; font-style: normal; }
.whatsapp-direct-left > p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.whatsapp-direct-perks { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.whatsapp-direct-perks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.whatsapp-direct-perks li svg { color: #25D366; flex-shrink: 0; }

/* Côté droit */
.whatsapp-direct-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.whatsapp-chat-preview {
  width: 100%;
  background: #ECE5DD;
  border-radius: 20px;
  padding: 1.5rem;
}
.chat-bubble {
  background: white;
  border-radius: 0 16px 16px 16px;
  padding: 1rem 1.2rem;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.chat-bubble p { font-size: 0.88rem; color: #111; line-height: 1.5; margin-bottom: 0.3rem; }
.chat-bubble p:last-of-type { margin-bottom: 0.5rem; }
.chat-time { font-size: 0.7rem; color: #888; display: block; text-align: right; }

.btn-whatsapp-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.1rem 2rem;
  background: #25D366;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
}
.btn-whatsapp-direct:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.35);
}
.online-dot {
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.whatsapp-availability {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin: 0;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .devis-form-card { padding: 2.5rem 2rem; }
  .service-choices { grid-template-columns: repeat(2, 1fr); }
  .whatsapp-direct-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .devis-form-card { padding: 2rem 1.25rem; }
  .service-choices { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
}
