/* Contact-specific styles keep the established site palette and typefaces. */
html:has(body.contact-page) { scroll-behavior: auto; }
.contact-form-shortcut { display: none; }
.contact-page [hidden] { display: none !important; }
.contact-page .contact-form.motion-reveal { opacity: 1; transform: none; transition: none; }
.contact-page .contact-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 5vw, 4.5rem); }
.contact-page .contact-grid > div:first-child > h2 { max-width: 19ch; font-size: clamp(1.65rem, 2.6vw, 2.3rem); line-height: 1.35; }
.contact-page .contact-panel, .contact-page .contact-panel:hover { min-width: 0; padding: clamp(1.3rem, 3.2vw, 2.5rem); border: 1px solid #bdcbd5; border-top: 4px solid #a6532d; border-radius: 24px; background: #fff; box-shadow: 0 18px 55px rgba(13, 44, 73, .07); transform: none; }
.contact-page .contact-panel > .notice { margin-top: 0; padding: .8rem 1rem; font-size: .85rem; line-height: 1.5; }
.contact-form-heading { padding-bottom: 1.6rem; }
.contact-form-heading h2 { margin: .35rem 0 .8rem; color: var(--navy); font-size: clamp(1.7rem, 2.5vw, 2.1rem); line-height: 1.3; letter-spacing: -.025em; }
.contact-form-heading > p:last-child { margin: 0; color: #405464; font-size: 1rem; line-height: 1.65; }
.contact-page .contact-form { gap: 0; }
.contact-required-note { margin: 0 0 1.5rem; color: #405464; font-size: .87rem; }
.contact-required { color: #914321; }
.contact-form-section { display: grid; min-width: 0; gap: 1.15rem; margin: 0; padding: 0 0 2rem; border: 0; }
.contact-form-section + .contact-form-section { padding-top: 1.8rem; border-top: 1px solid #d4dee5; }
.contact-form-section legend { float: left; width: 100%; margin: 0; padding: 0; color: var(--navy); font-size: 1.15rem; line-height: 1.5; letter-spacing: -.02em; }
.contact-section-help { margin: -.6rem 0 0; color: #405464; font-size: .94rem; line-height: 1.6; }
.contact-page .field-row { min-width: 0; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-page .field-row > div { min-width: 0; }
.contact-form label:not(.need-option):not(.relative-option) { font-size: .9rem; line-height: 1.5; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { min-width: 0; min-height: 54px; border: 1px solid #91a5b4; border-radius: 12px; color: var(--navy); background: #fdfdfc; font-size: 1rem; line-height: 1.5; scroll-margin-top: 130px; transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.contact-form input:not([type="checkbox"]):hover, .contact-form select:hover, .contact-form textarea:hover { border-color: #4d687d; }
.contact-form input:not([type="checkbox"]):focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(166, 83, 45, .22); outline-offset: 2px; border-color: #a6532d; background: #fff; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #63727f; opacity: 1; }
.contact-form textarea { min-height: 135px; }
.contact-form .optional-label { font-size: .86rem; line-height: 1.45; }
.contact-page .need-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.contact-page .need-option { gap: .75rem; min-height: 76px; padding: 1rem .85rem; border: 1px solid #a6b7c3; border-radius: 14px; color: var(--navy); background: #fafbf9; font-size: 1rem; font-weight: 400; line-height: 1.45; box-shadow: none; }
.contact-page .need-option:hover { border-color: #a6532d; background: #fbf6f0; }
.contact-page .need-option:has(input:checked) { border-color: #a6532d; background: #fbf0e6; box-shadow: inset 0 0 0 1px #a6532d; }
.contact-page .need-option:has(input:checked) span { font-weight: 700; }
.contact-page .need-option input[type="checkbox"], .contact-page .relative-option input[type="checkbox"] { appearance: none; flex: 0 0 23px; width: 23px; height: 23px; min-height: 23px; margin: 0; padding: 0; border: 2px solid #8094a3; border-radius: 6px; background: #fff; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.contact-page .need-option input[type="checkbox"]:checked, .contact-page .relative-option input[type="checkbox"]:checked { border-color: #a6532d; background: #a6532d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 20px no-repeat; }
.contact-page .need-option:has(input:focus-visible), .contact-page .relative-option:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.contact-page .relative-option input[type="checkbox"]:focus { outline: none; }
.contact-credit-help { margin: -.1rem 0 0; color: #405464; font-size: .88rem; line-height: 1.6; }
.contact-message { position: relative; }
.contact-character-count { text-align: right; font-size: .82rem; }
.contact-confidentiality { display: flex; align-items: flex-start; gap: .6rem; margin: -.6rem 0 .3rem; color: #405464; font-size: .86rem; line-height: 1.6; }
.contact-confidentiality svg { flex: 0 0 18px; margin-top: .1rem; color: #914321; }
.contact-page .relative-option { width: 100%; min-height: 70px; padding: .9rem 1rem; border: 1px solid #a6b7c3; border-radius: 14px; color: var(--navy); background: #f5f7f8; font-family: "Atkinson Hyperlegible", sans-serif; font-size: .97rem; font-weight: 700; line-height: 1.45; }
.contact-page .relative-option:has(input:checked) { border-color: #a6532d; background: #fbf0e6; }
.contact-page .relative-option small { display: block; margin: .15rem 0 0; color: #405464; font-size: .83rem; }
.contact-page .relative-details { display: grid; gap: 1rem; margin: 1rem 0 0 .7rem; padding: 0 0 0 1rem; border-left: 2px solid #b8653a; }
.contact-page .relative-details > .field-help { margin: 0; line-height: 1.6; }
.contact-form select { appearance: none; padding-right: 3rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230D2C49' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right 1rem center; background-size: 20px; background-repeat: no-repeat; cursor: pointer; }
.contact-form-send { padding-top: 1.5rem; border-top: 1px solid #d4dee5; }
.contact-page .contact-submit, .contact-dialog .contact-dialog-button { min-height: 58px; padding: 1rem 1.7rem; border: 2px solid #a6532d; border-radius: 14px; color: #fff; background: #a6532d; box-shadow: 0 7px 18px rgba(117, 55, 25, .14); font-size: .96rem; line-height: 1.35; transition: background-color 150ms ease, box-shadow 150ms ease; }
.contact-page .contact-submit { min-width: 245px; }
.contact-page .contact-submit::before, .contact-dialog .contact-dialog-button::before { display: none; }
.contact-page .contact-submit:hover, .contact-dialog .contact-dialog-button:hover { border-color: #853f20; background: #853f20; box-shadow: 0 9px 22px rgba(117, 55, 25, .19); transform: none; }
.contact-page .contact-submit:focus-visible, .contact-dialog button:focus-visible, .contact-preview-actions button:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.contact-page .contact-submit:disabled { cursor: wait; opacity: .8; box-shadow: none; }
.contact-send-spinner { width: 19px; height: 19px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: contact-spin .8s linear infinite; }
.contact-send-note { max-width: 48ch; margin: 1rem 0 0; color: #405464; font-size: .92rem; line-height: 1.65; }
.contact-privacy-note { margin: 1.5rem 0 0; padding-top: 1.2rem; border-top: 1px solid #e0e6eb; color: #405464; font-size: .85rem; line-height: 1.6; }
.contact-privacy-note a { color: var(--navy); text-underline-offset: .2em; }
.contact-field-error { display: block; margin-top: .4rem; color: #9c3025; font-size: .91rem; line-height: 1.5; }
.contact-form [aria-invalid="true"] { border-color: #a52f26 !important; }
.contact-validation-summary { margin: 0 0 1.5rem; padding: 1rem; border: 1px solid #b95a4e; border-radius: 12px; color: #852b23; background: #fff4f1; font-size: .95rem; line-height: 1.5; }
.contact-page .form-status.is-visible { margin-bottom: 1.2rem; border: 1px solid #acbecb; background: #edf3f5; font-size: .95rem; line-height: 1.6; }
.contact-page .form-status.is-error { color: #852b23; background: #fff4f1; border-color: #b95a4e; }
body.contact-dialog-open { overflow: hidden; }
.contact-dialog { position: fixed; inset: 0; width: min(480px, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: 2.5rem clamp(1.4rem, 4vw, 2.4rem) 2rem; overflow: auto; border: 1px solid #cad4dc; border-radius: 24px; color: var(--navy); background: #fffdf9; text-align: center; box-shadow: 0 24px 85px rgba(5, 24, 41, .3); }
.contact-dialog::backdrop { background: rgba(9, 30, 49, .6); }
.contact-dialog { overscroll-behavior: contain; }
.contact-dialog[open] { animation: contact-appear 160ms ease-out; }
.contact-dialog-cross { position: absolute; top: .6rem; right: .6rem; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 12px; color: var(--navy); background: #eee9e2; cursor: pointer; }
.contact-dialog-cross:hover { border-color: #a6532d; background: #f5e5d8; }
.contact-dialog-icon { display: grid; width: 64px; height: 64px; place-items: center; margin: .4rem auto 1.3rem; border: 1px solid #d5ad90; border-radius: 20px; color: #914321; background: #f9eadd; }
.contact-dialog[data-result="erreur"] .contact-dialog-icon, .contact-dialog[data-result="invalide"] .contact-dialog-icon { border-color: #d6aaa4; color: #9c3025; background: #fff0ed; }
.contact-dialog h2 { margin: 0 auto 1rem; max-width: 20ch; color: var(--navy); font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.4; letter-spacing: -.025em; }
.contact-dialog h2:focus { outline: none; }
.contact-dialog > p:not(.contact-dialog-preview) { margin: 0 auto 1.1rem; max-width: 36ch; color: #405464; font-size: 1rem; line-height: 1.7; }
.contact-dialog .contact-dialog-phone { font-size: .94rem; }
.contact-dialog-phone a { display: inline-block; color: var(--navy); font-weight: 700; text-underline-offset: .2em; white-space: nowrap; }
.contact-dialog .contact-dialog-phone > span { display: block; margin-bottom: .7rem; }
.contact-dialog .contact-dialog-phone a { display: flex; min-height: 44px; align-items: center; justify-content: center; margin-top: .5rem; padding: .5rem .7rem; border: 1px solid #91a5b4; border-radius: 12px; color: var(--navy); background: #fff; text-decoration: none; }
.contact-dialog .contact-dialog-phone a:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.contact-dialog .contact-dialog-phone a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.contact-dialog .contact-dialog-button { min-width: 160px; margin-top: .4rem; }
.contact-dialog-preview { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 8px; color: #405464; background: #edf3f5; font-size: .82rem; line-height: 1.5; }
.contact-preview-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.contact-preview-actions button { min-height: 42px; padding: .55rem .8rem; border: 1px solid #91a5b4; border-radius: 10px; color: var(--navy); background: #fff; font-size: .85rem; font-weight: 700; cursor: pointer; }
@keyframes contact-spin { to { transform: rotate(360deg); } }
@keyframes contact-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .contact-page .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .contact-page .contact-form-shortcut { display: inline-flex; width: 100%; max-width: 400px; min-height: 52px; margin-top: 1.5rem; border-radius: 14px; }
}
@media (min-width: 1101px) and (min-height: 800px) { .contact-page .contact-grid > div:first-child { position: sticky; top: 110px; } }
@media (max-width: 640px) {
  .contact-page .contact-panel { padding: 1.2rem; border-radius: 20px; }
  .contact-form-heading { padding-bottom: 1.3rem; }
  .contact-page .field-row, .contact-page .need-options { grid-template-columns: minmax(0, 1fr); }
  .contact-page .need-option { min-height: 64px; padding: .9rem; }
  .contact-form-section { padding-bottom: 1.6rem; }
  .contact-form-section + .contact-form-section { padding-top: 1.6rem; }
  .contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { scroll-margin-top: 105px; }
  .contact-page .contact-submit { width: 100%; min-width: 0; }
  .contact-dialog { width: calc(100% - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: 2.7rem 1.3rem 1.6rem; border-radius: 20px; }
  .contact-dialog .contact-dialog-button { width: 100%; }
}
@media (max-height: 520px) and (max-width: 1180px) {
  .contact-dialog { padding-top: 3.4rem; padding-bottom: 1.2rem; }
  .contact-dialog-icon { display: none; }
  .contact-dialog h2 { font-size: 1.3rem; line-height: 1.35; }
  .contact-dialog > p:not(.contact-dialog-preview) { line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { .contact-dialog[open], .contact-send-spinner { animation: none; } .contact-form *, .contact-dialog * { transition: none !important; } }
@media (forced-colors: active) { .contact-page .need-option input[type="checkbox"], .contact-page .relative-option input[type="checkbox"] { appearance: auto; background-image: none; } .contact-page .need-option:has(input:checked), .contact-page .relative-option:has(input:checked) { outline: 2px solid Highlight; } }
