/*
Theme Name: comedietriomphe
Theme URI: 
Author: Yziprod
Author URI: 
Description: Theme pour comedietriomphe.Fr
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: comedietriomphe
Tags: 
*/
@media (max-width: 991px) {
  div#wpadminbar {
    display: none;
  }
}

body,
html {
  overflow-x: hidden;
}

* {
  text-decoration: none !important;
}
header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  &.is-sticky {
    /* transform: translateY(-100%); */
    transition: all 0.8s ease-in-out;
    /* animation: slideDown 0.8s forwards; */
  }
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

.tt-header {
  .is-sticky & {
    & > div {
      transition: all ease-in-out 0.3s;
      max-width: 100vw !important;
      border-radius: 0 !important;
      padding: 5px !important;
    }
  }
}
/* header.mouse-is-near .tt-header {
  transition: all ease-in-out 0.3s;
  max-width: var(--wp--style--global--content-size) !important;
  margin: auto;
  overflow: hidden;
  border-radius: 20px !important;
} */

.is-sticky .tt-header {
  padding-inline: 0 !important;
}
.tt_events_container.swiper {
  padding: 1rem 1rem 3rem 1rem;
}
.tt_event_container {
  position: relative;
  display: inline-block; /* S'adapte à la taille de l'image */
  /*width: 315px;  Largeur de l'image */
  border: 8px solid #fff;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 315/455;
  /* margin-right: 8px !important; */
  transition: all ease-in-out 0.3s;
  &:nth-child(even) {
    transform: rotate(-2deg);
  }

  &:nth-child(odd) {
    transform: rotate(2deg);
  }
  &:hover {
    transform: rotate(0deg);
  }
  .swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
    width: 20px;
    height: 20px;
  }
  .swiper-pagination-bullet-active {
    background: red;
  }
}

.tt_event {
  position: relative;
}

.tt_event:nth-child(even) {
  transform: rotate(2deg);
}

.tt_event img {
  width: 100%;
  height: auto;
  display: block;
}

.tt_new_event img {
  aspect-ratio: 315/455;
  max-width: 315px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
  border: 8px solid #dea86e;
  will-change: auto;
}

@media (min-width: 992px) {
  .tt_new_event a img {
    pointer-events: none;
  }

  .tt_new_event img {
    position: absolute;
    top: 50%;
    right: 2rem;
    aspect-ratio: 315/455;
    max-width: 315px;
    width: 100%;
    height: auto;
    display: none;
    object-fit: cover;
    transform: translateY(-50%);
    transition: all 0.3s linear;
    z-index: 3333;
    border-radius: 30px;
    border: 8px solid #dea86e;
    will-change: auto;
  }
  .tt_new_event:hover img {
    display: block;
  }
}

.tt_new_event {
  position: relative;
  cursor: pointer;

  h3 {
    transition: transform 0.1s ease-out;
  }
}

@media (max-width: 991px) {
  .tt_new_events_container {
    h3 {
      margin: 0;
    }
    .tt_new_events_list li {
      gap: 5px;
    }
  }
  .tt_new_event a {
    width: 100%;
    img {
      width: 100%;
      height: auto;
    }
  }
}
.tt_event_date {
  position: absolute;
  bottom: 10px; /* Ajustez selon vos besoins */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(
    0,
    0,
    0,
    1
  ); /* Fond semi-transparent pour meilleure lisibilité */
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  text-align: center;
  width: 90%; /* Prend presque toute la largeur */
  margin: 0;
  z-index: 2; /* Au-dessus de l'image */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  &::before {
    content: url(https://test.yziprod.fr/comedietriomphe2/wp-content/themes/comedietriomphe/assets/img/calendar-1.svg);
  }
}

.tt_event_desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%; /* Même hauteur que l'image */
  background: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3; /* Au-dessus de la date et de l'image */
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 22px;
}

.tt_event_desc h3 {
  margin-bottom: 15px;
}

.tt_event_desc a {
  color: white;
  text-decoration: none;
}

.tt_event_desc img {
  width: 20px;
  height: 20px;
  margin: 5px;
}

.tt_event_btn_resa {
  display: flex;
  align-items: center;
  background: #e74c3c; /* Couleur de votre choix */
  padding: 5px 15px;
  border-radius: 5px;
  margin-top: 10px;
  color: white !important;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tt_event_btn_resa:hover {
  background: #c0392b;
}

/* Au survol du conteneur, afficher la description */
.tt_event_container:hover .tt_event_desc {
  height: 100%;
  opacity: 1;
  visibility: visible;
}
.rotate-odd,
.rotate-even {
  transition: all ease-in-out 0.3s;
  &:hover {
    transform: rotate(0deg);
  }
}

footer {
  margin-top: 0 !important;
}
body .wp-swiper > .wp-swiper__wrapper {
  margin-bottom: 0 !important;
}

.tt-affiche .swiper-button-next,
.tt-affiche .swiper-button-prev {
  width: 60px;
  height: 60px;
}

.tt-affiche .swiper-button-prev:after,
.tt-affiche .swiper-rtl .swiper-button-prev:after {
  content: url(assets/img/arrow-prev.svg);
}
.tt-affiche .swiper-button-next:after,
.tt-affiche .swiper-rtl .swiper-button-next:after {
  content: url(assets/img/arrow-next.svg);
}

.tt-caption-card {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(0, 0, 0);
  border-radius: 22px;
  padding: 0.5rem;
  color: white;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.tt-card-cours > div {
  overflow: hidden !important;
}
.tt-caption-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: max-content;
  transition: all 0.3s ease-in-out;
  .tt-card-cours:hover & {
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
  }
}
.tt-card-cours {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
}
.tt-btn-card {
  height: 0;
  display: none !important;
  transition: all 0.3s ease-in-out;
}
.tt-card-cours:hover .tt-btn-card {
  height: max-content;
  display: flex !important;
}
.tt-card-cours .eb-ah-separator.line {
  height: 0;
  display: none;
}
.tt-card-cours:hover .eb-ah-separator.line {
  height: 8px;
  display: block;
  transition: all 0.3s ease-in-out;
}

.tt-ticket-bon {
  aspect-ratio: 396 / 185;
}
.rotate-odd {
  transform: rotate(2deg);
}
.rotate-even {
  transform: rotate(-2deg);
}
.tt-faq .wp-block-essential-blocks-accordion-item.eb-accordion-hidden {
  transform: rotate(1deg) !important;
  transition: all ease-in-out 0.3s !important;
  &:hover {
    transform: rotate(0deg) !important;
  }
}

.tt-newsletter {
  input.tnp-email,
  input.tnp-submit {
    border-radius: 60px !important;
  }
}

.tt-newsletter-form-group {
  padding: 10px;
  background: white;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 380px;
}

.tnp-subscription-minimal .tnp-privacy-field {
  margin-top: 10px;
  text-align: left;
}

body .tnp-subscription-minimal input.tnp-submit {
  background-color: black;
  padding: 16px 32px;
  color: white;
  width: max-content;
  margin-bottom: 0;
}
body .tnp-subscription-minimal input.tnp-email,
.tnp-subscription-minimal input.tnp-name {
  background-color: #fff;
  border-color: #fff;
}

footer {
  @media (max-width: 600px) {
    .tt_container_rs,
    .tt_container_ml,
    .tt_container_politique {
      width: 100%;
    }
  }
}

.tt-btns-privat .eb-button-group-wrapper.eb-button-group-qs6jj {
  @media (max-width: 767px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

.tt-btns-privat a.eb-button-anchor.eb-button-two {
  @media (max-width: 767px) {
    margin: 0 !important;
  }
}

@media (max-width: 991px) {
  .tt_new_events_container {
    padding-block: 2rem;
  }
}

.tt-avis {
  max-width: 100%;
}

.ee-event-image-content {
  position: relative;
  border: 8px solid #ffd6a3;
  border-radius: 30px;
  overflow: hidden;
  /* display: flex; */

  @media (min-width: 789px) {
    aspect-ratio: 315/455;
  }
  * {
    color: #fff !important;
  }
}

@media (max-width: 788px) {
  .ee-event-content {
    display: none;
  }
  .ee-event-image-content {
    flex-direction: row;
    background-color: #000;
  }
  /* .ee-event-image {
    width: 33%;
  } */
}

.ee-event-image {
  height: max-content;
}
.ee-event-card {
  background-color: transparent;
}
@media (min-width: 789px) {
  .ee-event-content {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    bottom: 0;
    background: linear-gradient(to top, #000000e0 0%, #000000bd 100%);
    border-radius: 22px;
    justify-content: flex-start;
    align-items: center;
    padding-block: 0;
    transition: all ease-in-out 0.3s;
    padding-inline: 12px;
    backdrop-filter: blur(6.3px);
    .ee-event-card:hover & {
      height: 100%;
      justify-content: center;
    }
    * {
      text-align: center;
      opacity: 0;
      transition: all ease-in-out 0.5s;
      .ee-event-card:hover & {
        opacity: 1;
      }
    }
  }

  .ee-event-excerpt,
  .ee-event-categories,
  .ee-event-link {
    display: block;
    transition: all ease-in-out 0.3s;
    overflow: hidden;
    max-height: 100%;
    flex: unset;
    margin-block: 1rem;
  }
}
.ee-event-link {
  padding: 10px 20px;
  background-color: #ff0000;
  border-radius: 10px;
  margin-block: 1rem;
}
/* .ee-event-meta, */
.ee-event-dates {
  color: #ffffff;
  font-size: 14px;
  margin: 0;
  border-radius: 10px;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  gap: 5px;

  svg {
    display: none;
  }
  &:before {
    content: url(/wp-content/themes/comedietriomphe/assets/img/calendar-1.svg);
  }
}

.ee-events-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}
.wp-block-telex-block-acces-par-date {
  button.acces-date-search,
  button.acces-date-button {
    background: white !important;
    color: red !important;
    border: 2px solid red;
    padding: 14px 24px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    transition: background 0.3s ease;
    border-radius: 50px !important;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover {
      background: red !important;
      color: white !important;
    }
  }
}

header .wp-block-telex-block-acces-par-date button.acces-date-button {
  width: 56px !important;
  height: 56px !important;
  justify-content: center;
  overflow: hidden;
  border: none !important;

  &::after {
    content: url(/wp-content/themes/comedietriomphe/assets/img/calendar-02.svg);
  }
  &:hover::after {
    content: url(/wp-content/themes/comedietriomphe/assets/img/calendar-01.svg);
  }
  span {
    font-size: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    width: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  &:hover {
    width: max-content !important;
  }
  &:hover span {
    font-size: 14px;
    visibility: visible;
    width: 100% !important;
  }
}

.acces-date-button {
  gap: 8px;
  &::after {
    content: url(/wp-content/themes/comedietriomphe/assets/img/calendar-2.svg);
  }
  &:hover::after {
    content: url(/wp-content/themes/comedietriomphe/assets/img/calendar-2-2.svg);
  }
}

.acces-date-month .month-header .month-title {
  color: black !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__rendered {
  display: flex;
  align-items: center;
  width: max-content;
}

span.select2-selection.select2-selection--multiple {
  display: flex;
  align-items: center;
  position: relative;
}
.select2-container .select2-search--inline {
  all: unset !important;
}
.acces-date-modal {
  max-width: 100vw !important;
  padding: 0 !important;
  .acces-date-modal-content {
    margin: 20px !important;
  }
}

button.calendar-nav-button {
  background: red !important;
  color: white !important;
}

button.acces-date-search {
  background: white !important;
  color: red !important;
  border: 2px solid red;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  transition: background 0.3s ease;
  border-radius: 50px !important;
  margin: auto;
  display: flex;
  justify-content: center;
  width: max-content !important;
  &:hover {
    background: red !important;
    color: white !important;
  }
}

.swiper-pagination-clickable .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background-color: #000;
  opacity: 1;
  border-radius: 50px;
  margin-top: 2rem;
  &.swiper-pagination-bullet-active {
    background-color: #ff0000;
  }
}

.swiper-pagination {
  bottom: 0 !important;
}
