/* ══════════════════════════════════════════════════════════════════════════
   Devis page — Premium split-card design
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Page section ─────────────────────────────────────────────────────────── */
.devis-page .lw-devis-top {
  padding-top: calc(var(--header-offset) + 28px);
  padding-bottom: 96px;
}

/* ════════════════════════════════════════════════════════════════════════════
   STAGE CARD — split layout, dark left / white right
   ════════════════════════════════════════════════════════════════════════════ */
.devis-page .lw-devis-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: 0;
  align-items: stretch;
  border-radius: 28px;
  overflow: clip;
  border: 1px solid rgba(0, 4, 58, 0.12);
  box-shadow:
    0 4px 6px rgba(0, 4, 58, 0.04),
    0 24px 64px rgba(0, 4, 58, 0.1),
    0 64px 120px rgba(0, 4, 58, 0.06);
  animation: devisReveal 0.72s ease both;
}

/* ════════════════════════════════════════════════════════════════════════════
   SPOTLIGHT — dark navy left column
   ════════════════════════════════════════════════════════════════════════════ */
.devis-page .lw-devis-spotlight {
  position: relative;
  display: grid;
  gap: 28px;
  align-content: start;
  padding: clamp(32px, 4.5vw, 58px);
  background:
    radial-gradient(ellipse at 110% -5%, rgba(47, 109, 244, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse at -10% 110%, rgba(91, 139, 247, 0.25) 0%, transparent 50%),
    linear-gradient(158deg, #00043A 0%, #040d50 60%, #0e1f7a 100%);
  overflow: hidden;
  z-index: 0;
}

/* Dot-grid texture */
.devis-page .lw-devis-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Soft horizontal separator line at bottom (desktop) */
.devis-page .lw-devis-spotlight::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.12) 60%, transparent);
  z-index: 1;
}

.devis-page .lw-devis-spotlight > * { position: relative; z-index: 2; }

/* Kicker */
.devis-page .lw-devis-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #93bfff;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.devis-page .lw-devis-kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* h1 */
.devis-page .lw-devis-spotlight h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

/* Lead */
.devis-page .lw-devis-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.97rem, 1.3vw, 1.12rem);
  line-height: 1.74;
  max-width: 38ch;
}

/* ── Note box ─────────────────────────────────────────────────────────────── */
.lw-devis-note {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.lw-devis-note strong {
  color: #ffffff;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.lw-devis-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.64;
  font-size: 0.93rem;
}

/* ── Feature list ─────────────────────────────────────────────────────────── */
.lw-devis-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.lw-devis-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
  transition: background 0.15s ease;
}

.lw-devis-features li:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.88);
}

.lw-devis-features li i {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  color: #6ba8ff;
  font-size: 0.95rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   FORM CARD — white right column
   ════════════════════════════════════════════════════════════════════════════ */
.devis-page .lw-form-card {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 4vw, 52px);
  background: #ffffff;
  align-content: start;
}

.devis-page .lw-form-card h2 {
  margin: 0;
  color: #00043A;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.devis-page .lw-form-card > p {
  margin: 0;
  color: rgba(0, 4, 58, 0.52);
  font-size: 0.95rem;
  line-height: 1.64;
}

/* ── Form grid ────────────────────────────────────────────────────────────── */
.devis-page .lw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.devis-page .lw-field { display: flex; flex-direction: column; gap: 6px; }
.devis-page .lw-form-full { grid-column: 1 / -1; }

/* ── Labels ───────────────────────────────────────────────────────────────── */
.dv-lbl {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(0, 4, 58, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dv-req { color: #ef4444; }

/* ── Inputs ───────────────────────────────────────────────────────────────── */
.devis-page .lw-field input,
.devis-page .lw-field select,
.devis-page .lw-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 4, 58, 0.1);
  background: #f8faff;
  color: #00043A;
  min-height: 52px;
  padding: 0 16px;
  font-size: 0.96rem;
  font-family: inherit;
  line-height: 1.45;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.15s ease;
}

.devis-page .lw-field select {
  appearance: none;
  cursor: pointer;
  color: rgba(0, 4, 58, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='rgba(0%2C4%2C58%2C0.35)' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.devis-page .lw-field select:valid,
.devis-page .lw-field select.has-value { color: #00043A; }

.devis-page .lw-field textarea {
  min-height: 120px;
  resize: vertical;
  padding: 14px 16px;
}

.devis-page .lw-field input::placeholder,
.devis-page .lw-field textarea::placeholder { color: rgba(0, 4, 58, 0.28); }

.devis-page .lw-field input:focus,
.devis-page .lw-field select:focus,
.devis-page .lw-field textarea:focus {
  outline: none;
  border-color: #2f6df4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 109, 244, 0.1);
  transform: translateY(-1px);
}

/* ── Section dividers ─────────────────────────────────────────────────────── */
.dv-sec-hd {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dv-sec-hd--sep {
  border-top: 1px solid rgba(0, 4, 58, 0.07);
  padding-top: 20px;
  margin-top: 4px;
}

.dv-sec-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 109, 244, 0.14), rgba(91, 139, 247, 0.08));
  color: #2f6df4;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.dv-sec-title {
  margin: 0;
  color: #00043A;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dv-sec-title i { color: #2f6df4; font-size: 0.87em; margin-right: 3px; }

/* ════════════════════════════════════════════════════════════════════════════
   SUBJECTS — checkbox grid with custom CSS checkboxes
   ════════════════════════════════════════════════════════════════════════════ */
.dv-sujets-wrap { padding: 2px 0; border: none; background: none; min-height: 0; }

.dv-sujets-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 4, 58, 0.36);
  font-size: 0.87rem;
  padding: 8px 0;
}

.dv-cat-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(0, 4, 58, 0.34);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin: 16px 0 8px;
}

.dv-cat-lbl:first-child { margin-top: 0; }

.dv-check-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

/* Custom checkbox row */
.dv-check-lbl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 4, 58, 0.09);
  background: #f8faff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  user-select: none;
}

.dv-check-lbl:hover {
  border-color: rgba(47, 109, 244, 0.38);
  background: rgba(47, 109, 244, 0.04);
  transform: translateY(-1px);
}

/* Hide native checkbox */
.dv-check-lbl input[type="checkbox"] { display: none; }

/* Custom checkbox box via ::before */
.dv-check-lbl::before {
  content: "";
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid rgba(0, 4, 58, 0.2);
  background: #fff;
  transition: all 0.15s ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

/* Checked state */
.dv-check-lbl:has(input:checked) {
  border-color: #2f6df4;
  background: rgba(47, 109, 244, 0.06);
}

.dv-check-lbl:has(input:checked)::before {
  background-color: #2f6df4;
  border-color: #2f6df4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 3px rgba(47, 109, 244, 0.16);
}

.dv-pill {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(0, 4, 58, 0.68);
  line-height: 1.3;
  transition: color 0.15s ease;
}

.dv-check-lbl:has(input:checked) .dv-pill {
  color: #2f6df4;
  font-weight: 650;
}

/* ════════════════════════════════════════════════════════════════════════════
   NIVEAU — premium option cards
   ════════════════════════════════════════════════════════════════════════════ */
.dv-opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dv-opt-lbl { flex: 1; min-width: 120px; cursor: pointer; user-select: none; }
.dv-opt-lbl input[type="radio"] { display: none; }

.dv-opt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  padding: 20px 12px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 4, 58, 0.1);
  background: #f8faff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dv-opt-card i {
  font-size: 1.5rem;
  color: rgba(0, 4, 58, 0.28);
  transition: color 0.18s ease, transform 0.22s ease;
}

.dv-opt-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #00043A;
  line-height: 1.2;
}

.dv-opt-desc {
  font-size: 0.75rem;
  color: rgba(0, 4, 58, 0.45);
  line-height: 1.3;
}

.dv-opt-lbl:hover .dv-opt-card {
  border-color: rgba(47, 109, 244, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 109, 244, 0.1);
}

.dv-opt-lbl:hover .dv-opt-card i { transform: scale(1.12); }

.dv-opt-lbl input:checked ~ .dv-opt-card {
  border-color: #2f6df4;
  background: linear-gradient(160deg, rgba(47, 109, 244, 0.09) 0%, rgba(91, 139, 247, 0.05) 100%);
  box-shadow: 0 0 0 4px rgba(47, 109, 244, 0.12), 0 6px 18px rgba(47, 109, 244, 0.12);
  transform: translateY(-2px);
}

.dv-opt-lbl input:checked ~ .dv-opt-card i {
  color: #2f6df4;
  transform: scale(1.1);
}

/* ════════════════════════════════════════════════════════════════════════════
   CONSENT + SUBMIT
   ════════════════════════════════════════════════════════════════════════════ */
.devis-page .lw-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(0, 4, 58, 0.62);
  line-height: 1.56;
  font-size: 0.91rem;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 4, 58, 0.08);
  background: #f8faff;
  transition: border-color 0.15s, background 0.15s;
}

.devis-page .lw-check:hover {
  border-color: rgba(47, 109, 244, 0.3);
  background: rgba(47, 109, 244, 0.03);
}

.devis-page .lw-check input {
  margin-top: 3px;
  accent-color: #2f6df4;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.devis-page .lw-form-actions { display: grid; gap: 10px; }

@keyframes dvShimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.devis-page .lw-form-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0 28px;
  background: linear-gradient(90deg, #1240c4 0%, #2f6df4 30%, #5b8bf7 50%, #2f6df4 70%, #1240c4 100%);
  background-size: 200% auto;
  animation: dvShimmer 5s linear infinite;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(47, 109, 244, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.devis-page .lw-form-submit:hover:not(:disabled) {
  animation-duration: 1.8s;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(47, 109, 244, 0.34);
}

.devis-page .lw-form-submit:disabled { opacity: 0.68; pointer-events: none; animation-play-state: paused; }

.devis-page .lw-form-status {
  margin: 0;
  min-height: 20px;
  color: #2f6df4;
  font-weight: 600;
  text-align: center;
  font-size: 0.93rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.devis-page .lw-form-status.is-visible { opacity: 1; transform: translateY(0); }
.devis-page .lw-form-status.is-error   { color: #d9302b; }

/* ════════════════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.dv-steps-section {
  padding-top: 96px;
  padding-bottom: 112px;
  background: linear-gradient(158deg, #f0f4ff 0%, #eaefff 100%);
}

.dv-steps-head { text-align: center; max-width: 560px; margin: 0 auto 60px; }

.dv-steps-kicker {
  display: inline-block;
  margin: 0 0 12px;
  color: #2f6df4;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(47, 109, 244, 0.08);
  border: 1px solid rgba(47, 109, 244, 0.16);
  padding: 5px 18px;
  border-radius: 100px;
}

.dv-steps-title {
  margin: 0 0 14px;
  color: #00043A;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.dv-steps-sub { margin: 0; color: rgba(0, 4, 58, 0.56); font-size: 1rem; line-height: 1.7; }

.dv-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 28px);
}

.dv-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 38px 26px 34px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(0, 4, 58, 0.07);
  box-shadow: 0 2px 8px rgba(0, 4, 58, 0.05), 0 12px 36px rgba(0, 4, 58, 0.04);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.dv-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f6df4, #5b8bf7);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.dv-step:hover { transform: translateY(-8px); box-shadow: 0 4px 8px rgba(0, 4, 58, 0.04), 0 20px 56px rgba(47, 109, 244, 0.1); }
.dv-step:hover::before { opacity: 1; }

.dv-step-bg-num {
  position: absolute;
  top: -8px; right: 10px;
  font-size: clamp(5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(47, 109, 244, 0.05);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

.dv-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 4px;
  border-radius: 17px;
  background: linear-gradient(135deg, #2f6df4 0%, #5b8bf7 100%);
  color: #fff;
  font-size: 1.28rem;
  box-shadow: 0 8px 24px rgba(47, 109, 244, 0.3);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.dv-step:hover .dv-step-icon { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(47, 109, 244, 0.38); }
.dv-step-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; color: rgba(47, 109, 244, 0.5); text-transform: uppercase; }
.dv-step h3 { margin: 0; color: #00043A; font-size: 1.18rem; letter-spacing: -0.02em; }
.dv-step p  { margin: 0; color: rgba(0, 4, 58, 0.6); font-size: 0.94rem; line-height: 1.72; }
.dv-step p strong { color: #00043A; font-weight: 600; }

/* ── Reveal animation ─────────────────────────────────────────────────────── */
@keyframes devisReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
  .devis-page .lw-devis-top { padding-top: calc(var(--header-offset) + 16px); padding-bottom: 72px; }

  .devis-page .lw-devis-stage {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .devis-page .lw-devis-spotlight::after { display: none; }

  .dv-steps-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .dv-steps-section { padding-top: 64px; padding-bottom: 80px; }
  .dv-step { text-align: left; align-items: flex-start; }
  .dv-step-icon { margin-left: 0; }
}

@media (max-width: 767.98px) {
  .devis-page .lw-devis-spotlight h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .devis-page .lw-devis-lead { max-width: none; font-size: 0.97rem; }
  .lw-devis-note { padding: 16px 18px; }
  .devis-page .lw-form-grid { grid-template-columns: 1fr; }
  .dv-opt-row { flex-direction: column; }
  .dv-opt-lbl { min-width: 0; }
  .dv-opt-card { flex-direction: row; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; }
  .dv-check-row { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .devis-page .lw-devis-stage { border-radius: 18px; }
  .devis-page .lw-devis-spotlight { padding: 24px 20px; }
  .devis-page .lw-form-card { padding: 22px 20px; }
  .devis-page .lw-form-submit { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .devis-page .lw-devis-stage,
  .devis-page .lw-form-submit,
  .devis-page .lw-form-status,
  .devis-page .lw-field input,
  .devis-page .lw-field select,
  .devis-page .lw-field textarea,
  .dv-opt-card, .dv-check-lbl,
  .lw-devis-features li,
  .dv-step, .dv-step-icon {
    animation: none !important;
    transition: none !important;
  }
}
