/* masthead + header
---------------------------------- */
header #masthead {
  position: relative; /* Important pour le positionnement absolu des enfants */
  overflow: hidden; /* Empêche les balles de dépasser si nécessaire */
}
.circle { /* Utilisation de la nouvelle classe "circle" */
  position: absolute;
  border-radius: 100%;
  opacity: 0.7;
}
.site-branding {
    padding-top: 150px;
    text-align: center;
}
.site-branding h1 {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 5.3em;
    font-weight: 700;
    line-height: 1;
    color: #06373A;
}
.site-branding p {
    padding-top: 20px;
    padding-bottom: 25px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4
}
.site-branding a{
    background-color: #06b13d;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid transparent!important;
    border-radius: 25px;
    transition: all .3s ease-in-out;
}
.site-branding a:hover {
    text-decoration: none;
    background-color: transparent!important;
    color:#06b13d!important;
    border: 1px solid #06b13d!important;
}
.site-branding .wp-block-button:nth-child(1){
    margin-right: 5px;
}
.site-branding .wp-block-button:nth-child(2) a{
    background-color: #79c80e;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid transparent!important;
    border-radius: 25px;
    transition: all .3s ease-in-out 
}
.site-branding .wp-block-button:nth-child(2) a:hover{
    text-decoration: none;
    background-color: transparent!important;
    color:#79c80e!important;
    border: 1px solid #79c80e!important;
}

@media (max-width: 767px) {
    .site-branding h1 {
        font-size: 2.3em;
    }
}



/* slider
---------------------------------- */
.scrolling-section {
  padding-top: 50px;
  padding-bottom: 100px;
  position: relative; /* Ajout de position relative pour positionner les contrôles par rapport à la section */
  overflow: hidden;
}

.scrolling-section .slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s ease-in-out;
  font-size: 20px;
  border-radius: 5px;
}

.scrolling-section .slider-control:hover {
  opacity: 1;
}

.scrolling-section .prev-slide {
  left: 10px;
  right: auto;
}

.scrolling-section .next-slide {
  right: 10px;
}

.scrolling-section .slider-container {
    position: relative;
    overflow: hidden;
    margin: 20px auto;
    padding-bottom: 25px;
    padding-left: 15px;
    padding-right: 15px;
}

.scrolling-section .slider-container .slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.scrolling-section .slider-container .slider-wrapper .slide {
    flex: 0 0 auto;
    margin-right: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.scrolling-section .slide h3.entry-title {
    font-family: "Bricolage Grotesque", sans-serif;
    margin-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    line-height: 1.4;
}
.scrolling-section .slide h3.entry-title a {
    color: #06373A;
}
.scrolling-section .slide p {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(55,65,81,0.75);
}

.scrolling-section .slider-container .slider-wrapper .slide:last-child {
  margin-right: 0 !important;
}

.scrolling-section .slider-container .slider-wrapper .slide img {
    display: block;
    max-width: 100%;
    height: auto;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    
}

.scrolling-section.few-slides .slider-container {
  width: auto !important;
}

.scrolling-section.few-slides .slider-container .slider-wrapper {
  transform: translateX(0) !important;
  justify-content: center;
}

.scrolling-section.few-slides .slider-control {
  display: none;
}

/* Media Queries */
@media (max-width: 767px) {
  .scrolling-section .slider-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .scrolling-section .slider-container .slider-wrapper .slide {
    width: 100%;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .scrolling-section .prev-slide {
    left: 10px;
  }

  .scrolling-section .next-slide {
    right: 10px;
  }
}

@media (min-width: 768px) {
  .scrolling-section .slider-container {
    padding-left: 15%; /* Utilisation des pourcentages pour le centrage */
    padding-right: 15%; /* Utilisation des pourcentages pour le centrage */
  }

  .scrolling-section .prev-slide {
    left: 15px; /* Ajuster la position par rapport au padding */
  }

  .scrolling-section .next-slide {
    right: 15px; /* Ajuster la position par rapport au padding */
  }

  .scrolling-section .slider-container .slider-wrapper .slide {
    width: calc(100% / 3); /* Assurer l'affichage de 3 slides */
  }
}




/* lead section
---------------------------------- */
.lead-section {
    padding-bottom: 75px;
}
.lead-section h2{
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
    color: #06373A;
}
.lead-section p {
    padding-top: 20px;
    padding-bottom: 25px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4
}
.lead-section img {
    margin-bottom: 50px;
    border-radius: 6px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.lead-section a{
    background-color: #06b13d;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid transparent!important;
    border-radius: 25px;
    transition: all .3s ease-in-out;
}
.lead-section  a:hover {
    text-decoration: none;
    background-color: transparent!important;
    color:#06b13d!important;
    border: 1px solid #06b13d!important;
}




/* faq section
---------------------------------- */
.faq-section {
    padding-top: 20px;
    padding-bottom: 75px;
}
.faq-section h2{
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 3em;
    font-weight: 700;
    line-height: 1;
    color: #06373A;
}
.faq-section p {
    padding-top: 20px;
    padding-bottom: 25px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4
}
.faq-section .wp-block-button {
    margin-top: 25px;
}
.faq-section a{
    background-color: #06b13d;
    padding: 8px 12px;
    color: #fff;
    border: 1px solid transparent!important;
    border-radius: 25px;
    transition: all .3s ease-in-out;
}
.faq-section a:hover {
    text-decoration: none;
    background-color: transparent!important;
    color:#06b13d!important;
    border: 1px solid #06b13d!important;
}

.wp-block-details {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden; /* Important pour l'animation de hauteur */
    transition: border-color 0.3s ease;
}

.wp-block-details:hover {
    border-color: #ccc;
}

.wp-block-details > summary {
    list-style: none;
    padding: 15px;
    background-color: #f9f9f9;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.wp-block-details > summary::-webkit-details-marker {
    display: none;
}

.wp-block-details > summary::before {
    content: '\f1e1'; /* north_east */
    font-family: 'Material Icons';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    font-weight: normal;
    color: #4CAF50;
    transition: transform 0.3s ease;
}

.wp-block-details[open] > summary::before {
    transform: translateY(-50%) rotate(90deg);
    color: #4CAF50;
}

.wp-block-details > p {
    padding: 0 15px; /* Retrait du padding vertical initial */
    border-top: 1px solid #eee;
    background-color: #fff;
    color: #333;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* Transition combinée pour la fermeture */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, border-top 0.3s ease-out, opacity 0.3s ease-out 0s;
}

.wp-block-details[open] > p {
    max-height: 500px; /* Ajustez cette valeur */
    padding: 15px;
    opacity: 1;
    /* Transition combinée pour l'ouverture (avec un léger délai pour l'opacité) */
    transition: max-height 0.3s ease-in, padding 0.3s ease-in, border-top 0.3s ease-in, opacity 0.2s ease-in 0.1s;
}

/* Séparation entre les questions */
.wp-block-details + .wp-block-details {
    border-top: 1px solid #ddd;
    margin-top: 15px;
    padding-top: 15px;
}

.faq-section > .container > .row > div:nth-child(3) .wp-block-details {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.wp-block-details > summary:focus {
    outline: none;
    /* box-shadow: 0 0 5px #66bb6a; */
}