/* Oscura · formulaire de contact dédié.
   Feuille distincte et versionnée : évite les styles périmés des aperçus. */

.contact-section {
  align-items: start;
  gap: clamp(2rem, 5vw, 5.4rem);
}
.contact-section > div:first-child { min-width: 0; }
.contact-section .contact-content {
  width: 100%;
  max-width: 790px;
  min-width: 0;
}
.contact-section .contact-content > p:first-child {
  margin-top: 0;
  margin-bottom: 1.4rem;
  max-width: 64ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.contact-section .contact-card {
  position: relative;
  padding: clamp(1.2rem, 3.5vw, 2.3rem);
  border: 1px solid #d2c8ba;
  border-top: 4px solid #a83a30;
  border-radius: 12px;
  background: #fdfcf9;
  box-shadow: 0 12px 34px rgba(23, 23, 22, .065);
  color: #24211d;
}
.contact-section .contact-card-header { margin: 0 0 1.65rem; }
.contact-section .contact-kicker {
  display: block;
  font: 700 .73rem/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #93372c;
  margin-bottom: .42rem;
}
.contact-section .contact-card-header h3 {
  margin: 0 0 .55rem;
  font: 500 clamp(1.65rem, 3vw, 2.1rem)/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.contact-section .contact-card-header p {
  margin: 0;
  font: .94rem/1.6 Arial, Helvetica, sans-serif;
  color: #605951;
}
.contact-section .contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}
.contact-section .contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.contact-section .contact-field { display: grid; gap: .4rem; min-width: 0; }
.contact-section .contact-field label,
.contact-section .contact-challenge label {
  display: block;
  margin: 0;
  color: #35302a;
  font: 700 .88rem/1.45 Arial, Helvetica, sans-serif;
}
.contact-section .contact-form input:not([type="hidden"]),
.contact-section .contact-form select,
.contact-section .contact-form textarea {
  display: block;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #ada499;
  border-radius: 7px;
  background: #fff;
  color: #282421;
  padding: .78rem .88rem;
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
  min-height: 49px;
  box-shadow: 0 1px 2px rgba(23, 23, 22, .025);
}
.contact-section .contact-form textarea {
  min-height: 178px;
  resize: vertical;
}
.contact-section .contact-form input::placeholder,
.contact-section .contact-form textarea::placeholder { color: #77726c; opacity: 1; }
.contact-section .contact-form input:disabled,
.contact-section .contact-form select:disabled,
.contact-section .contact-form textarea:disabled {
  opacity: 1;
  color: #56524b;
  background: #f7f6f2;
  border-color: #c3bcb3;
  -webkit-text-fill-color: #56524b;
}
.contact-section .contact-form :is(input, select, textarea, button):focus-visible {
  outline: 3px solid #a83a30;
  outline-offset: 3px;
}
.contact-section .contact-challenge {
  padding: 1.05rem 1.1rem;
  border: 1px solid #ded4c7;
  border-left: 4px solid #a83a30;
  border-radius: 6px;
  background: #f4efe7;
}
.contact-section .contact-challenge-heading {
  margin-bottom: .55rem;
  font: 700 .76rem/1.5 Arial, Helvetica, sans-serif;
  color: #8e352d;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.contact-section .contact-challenge-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1rem;
}
.contact-section .contact-challenge-controls label { flex: 1 1 210px; }
.contact-section .contact-challenge-controls input { flex: 0 0 110px; max-width: 110px; }
.contact-section .contact-challenge p {
  margin: .65rem 0 0;
  font: .8rem/1.5 Arial, Helvetica, sans-serif;
  color: #655e56;
}
.contact-section .contact-privacy {
  margin: -.1rem 0 0;
  color: #625d56;
  font: .81rem/1.6 Arial, Helvetica, sans-serif;
}
.contact-section .contact-actions { display: flex; align-items: center; gap: 1rem; }
.contact-section .contact-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  min-height: 50px;
  max-width: 100%;
  width: auto;
  padding: .85rem 1.25rem;
  background: #a83a30;
  border: 1px solid #a83a30;
  border-radius: 7px;
  color: white;
  font: 700 .95rem/1.35 Arial, Helvetica, sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.contact-section .contact-submit:hover:not(:disabled) { background: #7f2b24; border-color: #7f2b24; }
.contact-section .contact-submit:disabled {
  opacity: 1;
  background: #8c5149;
  border-color: #8c5149;
  color: #fff;
  cursor: not-allowed;
}
.contact-section .contact-submit [aria-hidden] { font-size: 1.2em; line-height: 1; }
.contact-section .contact-preview-note {
  margin: 1rem 0 0;
  padding: .7rem .85rem;
  background: #f5f0e8;
  border: 1px solid #e4d8c9;
  border-radius: 6px;
  color: #625b52;
  font: .8rem/1.5 Arial, Helvetica, sans-serif;
}
.contact-section .contact-error,
.contact-section .contact-notice {
  margin: 0 0 1.25rem;
  padding: .9rem 1rem;
  border-left: 4px solid #a83a30;
  background: #fff0ec;
  font: .94rem/1.5 Arial, Helvetica, sans-serif;
}
.contact-section .contact-notice { border-color: #396d51; background: #edf4ed; }
.contact-section .contact-fallback {
  margin: 1.25rem 0 0;
  color: #5d574f;
  font: .86rem/1.6 Arial, Helvetica, sans-serif;
}
.contact-section .contact-fallback a { color: #96392f; overflow-wrap: anywhere; }
.contact-section .contact-trap {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  left: -9999px !important;
  overflow: hidden !important;
}
@media (max-width: 850px) {
  .contact-section { grid-template-columns: minmax(0, 1fr); }
  .contact-section .contact-content { max-width: 100%; }
}
@media (max-width: 620px) {
  .contact-section .contact-fields { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .contact-section .contact-card { padding: 1.1rem .9rem 1.3rem; }
  .contact-section .contact-challenge-controls { display: grid; grid-template-columns: minmax(0,1fr); }
  .contact-section .contact-challenge-controls input { width: 100%; max-width: 160px; }
  .contact-section .contact-submit { width: 100%; }
  .contact-section .contact-actions { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-section .contact-submit { transition: none; }
}
