/* A quiet, accessible contact form using the established NourEn palette. */
.demo-request-dialog {
  width: min(700px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  border-top: 4px solid var(--lime, #C8F366); /* v96 (25/11) : bande du haut en vert lime (au lieu du bleu #44a2be) */
  border-radius: 16px;
  background: #fff;
  color: #475569;
  box-shadow: 0 28px 100px #062e3440;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.demo-request-dialog::backdrop { background: #082e36a6; backdrop-filter: blur(5px); }
.demo-request-content { position: relative; padding: 30px 38px 26px; }
.demo-request-logo { width: 160px; height: auto; margin-bottom: 17px; } /* v96 (25/11) : logo agrandi, 116 → 160 px comme dans le bandeau */
.demo-request-dialog h2 { margin: 0 42px 10px 0; color: #142d3c; font-size: 34px; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.demo-request-intro { max-width: 520px; font-size: 15px; line-height: 1.6; }
.demo-request-close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #dce5e6; border-radius: 50%; background: #fff; color: #475569; }
.demo-request-close:hover { background: #f0f6f5; color: #104f49; }
.demo-required-note { margin: 17px 0 12px; font-size: 12px; color: #627181; }
.demo-required-note > span, .demo-field label > span { color: #23778f; }
.demo-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
.demo-field { min-width: 0; }
.demo-field-wide { grid-column: 1 / -1; }
.demo-field label, #demo-copy-fallback label { display: block; margin-bottom: 6px; color: #142d3c; font-size: 13px; line-height: 1.5; font-weight: 650; }
.demo-field label small { color: #627181; font-size: 11px; font-weight: 400; }
.demo-field input, .demo-field textarea, #demo-email-text { display: block; width: 100%; min-width: 0; border: 1px solid #cfdade; border-radius: 7px; padding: 10px 12px; background: #f9fbfb; color: #142d3c; font: inherit; font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.demo-field input { min-height: 46px; }
.demo-field textarea, #demo-email-text { min-height: 94px; resize: vertical; }
.demo-field textarea::placeholder { color: #6a7886; font-size: 14px; }
.demo-field input:focus, .demo-field textarea:focus, #demo-email-text:focus { outline: none; border-color: #2784a0; box-shadow: 0 0 0 3px #44a2be24; background: #fff; }
.demo-field input:user-invalid { border-color: #b74848; }
.demo-privacy-note { margin-top: 16px; font-size: 12px; line-height: 1.6; }
.demo-privacy-note a, .demo-email-help a { color: #216e85; text-decoration: underline; text-underline-offset: 3px; }
.demo-request-dialog .demo-submit { width: 100%; min-height: 48px; margin-top: 19px; font-size: 15px; font-weight: 750; border-radius: 7px; }
.demo-send-note { margin-top: 10px; color: #627181; font-size: 13px; line-height: 1.6; text-align: center; }
.demo-send-note:empty { display: none; }
.demo-request-dialog .demo-submit:disabled { opacity: .65; cursor: progress; }
/* Anti-spam field: out of sight and out of the tab order, but still in the form. */
.demo-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-request-success { margin-top: 22px; padding: 28px 24px; border-radius: 10px; background: #f1f7f6; text-align: center; }
.demo-request-success:focus { outline: none; }
.demo-request-success .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #104f49; color: #fff; fill: none; stroke: currentColor; stroke-width: 2.4; }
.demo-request-success h3 { margin: 14px 0 6px; color: #142d3c; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.demo-request-success p { font-size: 15px; line-height: 1.6; }
.demo-request-dialog .demo-success-close { margin-top: 20px; min-width: 160px; justify-content: center; border-radius: 7px; }
.demo-email-help { margin-top: 18px; padding: 16px; border: 1px solid #cbdedb; border-radius: 8px; background: #f1f7f6; font-size: 13px; line-height: 1.65; }
.demo-email-help p + p { margin-top: 7px; }
#demo-request-status { color: #104f49; font-weight: 650; }
.demo-copy { margin-top: 12px; padding: 8px 13px; border: 1px solid #104f49; border-radius: 5px; background: #fff; color: #104f49; font-size: 13px; font-weight: 650; }
#demo-copy-fallback { margin-top: 14px; }
.demo-request-dialog :focus-visible { outline: 2px solid #23778f; outline-offset: 3px; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html:has(.demo-request-dialog[open]) { overflow: hidden; }
body.demo-request-open { overflow: hidden; }
@media (max-width: 540px) {
  .demo-request-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .demo-request-content { padding: 24px 20px; }
  .demo-request-dialog h2 { font-size: 28px; margin-right: 20px; }
  .demo-request-logo { margin-bottom: 19px; width: 130px; } /* v96 (25/11) : 108 → 130 px sur mobile, comme dans le bandeau */
  .demo-request-close { top: 12px; right: 12px; }
  .demo-request-intro { font-size: 14px; }
  .demo-field-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-field label { font-size: 14px; }
  .demo-field label small { font-size: 12px; }
}
