/*!**********************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./src/blocks/cards-modal/style.scss ***!
  \**********************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
body.loaded .modal-content, body.loaded .modal-overlay {
  display: block; /* Affiche les modals */
  visibility: visible; /* Assure que les modals sont visibles */
}

.media-text {
  display: flex;
  align-items: flex-start;
}

.media-text__media {
  flex: 1;
  margin-right: 20px;
}

.media-text__content {
  flex: 5;
}

.ituCard .wp-block-brblocks-cards-modal {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 1.5rem rgba(169, 202, 216, 0.078);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.wp-block-brblocks-cards-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère */
  padding: 32px 24px 24px !important;
  color: itu-text-color;
  text-align: center !important;
  height: calc(100% - 3rem);
  border-radius: 4px;
  overflow: visible !important;
  width: 100%;
  margin-bottom: 0px;
  max-height: -moz-fit-content !important;
  max-height: fit-content !important;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  transform-origin: center center;
  cursor: pointer !important;
  justify-content: flex-start !important;
  min-height: 230px !important;
}

body.loaded .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

/* Animation */
/* Désactiver l'animation au survol lorsque le modal est ouvert */
body.no-hover .anim:hover {
  transform: none;
  box-shadow: none;
}

.wp-block-brblocks-cards-modal.anim {
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
  transform-origin: center center;
}

.wp-block-brblocks-cards-modal.anim:hover {
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.wp-block-brblocks-cards-modal.anim:active {
  transform: scale(0.97);
}

#caption, .modal-content {
  /* -webkit-animation-duration:.6s; */
  animation-duration: 0s !important;
  /* -webkit-animation-name:zoom; */
  animation-name: zoom;
}

/* Désactiver le hover sur la carte lorsque le modal est ouvert */
.no-hover .wp-block-brblocks-cards-modal:hover {
  transform: none;
  background-color: white;
}

.wp-block-brblocks-cards-modal .card-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  overflow-y: auto;
}

.wp-block-brblocks-cards-modal img {
  max-width: 50%;
  width: 80px !important;
  margin-bottom: 16px !important;
}

.wp-block-brblocks-cards-modal h2 {
  margin-top: 0px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1.25rem;
  color: #2f2f2f;
}

.wp-block-brblocks-cards-modal p {
  margin: 0 0 0.5rem 0;
  margin-bottom: 8px !important;
  font-weight: normal !important;
}

/* début du style des modal */
.modal-content, .modal-overlay {
  display: none; /* Cache les modals par défaut */
  visibility: hidden; /* Assure que les modals sont invisibles */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100001 !important; /* sticky header footer = 9999 */
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* Assure que le modal est centré et réduit initialement */
  background-color: white;
  padding: 0px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100002 !important;
  opacity: 1;
  width: 80%;
  max-width: 800px;
  min-width: 400px;
  border-radius: 10px;
  max-height: 90vh;
  overflow: hidden;
  margin: 20px;
  transition: transform 0.3s ease-in-out;
}

body.loaded .modal-content {
  transform: translate(-50%, -50%) scale(1); /* Agrandit le modal et le garde centré */
}

.modal-content {
  transform: scale(0);
  transition: transform 0.3s ease-in-out;
}

.scrollable-content {
  max-height: calc(60vh - 40px);
  overflow-y: auto;
  padding: 20px;
}

.modal-content p {
  padding-left: 10px;
  padding-right: 10px;
  text-align: left !important;
}

.modal-content p.card-description {
  padding-left: 10px !important;
  padding-right: 10px !important;
  white-space: nowrap !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important; /* Cache le texte qui dépasse */
  width: 100% !important; /* Assure que l'élément prend toute la largeur disponible */
  box-sizing: border-box !important; /* Inclut le padding et la bordure dans la largeur totale */
}

ul li {
  text-align: left !important;
}

.modal-content .card-container {
  max-height: calc(60vh - 40px);
  overflow-y: auto;
}

/* Barre de Scroll */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #e5f5fb; /* Couleur du curseur */
  border-radius: 10px;
  height: 20px; /* Hauteur curseur */
  width: 10px; /* Largeur curseur */
}

.modal-header {
  display: flex;
  align-items: baseline;
  background-color: rgb(229, 245, 251);
  padding-left: 10px;
  padding-right: 10px;
  text-align: left;
  position: sticky;
  top: 0px;
  border-bottom: 2px solid #009dd9;
  z-index: 1;
  justify-content: space-between;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.modal-header h2 {
  margin-top: 0px;
  margin-bottom: 0px;
  margin-right: 20px;
  white-space: nowrap;
}

.modal-header .card-description {
  flex: 1;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header .modal-close {
  font-size: 24px;
  cursor: pointer;
  margin-left: 20px;
}

.modal-close {
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

/* Désactiver le défilement */
.no-scroll {
  overflow: hidden;
}

.wp-block-media-text.is-image-fill-element > .wp-block-media-text__media img {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  position: relative !important;
  width: 100%;
}

.round-image {
  width: 80px;
  border-radius: 40px;
  border: 2px solid #009dd9;
}

.horizontal-layout {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.layout-horizontal.ituCard {
  min-height: 85px !important;
  max-height: 120px !important;
  align-items: flex-start;
  padding-top: 10px !important;
  padding-bottom: 0px !important;
  box-shadow: none !important;
  background: none !important;
}

.horizontal-layout img {
  width: 60px !important;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  margin-top: 2px;
  margin-top: 0px;
  margin-left: -10px;
}

.horizontal-layout .text-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.horizontal-layout .text-content h2,
.horizontal-layout .text-content p {
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: 1.4;
  font-size: 16px !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .modal-content {
    height: 90% !important;
    width: 80% !important;
    margin: 0px !important;
    padding: 0px !important;
  }
  .modal-close {
    font-size: 24px;
  }
  .figure .wp-block-media-text__media {
    display: none !important;
  }
  .scrollable-content {
    max-height: 90% !important;
    overflow-y: auto;
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .modal-content {
    height: 70% !important;
    max-height: 90vh !important;
    width: 80% !important;
    margin: 0px !important;
    padding: 0px !important;
  }
  .modal-header {
    padding: 5px;
  }
  .modal-close {
    font-size: 20px;
    font-weight: 600;
  }
  .figure .wp-block-media-text__media {
    display: none !important;
  }
  .scrollable-content {
    max-height: 80% !important;
    overflow-y: auto;
    padding: 20px;
  }
}

/*# sourceMappingURL=style-index.css.map*/