html:has(#demande-devis[open]) { overflow: hidden; }
#demande-devis {
  width: min(620px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #142239;
  box-shadow: 0 18px 65px #101b3560;
}
#demande-devis::backdrop { background: #101b3594; }
#demande-devis .demande-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: #142e50;
  color: white;
}
#demande-devis h2 { margin: 0; color: inherit; font-size: clamp(20px, 4vw, 26px); line-height: 1.2; }
#demande-devis .demande-close {
  flex: 0 0 40px;
  height: 40px;
  border: 1px solid #ffffff65;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
#demande-devis .demande-content { padding: 18px 24px 24px; }
#demande-devis .demande-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 0 0 18px;
  padding: 9px 12px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #f6f8fb;
}
#demande-devis .demande-help-title { font-size: 14px; font-weight: 700; }
#demande-devis .demande-help-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#demande-devis .demande-help-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid #d3dce9;
  border-radius: 8px;
  background: #fff;
  color: #142e50;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
#demande-devis .demande-help-actions a:hover { background: #edf2f9; }
#demande-devis .demande-help-actions svg { flex: 0 0 17px; width: 17px; height: 17px; }
#demande-devis .demande-help-actions .demande-whatsapp {
  border-color: #b8dfca;
  background: #e8f8ef;
  color: #11633c;
}
#demande-devis .demande-help-actions .demande-whatsapp:hover { background: #d6f2e2; }
#demande-devis form { display: grid; gap: 13px; }
#demande-devis [hidden] { display: none; }
#demande-devis .demande-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
#demande-devis label { display: grid; gap: 5px; font-weight: 600; min-width: 0; }
#demande-devis input, #demande-devis textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #a6b3c4;
  border-radius: 7px;
  background: white;
  color: #142239;
  font: inherit;
  font-size: 16px;
}
#demande-devis textarea { resize: vertical; }
#demande-devis .demande-photo { padding: 11px; border: 1px dashed #a6b3c4; border-radius: 8px; }
#demande-devis small, #demande-devis .demande-privacy { font-size: 13px; font-weight: 400; color: #4d5d72; }
#demande-devis .demande-privacy { margin: 0; }
#demande-devis a { color: #144b84; text-decoration: underline; }
#demande-devis .demande-submit {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #174b83;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
#demande-devis .demande-submit:disabled { opacity: .65; cursor: wait; }
#demande-devis :focus-visible { outline: 2px solid #1e6db4; outline-offset: 2px; }
#demande-devis .demande-status { margin: 12px 0 0; }
@media (max-width: 440px) {
  #demande-devis .demande-header, #demande-devis .demande-content { padding-inline: 14px; }
}
