/* ============================================
   DEVIS.CSS - Formulaire de devis Sir Driver
   Mobile First - Thème clair élégant
   ============================================ */

/* ========== VARIABLES ========== */
:root {
  /* Or - Identité Sir Driver */
  --gold: #c9a54e;
  --gold-dark: #b8941f;
  --gold-hover: #d4af37;
  --gold-subtle: rgba(201, 165, 78, 0.1);

  /* Backgrounds clairs */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-elevated: #f5f5f5;
  --bg-card: #ffffff;

  /* Borders */
  --border: #e5e5e5;
  --border-hover: #d0d0d0;
  --border-focus: rgba(201, 165, 78, 0.5);

  /* Text */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;

  /* Feedback */
  --success: #22c55e;
  --error: #ef4444;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', serif;

  /* Effects */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}

/* ========== HERO AVEC IMAGE - COMME ACCUEIL ========== */
.hero-devis {
  position: relative;
  padding: 80px 16px 30px;
  text-align: center;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-devis::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/chauffeur-prive-vtc-paris-service-premium.avif') center/cover
    no-repeat;
  filter: brightness(0.4);
  z-index: 0;
}

.hero-devis::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 165, 78, 0.2);
  border: 1px solid rgba(201, 165, 78, 0.4);
  border-radius: 20px;
  color: var(--gold-hover);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-devis h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-devis h1 .gold {
  color: var(--gold-hover);
}

.hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ========== LAYOUT ========== */
.devis-section {
  padding: 16px 12px 40px;
  background: #fafafa;
}

.devis-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.devis-container {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* ========== SIDEBAR - Grands écrans ========== */
.devis-sidebar {
  display: none;
  width: 320px;
  flex-shrink: 0;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.sidebar-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-card-title svg {
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.sidebar-list li svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-contact {
  text-align: center;
  padding-top: 8px;
}

.sidebar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.sidebar-contact a:hover {
  color: var(--gold-dark);
}

/* ========== PROGRESS BAR ========== */
.progress-bar-container {
  margin-bottom: 12px;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-hover) 100%);
  width: 33.33%;
  transition: width 0.5s var(--ease);
  border-radius: 4px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
}

.progress-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}

.progress-label.active {
  color: var(--gold);
  font-weight: 600;
}

.progress-label.completed {
  color: var(--success);
}

/* ========== FORM ========== */
.devis-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== ACCORDION ========== */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: none; /* Caché par défaut */
}

/* Seul l'accordéon actif est visible */
.accordion-item.active {
  display: block;
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px var(--gold-subtle),
    var(--shadow);
}

/* Les accordéons complétés sont aussi visibles (en version mini) */
.accordion-item.completed {
  display: block;
  border-color: var(--success);
  cursor: pointer;
}

.accordion-item.completed:hover {
  border-color: #16a34a;
  box-shadow: var(--shadow-hover);
}

.accordion-item.completed .accordion-number {
  background: var(--success);
  color: white;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card);
  user-select: none;
}

.accordion-item:not(.active) .accordion-header:hover {
  background: var(--bg-secondary);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.accordion-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.accordion-item.active .accordion-number {
  background: var(--gold);
  color: white;
}

.accordion-label-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.accordion-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.accordion-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-status {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 12px;
  display: none;
}

.accordion-item.completed .accordion-status {
  display: block;
}

.accordion-status::before {
  content: '✓ ';
}

.accordion-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
}

.accordion-item.active .accordion-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* ========== ACCORDION CONTENT - CACHÉ PAR DÉFAUT ========== */
.accordion-content {
  display: none;
  padding: 0 12px 14px;
  background: var(--bg-card);
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Scrollbar élégante */
.accordion-content::-webkit-scrollbar {
  width: 6px;
}

.accordion-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}

.accordion-content::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

.accordion-content::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.accordion-item.active .accordion-content {
  display: block;
}

/* ========== QUESTION BLOCKS ========== */
.question-block {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.question-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.question-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--gold);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  padding: 0 5px;
}

.question-hint {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 10px;
}

.optional-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 3px 8px;
  border-radius: 10px;
  margin-left: auto;
}

/* ========== OCCASION CARDS ========== */
.occasion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.occasion-card {
  cursor: pointer;
}

.occasion-card input {
  display: none;
}

.occasion-card .card-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.occasion-card:hover .card-content {
  border-color: var(--gold);
  background: #fffdf8;
  box-shadow: 0 2px 8px rgba(201, 165, 78, 0.12);
}

.occasion-card input:checked + .card-content {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffdf8 0%, var(--gold-subtle) 100%);
  box-shadow: 0 0 0 3px rgba(201, 165, 78, 0.15);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--gold);
  flex-shrink: 0;
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.occasion-card input:checked + .card-content .card-icon {
  background: var(--gold);
  color: white;
}

.card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.card-text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-text span {
  font-size: 10px;
  color: var(--text-muted);
}

/* ========== INPUTS ========== */
.text-area-premium,
input[type='text'],
input[type='email'],
input[type='tel'],
select,
input[type='date'],
input[type='time'],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s var(--ease);
}

.text-area-premium:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.text-area-premium::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.char-counter {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.phone-input-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

/* ========== DATE & TIME ========== */
.date-flexibility {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.date-field label,
.location-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.flexibility-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.flex-option {
  cursor: pointer;
}

.flex-option input {
  display: none;
}

.option-pill {
  display: block;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.flex-option:hover .option-pill {
  border-color: var(--border-hover);
}

.flex-option input:checked + .option-pill {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* ========== LOCATIONS ========== */
.locations-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== QUANTITY GROUP ========== */
.quantity-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.quantity-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-row-label svg {
  color: var(--gold);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-input {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.qty-btn:hover {
  background: var(--gold);
  color: white;
}

.quantity-input input {
  width: 44px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
}

.quantity-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== APPROX CHECKBOX ========== */
.approx-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.approx-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.approx-checkbox label {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}

/* ========== ANIMAL CHECKBOX ========== */
.animal-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.animal-checkbox:hover {
  border-color: var(--gold);
}

.animal-checkbox.checked {
  background: var(--gold-subtle);
  border-color: var(--gold);
}

.animal-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.animal-checkbox label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.animal-notice {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: #fffbeb;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

.animal-notice.show {
  display: block;
}

.animal-notice-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.animal-notice-content {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.animal-notice-content ul {
  list-style: none;
  margin: 8px 0;
}

.animal-notice-content li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}

.animal-notice-content li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ========== GROUP NOTE ========== */
.group-note {
  padding: 12px 14px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.group-note span {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.5;
}

/* ========== PRIORITIES ========== */

/* ========== NEEDS LIST ========== */

/* ========== SERVICE LEVELS ========== */
.service-levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-card {
  cursor: pointer;
}

.level-card input {
  display: none;
}

.level-content {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.level-card:hover .level-content {
  border-color: var(--gold);
  background: #fffdf8;
}

.level-card input:checked + .level-content {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffdf8 0%, var(--gold-subtle) 100%);
  box-shadow: 0 0 0 3px rgba(201, 165, 78, 0.15);
}

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

.level-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.level-badge {
  padding: 3px 8px;
  background: var(--bg-elevated);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.level-badge.gold {
  background: var(--gold);
  color: white;
}

.level-badge.platinum {
  background: #64748b;
  color: white;
}

.level-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.level-vehicles {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}

/* ========== BUDGET ========== */

/* ========== CONTACT FORM ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row.two-cols {
  flex-direction: row;
  gap: 12px;
}

.form-row.two-cols .form-field {
  flex: 1;
}

.form-row.two-cols .phone-input-group {
  width: 100%;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
}

@media (max-width: 768px) {
  .phone-input-group {
    grid-template-columns: 105px 1fr;
    gap: 8px;
  }
}

/* Contact prefs */
.contact-prefs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-pref {
  cursor: pointer;
  flex: 1;
  min-width: 90px;
}

.contact-pref input {
  display: none;
}

.contact-pref span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.contact-pref:hover span {
  border-color: var(--border-hover);
}

.contact-pref input:checked + span {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

/* Client type */
.client-type {
  display: flex;
  gap: 10px;
}

.type-option {
  cursor: pointer;
  flex: 1;
}

.type-option input {
  display: none;
}

.type-option span {
  display: block;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}

.type-option:hover span {
  border-color: var(--border-hover);
}

.type-option input:checked + span {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.enterprise-fields {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ========== ENGAGEMENT BOX ========== */
.engagement-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.engagement-icon {
  color: var(--success);
  flex-shrink: 0;
}

.engagement-content h4 {
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 6px;
}

.engagement-content ul {
  list-style: none;
}

.engagement-content li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: #166534;
  margin-bottom: 4px;
}

.engagement-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 11px;
}

/* ========== BUTTONS ========== */
.accordion-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-prev,
.btn-next,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
}

.btn-prev {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-prev:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.btn-prev svg,
.btn-next svg {
  width: 16px;
  height: 16px;
}

.btn-next {
  flex: 1;
  background: var(--gold);
  color: white;
}

.btn-next:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-submit {
  flex: 1;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 165, 78, 0.4);
}

.btn-submit .btn-loading {
  display: none;
}
.btn-submit.loading .btn-text {
  display: none;
}
.btn-submit.loading .btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-submit .spinner {
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== RÉCAPITULATIF ========== */
.recap-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recap-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.recap-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.recap-section-title svg {
  color: var(--gold);
}

.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  gap: 12px;
}

.recap-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.recap-row--full {
  flex-direction: column;
  gap: 6px;
}

.recap-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.recap-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.recap-row--full .recap-value {
  text-align: left;
}

.recap-value--text {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-card);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.recap-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.recap-notice svg {
  flex-shrink: 0;
  color: #3b82f6;
}

.recap-notice p {
  font-size: 12px;
  color: #1e40af;
  line-height: 1.5;
  margin: 0;
}

/* ========== CHOIX MODE D'ENVOI ========== */
.send-method-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.send-method-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.send-method-title svg {
  color: var(--gold);
}

.send-method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.send-method-card {
  cursor: pointer;
}

.send-method-card input {
  display: none;
}

.send-method-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.2s var(--ease);
}

.send-method-card:hover .send-method-content {
  border-color: var(--border-hover);
}

.send-method-card input:checked + .send-method-content {
  border-color: var(--gold);
  background: var(--gold-subtle);
}

.send-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  color: var(--gold);
}

.send-method-card input:checked + .send-method-content .send-method-icon {
  background: var(--gold);
  color: white;
}

.send-method-icon.whatsapp {
  color: #25d366;
}

.send-method-card input:checked + .send-method-content .send-method-icon.whatsapp {
  background: #25d366;
  color: white;
}

.send-method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.send-method-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.send-method-text span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========== BOUTON WHATSAPP ========== */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex: 1;
}

.btn-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* ========== CONFIRMATION ========== */
.confirmation-screen {
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.confirmation-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.confirmation-screen h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.confirmation-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.confirmation-devis-number {
  background: var(--gold-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  border: 1px solid rgba(201, 165, 78, 0.3);
}

.confirmation-devis-number .label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.confirmation-devis-number .number {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.next-steps {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid var(--border);
}

.next-steps h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.next-steps ol {
  list-style: none;
}

.next-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.next-steps .step-number {
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.next-steps .step-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.confirmation-actions {
  display: flex;
  gap: 10px;
}

.confirmation-actions .btn-secondary,
.confirmation-actions .btn-primary {
  flex: 1;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.confirmation-actions .btn-primary svg,
.confirmation-actions .btn-secondary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.confirmation-actions .btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.confirmation-actions .btn-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.confirmation-actions .btn-primary {
  background: var(--gold);
  color: white;
}

.confirmation-actions .btn-primary:hover {
  background: var(--gold-dark);
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 20px;
  background: var(--text-primary);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.3s var(--ease);
  z-index: 9999;
  max-width: calc(100% - 40px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--error);
}
.toast.success {
  background: var(--success);
}

/* ========== ERROR STATE ========== */
input.error,
textarea.error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-message {
  display: block;
  font-size: 11px;
  color: var(--error);
  margin-top: 4px;
}

.error-group {
  border: 1px solid var(--error) !important;
  border-radius: var(--radius-sm);
  padding: 4px;
}

/* ========== GOOGLE PLACES ========== */

.pac-container {
  background: #ffffff;
  border: 1px solid rgba(201, 165, 78, 0.3);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: var(--font);
  z-index: 10000 !important;
  margin-top: -2px;
}

.pac-container::after {
  display: none !important;
}

.pac-item {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #1a1a1a;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1.5;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover,
.pac-item.pac-item-selected {
  background: rgba(201, 165, 78, 0.1);
}

.pac-item-query {
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.85rem;
}

.pac-matched {
  color: var(--gold);
  font-weight: 600;
}

.pac-icon {
  display: none;
}

.pac-item span:last-child {
  color: #666;
  font-size: 0.78rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 479px) {
  .accordion-content {
    max-height: calc(100vh - 160px);
    padding: 0 12px 14px;
  }
}

@media (min-width: 480px) {
  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .hero-devis {
    padding: 120px 20px 50px;
    min-height: 320px;
  }

  .hero-devis h1 {
    font-size: 38px;
  }

  .devis-section {
    padding: 24px 20px 60px;
  }

  .accordion-content {
    padding: 0 16px 18px;
    max-height: calc(100vh - 220px);
  }

  .occasion-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .devis-container {
    max-width: 100%;
  }
}

/* ========== GRANDS ÉCRANS - SIDEBAR ========== */
@media (min-width: 1024px) {
  .devis-section {
    padding: 24px 24px 50px;
  }

  .devis-wrapper {
    max-width: 1400px;
    align-items: flex-start;
    justify-content: center;
  }

  .devis-container {
    flex: 0 1 900px;
    max-width: 900px;
    margin: 0;
  }

  .devis-sidebar {
    display: block;
    position: sticky;
    top: 100px;
    width: 280px;
    flex-shrink: 0;
  }

  .hero-devis h1 {
    font-size: 42px;
  }
}

@media (min-width: 1400px) {
  .devis-wrapper {
    max-width: 1500px;
    gap: 40px;
  }

  .devis-container {
    flex: 0 1 1000px;
    max-width: 1000px;
  }

  .devis-sidebar {
    width: 320px;
  }
}

@media (min-width: 1600px) {
  .devis-wrapper {
    max-width: 1600px;
  }

  .devis-container {
    flex: 0 1 1100px;
    max-width: 1100px;
  }
}
