/* =========================================================
   DBC · Étapes / Processus
   ========================================================= */

.dbc-step {
    --dbc-step-blue: #0d4899;
    --dbc-step-blue2: #2f7cc0;
    --dbc-step-orange: #f49826;
    --dbc-step-orange2: #e25312;
    --dbc-step-circle: 76px;

    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.dbc-step *, .dbc-step *::before, .dbc-step *::after { box-sizing: border-box; }

/* ============ EN-TÊTE ============ */
.dbc-step__header { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.dbc-step__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dbc-step-blue2);
    margin-bottom: 14px;
}
.dbc-step__eyebrow-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--dbc-step-orange);
}
.dbc-step__title {
    margin: 0 0 14px 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    color: #0a1929;
}
.dbc-step__accent {
    background: linear-gradient(135deg, var(--dbc-step-orange), var(--dbc-step-orange2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dbc-step__subtitle {
    margin: 0 auto;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.65;
    color: #64748b;
}

/* ============ MARQUEUR (commun) ============ */
.dbc-step__marker { position: relative; flex-shrink: 0; }
.dbc-step__circle {
    position: relative;
    z-index: 2;
    width: var(--dbc-step-circle);
    height: var(--dbc-step-circle);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dbc-step-blue), var(--dbc-step-blue2));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(13, 72, 153, 0.5);
    transition: transform 0.3s ease;
}
.dbc-step__item:hover .dbc-step__circle { transform: translateY(-4px) scale(1.05); }
.dbc-step__icon { display: flex; }
.dbc-step__num--big {
    font-family: 'Sora', sans-serif;
    font-size: 30px;
    font-weight: 800;
}
/* Badge numéro (mode icône + numéro) */
.dbc-step__badge {
    position: absolute;
    z-index: 3;
    top: -6px; right: -6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dbc-step-orange), var(--dbc-step-orange2));
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px -2px rgba(226, 83, 18, 0.5);
}

/* ============ CONTENU ============ */
.dbc-step__name {
    margin: 0 0 8px 0;
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0a1929;
    line-height: 1.25;
}
.dbc-step__desc {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
}

/* =========================================================
   DISPOSITION HORIZONTALE
   ========================================================= */
.dbc-step--horizontal .dbc-step__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
}
.dbc-step--horizontal .dbc-step__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.dbc-step--horizontal .dbc-step__marker {
    margin-bottom: 22px;
}
/* ligne horizontale entre les cercles */
.dbc-step--horizontal .dbc-step__line {
    position: absolute;
    z-index: 1;
    top: calc(var(--dbc-step-circle) / 2);
    left: 50%;
    width: calc(100% + 16px);
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--dbc-step-blue2) 0 8px, transparent 8px 16px);
    opacity: 0.4;
}
.dbc-step--horizontal .dbc-step__item:last-child .dbc-step__line { display: none; }
.dbc-step--horizontal .dbc-step__content { max-width: 240px; }

/* =========================================================
   DISPOSITION VERTICALE
   ========================================================= */
.dbc-step--vertical .dbc-step__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}
.dbc-step--vertical .dbc-step__item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding-bottom: 36px;
}
.dbc-step--vertical .dbc-step__item:last-child { padding-bottom: 0; }
/* ligne verticale à gauche */
.dbc-step--vertical .dbc-step__line {
    position: absolute;
    z-index: 1;
    top: var(--dbc-step-circle);
    left: calc(var(--dbc-step-circle) / 2);
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% + 36px - var(--dbc-step-circle));
    background: repeating-linear-gradient(180deg, var(--dbc-step-blue2) 0 8px, transparent 8px 16px);
    opacity: 0.4;
}
.dbc-step--vertical .dbc-step__item:last-child .dbc-step__line { display: none; }
.dbc-step--vertical .dbc-step__content { padding-top: 12px; }

/* Pas de ligne */
.dbc-step--no-line .dbc-step__line { display: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    /* L'horizontale passe en vertical sur tablette/mobile */
    .dbc-step--horizontal .dbc-step__list {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: 540px;
        margin: 0 auto;
    }
    .dbc-step--horizontal .dbc-step__item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 22px;
        padding-bottom: 36px;
    }
    .dbc-step--horizontal .dbc-step__item:last-child { padding-bottom: 0; }
    .dbc-step--horizontal .dbc-step__marker { margin-bottom: 0; }
    .dbc-step--horizontal .dbc-step__line {
        top: var(--dbc-step-circle);
        left: calc(var(--dbc-step-circle) / 2);
        transform: translateX(-50%);
        width: 3px;
        height: calc(100% + 36px - var(--dbc-step-circle));
        background: repeating-linear-gradient(180deg, var(--dbc-step-blue2) 0 8px, transparent 8px 16px);
    }
    .dbc-step--horizontal .dbc-step__content { max-width: none; padding-top: 12px; }
}

@media (max-width: 600px) {
    .dbc-step { --dbc-step-circle: 64px; }
    .dbc-step__header { margin-bottom: 32px; }
    .dbc-step__name { font-size: 16px; }
    .dbc-step__num--big { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .dbc-step__circle { transition: none !important; }
}
