/* Page Contact : éditorial clair, formulaire lisible et parcours court. */
.fmt-contact { margin-block-start: 0; color: var(--text-body); }
.fmt-contact * { box-sizing: border-box; }
.fmt-contact h1, .fmt-contact h2, .fmt-contact h3 { font-family: var(--font-display); font-weight: 400; color: var(--petrole); text-wrap: balance; }
.fmt-contact em { font-style: italic; color: var(--sauge); }
.fmt-contact__eyebrow { margin: 0; color: var(--petrole); font-family: var(--font-technique); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fmt-contact__eyebrow span { color: var(--cuivre); padding-inline: 8px; }

.fmt-contact__hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 600px; background: var(--ivoire); }
.fmt-contact__hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(52px, 7vw, 112px) clamp(24px, 6.5vw, 110px); }
.fmt-contact__hero h1 { max-width: 730px; margin: 26px 0 26px; font-size: clamp(48px, 5.2vw, 84px); line-height: 1.06; letter-spacing: -.045em; }
.fmt-contact__lead { max-width: 560px; margin: 0; color: var(--text-muted); font-size: clamp(17px, 1.35vw, 21px); line-height: 1.7; }
.fmt-contact__hero-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 42px; padding-bottom: 8px; border-bottom: 1px solid var(--petrole); color: var(--petrole); font-weight: 700; text-decoration: none; }
.fmt-contact__hero-link:hover { color: var(--petrole-survol); border-color: var(--cuivre); }
.fmt-contact__hero-media { position: relative; margin: 0; min-height: 600px; overflow: hidden; background: var(--lin); }
.fmt-contact__hero-media img { display: block; width: 100%; height: 100%; min-height: 600px; object-fit: cover; }
.fmt-contact__hero-media figcaption { position: absolute; right: 24px; bottom: 24px; max-width: calc(100% - 48px); padding: 10px 14px; border-radius: 2px; background: rgba(245,241,232,.94); color: var(--petrole); font-size: 12px; }

.fmt-contact__body { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(48px, 7vw, 120px); padding: clamp(68px, 7.5vw, 120px) var(--bande-x); background: var(--lin); }
.fmt-contact__aside { padding-top: 14px; }
.fmt-contact__aside h2 { margin: 24px 0; font-size: clamp(42px, 4vw, 64px); line-height: 1.1; letter-spacing: -.035em; }
.fmt-contact__aside > p:not(.fmt-contact__eyebrow) { max-width: 490px; margin: 0; color: var(--text-muted); font-size: 17px; line-height: 1.8; }
.fmt-contact__direct { display: flex; flex-direction: column; gap: 10px; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border-hairline); }
.fmt-contact__direct span:first-child, .fmt-contact__paths-title { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fmt-contact__direct a { width: fit-content; color: var(--petrole); font-size: clamp(16px, 1.5vw, 21px); font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 5px; }
.fmt-contact__paths { display: flex; flex-direction: column; gap: 15px; margin-top: 50px; }
.fmt-contact__paths-title { margin: 0 0 4px; }
.fmt-contact__paths a { width: fit-content; color: var(--petrole); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.fmt-contact__paths a:hover, .fmt-contact__direct a:hover { color: var(--petrole-survol); text-decoration-color: var(--cuivre); }

.fmt-contact__panel { min-width: 0; padding: clamp(24px, 3.3vw, 52px); border-radius: var(--radius-4); background: var(--surface-raised); scroll-margin-top: calc(var(--fmt-nav-h) + 24px); }
.fmt-contact__panel-heading { margin-bottom: 32px; }
.fmt-contact__panel-heading h3 { margin: 12px 0 8px; font-size: clamp(34px, 3vw, 46px); line-height: 1.15; }
.fmt-contact__panel-heading > p:last-child { margin: 0; color: var(--text-muted); font-size: 14px; }
.fmt-contact__status { margin: 0 0 24px; padding: 14px 16px; border-radius: 3px; background: var(--lin); color: var(--petrole); line-height: 1.5; }
.fmt-contact__status[hidden] { display: none; }
.fmt-contact__status.is-error { background: #f5e8e1; color: #673424; }
.fmt-contact__form { display: flex; flex-direction: column; gap: 21px; }
.fmt-contact__row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.fmt-contact__field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.fmt-contact__field label { color: var(--petrole); font-size: 13px; font-weight: 700; }
.fmt-contact__optional { margin-left: 5px; color: var(--text-muted); font-size: 12px; font-weight: 400; }
.fmt-contact__field input, .fmt-contact__field select, .fmt-contact__field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--border-champ); border-radius: var(--radius-4); background: var(--ivoire-clair); color: var(--text-body); font: 400 16px/1.45 var(--font-sans); }
.fmt-contact__field input:hover, .fmt-contact__field select:hover, .fmt-contact__field textarea:hover, .fmt-contact__field input:focus, .fmt-contact__field select:focus, .fmt-contact__field textarea:focus { border-color: var(--petrole); }
.fmt-contact__field textarea { min-height: 154px; resize: vertical; }
.fmt-contact__field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.fmt-contact__field small { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.fmt-contact__submit { width: 100%; min-height: 50px; margin-top: 4px; font-size: 15px; }
.fmt-contact__submit:disabled { opacity: .5; cursor: not-allowed; }
.fmt-contact__privacy { margin: -3px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.7; text-align: center; }
.fmt-contact__privacy a { color: var(--petrole); text-decoration: underline; text-underline-offset: 3px; }
.fmt-contact__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 999px) {
  .fmt-contact__hero { min-height: 0; }
  .fmt-contact__hero-copy { padding: 64px var(--bande-x); }
  .fmt-contact__hero-media, .fmt-contact__hero-media img { min-height: 470px; }
  .fmt-contact__body { gap: 48px; }
}
@media (max-width: 760px) {
  .fmt-contact__hero, .fmt-contact__body { grid-template-columns: 1fr; }
  .fmt-contact__hero-copy { padding-block: 56px 50px; }
  .fmt-contact__hero h1 { font-size: clamp(45px, 10vw, 64px); }
  .fmt-contact__hero-link { margin-top: 28px; }
  .fmt-contact__hero-media, .fmt-contact__hero-media img { height: 310px; min-height: 310px; }
  .fmt-contact__body { padding-block: 62px; }
  .fmt-contact__direct { margin-top: 34px; }
  .fmt-contact__paths { margin-top: 34px; }
  .fmt-contact__aside h2 { font-size: clamp(40px, 9vw, 54px); }
}
@media (max-width: 520px) {
  .fmt-contact__row { grid-template-columns: 1fr; }
  .fmt-contact__body { padding-inline: 18px; }
  .fmt-contact__panel { padding: 24px 18px; }
  .fmt-contact__hero-media figcaption { right: 12px; bottom: 12px; }
}
