/* Menu Impulse 2028 */
.page-template-impulse #menu_haut_list .nav-main-item.rejoindre_item {
  display: none !important;
}
.page-template-impulse .block-chevauchement {
  overflow: hidden;
}

.page-template-impulse main {
  padding: 0 !important;
}
.page-template-impulse .banner_page.section {
  margin: 0 !important;
  padding: 2rem 0 !important;
}
.page-template-impulse #site_logo:not(#handle_mobile_nav #site_logo) {
  display: flex;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
}
.item_logo_img {
  padding: 5rem 0 0 0;
}
/* Bloc Impulse 2028 - Piliers */
.block-impulse-piliers {
  padding: 2rem 0 0 0;
}

.block-impulse-piliers .pilier-item {
  height: 270px;
  padding: 50px 0px 30px 0px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.block-impulse-piliers .pilier-item a {
  text-decoration: none;
}

/* Couleurs des overlays selon la position */
.block-impulse-piliers .pilier-item:nth-child(1) .overlay {
  background: #475697; /* Bleu */
}

.block-impulse-piliers .pilier-item:nth-child(2) .overlay {
  background: #2ac6e0; /* Cyan */
}

.block-impulse-piliers .pilier-item:nth-child(3) .overlay {
  background: #a7bb38; /* Vert */
}

.block-impulse-piliers .pilier-item:nth-child(4) .overlay {
  background: #ffb237; /* Orange */
}

/* Overlay de base */
.block-impulse-piliers .pilier-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.8;
  z-index: 1;
}

/* Overlay de hover */
.block-impulse-piliers .pilier-item .hover-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  background: #213658;
  width: 100%;
  height: 100%;
  transition: all 0.5s ease;
  z-index: 2;
}

/* Animation au hover */
.block-impulse-piliers .pilier-item:hover .hover-overlay {
  left: 0;
}

.block-impulse-piliers .pilier-item:hover .hover-info {
  opacity: 1;
  transform: translateY(0);
}

/* Contenu du texte */
.block-impulse-piliers .pilier-item .text-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
  color: white;
}

/* Sur-titre PILIER */
.block-impulse-piliers .pilier-item .type {
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0rem;
  color: white;
}

/* Titre principal */
.block-impulse-piliers .pilier-item .h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: auto;
  color: white;
}

/* Informations au hover */
.block-impulse-piliers .pilier-item .hover-info {
  margin-top: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  transition-delay: 0.1s;
}

.block-impulse-piliers .pilier-item .hover-info p {
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: white;
}

/* Picto en bas */
.block-impulse-piliers .pilier-item .pilier-picto {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 170px;
  height: 170px;
  z-index: 4;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.block-impulse-piliers .pilier-item:hover .pilier-picto {
  opacity: 1;
  transform: scale(1.1);
}

.block-impulse-piliers .pilier-item .pilier-picto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Rend l'image blanche */
}

/* Responsive mobile */

/* Animation d'entrée */
.block-impulse-piliers .pilier-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.block-impulse-piliers .pilier-item:nth-child(1) {
  animation-delay: 0.1s;
}

.block-impulse-piliers .pilier-item:nth-child(2) {
  animation-delay: 0.2s;
}

.block-impulse-piliers .pilier-item:nth-child(3) {
  animation-delay: 0.3s;
}

.block-impulse-piliers .pilier-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Carousel Impulse 2028 */
.block-impulse-carousel {
  background: url(/wp-content/themes/chronos/images/bg-piliers-slider.svg)
    no-repeat left bottom #f7f7f8;
}

.block-impulse-carousel .carousel-text-content .title-deco {
  margin-bottom: 2rem;
}

.block-impulse-carousel .text-container {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

/* Container du carousel */
.piliers-carousel-container {
  position: relative;
  padding: 10rem 1rem;
}

.piliers-carousel {
  display: flex;
}

.piliers-carousel::-webkit-scrollbar {
  display: none;
}
.carousel-text-content {
  padding: 2rem 3rem 2rem 3rem;
}
/* Items du carousel */
.carousel-pilier-item {
  padding: 5rem 3.5rem 3rem 3.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  aspect-ratio: 498 / 631;
}
.carousel-pilier-item .bouton:before {
  content: none;
}
.carousel-pilier-item .bouton {
  margin: auto 0 0;
  align-self: flex-start;
}

.slider-column.col-lg-6 {
  padding: 0 !important;
}
.opacity-03 {
  opacity: 0.3;
}
.slider-column {
  background-color: #0f1c39;
}
/* Couleurs par pilier */
.carousel-pilier-item[data-pilier="1"] {
  background: linear-gradient(135deg, #485fa7 0%, #5a6fb5 100%);
}

.carousel-pilier-item[data-pilier="2"] {
  background: linear-gradient(135deg, #2ac6e0 0%, #3dd4ed 100%);
}

.carousel-pilier-item[data-pilier="3"] {
  background: linear-gradient(135deg, #a7bb38 0%, #b8cc45 100%);
}

.carousel-pilier-item[data-pilier="4"] {
  background: linear-gradient(135deg, #ffb237 0%, #ffc044 100%);
}

/* Picto en haut */
.pilier-picto-top {
  width: 130px;
  height: 130px;
  margin-bottom: 1.5rem;
}
.pilier-avenir {
  font-size: 2.4rem;
  line-height: 2.9rem;
  font-weight: 300;
  text-transform: uppercase;
}
.pilier-avenir span {
  font-size: 3.2rem;
  line-height: 3.7rem;
}
.stay-tuned {
  font-size: 2.4rem;
  line-height: 2.9rem;
  font-weight: 700;
  margin: 4rem 0;
}
.stay-tuned::before {
  background: url(/wp-content/themes/chronos/images/deco-titre-2.svg) no-repeat
    center center !important;
  background-size: contain !important;
}
.pilier-picto-top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.carousel-pilier-item .pilier-type {
  font-size: 24px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.carousel-pilier-item .pilier-titre {
  font-size: 32px;
  font-weight: 700;
  line-height: 3.7rem;
  margin-bottom: 6rem;
}

.carousel-pilier-item .pilier-texte {
  font-size: 18px;
  line-height: 2.3rem;
  margin-bottom: 1rem;
}
.carousel-navigation {
  transform: translate(10%, 150%);
}
.carousel-navigation button {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 2rem 0 0;
}

/* Section engagement (2 colonnes) */
.block-section-engagement .engagement-image {
  padding: 0;
}
.block-section-engagement .engagement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.block-section-engagement {
  background-color: #e7b631;
}
.block-section-engagement .engagement-content {
  padding: 30px 6%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: url("/wp-content/themes/chronos/images/bg-impulse-engagement.svg")
    transparent no-repeat left bottom;
  background-size: contain;
}
.block-section-engagement .engagement-title {
  font-size: 2.5rem;
  line-height: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}
.block-section-engagement .engagement-paragraph {
  font-size: 1.6rem;
  line-height: 2.1rem;
  font-weight: 300;
}

/* Slider des posts impulse */

.block-section-actu {
  padding: 3rem 2rem 10rem 2rem;
}
.impulse-posts-slider-container {
  margin-top: 40px;
}

.impulse-post-item {
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.impulse-post-item:hover {
  transform: translateY(-5px);
}

.impulse-post-item .post-thumbnail {
  aspect-ratio: 508/300;
  overflow: hidden;
}

.impulse-post-item .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.impulse-post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.impulse-post-item .post-meta {
  padding: 10px 0px;
}

.impulse-post-item .post-date {
  color: #0f1c39;
  font-size: 1.8rem;
  line-height: 2.2rem;
  font-weight: 300;
}

.impulse-post-item .post-title {
  font-size: 2.4rem;
  line-height: 2.9rem;
  font-weight: 700;
  color: #0f1c39;
  margin: 0 0 20px 0;
}

.impulse-post-item .bouton {
  padding: 10px 20px;
  font-size: 14px;
  background-color: #0f1c39;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Modal pour les posts impulse */
.impulse-post-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.impulse-post-modal-content {
  background: #fff;
  width: 80%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.impulse-post-item .voir-detail {
  background-color: #0f1c39;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 2.5rem;
  font-size: 1.4rem;
  line-height: 1.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  transition-duration: 0.5s;
}
.impulse-post-item .voir-detail:hover {
  background-color: #485fa7;
  transition-duration: 0.5s;
  cursor: pointer;
}
.impulse-post-item .voir-detail img {
  width: 12px;
  height: auto;
  margin: 0 1rem 0 0;
}
.impulse-posts-slider-container .owl-nav {
  transform: translate(0px, 50px);
}
.impulse-post-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.impulse-post-modal-close:hover {
  color: #333;
}

.impulse-post-modal-body {
  padding: 5% 8%;
}

.impulse-post-modal-body h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  line-height: 2.3rem;
  font-weight: 700;
  color: #0f1c39;
  position: relative;
}
.impulse-post-modal-body h3::before {
  background: url(/wp-content/themes/chronos/images/deco-popin.svg) no-repeat
    center center !important;
  background-size: contain !important;
  content: "";
  position: absolute;
  width: 100px;
  height: 50px;
  top: 0;
  left: -30px;
}

.impulse-post-modal-body #impulse-modal-content {
  color: #666;
  line-height: 1.6;
}

.impulse-post-modal-body #impulse-modal-content p {
  margin-bottom: 15px;
}

.block-section-bandeau {
  background: linear-gradient(135deg, #0f1c39 0%, #475697 50%, #7ac0d9 100%);
}
.block-section-bandeau {
  padding: 5rem 0;
}
.block-section-bandeau h2 {
  font-size: 4rem;
  line-height: 4.5rem;
  font-weight: 700;
  margin: 0;
}
.block-section-bandeau .subtitle {
  font-size: 4rem;
  line-height: 4.5rem;
  font-weight: 200;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.block-section-contact .contact_title {
  width: fit-content;
  margin: 7rem auto;
  position: relative;
}
.block-section-contact .contact_title::before {
  background: url(/wp-content/themes/chronos/images/deco-titre-1.svg) no-repeat
    center center !important;
  background-size: cover !important;
}

/* Modal pour les piliers - même style que les posts */
.pilier-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pilier-modal-content {
  background: #fff;
  width: 70%;
  margin: 5% auto 0 auto;
  max-height: 93vh;
  overflow-y: auto;
  position: relative;
}

.pilier-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.pilier-modal-close:hover {
  color: #333;
}

.pilier-modal-body {
  padding: 5% 8%;
}

.pilier-modal-body h3 {
  margin-bottom: 3rem;
  font-size: 3.2rem;
  line-height: 3.7rem;
  font-weight: 700;
  color: #0f1c39;
  position: relative;
  padding: 0 0 0 5rem;
}

.pilier-modal-body #modal-content {
  color: #666;
  line-height: 1.6;
}

.pilier-modal-body #modal-content p {
  margin-bottom: 15px;
}

.pilier-modal-body .modal-picto-container {
  text-align: center;
  margin-bottom: 2rem;
}

.pilier-modal-body .modal-picto-container img {
  max-width: 80px;
  height: auto;
}

.modal-picto-gallery {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modal-picto-gallery-item {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 2rem;
}
.modal-picto-gallery-item figure {
  height: auto;
  width: 70px;
  margin: 0 3rem 0 0;
}
.modal-picto-gallery-item figure img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.modal-picto-gallery-item-title {
  font-size: 1.6rem;
  line-height: 2.1rem;
  font-weight: 700;
  width: calc(100% - 70px);
}
.modal-iframe-container {
  margin: 2rem 0 2rem 0;
}
.modal-iframe-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}
.modal-iframe-intro {
  padding: 7rem 0 0 0rem;
  position: relative;
}
.modal-iframe-intro .num_pilier {
  font-size: 3.2rem;
  line-height: 3.7rem;
  font-weight: 300;
  padding: 0 0 0 5rem;
}

.modal-iframe-intro::before {
  mask-image: url(/wp-content/themes/chronos/images/deco-popin.svg);
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  top: -20px;
  left: -10px;
  mask-size: 90px;
}
#pilier-modal-1 .modal-iframe-intro::before {
  background: #475697;
}
#pilier-modal-2 .modal-iframe-intro::before {
  background: #7ac0d9;
}
#pilier-modal-3 .modal-iframe-intro::before {
  background: #bdc722;
}
#pilier-modal-4 .modal-iframe-intro::before {
  background: #e7b631;
}
/* Responsive heights */
@media (max-width: 767px) {
  .block-impulse-piliers .pilier-item {
    height: 250px;
  }

  .block-impulse-piliers .pilier-item .h4 {
    font-size: 20px;
  }

  .block-impulse-piliers .pilier-item .pilier-picto {
    width: 80px;
    height: 80px;
    bottom: 15px;
    right: 15px;
  }
  .impulse-posts-slider-container {
    margin-top: 30px;
  }

  .impulse-post-item .post-title {
    font-size: 15px;
    padding: 8px 15px;
  }

  .impulse-post-item .bouton {
    margin: 10px 15px 15px;
    padding: 8px 15px;
    font-size: 13px;
  }
}
@media (max-width: 991px) {
  .impulse-post-item .post-title {
    font-size: 16px;
  }
  .impulse-post-modal-content {
    width: 95%;
  }
  .impulse-post-modal-body {
    padding: 30px 20px 20px;
  }
  .block-section-engagement {
    background-position: center top;
    padding: 0;
  }
}
@media (max-width: 1024px) {
  .page-template-impulse #main_navigation #main_navigation_container {
    flex-direction: column-reverse;
  }
  .item_logo a {
    display: flex;
    justify-content: space-between;
    text-decoration: none !important;
    color: #fff !important;
    width: 100% !important;
    padding: 1rem 3rem !important;
    font: 500 1.6rem / 2.1rem "WorkSans", sans-serif !important;
    text-transform: uppercase !important;
  }
  .item_logo a::after {
    content: none !important;
  }
  .page-template-impulse #site_logo {
    width: 100%;
  }
  .item_logo {
    width: 100%;
  }
  .item_logo_img {
    display: none;
  }
}
@media (min-width: 768px) {
  .block-section-bandeau {
    padding: 10rem 0;
  }

  .page-template-impulse .banner_page.section {
    margin: 0 !important;
    padding: 4rem 0 !important;
  }
  .piliers-carousel-container {
    position: relative;
    padding: 10rem 2rem;
  }
  .carousel-text-content {
    padding: 5rem 3rem 5rem 3rem;
  }
  .block-impulse-piliers .pilier-item {
    padding: 50px 20px 30px 20px;
  }

  .block-impulse-piliers .pilier-item {
    height: 320px;
  }
  .carousel-pilier-item {
    aspect-ratio: 390 / 631;
  }
}
@media (min-width: 1024px) {
  .block-contact .row div + div {
    margin: 5rem 8rem;
  }
  .impulse-post-modal-body h3 {
    margin-bottom: 5rem;
    font-size: 3.2rem;
    line-height: 3.7rem;
  }
  .impulse-post-modal-body h3::before {
    left: -70px;
  }

  .modal-iframe-intro::before {
    width: 120px;
    height: 130px;
    top: -40px;
    mask-size: 120px;
  }
  .modal-picto-gallery-item-title {
    font-size: 2.4rem;
    line-height: 2.9rem;
    font-weight: 700;
    width: 100%;
  }
  .modal-iframe-intro {
    padding: 7rem 0 0 15rem;
    position: relative;
  }
  .modal-iframe-container {
    margin: 7rem 0 4rem 0;
  }
  .modal-iframe-intro .num_pilier {
    padding: 0 0 0 0;
  }
  .pilier-modal-body h3 {
    padding: 0 0 0 0;
    margin-bottom: 5rem;
  }
  .modal-picto-gallery-item {
    width: calc(33.33% - 5rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }
  .modal-picto-gallery-item figure {
    height: 150px;
    width: auto;
    margin: 0 0 3rem 0;
  }
  .modal-picto-gallery {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .carousel-text-content {
    padding: 2rem 3rem 2rem 30%;
  }
  .page-template-impulse #site_logo:not(#handle_mobile_nav #site_logo) {
    margin: 0 0 3rem 0 !important;
  }
  .block-impulse-piliers .pilier-item.even {
    margin-top: 100px;
  }
  .block-impulse-piliers .pilier-item .pilier-picto {
    width: 100px;
    height: 100px;
  }
  .carousel-pilier-item {
    aspect-ratio: 508 / 631;
  }
  .stay-tuned {
    font-size: 1.9rem;
    line-height: 2.4rem;
  }
}
@media (min-width: 1280px) {
  .page-template-impulse .banner_page.section {
    margin: 0 !important;
    padding: 6rem 0 !important;
  }
  .piliers-carousel-container {
    position: relative;
    padding: 10rem 0;
  }
  .block-impulse-piliers .pilier-item .h4 {
    font-size: 28px;
  }
  .block-impulse-piliers .pilier-item .pilier-picto {
    width: 170px;
    height: 170px;
  }
  .block-impulse-piliers .pilier-item {
    height: 400px;
  }
  .carousel-pilier-item {
    aspect-ratio: 320 / 631;
  }
  .block-section-engagement .engagement-title {
    font-size: 3.8rem;
    line-height: 4.3rem;
  }
}
@media (min-width: 1440px) {
  .block-section-actu {
    padding: 10rem 0rem 10rem calc((100vw - 1280px) / 2 + 5rem);
  }
  .block-impulse-piliers .pilier-item .pilier-picto {
    width: 170px;
    height: 170px;
  }
  .carousel-pilier-item {
    aspect-ratio: 360 / 631;
  }
}
@media (max-width: 767px) {
  .pilier-modal-content {
    width: 90%;
  }
  .pilier-modal-body {
    padding: 30px 20px 20px;
  }
}
@media (min-width: 1680px) {
  .page-template-impulse .banner_page.section {
    margin: 0 !important;
    padding: 9rem 0 !important;
  }
  .stay-tuned {
    font-size: 1.9rem;
    line-height: 2.4rem;
  }
  .carousel-pilier-item {
    aspect-ratio: 498 / 631;
  }
}
@media (min-width: 2500px) {
  .carousel-pilier-item {
    aspect-ratio: 608 / 631;
  }
}
.wpcf7-response-output{
  color: #fff !important;
}