#contact-dialog:not(.contact-embedded) { width: min(64rem, calc(100% - 1.5rem)); }
#contact-dialog { background: linear-gradient(145deg, #fff 50%, #f1f6fb); }
#contact-dialog .dialog-top {
  min-height: clamp(7.5rem, 15vw, 10rem);
  padding: 1.2rem clamp(1rem, 4vw, 2rem);
  border-radius: 1.1rem 1.1rem 0 0;
  border-bottom: 1px solid #b7865e;
  background: linear-gradient(90deg, #132339 0%, #132339 32%, #132339b8 58%, #13233926 100%),
    #132339 url('/accueil-maison-bois.webp') right 42% / 68% auto no-repeat;
  color: #fff;
}
#contact-dialog .dialog-top img { border-color: #e8c7a8; }
#contact-dialog .dialog-top strong { font-size: clamp(1.03rem, 2vw, 1.3rem); }
#contact-dialog .dialog-top span { color: #f6e8da; }
#contact-dialog .dialog-body { padding: clamp(1.15rem, 3vw, 2rem); }
#contact-form[data-recipient] > .dialog-field:has(#contact-name) { grid-column: 1 / -1; }
.project-choices { grid-column: 1 / -1; margin: 0 0 .65rem; min-width: 0; padding: 0; border: 0; }
.project-choices legend { padding: 0 0 .8rem; font-size: 1.1rem; font-weight: 750; color: #152a45; }
.project-choices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.project-choices button {
  --project-icon: "◇";
  display: flex; align-items: center; gap: .75rem; min-width: 0; min-height: 4.75rem;
  border: 1px solid #d3dde9; border-radius: .9rem; padding: .8rem .9rem;
  background: linear-gradient(120deg, #fff 44%, #edf4fb); color: #193653;
  box-shadow: 0 3px 9px #1323390a; font: inherit; font-weight: 700; line-height: 1.35;
  text-align: left; overflow-wrap: anywhere; hyphens: auto; cursor: pointer;
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s;
}
.project-choices button::before {
  content: var(--project-icon) / "";
  display: grid; place-items: center; flex: 0 0 2.35rem; height: 2.35rem;
  border: 1px solid #e8d4be; border-radius: .65rem;
  background: #f8eee3; color: #684222; font: 700 1.25rem/1 system-ui, sans-serif;
}
.project-choices button[data-project="achat"] { --project-icon: "⌂"; }
.project-choices button[data-project="preapprobation"] { --project-icon: "✓"; }
.project-choices button[data-project="renouvellement"] { --project-icon: "↻"; }
.project-choices button[data-project="refinancement"] { --project-icon: "↗"; }
.project-choices button[data-project="construction"] { --project-icon: "⚒︎"; }
.project-choices button[data-project="renovations"] { --project-icon: "✦"; }
.project-choices button:hover { border-color: #a87349; box-shadow: 0 6px 15px #17355221; transform: translateY(-2px); }
.project-choices button[aria-pressed="true"] { border-color: #24496b; background: linear-gradient(115deg, #172c46, #254e70); color: #fff; box-shadow: 0 5px 14px #13233933; }
.project-choices button[aria-pressed="true"]::before { border-color: #edc399; background: #edc399; color: #402c1d; }
.project-choices button:focus-visible { outline: 3px solid #2866a0; outline-offset: 2px; }
.project-choices details { margin-top: .75rem; }
.project-choices summary { width: fit-content; padding: .4rem 0; color: #213f60; font-weight: 650; cursor: pointer; }
.project-choices details .project-choices-grid { margin-top: .5rem; }
.project-choices p { margin: .7rem 0 0; }
.project-choices p:empty { margin: 0; }
@media (max-width: 480px) {
  #contact-dialog .dialog-top { min-height: 7.25rem; background-size: auto, 94% auto; background-position: center, right 46%; }
  .project-choices-grid { grid-template-columns: 1fr; }
  .project-choices button { min-height: 3.65rem; padding: .55rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .project-choices button { transition: none; }
  .project-choices button:hover { transform: none; }
}
