/* Parcours d’expertise, aux couleurs de Mon Expert Construction. */
.mec-flow {
  padding-block: clamp(32px, 5.5vw, 72px);
  background: var(--ivory);
}

.mec-flow--inline {
  margin-block: 36px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #e1d9ce;
  border-radius: 10px;
}

.mec-flow .mec-flow-title {
  margin: 0 0 clamp(20px, 3.5vw, 34px);
  color: var(--prune);
  font: 600 clamp(1.6rem, 3.2vw, 2.5rem)/1.12 var(--display);
  letter-spacing: -.025em;
}

.mec-flow-title::before {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 13px;
  content: "";
  background: var(--gold, #b69b62);
}

.mec-flow ol.mec-flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(10px, 1.55vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mec-flow .mec-flow-card {
  min-width: 0;
  margin: 0;
  padding: clamp(16px, 2.15vw, 26px);
  border: 1px solid #ded8d1;
  border-top: 3px solid #c6b8c4;
  border-radius: 8px;
  background: var(--white);
}

.mec-flow .mec-flow-card--focus {
  border-color: #a9bda9;
  border-top-color: var(--green);
  background: #e9f0e8;
}

.mec-flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.mec-flow-icon {
  display: inline-grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--prune);
}

.mec-flow-card--focus .mec-flow-icon { background: var(--green); }

.mec-flow-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mec-flow-step {
  color: #665968;
  font: 600 1.38rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.mec-flow-card--focus .mec-flow-step { color: var(--green); }

.mec-flow .mec-flow-card h3 {
  margin: 0 0 9px;
  color: var(--prune);
  font: 600 clamp(1.1rem, 1.7vw, 1.35rem)/1.2 var(--display);
}

.mec-flow .mec-flow-card p {
  margin: 0;
  color: var(--ink-soft);
  font: 400 .9375rem/1.55 var(--sans);
}

.mec-flow .mec-flow-badge {
  display: inline-block;
  margin: 0 0 9px;
  color: var(--green);
  font: 700 .72rem/1.35 var(--sans);
}

.mec-flow-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(18px, 3vw, 29px);
}

.mec-flow-actions .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  text-decoration: none;
}

.mec-flow-actions .mec-flow-secondary {
  color: var(--green);
  font: 700 .9rem/1.4 var(--sans);
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 480px) {
  .mec-flow ol.mec-flow-list { grid-template-columns: 1fr; }
  .mec-flow-actions { align-items: stretch; flex-direction: column; }
  .mec-flow-actions .btn { width: 100%; justify-content: center; }
}
