/* Lot F8 (MCA-033) : demande de devis en 3 étapes. Chargé seulement sur la page qui porte [mc_devis]. */
.mcd { max-width: 860px; margin: 0 auto; color: var(--mc-ink, #000); }
.mcd-form { display: none; }
.mcd--js .mcd-form { display: block; }
.mcd--js .mcd-form[hidden], .mcd .mcd-step[hidden], .mcd .mcd-done[hidden], .mcd .mcd-err[hidden], .mcd .mcd-errsum[hidden] { display: none !important; }
.mcd-note { background: var(--mc-nude, #faf9f6); border: 1px solid var(--mc-line, #e6e1d8); padding: 16px 18px; border-radius: var(--mc-radius, 4px); }
.mcd-progress { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #4a4a4a; }
.mcd-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; }
.mcd-steps li { flex: 1; border-top: 4px solid var(--mc-line, #e6e1d8); padding: 8px 0 0; margin: 0; font-size: 14px; line-height: 1.3; color: #4a4a4a; }
.mcd-steps li::before { content: none; }
.mcd-steps li[aria-current="step"] { border-top-color: var(--mc-ink, #000); color: var(--mc-ink, #000); font-weight: 600; }
.mcd-steps li.is-done { border-top-color: var(--mc-gold, #b08d57); }
.mcd-n { display: inline-block; min-width: 1.4em; font-weight: 700; }
.mcd-h { margin: 0 0 12px; padding: 0 !important; font-size: 28px; line-height: 1.2; scroll-margin-top: 110px; }
.mcd-h:focus { outline: none; }
.mcd-h:focus-visible { outline: 2px solid var(--mc-gold, #b08d57); outline-offset: 4px; }
.mcd-hint { margin: 0 0 20px; color: #4a4a4a; font-size: 15px; }
.mcd-group { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.mcd-group > legend { padding: 0; margin: 0 0 10px; font-weight: 600; font-size: 16px; }
.mcd-req, .mcd-opt-mark { font-weight: 400; font-size: 13px; color: #4a4a4a; }
.mcd-sub { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4a4a4a; padding-bottom: 0 !important; }
.mcd-opt { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--mc-line, #e6e1d8); border-radius: var(--mc-radius, 4px); }
.mcd-opt:hover { border-color: var(--mc-gold, #b08d57); }
.mcd-opt input[type=radio], .mcd-opt input[type=checkbox] { flex: 0 0 24px; width: 24px; height: 24px; margin: 1px 0 0; accent-color: #000; }
.mcd-opt label { flex: 1; cursor: pointer; font-size: 15px; line-height: 1.45; padding: 2px 0; }
.mcd-opt--f { align-items: center; flex-wrap: wrap; }
.mcd-opt--f label { min-width: 180px; }
.mcd-fiche { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--mc-ink, #000); }
.mcd-count { margin: 10px 0 0; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.mcd-field { margin: 0 0 18px; }
.mcd-field label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 15px; }
.mcd-opt label { font-weight: 400; display: block; margin: 0; }
.mcd .mcd-field input[type=text], .mcd .mcd-field input[type=email], .mcd .mcd-field input[type=tel], .mcd .mcd-field select, .mcd .mcd-field textarea {
  display: block; width: 100%; box-sizing: border-box; background: #fff !important; border: 1px solid rgba(31, 26, 28, .35) !important; border-radius: 12px !important;
  padding: 14px 16px !important; font-size: 16px !important; color: var(--mc-ink, #000) !important; min-height: 48px; font-family: inherit;
}
.mcd .mcd-field textarea { min-height: 110px; }
.mcd .mcd-field input:focus, .mcd .mcd-field select:focus, .mcd .mcd-field textarea:focus { border-color: var(--mc-gold, #b08d57) !important; }
.mcd-group--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.mcd-group--row > legend { grid-column: 1 / -1; float: none; }
.mcd-group--row > .mcd-err { grid-column: 1 / -1; }
.mcd-err { margin: 6px 0 0; color: #b3261e; font-size: 14px; font-weight: 600; }
.has-err > input, .has-err > textarea, .has-err > select { border-color: #b3261e !important; }
.mcd-errsum { margin: 0 0 18px; padding: 12px 16px; border: 1px solid #b3261e; border-radius: var(--mc-radius, 4px); color: #b3261e; font-weight: 600; background: #fff; }
.mcd-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mcd-nav .mc-btn { cursor: pointer; }
.mcd-nav .mc-btn:disabled { opacity: .6; cursor: wait; }
.mcd-dl { margin: 0 0 22px; border-top: 1px solid var(--mc-line, #e6e1d8); }
.mcd-row { display: grid; grid-template-columns: 190px 1fr; gap: 6px 16px; padding: 12px 0; border-bottom: 1px solid var(--mc-line, #e6e1d8); align-items: start; }
.mcd-row dt { font-weight: 600; font-size: 14px; margin: 0; }
.mcd-row dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mcd-val { min-width: 0; }
.mcd-row dd ul { margin: 0; padding-left: 1.1em; }
.mcd-edit { background: none; border: 0; padding: 4px 6px; min-height: 24px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--mc-ink, #000); cursor: pointer; }
.mcd-ts { min-height: 66px; margin: 8px 0; }
.mcd-status { min-height: 1.4em; font-weight: 600; margin: 8px 0 0; }
.mcd-status--err { color: #b3261e; }
.mcd-done { padding: 30px; background: var(--mc-nude, #faf9f6); border: 1px solid var(--mc-line, #e6e1d8); border-radius: var(--mc-radius, 4px); }
.mcd-done:focus { outline: none; }
.mcd-done:focus-visible { outline: 2px solid var(--mc-gold, #b08d57); outline-offset: 4px; }
.mcd a { text-underline-offset: 3px; }
@media (max-width: 640px) {
  .mcd-h { font-size: 24px; }
  .mcd-steps li { font-size: 12px; }
  .mcd-group--row { grid-template-columns: 1fr; }
  .mcd-row { grid-template-columns: 1fr; }
  .mcd-nav .mc-btn { flex: 1 1 100%; text-align: center; }
  .mcd-opt { padding: 10px 12px; }
}

/* Correctif FOR-18 : une seule numérotation du stepper, bandeau compact en mobile. */
.mcd-steps, .mcd-steps li { list-style: none !important; }
@media (max-width: 640px) {
  .et_pb_section.mc-pagehead { min-height: 0 !important; padding: 20px 0 12px !important; align-items: flex-start !important; }
  .et_pb_section.mc-pagehead .et_pb_row { margin-top: 0 !important; margin-bottom: 0 !important; padding-top: 30px !important; padding-bottom: 30px !important; }
  .et_pb_section.mc-pagehead .et_pb_column { margin-bottom: 0 !important; }
  .et_pb_section.mc-pagehead .mc-crumbs,
  .et_pb_section.mc-pagehead .mc-eyebrow,
  .et_pb_section.mc-pagehead .mc-lead { display: none !important; }
  .et_pb_section.mc-pagehead h1 { font-size: 28px !important; line-height: 1.15 !important; padding-bottom: 0 !important; }
}
