/*
Theme Name: SITM Child
Description: Thème enfant Divi 5 pour SITM
Author: Divilogy
Author URI: https://divilogy.fr/
Template: Divi
Version: 1.0.0
Text Domain: sitm-child
*/

/* SITM — Accent typographique */
.sitm-accent {
    color: #3E9BE8;
}

.sitm-accent-press {
    color: #1E5F9E;
}

.sitm-gray-500 {
    color: #5E6B82;
}

.sitm-color-white {
    color: #FFFFFF;
}

/* ==================================================
   SITM - Frise chronologique des étapes
   ================================================== */

@media (min-width: 1024px) {

    .sitm-step {
        --step-offset: 32px;
        --step-gap: 24px;
        --step-marker: 11px;

        position: relative;
        overflow: visible;
    }

    /* Trait de liaison */
    .sitm-step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: calc(5px - var(--step-offset));
        left: 0;
        width: calc(100% + var(--step-gap));
        height: 1px;
        background: #BFC8D6;
        pointer-events: none;
    }

    /* Repère carré */
    .sitm-step::after {
        content: "";
        position: absolute;
        top: calc(0px - var(--step-offset));
        left: 0;
        width: var(--step-marker);
        height: var(--step-marker);
        box-sizing: border-box;
        border: 1px solid #1E5F9E;
        border-radius: 1px;
        background: #FFFFFF;
        pointer-events: none;
        z-index: 2;
    }

    /* Dernier repère automatiquement rempli */
    .sitm-step:last-child::after {
        background: #1E5F9E;
    }
}

/* SITM - Numérotation automatique de la FAQ */

.sitm-faq {
    counter-reset: sitm-question;
}

.sitm-faq .et_pb_toggle_title {
    position: relative;
    counter-increment: sitm-question;
}

.sitm-faq .et_pb_toggle_title::after {
    content: counter(sitm-question, decimal-leading-zero);
    position: absolute;
    top: 50%;
    left: -56px;
    transform: translateY(-50%);

    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.06em;
    color: #1E5F9E;

    pointer-events: none;
}

/* Dernier séparateur */
.sitm-faq .et_pb_toggle:last-child {
    border-bottom: 1px solid #BFC8D6;
}

/* SITM - Introduction sticky de la FAQ */
@media (min-width: 1024px) {
    .sitm-faq-sticky {
        position: sticky;
        top: 112px;
        align-self: flex-start;
        width: 100%;
        height: auto;
    }
}