/**
 * @file
 * Section styles
 */


.section p a:not(.cta),
.section li a:not(.cta),
.grid-row p a:not(.cta),
.grid-row li a:not(.cta) {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.section p a:not(.cta):hover,
.section li a:not(.cta):hover,
.grid-row p a:not(.cta):hover,
.grid-row li a:not(.cta):hover {
  text-decoration: underline;
  text-underline-offset: 1px;
  text-decoration-thickness: 1px;
}

.section.background-color--orange p a:not(.cta),
.section.background-color--orange li a:not(.cta),
.grid-row.background-color--orange p a:not(.cta),
.grid-row.background-color--orange li a:not(.cta) {
  color: var(--color-white);
  font-weight: 500;
}

.section.background-color--blue_dark p a:not(.cta),
.section.background-color--blue_dark li a:not(.cta),
.grid-row.background-color--blue_dark p a:not(.cta),
.grid-row.background-color--blue_dark li a:not(.cta) {
  color: var(--color-white);
  font-weight: 500;
}

.section.background-color--green p a:not(.cta),
.section.background-color--green li a:not(.cta),
.grid-row.background-color--green p a:not(.cta),
.grid-row.background-color--green li a:not(.cta) {
  color: var(--color-white);
}

.section.background-color--green_light p a:not(.cta),
.section.background-color--green_light li a:not(.cta),
.grid-row.background-color--green_light p a:not(.cta),
.grid-row.background-color--green_light li a:not(.cta) {
  color: var(--color-primary);
}



.section a:hover::after {
  width: 100%;
}



.section a:hover::after {
  width: 100%;
}


.section.background-color--orange {
    background-color: var(--color-tertiary);
}

.section.background-color--blue_dark {
    background-color: var(--color-secondary);
}

.section.background-color--green {
    background-color: var(--color-primary);
}

.section.background-color--green_light {
    background-color: var(--color-primary--xclear);
}

.section.background-head-decoration--green_light_wave::before,
.section.background-head-decoration--green_light_wave--mobile::before {
    display: block;
    content: '';
    background-image: url('../../images/background/green_light_wave.svg');
    background-position: center;
    background-repeat: no-repeat;
    height: 90px;
    width: 100%;
    top: -90px;
    position: absolute;
    z-index: 1;
}

.section.background-head-decoration--green_light_wave--mobile::before {
    top: 0px;
    background-color: var(--color-white);
    height: 70px;
}

.section.background-head-decoration--green_light_wave--mobile {
    background-color: var(--color-primary--xclear);
}

.section.background-head-decoration--green_light_wave--mobile
+ .section.background-head-decoration--green_light_wave:before {
    display: none;
}

.section {
    position: relative;
}

.decoration {
    display: none;
}

/* ACCORDION SECTION */
.accordion__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion__content {
    display: none;
}

.accordion__title {
    border-bottom: none;
    border-top: 1px solid var(--color-tertiary--xclear);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
}

.section--accordion:last-of-type .accordion__title {
    border-bottom: 1px solid var(--color-tertiary--xclear);
}

.accordion__title:hover {
    cursor: pointer;
}

.accordion__title::after {
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../../images/icons/icon-accordion--up.svg');
    width: 100%;
    max-width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
    transform: rotate(180deg);
}

.accordion__title.active::after {
    transform: rotate(0deg);
}

.accordion__title h3 {
  color: var(--color-tertiary--dark);
  font-size: 16px;
  font-weight: 700;
  /* text-transform: uppercase; */
  margin: 0;
}

.accordion__title p {
  margin: 0;
}

@media all and (min-width: 700px) {
    .section.background-head-decoration--green_light_wave--mobile::before {
        display: none;
    }

    .section.background-head-decoration--green_light_wave--mobile
    + .section.background-head-decoration--green_light_wave:before {
        display: block;
    }

    .section.background-head-decoration--green_light_wave--mobile {
        background-color: inherit;
    }

    .section.background-head-decoration--green_light_wave::before {
        display: block;
    }

    .accordion__title {
      padding: 48px 24px;
    }
    .accordion__title h3 {
      font-size: 24px;
      font-weight: 800;
    }
}

@media all and (min-width: 1000px) {
    .decoration {
        display: block;
    }

    .background-decoration--1_lines .decoration,
    .background-decoration--2_lines_1 .decoration,
    .background-decoration--2_lines_2 .decoration {
        position: relative;
    }

    .background-decoration--1_line .decoration::before  {
        display: block;
        content: '';
        background-image: url('../../images/background/1_line.svg');
        background-position: center;
        background-repeat: no-repeat;
        height: 733px;
        width: 100%;
        position: absolute;
    }

    .background-decoration--2_lines_1 .decoration::before  {
        display: block;
        content: '';
        background-image: url('../../images/background/2_lines_1.svg');
        background-position: center;
        background-repeat: no-repeat;
        height: 733px;
        width: 100%;
        position: absolute;
        top: -240px;
    }

    .background-decoration--2_lines_2 .decoration::before  {
        display: block;
        content: '';
        background-image: url('../../images/background/2_lines_2.svg');
        background-position: center;
        background-repeat: no-repeat;
        height: 733px;
        width: 100%;
        position: absolute;
    }

  .background-decoration--actu_slider {
    position: relative;
  }

  .background-decoration--actu_slider::before {
    display: block;
    content: '';
    background-image: url(../../images/background/background-slider-actu.svg);
    background-position: center;
    background-repeat: no-repeat;
    height: 1331px;
    width: 100%;
    position: absolute;
  }

  .background-decoration--actu_slider:has(.actualite-slider-first):not(:has(.actualite-slider-default))::before {
    bottom: 27px;
  }

  .background-decoration--actu_slider:has(.actualite-slider-first):has(.actualite-slider-default)::before {
    bottom: 150px;
  }
  .background-decoration--actu_slider:not(:has(.swiper-slide))::before,
  .background-decoration--actu_slider:not(:has(.actualite-teaser))::before {
    display: none;
  }
  
  .back-office .background-decoration--actu_slider::before {
    height: 1000px;
  }
}

