/* =====================
   Stepper Aidants
   ===================== */
.stepper-aidants {
    width: 100%;
    padding: 40px 20px;
    font-family: inherit;
}
.stepper-aidants__step {
    display: none;
    animation: stepperFadeIn .3s ease;
}
.stepper-aidants__step.is-active {
    display: block;
}
@keyframes stepperFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Titre */
h2.stepper-aidants__title {
    text-align: center;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--e-global-color-accent) !important;
    margin-bottom: 40px;
}
/* =====================
   Boutons étapes 1 & 2
   ===================== */
.stepper-aidants__buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 300px));
    gap: 20px;
    margin-bottom: 32px;
    justify-content: center;
}
.stepper-aidants__step[data-step="2"] .stepper-aidants__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.stepper-aidants__btn {
    background: var(--e-global-color-4791518);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    color: var(--e-global-color-16dae4e);
    font-size: 17px;
    font-weight: 400;
    padding: 30px;
    text-align: center;
    line-height: 1.3;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}
.stepper-aidants__btn:hover {
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-4791518);
}
.stepper-aidants__btn.is-active {
    background: var(--e-global-color-4791518);
    color: #fff;
    border-radius: 20px 20px 20px 4px;
}
/* Wrapper étape 2 */
.stepper-aidants__buttons-wrap {
    display: inline-flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}
/* Bouton retour */
.stepper-aidants__back-wrap {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    max-width: calc(3 * 320px + 2 * 64px);
}
.btnRetour {
    border-radius: 40px;
    padding: 10px 25px;
    background: var(--e-global-color-secondary);
    color: var(--e-global-color-4791518);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.btnRetour::before {
    content: url('/wp-content/uploads/2026/08/fleche-blanche-tyeva.svg') !important;
    display: inline-block !important;
    vertical-align: middle;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    margin-right: 0;
    background: none !important;
    transition: max-width .4s ease, opacity .4s ease, margin-right .4s ease;
    transform: rotate(180deg);
    margin-top: -4px;
}
.btnRetour:hover::before {
    content: url('/wp-content/uploads/2026/08/fleche-blanche-tyeva.svg') !important;
    opacity: 1;
    max-width: 30px;
    margin-right: 8px;
    transform: rotate(180deg);
}
/* =====================
   Onglets étape 3
   ===================== */
.stepper-aidants__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 32px;
    justify-content: center;
}
.stepper-aidants__tab {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--e-global-color-primary);
    cursor: pointer;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: -2px;
    padding: 12px 28px;
    transition: color .25s ease, border-color .25s ease;
}
.stepper-aidants__tab.is-active {
    border-bottom-color: var(--e-global-color-secondary);
    color: var(--e-global-color-secondary);
    font-weight: 700;
}
.stepper-aidants__tab:hover {
    border-bottom-color: var(--e-global-color-secondary);
    color: var(--e-global-color-secondary);
}
/* =====================
   Carousel résultats
   ===================== */
.stepper-aidants__carousel-wrap {
    position: relative;
}
.stepper-aidants__results {
    display: flex;
    gap: 20px;
    overflow: hidden;
}
.stepper-aidants__card {
    flex: 0 0 calc(33.333% - 14px);
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.stepper-aidants__card:hover {
    border-color: var(--e-global-color-4791518);
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.stepper-aidants__card-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.stepper-aidants__card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #eee;
    font-size: 48px;
}
.stepper-aidants__card-body {
    padding: 12px 16px;
}
.stepper-aidants__card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--e-global-color-primary);
    margin: 0;
    text-align: center;
}
.stepper-aidants__empty {
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 40px 0;
    width: 100%;
}
/* Pagination centrée avec chiffres */
.stepper-aidants__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}
.stepper-aidants__nav-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease;
    color: var(--e-global-color-primary);
}
.stepper-aidants__nav-btn:hover {
    background: var(--e-global-color-4791518);
    color: #fff;
}
.stepper-aidants__nav-btn.is-active {
    background: var(--e-global-color-4791518);
    color: #fff;
}
.stepper-aidants__nav-btn.is-disabled {
    opacity: .3;
    cursor: default;
    pointer-events: none;
}
/* =====================
   Visionneuse
   ===================== */
.stepper-viewer[hidden] { display: none; }
.stepper-viewer {
    align-items: center;
    background: rgba(0,0,0,.8);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}
.stepper-viewer__content {
    background: #fff;
    border-radius: 12px;
    max-height: 90vh;
    max-width: 1100px;
    position: relative;
    width: 100%;
    overflow: hidden;
}
.stepper-viewer__close {
    background: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 8px 12px;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.stepper-viewer__media {
    display: block;
    max-height: 90vh;
    max-width: 100%;
    margin: auto;
}
.stepper-viewer__pdf {
    border: 0;
    height: 80vh;
    width: 100%;
}
/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
    h2.stepper-aidants__title { font-size: 24px !important; }
    .stepper-aidants__buttons {
        grid-template-columns: 1fr;
        gap: 30px
    }
    .stepper-aidants__btn {
        min-width: unset;
        width: 100%;
    }
    .stepper-aidants__back-wrap {
        max-width: 100%;
    }
    .stepper-aidants__card {
        flex: 0 0 100%;
    }
    .stepper-aidants__tabs {
        justify-content: center;
    }
    .stepper-aidants__tab {
        font-size: 14px;
        padding: 10px 16px;
    }
}