/* Fenêtre « Demander un devis » des pages partenaires — autonome (n'hérite pas du thème de la page) */
.dm [hidden] { display: none !important; }
.dm { position: fixed; inset: 0; margin: auto !important; height: fit-content; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: #ffffff; color: #1e252d;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.5; box-shadow: 0 40px 90px -30px rgba(15, 20, 26, .55); overflow: auto; }
.dm::backdrop { background: rgba(22, 27, 33, .62); backdrop-filter: blur(3px); }
.dm[open] { animation: dm-entree .22s ease-out; }
@keyframes dm-entree { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dm-carte { position: relative; padding: 30px 30px 24px; }
.dm-fermer { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f3f5f7; color: #2d3945; display: grid; place-items: center; cursor: pointer; }
.dm-fermer:hover { background: #e6eaee; }
.dm-sur { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8a6730; }
.dm-titre { margin: 0 44px 6px 0; font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 26px; line-height: 1.2; color: #1e252d; }
.dm-prestation { display: inline-block; margin: 0 0 10px; padding: 5px 12px; border-radius: 99px; background: #f3f5f7; font-size: 14px; font-weight: 600; color: #2d3945; }
.dm-intro { margin: 0 0 18px; font-size: 15px; color: #5a6572; }
.dm-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.dm-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dm-champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #1e252d; }
.dm-champ input, .dm-champ textarea { width: 100%; box-sizing: border-box; border: 1px solid #c9d0d7; border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; color: #1e252d; background: #ffffff; }
.dm-champ input { min-height: 48px; }
.dm-champ textarea { resize: vertical; min-height: 120px; }
.dm-champ input:focus, .dm-champ textarea:focus { outline: none; border-color: #2d3945; box-shadow: 0 0 0 3px rgba(45, 57, 69, .15); }
.dm-champ.dm-invalide input, .dm-champ.dm-invalide textarea { border-color: #b3261e; }
.dm-champ small, .dm-erreur-accord { min-height: 0; font-size: 13px; font-weight: 500; color: #b3261e; }
.dm-champ small:empty, .dm-erreur-accord:empty { display: none; }
.dm-accord { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4f5a66; cursor: pointer; }
.dm-accord input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #2d3945; }
.dm-accord a { color: #2d3945; }
.dm-envoyer { min-height: 52px; border: 0; border-radius: 10px; background: #2d3945; color: #ffffff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; padding: 0 24px; }
.dm-envoyer:hover { background: #1e252d; }
.dm-envoyer[disabled] { opacity: .65; cursor: wait; }
.dm-garanties { margin: 0; text-align: center; font-size: 13px; color: #5a6572; }
.dm-erreur-generale { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fbeceb; color: #8c1d18; font-size: 14px; }
.dm-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.dm-merci { text-align: center; padding: 18px 6px 4px; }
.dm-merci:focus { outline: none; }
.dm-merci .dm-titre { margin: 14px 0 10px; }
.dm-merci p { margin: 0 0 10px; color: #4f5a66; }
.dm-merci .dm-envoyer { margin-top: 12px; min-width: 160px; }
.dm-merci-ico { width: 62px; height: 62px; border-radius: 50%; background: #e3f1ea; color: #0b6b4b; display: inline-grid; place-items: center; }
body.dm-ouvert { overflow: hidden; }
@media (max-width: 560px) { .dm-carte { padding: 24px 18px 18px; } .dm-ligne { grid-template-columns: 1fr; } .dm-titre { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .dm[open] { animation: none; } }
