/** BLOC 11 — Titre + Étapes numérotées horizontal (Figma node 1470:5213)
 *  Même esthétique que BLOC 10 mais layout horizontal : titre pleine largeur,
 *  puis 2+ cards côte à côte. */

.section-title-steps__title {
    font-size: clamp(1.75rem, 2.8vw, 2.3125rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin: 0 0 var(--space-5);
    color: inherit;
}
.section-title-steps__title .accent,
.section-title-steps__title .green-text { color: var(--color-accent); }

/* Liste horizontale : les steps se partagent la largeur, gap 40px */
.section-title-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
}
@media (max-width: 900px) {
    .section-title-steps__list { flex-direction: column; gap: var(--space-3); }
}

/* Chaque step = flex horizontal (cercle + card) qui prend sa part de largeur */
.section-title-steps__step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: stretch;
    position: relative;
}

/* Cercle numéro : identique BLOC 10 (76px, bleu pâle, chiffre 51px extra-bold) */
.section-title-steps__step-number {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #eceffa;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 51px;
    font-weight: 800;
    line-height: 1;
    margin-right: -26px;
    position: relative;
    z-index: 2;
    align-self: center;
}

/* Card body : fond #D5D7EE, radius 16px */
.section-title-steps__step-body {
    flex: 1 1 0;
    min-width: 0;
    background-color: #d5d7ee;
    color: var(--color-primary);
    padding: 16px 26px 16px 40px;
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    justify-content: center;
}

/* Header : badge blanc + subtitle inline */
.section-title-steps__step-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.section-title-steps__step-label {
    background-color: var(--color-white);
    color: var(--color-accent);
    padding: 2px 8px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    white-space: nowrap;
}
.section-title-steps__step-sub {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
}

/* Badge durée flottant top-right blanc/vert, 14px ici (selon Figma 11 ≠ 11px de BLOC 10) */
.section-title-steps__step-duration {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--color-white);
    color: var(--color-accent); /* badge repositionné dans la carte (2026-07-21) */
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    box-shadow: 0 0 27.2px 0 rgba(0, 0, 0, 0.08);
    z-index: 3;
    white-space: nowrap;
}

/* Items : pas de bullets, premier mot bold, 14px bleu primary */
.section-title-steps__step-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.section-title-steps__step-items li {
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-primary);
    font-weight: var(--font-weight-regular);
}
.section-title-steps__step-items strong {
    font-weight: var(--font-weight-bold);
}

/* Sur fond bleu : inverse */
.section--bg-blue .section-title-steps__title { color: var(--color-white); }
.section--bg-blue .section-title-steps__step-number {
    background-color: var(--color-white);
}
.section--bg-blue .section-title-steps__step-body {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}
.section--bg-blue .section-title-steps__step-sub { color: var(--color-white); }
.section--bg-blue .section-title-steps__step-items li { color: var(--color-white); }

/* Mobile : passe en colonne, cercle au-dessus */
@media (max-width: 640px) {
    .section-title-steps__step { flex-direction: column; }
    .section-title-steps__step-number { margin: 0 0 -26px; align-self: center; }
    .section-title-steps__step-body { padding: 40px 16px 16px; }
    .section-title-steps__step-duration { top: 8px; right: 8px; }
}
