:root {
  --bg-dark: #0b1226;
  --bg-dark-2: #182449;
  --accent: #3b82f6;
  --accent-2: #6366f1;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(96, 140, 255, 0.25);
  --text: #e5e9f5;
  --text-muted: #a6b1cc;
  --success: #34d399;
  --error: #f87171;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
}

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

.hero-bg {
  background: radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  min-height: calc(100vh - 92px);
}

.container {
  padding: 0 200px;
}

@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

.site-header {
  background: #ffffff;
  height: 135px;
  position: relative;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b1226, #182449);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 135px;
  gap: 12px;
}

.logo-img {
  height: 73px;
  width: 275px;
  max-width: 55vw;
  height: auto;
}

.header-cta.btn-primary {
  display: inline-block;
  width: auto;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 10px 20px;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .header-inner {
    padding: 0 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: auto;
    padding: 12px 0;
  }

  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .logo-img {
    max-width: 70vw;
  }

  .header-cta.btn-primary {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 20px 50px;
}

.page-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.pricing {
  order: -1;
}

.form-col {
  min-width: 0;
}

@media (max-width: 860px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 16px 16px 40px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .fieldset {
    padding: 18px;
  }

  .pricing {
    padding: 24px 18px;
  }

  .dropzone {
    padding: 24px 12px;
  }
}

.pricing {
  background: linear-gradient(160deg, #14224a 0%, #1c2f63 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 24px;
  position: sticky;
  top: 24px;
}

@media (max-width: 860px) {
  .pricing {
    position: static;
    top: auto;
  }
}

.pricing-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 0 16px;
  text-align: center;
}

.pricing-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 0 0 8px;
}

.pricing-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.pricing-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pricing-option-highlight {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent);
}

.pricing-option-highlight:hover {
  background: rgba(59, 130, 246, 0.26);
}

.pricing-option-name {
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.pricing-option-detail {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.pricing-option-price {
  font-weight: 700;
  color: #fff;
  font-size: 1.2rem;
  white-space: nowrap;
  margin: 0;
}

.pricing-option-price span {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.pricing-option-price span.pricing-option-strike {
  display: block;
  color: #e74c3c;
  text-decoration: line-through;
  font-weight: 400;
  font-size: 0.85rem;
}

.pricing-badge {
  display: inline-block;
  background: #f5a623;
  color: #1c1300;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 8px;
  color: #fff;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.light-section {
  background: #ffffff;
  padding: 48px 20px;
  text-align: center;
}

.light-section-alt {
  background: #f7f8fb;
}

.steps-section {
  background: radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  padding: 48px 20px;
  text-align: center;
}

.light-title {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #0f172a;
  margin: 0 0 8px;
}

.light-subtitle {
  color: #6b7280;
  margin: 0 0 28px;
  font-size: 1rem;
}

.steps-title {
  font-size: 3rem;
  color: #fff;
}

.steps-subtitle {
  font-size: 2rem;
  color: #fff;
}

@media (max-width: 640px) {
  .steps-title {
    font-size: 1.9rem;
  }

  .steps-subtitle {
    font-size: 1.3rem;
  }
}

.steps-subtitle-accent {
  color: var(--accent);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.03) 70%);
  border: 1px solid rgba(96, 140, 255, 0.3);
  border-radius: 18px;
  padding: 36px 20px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.step-icon {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.step-number {
  display: none;
}

.step h3 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.check {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 20px;
}

.check-title {
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.check-mark {
  color: #16a34a;
  margin-right: 6px;
}

.check p:not(.check-title) {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.fieldset {
  border: 1px solid var(--card-border);
  padding: 24px;
  margin: 0 0 28px;
  background: var(--card-bg);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

legend {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #fff;
  padding: 0 6px;
  font-size: 1.05rem;
}

.field {
  margin-bottom: 16px;
}

.field:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: var(--text-muted);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--accent);
}

input.invalid {
  border-color: var(--error);
}

.dropzones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  min-width: 0;
}

.dropzone-group {
  min-width: 0;
}

@media (min-width: 900px) {
  .dropzones:has(.dropzone-group[data-slot="2"]:not([hidden])) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dropzone-label {
  font-weight: 700;
  margin: 0 0 8px;
}

.dropzone {
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
}

.dropzone-text {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.dropzone-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 14px 0 0;
}

.file-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.file-list .file-remove {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
}

.btn {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  width: 100%;
  margin-top: 8px;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--success);
}

.form-message.error {
  display: block;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--error);
}

.site-footer {
  background: #dfe1ef;
  color: #0f172a;
  padding: 20px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.site-footer p {
  margin: 0;
}

/* --- Modale de paiement --- */
.payment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.payment-overlay[hidden] {
  display: none;
}

.payment-modal {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.payment-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
}

.payment-modal-title {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.payment-close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.payment-modal-status {
  margin: 0;
  padding: 10px 18px;
  font-size: 14px;
  color: #555;
}

.payment-reopen {
  margin: 0 18px 18px;
}

/* Les .btn-secondary sont conçus pour le fond sombre du site :
   dans la modale blanche, on les repasse en sombre sur clair. */
.payment-modal .btn-secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.payment-modal .btn-secondary:hover {
  background: #e2e8f0;
}

.payment-modal-hint {
  margin: 0 18px 8px;
  font-size: 12.5px;
  color: #64748b;
  text-align: center;
}

.payment-confirm {
  margin: 0 18px 18px;
  width: calc(100% - 36px);
  font-size: 0.9rem;
  padding: 10px 18px;
}

/* --- Modale de confirmation de paiement --- */
.success-modal-body {
  padding: 4px 18px 6px;
}

.success-modal-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.success-devis-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.success-devis-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
}

.success-devis-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

.success-ok {
  margin: 0 18px 18px;
  width: calc(100% - 36px);
}
