@import url("variables.css");

html,
body {
  font-family: "inter", sans-serif !important;
}

.mc4wp-success {
  background-color: #01be60 !important;
  padding: 3px !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  border-radius: 0.375rem !important;
  color: #fff !important;
}

.mc4wp-success p {
 margin: 0 !important; 
}

.btn-outline-success {
  color: var(--couleur-vert) !important;
  border-color: var(--couleur-vert);

  &:hover {
    color: #ffffff !important;
    background-color: var(--couleur-vert);
    border-color: var(--couleur-vert);
  }
}

.btn-danger {
  background-color: var(--couleur-rouge) !important;
  border-color: var(--couleur-rouge);
}

.btn-outline-danger {
  color: var(--couleur-rouge) !important;
  border-color: var(--couleur-rouge);

  &:hover {
    background-color: var(--couleur-rouge) !important;
    border-color: var(--couleur-rouge);
    color: #ffffff !important;
  }
}

.announcement-bar {
  background: var(--couleur-rouge);
  color: white;
  padding: 3px;
  text-align: center;
}

.announcement-bar p {
  margin: 0;
  display: contents;
}

.page-link,
.pagination .page-item a {
  color: var(--couleur-rouge) !important;
  font-weight: bolder !important;
}

.breadcrumb-item a {
  color: var(--couleur-vert) !important;
}

.form-label,
.form-check-label {
  color: #000000 !important;
  font-weight: bolder !important;
}

.nav-item {
  cursor: pointer;
}

/* // ========white======= */
.bg-white {
  background-color: #ffffff !important;
}

.bg-white-light {
  background-color: #f0eeee !important;
}

.c-white,
.nav-link {
  color: #ffffff !important;
}

.border-white {
  border: 4px solid #f0eeee !important;
}

/* // ========red======= */
.bg-red {
  background-color: var(--couleur-rouge) !important;
}

.c-red,
.nav-link.active,
.nav-link:hover {
  color: var(--couleur-rouge) !important;
}

.border-red {
  border: 2px solid var(--couleur-rouge) !important;
}

/* // ========green======= */
.btn-outline-primary {
  color: var(--couleur-vert) !important;
  border-color: var(--couleur-vert) !important;

  &:hover {
    color: #ffffff !important;
    background-color: var(--couleur-vert) !important;
  }
}

.bg-green,
.btn-success {
  background-color: var(--couleur-vert) !important;
  border-color: var(--couleur-vert) !important;
}

.bg-green-light {
  background-color: var(--couleur-vert) !important;
}

.c-green {
  color: var(--couleur-vert) !important;
}

.border-green {
  border: 0.5px solid var(--couleur-vert) !important;
}

/* // ========yellow======= */
.bg-yellow {
  background-color: var(--couleur-jaune) !important;
}

.bg-yellow-light {
  background-color: #fdf1d5 !important;
}

.c-yellow {
  color: var(--couleur-jaune) !important;
}

.border-yellow {
  border: 0.5px solid var(--couleur-jaune);
}

/* //=======gray======= */
.bg-gray-light {
  background-color: #dfd5bd !important;
}

.bg-gray {
  background-color: #d9d9d9 !important;
}

.border-gray {
  border: 1px solid #d9d9d9;
}

/* // =======fontweight======= */
.fw-500 {
  font-weight: 500 !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

/* // ========fontsize======= */
/* Base font size (1rem = 16px par défaut) */

/* Mobile first (par défaut) */
.fs-12 {
  font-size: 0.75rem !important;
}

/* 12px */
.fs-14 {
  font-size: 0.875rem !important;
}

/* 14px */
.fs-16 {
  font-size: 1rem !important;
}

/* 16px */
.fs-18 {
  font-size: 1.125rem !important;
}

/* 18px */
.fs-20 {
  font-size: 1.25rem !important;
}

/* 20px */
.fs-22 {
  font-size: 1.375rem !important;
}

/* 22px */
.fs-24 {
  font-size: 1.5rem !important;
}

/* 24px */
.fs-26 {
  font-size: 1.625rem !important;
}

/* 26px */
.fs-28 {
  font-size: 1.75rem !important;
}

/* 28px */
.fs-30 {
  font-size: 1.875rem !important;
}

/* 30px */
.fs-32 {
  font-size: 2rem !important;
}

/* 32px */
.fs-34 {
  font-size: 2.125rem !important;
}

/* 34px */
.fs-36 {
  font-size: 2.25rem !important;
}

/* 36px */
.fs-38 {
  font-size: 2.375rem !important;
}

/* 38px */
.fs-40 {
  font-size: 2.5rem !important;
}

/* 40px */
.fs-60 {
  font-size: 3.75rem !important;
}

/* 60px */

/* Adaptation pour tablettes (≥768px) */
@media (min-width: 768px) {
  .fs-12 {
    font-size: 0.8125rem !important;
  }

  /* 13px */
  .fs-14 {
    font-size: 0.9375rem !important;
  }

  /* 15px */
  .fs-16 {
    font-size: 1.0625rem !important;
  }

  /* 17px */
  .fs-18 {
    font-size: 1.1875rem !important;
  }

  /* 19px */
  .fs-20 {
    font-size: 1.31rem !important;
  }

  /* 21px */
  .fs-22 {
    font-size: 1.4375rem !important;
  }

  /* 23px */
  .fs-24 {
    font-size: 1.5625rem !important;
  }

  /* 25px */
  .fs-26 {
    font-size: 1.6875rem !important;
  }

  /* 27px */
  .fs-28 {
    font-size: 1.8125rem !important;
  }

  /* 29px */
  .fs-30 {
    font-size: 1.9375rem !important;
  }

  /* 31px */
  .fs-32 {
    font-size: 2.125rem !important;
  }

  /* 34px */
  .fs-34 {
    font-size: 2.25rem !important;
  }

  /* 36px */
  .fs-36 {
    font-size: 2.375rem !important;
  }

  /* 38px */
  .fs-38 {
    font-size: 2.5rem !important;
  }

  /* 40px */
  .fs-40 {
    font-size: 2.625rem !important;
  }

  /* 42px */
  .fs-60 {
    font-size: 4rem !important;
  }

  /* 64px */
}

/* Adaptation pour desktop (≥992px) */
@media (min-width: 992px) {
  .fs-12 {
    font-size: 0.875rem !important;
  }

  /* 14px */
  .fs-14 {
    font-size: 1rem !important;
  }

  /* 16px */
  .fs-16 {
    font-size: 1.125rem !important;
  }

  /* 18px */
  .fs-18 {
    font-size: 1.25rem !important;
  }

  /* 20px */
  .fs-20 {
    font-size: 1.27rem !important;
  }

  /* 22px */
  .fs-22 {
    font-size: 1.5rem !important;
  }

  /* 24px */
  .fs-24 {
    font-size: 1.625rem !important;
  }

  /* 26px */
  .fs-26 {
    font-size: 1.75rem !important;
  }

  /* 28px */
  .fs-28 {
    font-size: 1.875rem !important;
  }

  /* 30px */
  .fs-30 {
    font-size: 2rem !important;
  }

  /* 32px */
  .fs-32 {
    font-size: 2.25rem !important;
  }

  /* 36px */
  .fs-34 {
    font-size: 2.375rem !important;
  }

  /* 38px */
  .fs-36 {
    font-size: 2.5rem !important;
  }

  /* 40px */
  .fs-38 {
    font-size: 2.625rem !important;
  }

  /* 42px */
  .fs-40 {
    font-size: 2.75rem !important;
  }

  /* 44px */
  .fs-60 {
    font-size: 4.25rem !important;
  }

  /* 68px */
}

/* // ========boxshadow======= */
.box-shadow {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.border-raduis {
  border-radius: 50% !important;
}

.act {
  height: 200px;
  object-fit: cover;
}

.bg-gray-light {
  background-color: #fbfaf6 !important;
}

label {
  color: #a8a8a8;
}

.bg-white-lights {
  background-color: #ffffffdb;
}

/* ======================header===================== */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

li {
  position: relative;
}

li a {
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s;
  text-transform: initial;
}

/* Style du sous-menu */
.submenu {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 210px;
  top: 100%;
  left: 0;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.submenu li {
  display: block;
}

.submenu li a {
  padding: 10px;
  color: #000 !important;
  display: block;
  text-transform: initial;
}

.submenu li a:hover {
  border-bottom: 3px solid var(--couleur-rouge);
  color: #000 !important;
  text-transform: initial;
}

/* Affichage du sous-menu au survol */
li:hover .submenu {
  display: block;
}

@media screen and (min-width: 768px) {
  .test {
    margin-bottom: -30px;
  }
}

/* =====================home==================== */
.card-text {
  text-align: justify;
  text-justify: inter-word;
  /* // font-size: 18px; */
}

.border-text {
  border: 1px solid #ffffff;
}

.scroll-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.scroll-content {
  display: flex;
  gap: 20px;
  /* Espacement entre les images */
  animation: scroll 10s linear infinite;
}

.scroll-content img {
  height: auto;
  flex-shrink: 0;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.scroll-wrapper:hover .scroll-content {
  animation-play-state: paused;
}

.wrapper {
  display: flex;
  overflow-x: auto;
}

.wrapper .item {
  margin-right: 20px;
}

.header-social-icons a {
  color: #d3c2c2;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s ease;
}

.header-social-icons a:hover {
  color: #fff;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
}

.image-wrapper .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  /* noir semi-transparent */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  /* évite de bloquer le clic sur l'image */
  z-index: 1;
}

.image-wrapper:hover .overlay {
  opacity: 1;
}

.home-activitie-image {
  width: 100%;
  height: 200px;
  /* Hauteur souhaitée */
  object-fit: cover;
  /* Ajuste l'image pour couvrir l'espace sans déformation */
}

#carouselActivites .carousel-item {
  transition: transform 0.5s ease-in-out;
}

#carouselActivites .card {
  height: 100%;
}

#carouselActivites .custom-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0 15px;
}

#carouselActivites .carousel-control-prev.custom-carousel-control {
  left: -15%;
}

#carouselActivites .carousel-control-next.custom-carousel-control {
  right: -15%;
}

#carouselActivites .custom-carousel-control i {
  font-size: 2rem;
  color: var(--couleur-rouge) !important;
  /* ou la couleur de votre choix */
}

.carousel-gallery {
  position: relative;
  overflow: hidden;
}

.carousel-gallery-inner {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1rem;
}

.carousel-gallery-inner .wp-block-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}

.wp-block-gallery .wp-block-image {
  flex: 0 0 calc(25% - 1rem);
  /* 4 par slide */
}

.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.custom-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.carousel-gallery-prev {
  left: 0;
}

.carousel-gallery-next {
  right: 0;
}

/* 
.scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.scroll-wrapper {
    display: flex;
    animation: scroll-left 360s linear infinite;
    width: fit-content;
}

.scroll-content {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
}

.scroll-content img {
    height: auto;
    max-height: 136px;
    max-width: 136px;
    object-fit: contain;
    width: auto;
    transition: transform 0.3s ease;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
} */

.infinite-partners-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.partner-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.partner-track img {
  max-width: 136px;
  max-height: 136px !important;
  object-fit: contain;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* #partnersCarousel .carousel-control-prev,
#partnersCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: transparent;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border: none;
}

#partnersCarousel .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-size: 100% 100%;
    filter: brightness(0) saturate(100%) invert(76%) sepia(29%) saturate(1235%) hue-rotate(358deg) brightness(92%) contrast(91%);
}

#partnersCarousel .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e0b902'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

#partnersCarousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e0b902'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

#partnersCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(76%) sepia(40%) saturate(1400%) hue-rotate(358deg) brightness(85%) contrast(91%);

}

#partnersCarousel .carousel-control-prev:hover,
#partnersCarousel .carousel-control-next:hover {
    background-color: rgba(224, 185, 2, 0.1) !important;
} */

/*Logos partners*/

/* Conteneur principal */
.partners-carousel-container {
  max-width: 2000px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Style des logos rectangulaires */
.rectangular-logo {
  width: 400px;
  height: 124px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partner-logo {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 154px; /* 124px + padding */
}

.partner-logo:hover .rectangular-logo {
  transform: scale(1.03);
}

/* Boutons de navigation jaunes */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: #f5ce02;
  border: 2px solid #f5ce02;
  opacity: 0.5;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.carousel-control-prev {
  left: -25px;
}
.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: #f5ce02;
  border-color: #f5ce02;
  opacity: 1;
}

/* Icônes noires */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0);
  width: 1.8rem;
  height: 1.8rem;
}

/* Responsive */
@media (max-width: 1799px) {
  .rectangular-logo {
    width: 350px;
    height: 108px;
  }
  .partner-logo {
    margin: 0 15px;
  }
}

@media (max-width: 1599px) {
  .rectangular-logo {
    width: 300px;
    height: 93px;
  }
}

@media (max-width: 1399px) {
  .rectangular-logo {
    width: 250px;
    height: 77px;
  }
  .partner-logo {
    margin: 0 10px;
  }
}

@media (max-width: 1199px) {
  .rectangular-logo {
    width: 200px;
    height: 62px;
  }
}

@media (max-width: 991px) {
  .rectangular-logo {
    width: 180px;
    height: 56px;
  }
  .partner-logo {
    margin: 0 8px;
  }
}

@media (max-width: 767px) {
  .rectangular-logo {
    width: 150px;
    height: 46px;
  }
  .carousel-control-prev {
    left: -15px;
  }
  .carousel-control-next {
    right: -15px;
  }
}

@media (max-width: 575px) {
  .rectangular-logo {
    width: 120px;
    height: 37px;
  }
  .partner-logo {
    margin: 0 5px;
    padding: 10px;
  }
}

/* GALERIE PHOTO RESPONSIVE */
.gallery-container {
  max-width: 100%;
  overflow: hidden;
}

.carousel-gallery {
  position: relative;
  padding: 0 50px;
}

.carousel-gallery-inner {
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.carousel-gallery-inner .wp-block-image {
  flex: 0 0 auto;
  margin-right: 16px;
  max-width: 450px;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-gallery-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 450px;
  max-height: 300px;
  transition: transform 0.3s ease;
}

.carousel-gallery-inner img:hover {
  transform: scale(1.03);
}

.custom-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.carousel-gallery-prev {
  left: 5px;
}
.carousel-gallery-next {
  right: 5px;
}

/* RESPONSIVE ADAPTATION */
@media (max-width: 1200px) {
  .carousel-gallery-inner .wp-block-image {
    max-width: 400px;
    max-height: 266px;
  }
}

@media (max-width: 992px) {
  .carousel-gallery-inner .wp-block-image {
    max-width: 350px;
    max-height: 233px;
  }
  .carousel-gallery {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .carousel-gallery-inner .wp-block-image {
    max-width: 300px;
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .carousel-gallery-inner .wp-block-image {
    max-width: 280px;
    max-height: 187px;
  }
  .carousel-gallery {
    padding: 0 35px;
  }
  .custom-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

.google-maps-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%;
  /* Ratio 16:9 */
}

.google-maps-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Style du formulaire de commentaire */
.comment-form {
  margin-top: 2rem;
}

.comment-form .form-floating {
  margin-bottom: 1rem;
}

.comment-form textarea {
  min-height: 150px;
}

.listing-books .livres-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.listing-books .livres-table th,
.listing-books .livres-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.listing-books .livres-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.listing-books .livres-table tr:hover {
  background-color: #f5f5f5;
}

.listing-books .pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.listing-books .pagination a,
.listing-books .pagination span {
  margin: 0 5px;
  padding: 8px 16px;
  text-decoration: none;
  border: 1px solid #ddd;
}

.listing-books .pagination a:hover {
  background-color: #f1f1f1;
}

.listing-books .pagination .current {
  background-color: #0073aa;
  color: white;
  border: 1px solid #0073aa;
}

.listing-books .table small {
  color: #6c757d;
  font-size: 0.85em;
}

.listing-books .table a:hover {
  text-decoration: underline;
}

#livre-form .is-invalid {
  border-color: #dc3545 !important;
}

#livre-form .is-invalid + .invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 0.875em;
}

#livre-form .text-danger {
  color: #dc3545;
}

/* Style pour la liste (équivalent à .list-group.list-group-flush) */
ul.wp-block-list {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0.25rem;
  /* border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0; */
}

/* Style pour les éléments de liste (équivalent à .list-group-item) */
ul.wp-block-list li {
  position: relative;
  display: block;
  padding: 0.5rem 1rem;
  color: #212529;
  text-decoration: none;
  background-color: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  border-width: 0 0 1px 0;
}

/* Dernier élément sans bordure inférieure */
ul.wp-block-list li:last-child {
  border-bottom-width: 0;
}

/* Effet au survol */
ul.wp-block-list li:hover {
  z-index: 1;
  color: #495057;
  text-decoration: none;
  background-color: #f8f9fa;
}

/* Style pour les éléments actifs */
ul.wp-block-list li.active {
  z-index: 2;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Style pour les éléments désactivés */
ul.wp-block-list li.disabled {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
}
