/* Page de contact */
.contact-page {
  background: #f4f5f0;
}
.contact-header nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  min-height: 44px;
}
.contact-header nav a > span {
  font-size: 20px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 7%;
  max-width: 1480px;
  padding: 64px var(--gutter) 88px;
  margin: auto;
  align-items: start;
}
.contact-intro {
  position: sticky;
  top: 120px;
  padding-top: 6px;
}
.contact-intro > .micro {
  color: var(--green);
  margin-bottom: 22px;
}
.contact-intro h1 {
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.065em;
}
.contact-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 340px;
  margin-top: 24px;
}
.response-time {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 22px;
  color: var(--green);
}
.response-time > span {
  height: 6px;
  width: 6px;
  background: var(--green);
  border-radius: 50%;
}
.photographer-contact {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 38px;
}
.photographer-contact img {
  width: 76px;
  height: 90px;
  object-fit: cover;
  object-position: center 46%;
}
.photographer-contact p {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.photographer-contact div > span {
  display: block;
  max-width: 200px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-channels {
  max-width: 365px;
  margin-top: 35px;
}
.contact-channels > .micro {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.contact-channels > a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  font-size: 13px;
  transition: color 0.2s;
}
.contact-channels > a > span:first-child {
  font-weight: 700;
}
.contact-channels > a > span:last-child {
  color: var(--muted);
  font-size: 12px;
}
.contact-channels > a > span > span {
  margin-left: 15px;
  font-size: 18px;
  color: var(--ink);
}
.contact-channels > a:hover,
.contact-channels > a:hover > span:last-child {
  color: var(--green);
}
.project-form {
  min-width: 0;
  background: #fff;
  padding: 34px;
  border: 1px solid #e0e4db;
}
.form-heading {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.form-heading h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.form-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 27px;
  min-width: 0;
}
.form-section legend {
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.field {
  min-width: 0;
}
.field-full {
  grid-column: 1/-1;
}
.field > label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 7px;
}
.field > label > span {
  color: var(--green);
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #cbd1c6;
  border-radius: 3px;
  background: #fafbf8;
  padding: 12px 13px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    background 0.2s;
  scroll-margin-top: 115px;
}
.field textarea {
  resize: vertical;
  min-height: 102px;
  max-height: 500px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #777d72;
  opacity: 1;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #9ba895;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: #fff;
  outline: 2px solid #204c3a22;
  outline-offset: 1px;
}
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%234d5947' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.field select:has(option:checked[value='']) {
  color: #777d72;
}
.field-help {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.service-summary {
  font-size: 11px;
  line-height: 1.7;
  color: var(--green);
  border-left: 2px solid var(--green);
  padding: 2px 0 2px 10px;
  margin: 12px 0 0;
}
.extra-fields {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 3px;
}
.extra-fields summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 11px;
  line-height: 1.5;
  min-height: 54px;
}
.extra-fields summary > span:first-child {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.extra-fields summary > span:last-child {
  font-size: 20px;
}
.extra-fields[open] summary > span:last-child {
  transform: rotate(45deg);
}
.extra-fields > .field-grid {
  padding: 3px 0 22px;
}
.submit-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 52px;
  border-radius: 3px;
  padding: 14px 20px;
  margin-top: 26px;
  font-size: 13px;
  font-weight: 700;
  background: var(--green);
  color: #fff;
  transition: background 0.2s;
}
.submit-project:hover {
  background: var(--ink);
}
.submit-project:disabled {
  cursor: default;
  opacity: 0.7;
}
.submit-project:disabled:hover {
  background: var(--green);
}
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.submit-project > span {
  font-size: 22px;
  line-height: 1;
}
.form-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  text-align: left;
  margin: 13px 0 0;
  max-width: none;
}
.form-error {
  font-size: 12px;
  line-height: 1.7;
  color: #9b3223;
  margin-top: 18px;
}
.project-form [aria-invalid='true'] {
  border-color: #b6402e !important;
  background: #fff9f6;
}
.field-error {
  font-size: 11px;
  color: #9b3223;
  margin-top: 6px;
  line-height: 1.5;
}
.form-success {
  font-size: 14px;
  line-height: 1.8;
  background: #f1f5ec;
  padding: 18px;
  color: var(--green);
  margin-top: 20px;
  border: 0;
  scroll-margin-top: 115px;
}
.form-error {
  scroll-margin-top: 115px;
}
.form-error a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-footer {
  max-width: 1480px;
  margin: auto;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  color: var(--muted);
}
.contact-footer > span {
  margin-right: auto;
}
.contact-footer a,
.contact-footer button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: inherit;
}
@media (max-width: 1100px) {
  .contact-layout {
    gap: 5%;
  }
  .project-form {
    padding: 27px;
  }
  .contact-intro h1 {
    font-size: 48px;
  }
  .field > label {
    font-size: 10px;
  }
  .contact-channels .contact-email {
    flex-wrap: wrap;
    gap: 0;
    padding: 10px 0;
  }
  .contact-channels .contact-email > span:first-child {
    width: 100%;
  }
  .extra-fields summary {
    flex-wrap: wrap;
  }
  .extra-fields summary > span:first-child {
    margin-left: 0;
  }
  .extra-fields summary > span:last-child {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .contact-header {
    gap: 15px;
  }
  .contact-header nav a {
    font-size: 10px;
    gap: 8px;
  }
  .contact-header nav a > span {
    font-size: 18px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 20px 50px;
  }
  .contact-intro {
    position: static;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0 14px;
  }
  .contact-intro > .micro {
    grid-column: 1/-1;
    font-size: 10px;
    margin-bottom: 16px;
  }
  .contact-intro h1 {
    font-size: 46px;
    grid-column: 1/-1;
  }
  .contact-description {
    grid-column: 1/-1;
    font-size: 13px;
    margin-top: 18px;
    max-width: 350px;
  }
  .response-time {
    grid-column: 1/-1;
    font-size: 11px;
    margin-top: 16px;
  }
  .photographer-contact {
    display: none;
  }
  .contact-channels {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    max-width: none;
    margin-top: 22px;
  }
  .contact-channels > .micro {
    display: none;
  }
  .contact-channels > a {
    min-height: 44px;
    font-size: 12px;
    gap: 10px;
  }
  .contact-channels > a > span:last-child {
    font-size: 11px;
  }
  .contact-channels > a > span > span {
    margin-left: 5px;
    font-size: 16px;
  }
  .contact-channels .contact-email {
    display: none;
  }
  .project-form {
    padding: 25px 20px;
    margin: 0 -20px;
    border-width: 1px 0;
  }
  .form-heading {
    margin-bottom: 24px;
    padding-bottom: 22px;
  }
  .form-heading h2 {
    font-size: 23px;
  }
  .form-heading p {
    font-size: 11px;
  }
  .form-section legend {
    font-size: 13px;
  }
  .field-grid {
    gap: 18px 14px;
  }
  .field > label {
    font-size: 11px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    padding: 12px 10px;
    min-height: 49px;
  }
  .field textarea {
    min-height: 112px;
  }
  .field-help {
    font-size: 10px;
  }
  .field-full {
    grid-column: 1/-1;
  }
  .field-grid > .field {
    grid-column: 1/-1;
  }
  .service-summary {
    font-size: 11px;
  }
  .extra-fields summary {
    font-size: 11px;
    gap: 8px;
  }
  .submit-project {
    font-size: 13px;
    min-height: 52px;
  }
  .form-note {
    font-size: 11px;
  }
  .contact-footer {
    font-size: 10px;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 20px;
  }
  .contact-footer > span {
    flex-basis: 100%;
    margin: 0;
  }
  .contact-footer > button {
    margin-left: auto;
  }
}
@media (max-width: 370px) {
  .contact-header .wordmark {
    font-size: 25px;
  }
  .contact-header nav a {
    font-size: 9px;
    gap: 6px;
  }
  .contact-intro h1 {
    font-size: 41px;
  }
  .contact-channels {
    gap: 0 14px;
  }
  .contact-channels > a {
    gap: 7px;
    font-size: 11px;
  }
  .contact-channels > a > span:last-child {
    font-size: 10px;
  }
  .contact-channels > a > span > span {
    margin-left: 2px;
  }
}
