/* Style global des onglets */
#page-container .section-onglets {
    padding: 40px 0;
}

#page-container .section-onglets .onglets {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    margin: 20px auto 30px;
    max-width: 60%;
}

@media(max-width: 1366px){
    #page-container .section-onglets .onglets{
        max-width: 80%;
    }
}
@media(max-width: 980px){
    #page-container .section-onglets h2{
        text-align: center !important;
    }
}

/* Ligne horizontale d'étape */
.onglets::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 2%;
    right: 2%;
    height: 2px;
    background-color: #161616;
    z-index: 1;
}

.onglets .et_pb_column {
    display: flex;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.onglets .et_pb_code:not(.et_pb_code.fleche) {
    position: relative;
    padding: 27px;
    flex: 0 1 auto;
    text-align: center;
    margin-bottom: 0 !important;
    z-index: 2;
    flex: 0 1 auto;
    width: 250px;
    min-width: max-content;
}
.onglets .et_pb_code:hover {
    cursor: pointer;
}

.onglets .et_pb_code .et_pb_code_inner:not(.et_pb_code.fleche .et_pb_code_inner) {
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media(max-width: 980px){
    .onglets .et_pb_code:not(.et_pb_code.fleche, .et_pb_code.active) .et_pb_code_inner span{
        display: none !important;
    }

    .onglets .et_pb_code:not(.et_pb_code.fleche) {
        position: initial;
        padding: 27px 0;
        flex: 0 1 auto;
        text-align: center;
        margin-bottom: 0 !important;
        z-index: 2;
        min-width: 65px;
    }

    .onglets::before {
        left: -2%;
        right: -2%;
    }

    .onglets .et_pb_column{
        position: relative;
    }

    .onglets .et_pb_code .et_pb_code_inner,
    .onglets .et_pb_code:not(.active) .et_pb_code_inner{
        position: initial;
    }

    .onglets .et_pb_code .et_pb_code_inner > span:first-child{
        position: absolute;
        top: 2rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .onglets .et_pb_code.active span:last-child{
        position: absolute;
        top: 4rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .onglets .et_pb_code.active span.retour-ligne{
        top: 2rem;
    }

    .onglets .et_pb_code_inner:not(.et_pb_code.fleche .et_pb_code_inner)::before{
        position: relative !important;
        left: initial !important;
        transform: initial !important;
    }
}

/* Points d'étapes */
.onglets .et_pb_code_inner:not(.et_pb_code.fleche .et_pb_code_inner)::before {
    content: "";
    position: absolute;
    top: -39px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #EFEEEB;
    border: 2px solid #161616;
    z-index: 2;
}

/* Numéro et texte d'étape */
.onglets .et_pb_code .et_pb_code_inner > span:first-child {
    font-weight: bold;
    font-size: 1.95rem;
    color: #161616;
    display: block;
    margin-bottom: 5px;
}

.onglets .et_pb_code span:last-child {
    font-size: 1.3rem;
    color: #161616;
    width: max-content;
    display: block;
}
.onglets .et_pb_code.active span:last-child,
.onglets .et_pb_code.hover span:last-child {
    font-weight: 600;
}

/* Onglet actif : numéro et bulle en jaune */
.onglets .et_pb_code.active .et_pb_code_inner:not(.et_pb_code.fleche .et_pb_code_inner)::before,
.onglets .et_pb_code.hover .et_pb_code_inner:not(.et_pb_code.fleche .et_pb_code_inner)::before {
    background-color: #FCC400;
    border-color: #161616;
}


/*section-demi*/
.et-db #page-container #et-boc .et-l .section-onglets .et_pb_row.section-demi {
    padding-top: 20px;
    align-items: flex-start;
}


.section-onglets .section-demi .et_pb_column {
    width: 50%;
}

.section-onglets .section-demi .et_pb_image_wrap picture {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.et-db #page-container #et-boc .et-l .section-onglets .section-demi .et_pb_image_wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.section-onglets .section-demi .et_pb_text_inner {
    font-size: 1rem;
}

.et-db #page-container #et-boc .et-l .section-onglets .section-demi .et_pb_text_inner h3 {
    font-weight: 600 !important;
}

@media(max-width: 980px){
    .et-db #page-container #et-boc .et-l .section-onglets .section-demi .et_pb_image_wrap img {
        max-height: 600px;
    }
}

/* Titre d'étape */
.section-onglets .etape {
    text-transform: uppercase;
    font-weight: 400;
    background-color: #FCC400;
    display: inline-block;
    font-size: 16px;
    padding: 0.5em 1.3em 0.4em 1.4em !important;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    line-height: 1;
}

/* Fleches */
.section-onglets .fleche {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0 !important;
}
.section-onglets .fleche:has(.arrow-left) {
  left: -50px;
}
.section-onglets .fleche:has(.arrow-right) {
  right: -50px;
}

@media(max-width: 980px){
  .section-onglets .fleche {
    top: inherit;
    transform: inherit;
    bottom: -20px;
  }
  .section-onglets .fleche:has(.arrow-left) {
    left: 30%;
  }
  .section-onglets .fleche:has(.arrow-right) {
    right: 30%;
  }
}
@media(max-width: 768px){
  .section-onglets .fleche:has(.arrow-left) {
    left: 25%;
  }
  .section-onglets .fleche:has(.arrow-right) {
    right: 25%;
  }
}
@media(max-width: 600px){
  .section-onglets .fleche:has(.arrow-left) {
    left: 17%;
  }
  .section-onglets .fleche:has(.arrow-right) {
    right: 17%;
  }
}
@media(max-width: 500px){
  .section-onglets .fleche:has(.arrow-left) {
    left: 12%;
  }
  .section-onglets .fleche:has(.arrow-right) {
    right: 12%;
  }
}
@media(max-width: 425px){
  .section-onglets .fleche:has(.arrow-left) {
    left: 6%;
  }
  .section-onglets .fleche:has(.arrow-right) {
    right: 6%;
  }
}
@media(max-width: 400px){
  .section-onglets .fleche:has(.arrow-left) {
    left: 0;
  }
  .section-onglets .fleche:has(.arrow-right) {
    right: 0;
  }
}

.section-onglets .fleche .et_pb_code_inner {
  height: 100%;
}
.section-onglets .fleche .et_pb_code_inner .arrow {
  height: 100%;
  display: flex;
  align-items: center
}

.section-onglets .fleche .arrow::before {
    font-family: 'ETmodules';
    font-weight: 800;
    font-size: 1.3rem;
    color: #FCC400;
}

.section-onglets .fleche .arrow.arrow-left::before {
    content: '\23';
}
.section-onglets .fleche .arrow.arrow-right::before {
    content: '\24';
}
