@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Styles de base communs */

.block-image {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;

    & .img-blur {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    
        & img {
            min-width: 100%;
            min-height: 100%;
            filter: blur(5px);
            object-fit: cover;
        }
    }
}

.img-gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0,0,0,0) 60%);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.img-contain {
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    & img {
        max-width: 90%;
        max-height: 90%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}
    

/* Styles pour les blocs d'événements */
.sortie-bloc .item {
    margin: 5px;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 3px #bbb;
    transition: 0.2s;
    position: relative;
}

.block-visual {
    position: relative;
    width: 100%;
    height: 250px;
}

.block-visual .block-badge {
    width: 100%;
    float: left;
    position: absolute;
    padding: 8px 5px;
    z-index: 4;
}

.block-visual .block-image {
    position: absolute;
    height: 100%;
    width: 100%;
}

.details {
    padding: 1em;

    & .block-date {
        margin-bottom: .6rem;
        font-size: 0.875rem;
        color: #999;
    }

    & h5 {
        overflow: hidden;
        margin-bottom: 0;
        font-size: 1rem;
    }

    & .event-title {
        letter-spacing: 3px;
        text-transform: uppercase;
        color: black;
    }

    & .button-detail {
        margin-top: .5rem;
        /* margin-right: 1rem; */
        display: inline-block;
        color: #999;
        font-size: 0.875rem;
    }

    & a {
        transition: 0.2s;
        color: #999;

        &:hover {
            cursor: pointer;
            text-decoration: none;
            color: orange;
        }
    }

    & h2 {
        transition: 0.2s;
    }

    & .button-ticket {
        display: block;
        margin-top: 1rem;

        &.show .btn {
            color: white;
            border-color: orange;
            background-color: orange;
        }

        & .btn {
            /* width: 100%;
            border-width: 1px;
            font-size: .8rem;
            border-color: lightgrey;
            padding: .3rem 1rem .2rem; */

            &:hover {
                color: white;
                border-color: orange;
                background-color: orange;
            }
        }

        & .dropdown-menu a {
            text-align: right;
        }
    }
}


.block-rubric, .button-rubric {
    font-size: 0.8em;
    position: relative;
    margin: 5px 5px 0 0;
    border-width: 1px 2px 2px 1px;
    border-style: solid;
    padding: 3px 3px 1px;
    text-align: center;
    border-radius: 5px;
    border-color: rgba(0,0,0,.3);
    text-shadow: 0 1px 2px rgba(0,0,0,1);
    color: #fff;
}

.block-rubric {
    float: right;
    z-index: 4;
    font-weight: bold;
}

.button-rubric {
    display: inline-block;
}

.main-side {
    width: 100%;
}

.main-margin {
    margin: 20px;
}

.logo-date {
    text-transform: uppercase;
    color: black;
    display: block;
    position: relative;
    float: left;
    margin: -15px 10px 50px 10px;
    z-index: 3;
    min-width: 40px;
    text-align: center;
    padding: 5px;
    border: 1px #222 solid;
    border-radius: 3px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 21%, rgba(255,255,255,0.87) 100%);

    & .date-text {
        font-size: 10px;
        line-height: 15px;
    }

    & .date-mois {
        font-size: 13px;
        line-height: 18px;
    }

    & .date-jour {
        font-size: 25px;
        line-height: 26px;
        display: inline-block;
        text-align: center;
    }

    & .date-block {
        display: inline-block;
        min-width: 35px;
        /* float: left; */
    }

    & .date-separator {
        display: inline-block;
        /* float: left; */
    }

    & .date-separator-cross {
        width: 1px;
        margin-left: 5px;
        margin-right: 5px;
        height: 37px;
        background: rgb(151, 151, 151);
    }

    & .date-separator-and {
        margin: 10px 5px 0;
    }
}

.title {
    text-align: center;
    padding: 30px 10px 0;
    font-size: 1.5rem;
    & h1 {
        color: #f49f00;
        font-size: 1.8rem;
    }
    /* padding: 40px 10px 20px 10px; */
}


.color-concert, .color-red {
    background: linear-gradient(45deg, #ff4c4c, #cc0000); /* Rouge clair à rouge sombre */
    color: white;
}
.color-exposition, .color-yellow {
    background: linear-gradient(45deg, #fff700, #e6c200); /* Jaune clair à jaune doré */
    color: black;
    text-shadow: none;
}
.color-sport, .color-green {
    background: linear-gradient(45deg, #28a745, #206934); /* Vert clair à vert forêt */
    color: white;
}
.color-soiree, .color-blue {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Bleu clair à bleu marine */
    color: white;
}
.color-spectacle, .color-black {
    background: linear-gradient(45deg, #333333, #000000); /* Noir fumé à noir pur */
    color: white;
}
.color-autre, .color-grey {
    background: linear-gradient(45deg, #ffffff, #f0f0f0); /* Blanc pur à gris très clair */
    color: black;
    text-shadow: none;
}
.color-stage, .color-pink {
    background: linear-gradient(45deg, #ee7e91, #c44a61); /* Rose clair à rose foncé */
    color: white;
}
.color-cinema, .color-brown {
    background: linear-gradient(45deg, #b0b0b0, #7a7a7a); /* Gris clair à gris foncé */
    color: white;
}
.color-action-citoyenne, .color-orange {
    background: linear-gradient(45deg, #ffa500, #cc7a00); /* Orange vif à orange brûlé */
    color: white;
}

.details {
    & .button-ticket {
        margin-top: .6rem;
        float: right;

        & a {
            width: initial;
        }
    }

    & .block-detail {
        margin-bottom: .5rem;
        margin-top:3px;
    }  
}

.sortie-bloc:hover {
    & .block-date {
        height: 1.3rem;
    }

    & h5 {
        margin-top: 0.3rem;
        margin-bottom: 0;

        &:hover {
            color: orange;
        }
    }
} 

.sortie-bloc {
    & .block-date {
        overflow: hidden;
        height: 0px;
        transition: height 0.2s linear;

        & span {
            display: inline-block;
        }
    }
    
    & h5 {
        transition: margin 0.2s linear;
    }
}

.block-visual {
    & .block-image {
        position: absolute;
        height: 100%;
        width: 100%;
    }
}

a.block-favorite {
    position: absolute;
    right: 0;
    bottom: -30px;
    z-index: 3;
    background-color: rgba(255,255,255,.6);
    border-top-left-radius: 5px;
    padding: 3px 5px;
    transition-property: bottom;
    transition-duration: 200ms;

    &:hover {
        background-color: white;
        text-decoration: none;
    }
}

.sortie-bloc:hover a.block-favorite {
    bottom: 0;
}

svg {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
    margin-bottom: 1px;
}


/* 

/* Styles de base pour mobile (< 767px) */
@media (max-width: 768px) {
    .sortie-bloc {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sortie-bloc .item {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0 0 20px 0;
    }

    .sortie-bloc .block-visual {
        width: 100%;
        height: 250px;
        flex: 0 0 auto;
    }

    .sortie-bloc .block-visual .block-image {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .sortie-bloc .block-visual .block-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .sortie-bloc .details {
        width: 100%;
        padding: 1.5em;
    }
}

/* Styles pour tablette et desktop (>= 768px) */
@media (min-width: 768px) {
    
      .separator {
        padding-top: 25px;
      }
      
      .more-info {
        position: absolute;
      }
      
      .topListe {
        display: flex;
        margin-bottom: 10px;
      
        & h2 {
          color: orange;
        }
      }
      
      .grid {
        & .item-more-info {
          padding-bottom: 5em;
        }
      }
      
      .list {
        width: 100%;
      
        & .item {
          display: flex;
          flex-direction: row;
          width: -webkit-fill-available;
          width: fill-available;
      
          & .block-visual {
            width: 300px;
            height: auto;
          }
      
          & .details {
            display: inline-block;
            vertical-align: top;
            width: 60%;
            flex: 1;
          }
      
          & .more-info {
            top: 1.5em;
            right: 1.5em;
          }
        }
      }
      
      .grid {
        & .item {
          flex: 0 0 32%;
          margin: 0 2% 20px 0;
      
          & .block-visual {
            width: 100%;
            height: 150px;
            position: relative;
          }
            
          & span {
            font-size: 12px;
          }
      
          & .details {
            float: none;
            padding: 1em;
            display: inline-block;
      
            & h4 {
              text-align: center;
            }
      
            & .block-detail {
              text-align: center;
              padding: 5px 5% 0;
      
              & .button-detail {
                margin: 3px 10px;
      
                & i {
                  padding-right: 5px;
                }
              }
            }
          }
      
          & .more-info {
            width: 100%;
            bottom: 1em;
            text-align: center;
          }
        }
      
        & .item:nth-child(3n) {
          margin-right: 0;
        }
      }
      
   /*  .sortie-bloc {
        display: flex;
        flex-direction: row;
    }

    .sortie-bloc .item {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin: 5px;
    }

    .block-visual {
        width: 300px;
        height: auto;
        min-height: 150px;
    }

    .sortie-bloc .details {
        flex: 1;
        width: 60%;
        padding: 1em;
    }

 */

}

.modal-body {
    padding: 0;
}

/* Styles pour les événements en cours */
/* .ongoing-events-wrapper {
    display: flex;
    position: relative;
    padding: 0 30px;
    margin-bottom: 30px;
} */



.sortie-bloc:hover {
    & .ongoing .block-date {
        height: initial;
    }
}

/* Sélectionne tous les éléments .item qui sont descendants des .ongoing-event, peu importe leur niveau d'imbrication */
.ongoing-event .item {
    height: 100%;  /* Assure que tous les items ont la même hauteur */
    width: 100%;
    display: flex !important;  /* Force l'utilisation de flexbox */
    flex-direction: column !important;  /* Oriente les éléments en colonne */
}

/* S'assure que le conteneur de l'élément .item prend aussi 100% de la hauteur */
.ongoing-event > * {
    height: 100%;
}

.ongoing-event .swiper-slide {
    height: auto;  /* Permet aux slides de s'adapter à la hauteur de leur contenu */
}

.ongoing-event .item .details {
    flex: 1 !important;  /* Fait en sorte que la section détails prenne tout l'espace disponible */
    display: flex !important;
    flex-direction: column !important;
}

.ongoing-event .item .block-visual {
    height: 150px !important;  /* Hauteur fixe pour les visuels */
    position: relative;
}

/* Ajoute une animation de transition pour un rendu plus fluide */
.ongoing-event .item img {
    transition: transform 0.3s ease;
}

/* Effet de zoom léger au survol */
.ongoing-event .item:hover .img-contain img {
    transform: scale(1.05);
}

/* Responsive design pour mobile */
@media (max-width: 768px) {
    .ongoing-event {
        width: 180px !important;
    }
}

.title-top {
    padding: 30px 20px;
    text-align: center;
    font-weight: 700;
}

.title-top h2 {
    font-size: 1.7rem;
}

.search-bar {
    background: linear-gradient(0deg,rgba(255,87,34,.9) 20%,rgba(255, 151, 0, 0.6));
    
    & .btn {
        background-color: white;
        color: black;
    }

    /* .ts-wrapper.form-control,  */
    & .ts-wrapper.form-select {
        min-width: 200px;
        max-width: 300px;
    }
}

body {
    font-family: "Comfortaa",sans-serif;
}
/* 
.swiper-button-prev, .swiper-button-next {
    height: 190px !important;
    top: 0 !important;
    width: 40px !important;
    background: white;
    margin: 0;
    padding: 5px;
}

.swiper-button-prev {
    left: 0 !important;
}

.swiper-button-next {
    right: 0 !important;
}

.swiper-button-disabled {
    pointer-events: inherit !important;
    cursor: not-allowed !important;
}

.swiper-button-next::after, 
.swiper-button-prev::after {
    color: orange;
} */