/* =============================================================================
   N2M SÉCURITÉ — Formulaire devis intelligent | P13
   ============================================================================= */

.n2m-devis-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .n2m-devis-layout { grid-template-columns: 1fr; gap: 28px; } }

/* ── Réassurance ────────────────────────────────────────────────────────── */
.n2m-devis-aside__titre {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--n2m-white, #fff); margin-bottom: 18px;
}
.n2m-devis-trust { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.n2m-devis-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--n2m-muted); line-height: 1.4; }
.n2m-devis-trust li svg { color: var(--n2m-gold); flex-shrink: 0; margin-top: 2px; }
.n2m-devis-aside__contact { border-top: 1px solid var(--n2m-border); padding-top: 20px; }
.n2m-devis-aside__contact p { font-size: 0.82rem; color: var(--n2m-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.n2m-devis-aside__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--n2m-gold); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.n2m-devis-aside__tel:hover { color: var(--n2m-gold-dim, #C89B00); }

/* ── Carte formulaire ───────────────────────────────────────────────────── */
.n2m-devis-formwrap {
  background: var(--n2m-surface);
  border: 1px solid var(--n2m-border);
  border-radius: var(--radius-lg, 14px);
  padding: 36px 34px;
}
@media (max-width: 600px) { .n2m-devis-formwrap { padding: 24px 20px; } }

/* Étapes / progression */
.n2m-devis-steps { margin-bottom: 28px; }
.n2m-devis-steps__bar { height: 4px; background: var(--n2m-border); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.n2m-devis-steps__bar span { display: block; height: 100%; width: 25%; background: var(--n2m-gold); border-radius: 999px; transition: width 0.4s cubic-bezier(0.4,0,0.2,1); }
.n2m-devis-steps li { font-size: 0.68rem; }
.n2m-devis-steps ul { display: flex; justify-content: space-between; gap: 8px; list-style: none; margin: 0; padding: 0; }
.n2m-devis-steps li { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--n2m-muted); opacity: 0.5; transition: opacity 0.3s, color 0.3s; }
.n2m-devis-steps li.active { opacity: 1; color: var(--n2m-gold); }

/* Étapes */
.n2m-devis-step { border: 0; padding: 0; margin: 0; display: none; }
.n2m-devis-step.active { display: block; animation: n2mFadeStep 0.3s ease-out; } /* P-corr 3 */
@keyframes n2mFadeStep { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }

/* Champs */
.n2m-form-group { margin-bottom: 20px; }
.n2m-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 479px) { .n2m-form-row { grid-template-columns: 1fr; } }
.n2m-devis-form label, .n2m-devis-grouplabel {
  display: block; font-size: 0.84rem; font-weight: 600; color: var(--n2m-muted);
  margin-bottom: 8px; letter-spacing: 0.02em;
}
.n2m-devis-form label span { color: var(--n2m-gold); }
.n2m-devis-form input, .n2m-devis-form select, .n2m-devis-form textarea {
  width: 100%;
  background: var(--n2m-surface);
  border: 1px solid var(--n2m-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--n2m-text, #E2E8F0);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.n2m-devis-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F5C200' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.n2m-devis-form input:focus, .n2m-devis-form select:focus, .n2m-devis-form textarea:focus {
  border-color: var(--n2m-gold);
  box-shadow: 0 0 0 3px rgba(245,194,0,0.15);
}
.n2m-devis-form textarea { resize: vertical; }
/* Liste déroulante sombre et lisible (corrige le fond blanc natif) */
.n2m-devis-form select option,
.n2m-devis-form select optgroup {
  background: var(--n2m-navy);
  color:var(--n2m-white);
}
.n2m-devis-form select option:checked { background: var(--n2m-gold); color: #050508; }

/* Cartes de choix (radio) */
.n2m-devis-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.n2m-devis-choice { position: relative; cursor: pointer; }
.n2m-devis-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.n2m-devis-choice span {
  display: block; padding: 10px 16px;
  border: 1px solid var(--n2m-border); border-radius: 999px;
  font-size: 0.85rem; color: var(--n2m-muted);
  transition: all 0.2s;
}
.n2m-devis-choice:hover span { border-color: var(--n2m-gold); color: var(--n2m-white, #fff); }
.n2m-devis-choice.selected span,
.n2m-devis-choice input:checked + span {
  background: var(--n2m-gold); color: var(--n2m-black, #050508); border-color: var(--n2m-gold); font-weight: 600;
}

/* Navigation */
.n2m-devis-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.n2m-devis-mention { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--n2m-muted); opacity: 0.75; margin-top: 4px; }
.n2m-devis-mention svg { flex-shrink: 0; }

.n2m-devis-feedback { margin-top: 16px; font-size: 0.88rem; min-height: 20px; }
.n2m-devis-feedback.error { color: #EF4444; }

/* Succès */
.n2m-devis-success { text-align: center; padding: 30px 10px; }
.n2m-devis-success[hidden] { display: none; }
.n2m-devis-success__icon {
  width: 80px; height: 80px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: #10B981; background: rgba(16,185,129,0.12);
}
.n2m-devis-success h2 { font-family: var(--font-display); color: var(--n2m-white, #fff); margin-bottom: 12px; }
.n2m-devis-success__msg { color: var(--n2m-muted); line-height: 1.6; max-width: 420px; margin: 0 auto 24px; }
