/* ============================================================
   Stepper Shortcode — stepper.css
   Design : fond sombre, numéros romains dorés, ligne gold
   ============================================================ */

/* ── Variables par défaut (écrasées par les CSS vars inline) ── */
.stepper-wrapper {
    --stepper-bg:        #1a1a1a;
    --stepper-gold:      #c9a96e;
    --stepper-title:     #ffffff;
    --stepper-text:      #b0a99a;
    --stepper-circle-bg: #111111;
    --stepper-line:      #c9a96e;
    --stepper-count:     4;

    background-color: var(--stepper-bg);
    padding: 48px 40px 56px;
    font-family: 'Georgia', 'Times New Roman', serif;
    box-sizing: border-box;
    overflow: hidden;
}

/* ── Ligne de navigation (cercles + traits) ── */
.stepper-track {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.stepper-item {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: center;
}

.stepper-item--last {
    flex: 0 0 auto;
}

.stepper-circle-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
}

.stepper-item--last .stepper-circle-wrap {
    justify-content: flex-end;
}

/* Cercle */
.stepper-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--stepper-circle-bg);
    border: 1px solid var(--stepper-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px var(--stepper-bg);
}

.stepper-roman {
    color: var(--stepper-gold);
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1;
}

/* Trait entre cercles */
.stepper-line {
    flex: 1;
    height: 1px;
    background: var(--stepper-line);
    opacity: 0.55;
    min-width: 20px;
}

/* ── Textes ── */
.stepper-labels {
    display: grid;
    grid-template-columns: repeat(var(--stepper-count), 1fr);
    gap: 0 24px;
}

.stepper-label {
    text-align: center;
    padding: 0 8px;
}

.stepper-title {
    color: var(--stepper-title);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 0 0 14px 0;
    line-height: 1.3;
}

.stepper-desc {
    color: var(--stepper-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .stepper-wrapper {
        padding: 36px 24px 44px;
    }

    /* En mobile : affichage vertical */
    .stepper-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 0;
        padding-left: 36px;
    }

    .stepper-item {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .stepper-circle-wrap {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: auto;
    }

    .stepper-item--last .stepper-circle-wrap {
        justify-content: flex-start;
    }

    .stepper-line {
        width: 1px;
        height: 60px;
        flex: none;
        min-width: unset;
        margin-left: 35px;
    }

    .stepper-labels {
        grid-template-columns: 1fr;
        padding-left: 36px;
        gap: 24px 0;
        margin-top: 24px;
    }

    .stepper-label {
        text-align: left;
    }

    /* Sur mobile, masquer le track et afficher une version inline */
    .stepper-track {
        display: none;
    }

    .stepper-labels {
        padding-left: 0;
    }

    .stepper-label {
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    .stepper-label::before {
        content: attr(data-roman);
        color: var(--stepper-gold);
        font-size: 18px;
        font-style: italic;
        font-family: 'Georgia', serif;
        min-width: 28px;
        padding-top: 1px;
    }
}
