/* ========================================
   BLOC ÉTAPES
   ======================================== */

.blocEtapes {
    padding: 50px 0;
    @media (max-width: 767px) {
        padding: 25px 0;
    }
    @media (min-width: 1400px){
        margin-left: 90px;
        margin-top: 20px;
    }
}




/* Entête du bloc */
.blocEtapes__header {
    text-align: center;
    margin-bottom: 60px;
}

.blocEtapes__toptitle {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 32px!important;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 20px 0;
    font-style: normal;
    color: #5CBE95;
    letter-spacing: 0;
}

.blocEtapes__subtitle {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: 22px;
    line-height: 27px;
    letter-spacing: 2.2px;
    color: #00283F;
    margin: 0;
}

@media (max-width: 768px) {
    .blocEtapes__header {
        margin-bottom: 40px;
    }

    .blocEtapes__title {
        font-size: 32px;
    }
}

.blocEtapes__wrapper {
    width: 100%;
    position: relative;
}

.blocEtapes__container {
    position: relative;
    width: 100%;
}

.blocEtapes__item {
    position: relative;
    width: 48%;
    margin-bottom: 50px;
    margin-top: var(--step-offset, -100px);
}

/* Alternance gauche/droite */
.blocEtapes__item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    padding-right: 2%;
}

.blocEtapes__item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    padding-left: 2%;
    margin-top: var(--step-offset, -100px);
}

/* Pas de décalage pour le premier bloc */
.blocEtapes__item:first-child {
    margin-top: 0;
}

.blocEtapes__step {
    position: relative;
    border-radius: 40px;
    padding: 50px 30px 50px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: visible;
}

/* Couleurs de fond */
.blocEtapes__step--primary {
    background-color: var(--color-primary, #5CBE95);
}

.blocEtapes__step--secondary {
    background-color: var(--color-secondary, #007FB4);
}

.blocEtapes__step--tertiary {
    background-color: var(--color-tertiary, #FCC100);
}

.blocEtapes__step--dark {
    background-color: var(--color-dark, #00283F);
}

.blocEtapes__step--corail {
    background-color: var(--color-corail, #CB695F);
}

/* Numéro de l'étape */
.blocEtapes__number {
    position: absolute;
    top: -47px;
    left: -43px;
    width: 81px;
    height: 93px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Cercle de fond du numéro */
.blocEtapes__number::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5px;
    width: 105%;
    height: 110%;
    background-color: var(--color-dark, #00283F);
    z-index: -1;
    border-radius: 40px;
    transform: rotate(8deg);
}

.blocEtapes__number span {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 60.9px;
    font-weight: 400;
    line-height: 66.7px;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

/* Contenu */
.blocEtapes__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Titre */
.blocEtapes__title {
    font-family: 'Momo Trust Display', sans-serif;
    font-size: 21px!important;
    font-weight: 400;
    line-height: 23px;
    margin: 0;
    font-style: normal;
    color: var(--color-dark)!important;
    letter-spacing: 0;
}

/* Séparateur ondulé sous le titre */
.blocEtapes__separator {
    width: 124.539px;
    height: 7.654px;
    background-image: url('../../images/line/navy/wave.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    margin-top: 15px;
}

/* Texte blanc par défaut */
.blocEtapes__step.text-white .blocEtapes__title {
    color: #FFFFFF;
}

/* Texte foncé pour fond jaune */
.blocEtapes__step.text-dark .blocEtapes__title {
    color: var(--color-dark, #00283F);
}

/* Description */
.blocEtapes__description {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    .italic-spaced{
            font-weight: 700 !important;
            color: white!important;
    }
}

.blocEtapes .italic-spaced{
    color: var(--color-dark)!important;
}


.blocEtapes__description p {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 10px;
}

.blocEtapes__description ol{
    margin-left: 25px;
    margin-bottom: 15px;
}

.blocEtapes__description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.blocEtapes__description ul li {
    /* margin-bottom: 20px; */
    line-height: 20px;
    font-size: 16px;
}

.blocEtapes__description strong {
    font-weight: 600;
}

/* Texte blanc par défaut */
.blocEtapes__step.text-white .blocEtapes__description {
    color: #FFFFFF;
}

/* Texte foncé pour fond jaune */
.blocEtapes__step.text-dark .blocEtapes__description {
    color: var(--color-dark, #00283F);
}

/* ========================================
   DÉCORATIONS
   ======================================== */

/* Décoration 1 (::before) */
.blocEtapes__step[data-dec1-url]::before {
    content: '';
    position: absolute;
    background-image: var(--dec1-url);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: var(--dec1-width, 225px);
    height: var(--dec1-height, 150px);
    pointer-events: none;
    z-index: -1;
}

/* Décoration 2 (::after) */
.blocEtapes__step[data-dec2-url]::after {
    content: '';
    position: absolute;
    background-image: var(--dec2-url);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: var(--dec2-width, 225px);
    height: var(--dec2-height, 150px);
    pointer-events: none;
}

/* Positionnement horizontal décoration 1 */
.blocEtapes__step[data-dec1-side="left"]::before {
    right: 100%;
    left: auto;
    margin-right: var(--dec1-margin-left, 0);
}

.blocEtapes__step[data-dec1-side="right"]::before {
    left: 100%;
    right: auto;
    margin-left: var(--dec1-margin-right, 0);
}

/* Positionnement vertical décoration 1 */
.blocEtapes__step[data-dec1-vertical="top"]::before {
    top: var(--dec1-offset-top, 0);
    bottom: auto;
}

.blocEtapes__step[data-dec1-vertical="bottom"]::before {
    bottom: var(--dec1-offset-bottom, 0);
    top: auto;
}

/* Positionnement horizontal décoration 2 */
.blocEtapes__step[data-dec2-side="left"]::after {
    right: 100%;
    left: auto;
    margin-right: var(--dec2-margin-left, 0);
}

.blocEtapes__step[data-dec2-side="right"]::after {
    left: 100%;
    right: auto;
    margin-left: var(--dec2-margin-right, 0);
}

/* Positionnement vertical décoration 2 */
.blocEtapes__step[data-dec2-vertical="top"]::after {
    top: var(--dec2-offset-top, 0);
    bottom: auto;
}

.blocEtapes__step[data-dec2-vertical="bottom"]::after {
    bottom: var(--dec2-offset-bottom, 0);
    top: auto;
}

/* ========================================
   BOUTON
   ======================================== */

.blocEtapes__btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .blocEtapes__item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 80px;
    }
    
    .blocEtapes__number {
        width: 60px;
        height: 70px;
        top: -35px;
        left: -30px;
    }
    
    .blocEtapes__number span {
        font-size: 45px;
        line-height: 50px;
    }
    
    .blocEtapes__title {
        font-size: 18px;
        line-height: 20px;
    }
    
    .blocEtapes__description {
        font-size: 14px;
    }
    
    /* Masquer les décorations en responsive */
    .blocEtapes__step::before,
    .blocEtapes__step::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .blocEtapes__item {
        margin-bottom: 80px;
    }
    
    .blocEtapes__step {
        padding: 40px 20px;
    }
    
    .blocEtapes__number {
        width: 50px;
        height: 60px;
        top: -30px;
        left: -25px;
    }
    
    .blocEtapes__number span {
        font-size: 35px;
        line-height: 40px;
    }
}


/*Spécifique visite*/

.blocEtapes__visites{
    .blocEtapes__step[data-dec1-vertical="bottom"]::before{
        transform: rotate(70deg);
    }
}