/* ==========================================================================
   2M/Digital — Page Contact (mode sombre)
   S'appuie sur style.css (tokens, nav, boutons, footer, visuels projets).
   ========================================================================== */

.contact-hero,
.promises,
.cta-band {
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2 + var(--gutter));
}

/* ---------- Hero + fiche ---------- */

.contact-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 64px;
  padding-top: 70px;
  padding-bottom: 72px;
}

.contact-hero__text {
  flex: 0 1 720px;
  min-width: 0;
}

.contact-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(60px, 7.2vw, 104px);
  line-height: .86;
}

.contact-hero__lead {
  margin-top: 40px;
  font-size: 19px;
  line-height: 1.52;
  color: var(--muted);
}

.coords { margin-top: 40px; border-bottom: 1px solid var(--line); }
.coords__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}
.coords__row dt { flex-shrink: 0; width: 170px; padding-top: 3px; font-size: 10px; color: var(--muted); }
.coords__row dd { max-width: 400px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.coords__row a { transition: color .15s ease; }
.coords__row a:hover { color: var(--yellow); }

.contact-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  margin-top: 40px;
}

/* Fiche projet */
.brief {
  flex: 0 0 560px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 32px;
  background: #121211;
  border: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.brief__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: .9;
}

.brief__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field label.mono,
.field legend.mono { padding: 0; font-size: 10px; color: var(--muted); }
.field legend.mono { margin-bottom: 10px; }

.field input { height: 48px; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  font: 400 15px/1.3 var(--font-body);
  transition: border-color .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:hover,
.field textarea:hover { border-color: #55554f; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--yellow); }
.field [aria-invalid="true"] { border-color: #ff6b4a; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: normal;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice:hover span { border-color: var(--muted); }
.choice input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
#prestations[aria-invalid="true"] .choice span { border-color: #ff6b4a; }

.brief__error { margin-bottom: -16px; font-size: 14px; color: #ff6b4a; }

.brief__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  background: var(--yellow);
  border: 0;
  color: var(--ink);
  font: 700 14px/normal var(--font-mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.brief__submit:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--paper); }
.brief__submit:active { transform: none; box-shadow: none; }

.brief__note { margin-top: -18px; font-size: 9px; color: var(--muted); }

/* ---------- Engagements ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 48px;
  padding-bottom: 90px;
  border-bottom: 1px solid var(--line);
}
.promises > div { padding-left: 32px; border-left: 1px solid var(--line); }
.promises > div:first-child { padding-left: 0; border-left: 0; }
.promises dt {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  color: var(--yellow);
}
.promises dd { max-width: 240px; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ---------- Titres de section ---------- */

.contact-title { font-size: clamp(52px, 6.1vw, 88px); }

.contact-lead {
  max-width: 640px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Pourquoi ---------- */

.why { padding-top: 0; }

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 60px;
}

.reason {
  padding: 30px 22px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.reason:hover { border-color: var(--muted); }
.reason__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--yellow);
}
.reason__name {
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: .95;
}
.reason p { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Clients ---------- */

.clients { padding-top: 20px; }
.clients .contact-title { font-size: clamp(48px, 5.1vw, 73px); }

.clients__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.work--c { gap: 0; }
.work--c .work__visual { aspect-ratio: 432 / 220; --stripe-end: 38%; }
.work--c .work__name { margin-top: 20px; font-size: 30px; line-height: normal; }
.work--c .work__metric { margin-top: 4px; }

/* ---------- FAQ ---------- */

.faq { padding-top: 10px; }
.faq .contact-title { font-size: clamp(48px, 5.55vw, 80px); }
.faq .contact-lead { margin-top: 14px; font-size: 16px; }

.faq__list { margin-top: 60px; border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }

.qa summary {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 0;
  padding-block: 26px;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa__num { color: var(--yellow); }
.qa__q {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  transition: color .15s ease;
}
.qa summary:hover .qa__q { color: var(--yellow); }

.qa__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  transition: border-color .15s ease;
}
.qa__toggle::before,
.qa__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--paper);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .15s ease;
}
.qa__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__toggle { border-color: var(--yellow); }
.qa[open] .qa__toggle::before { background: var(--yellow); }
.qa[open] .qa__toggle::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.qa__a {
  margin-top: -8px;
  padding: 0 48px 30px 114px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.faq__hint { margin-top: 18px; font-size: 9px; color: var(--muted); }

/* ---------- Bandeau final ---------- */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 70px;
  background: var(--yellow);
  color: var(--ink);
}
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 3.3vw, 48px);
  line-height: .92;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .contact-hero { flex-direction: column; gap: 56px; }
  .contact-hero__text { flex-basis: auto; }
  .brief { flex-basis: auto; width: 100%; max-width: 640px; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .promises { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .promises > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .clients__list { grid-template-columns: 1fr; gap: 40px; }
  .work--c .work__visual { aspect-ratio: 16 / 9; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .contact-hero { padding-top: 48px; }
  .contact-hero__title { font-size: 17vw; }
  .coords__row { flex-direction: column; gap: 8px; }
  .coords__row dt { width: auto; }
  .brief { padding: 24px 18px; }
  .brief__title { font-size: 36px; }
  .brief__row { grid-template-columns: 1fr; gap: 32px; }

  .promises > div { padding-left: 16px; }
  .promises dt { font-size: 44px; }

  .reasons { grid-template-columns: 1fr; }

  .qa summary { grid-template-columns: minmax(0, 1fr) 36px; row-gap: 8px; }
  .qa__num { grid-column: 1 / -1; }
  .qa__q { font-size: 24px; }
  .qa__a { padding-left: 0; }
}
