:root {
  --navy: #0b1929;
  --navy2: #0d2240;
  --blue: #1a5ea8;
  --blue2: #2d7dd2;
  --accent: #c8a96e;
  --text: #2c3e50;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --bg: #fafafa;
  --success: #15803d;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px 24px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
}

.nav-logo img {
  height: 88px;
  width: auto;
}

.nav-logo span {
  font-size: 1.5rem;
}

.nav-back {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.devis-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  overflow: hidden;
}

.devis-hero-img {
  position: absolute;
  inset: 0;
  background: url("/assets/images/quote/devis-gratuit.webp") center/cover;
}

.devis-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 25, 41, 0.7), rgba(11, 25, 41, 0.9));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  color: white;
  text-align: center;
}

h1 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-sub {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
}

.main-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: -100px auto 100px;
  padding: 0 24px;
}

.form-card {
  padding: 50px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: white;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.section-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--navy);
}

.section-desc {
  margin-bottom: 30px;
  color: var(--text-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.full-width {
  grid-column: span 2;
}

.input-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fdfdfd;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(26, 94, 168, 0.08);
}

textarea {
  resize: vertical;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  border: none;
  border-radius: 14px;
  background: var(--blue);
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  background: var(--blue2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(26, 94, 168, 0.2);
}

.btn-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.form-note {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 11px;
  text-align: center;
}

.form-note a {
  color: var(--blue);
}

.form-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.form-status.show {
  display: block;
}

.form-status.error {
  background: var(--danger-bg);
  color: var(--danger);
}

.form-status.success {
  background: #ecfdf3;
  color: var(--success);
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.success-message.show {
  display: block;
}

.success-icon {
  margin-bottom: 20px;
  color: #22c55e;
  font-size: 64px;
}

.btn-primary {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
  text-decoration: none;
}

.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.trust-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
}

.trust-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.trust-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 14px;
}

.trust-icon {
  color: var(--blue);
  font-weight: 700;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 24px;
  background: var(--navy);
  color: white;
}

.contact-card::before {
  content: "✦";
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.05;
  font-size: 120px;
}

.contact-title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.ci {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.ci-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
}

.ci a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  padding: 40px 24px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 13px;
}

/* ── PLACES AUTOCOMPLETE ── */
.places-wrapper {
  position: relative;
  width: 100%;
}

.places-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(11,25,41,0.12);
  list-style: none;
  margin: 0; padding: 6px;
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}

.places-dropdown.open {
  display: block;
  animation: dropIn 0.18s ease forwards;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.places-dropdown li {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.places-dropdown li:hover,
.places-dropdown li.active {
  background: rgba(26,94,168,0.06);
  color: var(--navy);
}

.places-dropdown mark {
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

/* Multi-step Onboarding */
.onboarding-header {
  margin-bottom: 40px;
}
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  margin: 24px 0 10px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 6px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.progress-labels span {
  transition: color 0.3s;
}
.progress-labels span.active {
  color: var(--blue);
}
.project-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: white;
}
.project-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,94,168,0.08);
}
.project-card.selected {
  border-color: var(--blue);
  background: rgba(26,94,168,0.04);
}
.pc-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.pc-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 4px;
}
.pc-desc {
  font-size: 13px;
  color: var(--text-light);
}
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.btn-secondary {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 12px 0;
  transition: color 0.2s;
}
.btn-secondary:hover {
  color: var(--navy);
}
.btn-primary, .btn-submit {
  margin-top: 0;
  width: auto;
  padding: 16px 40px;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-logo img {
    height: 64px;
  }

  .main-container {
    grid-template-columns: 1fr;
    margin-top: -50px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: span 1;
  }

  .form-card {
    padding: 30px;
  }
}
