/* Demande de démo — formulaire public et page de remerciement.
   Complète landing2.css : en-tête, pied de page, boutons et jeton de couleur
   viennent de là, ce fichier n'ajoute que le formulaire. Préfixe .dm-. */

.dm-page {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 90, 54, 0.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.dm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
}

/* ------------------------------------------------------------------ Intro */

.dm-intro h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  letter-spacing: -0.04em;
}

.dm-lead {
  margin-top: 18px;
  color: var(--l2-ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.dm-points {
  margin-top: 26px;
}

.dm-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--l2-ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.dm-points li + li {
  margin-top: 12px;
}

.dm-points svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--l2-green);
  flex: 0 0 auto;
}

.dm-aside {
  margin-top: 26px;
  color: var(--l2-muted);
  font-size: 14.5px;
}

.dm-aside a {
  color: var(--l2-accent-dark);
  font-weight: 600;
}

/* ------------------------------------------------------------- Formulaire */

.dm-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--l2-line);
  border-radius: var(--l2-r-lg);
  background: #fff;
  box-shadow: var(--l2-shadow);
}

.dm-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dm-field {
  margin-bottom: 18px;
  min-width: 0;
}

.dm-row .dm-field {
  margin-bottom: 0;
}

.dm-row + .dm-field,
.dm-row + .dm-row {
  margin-top: 18px;
}

.dm-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--l2-ink);
  font-size: 14px;
  font-weight: 700;
}

.dm-field label span {
  color: var(--l2-accent);
}

.dm-field input,
.dm-field select,
.dm-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d7dde7;
  border-radius: var(--l2-r-sm);
  background: #fff;
  color: var(--l2-ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dm-field textarea {
  min-height: 110px;
  resize: vertical;
}

.dm-field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369788d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.dm-field input:focus,
.dm-field select:focus,
.dm-field textarea:focus {
  border-color: var(--l2-accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
  outline: none;
}

.dm-field [aria-invalid="true"] {
  border-color: #e0695a;
}

.dm-error {
  display: block;
  margin-top: 6px;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
}

/* Piège à robots : retiré du flux sans display:none, que certains
   remplisseurs automatiques savent détecter. */
.dm-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dm-submit {
  width: 100%;
  margin-top: 26px;
}

.dm-legal {
  margin-top: 16px;
  color: var(--l2-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.dm-legal a {
  color: var(--l2-accent-dark);
  font-weight: 600;
}

.dm-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 13px 15px;
  border: 1px solid #ffd8c9;
  border-radius: var(--l2-r-sm);
  background: #fff6f2;
  color: #9c3412;
  font-size: 13.5px;
  line-height: 1.5;
}

.dm-alert svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex: 0 0 auto;
}

/* ------------------------------------------------------- Page de merci */

.dm-thanks {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--l2-line);
  border-radius: var(--l2-r-lg);
  background: #fff;
  box-shadow: var(--l2-shadow);
  text-align: center;
}

.dm-thanks-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--l2-green-soft);
  color: #06753f;
}

.dm-thanks-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.4;
}

.dm-thanks h1 {
  font-size: clamp(27px, 3.4vw, 40px);
  letter-spacing: -0.04em;
}

.dm-thanks .dm-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
}

.dm-thanks-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 920px) {
  .dm-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .dm-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dm-row .dm-field + .dm-field {
    margin-top: 18px;
  }

  .dm-thanks-actions .l2-btn {
    width: 100%;
  }
}
