/* Conteneur global des événements */
.boucle-evenement {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 1rem;
    margin-bottom: 4rem;
}

/* Carte événement */
.evenement-container {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evenement-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image de l'événement */
.evenement-image {
    text-align: center;
}

/* Contenu de l'événement */
.evenement-contenu {
    padding: 1.5rem;
}

.evenement-titre {
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #000 !important;
}

.evenement-titre a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s ease;
}

.evenement-date,
.evenement-lieu {
    color: #555;
    margin-bottom: 0.5rem;
}

.evenement-date strong,
.evenement-lieu strong {
    color: #222;
}

.evenement-lien {
    text-align: center;
}

/* single-event */
/* Wrapper en deux colonnes */
.event-wrapper {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin: 10rem 25rem;
}

/* Colonne gauche */
.event-left {
    flex: 2;
}

/* Colonne droite flottante */
.event-right {
    flex: 1;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.event-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Contenu */

.event-content h2,
.event-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Tarifs */
.event-tarifs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 4rem;
}

.tarif-card {
    background: #f3f3f3;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarif-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.tarif-card.free {
    background: #ffeb3b;
    color: #333;
}

/* Billetterie */
.event-billetterie {
    text-align: center;
    margin-bottom: 4rem;
}

/* Contact */
.event-contact {
    inline-size: max-content;
}

/* Responsive */
@media(max-width:1024px){
    .event-wrapper {
        flex-direction: column;
    }
    .event-right {
        position: static;
        margin-top: 2rem;
    }
}

/* Affichage en liste */
.boucle-evenement.evenement-liste {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    margin-bottom: 4rem;
    align-items: center;
}

/* Carte événement en liste */
.evenement-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: stretch;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.evenement-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image événement */
.evenement-image {
    flex: 0 0 250px; /* largeur fixe pour l'image */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
    background: #f9f9f9;
}

.evenement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* garde le bon ratio et remplit */
    border-radius: 0; /* pas besoin d’arrondi car déjà contenu */
    transition: transform 0.4s ease;
}

.evenement-container:hover .evenement-image img {
    transform: scale(1.05);
}

/* Contenu */
.evenement-contenu {
    flex: 1;
    padding: 1.5rem;
}

/* Responsive : image au-dessus du texte en mobile */
@media(max-width: 768px) {
    .evenement-container {
        flex-direction: column;
    }
    .evenement-image {
        flex: unset;
        height: 200px; /* hauteur fixe en mobile */
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* Boutons de filtre événements */
.evenement-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.evenement-filters a {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.evenement-filters a.active {
    background-color: #fff !important;
}

.evenement-filters a:before {
    right: 0 !important;
}

.evenement-filters a p {
    padding: 0.5rem 0 !important;
    margin: 0;
}

/* Pagination événements */
.evenement-pagination ul.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.evenement-pagination ul.pagination li a {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    color: #333;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.calendar-container { 
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    padding: 1rem;
}

.calendar-nav { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav h3 { 
    font-size: 1.4rem;
    margin: 5px 0;
    font-weight: 600;
    color: #131313;
}

.calendar-nav a {
    padding: 0.4rem 0.8rem;
    color: #000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.calendar { 
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar div { 
    border: 1px solid #eee;
    min-height: 100px;
    padding: 0.5rem 0.3rem;
    font-size: 0.85rem;
    position: relative;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day-header { 
    text-align: center;
    font-weight: 600;
    background: #f0f0f0;
    padding: 0.5rem 0;
    border-radius: 6px;
}

.calendar div:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.day-number { 
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.calendar div a {
    display: block;
    margin: 0.2rem 0;
    padding: 0.15rem 0.3rem;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    background: #fff;
    transition: background 0.3s, color 0.3s;
}

@media (max-width: 768px) {
    .calendar-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .calendar {
        min-width: 100%;
        max-height: 768px;
    }
}

@media (max-width: 480px) {
    .calendar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 400px;
    }

    .day-header {
        display: none !important;
    }

    .calendar div {
        min-height: 80px;
        width: 100%;
    }
}

/* Pagination */
.evenement-pagination ul.pagination li.active a.active {
    background-color: #fff !important;
}

.center-number {
    margin: auto 0;
}

.evenement-pagination ul.pagination li a p {
    padding: 0.5rem 0 !important;
    margin: auto;
}

.evenement-pagination ul.pagination li a:before {
    right: 0 !important;
}

.evenement-pagination ul.pagination li a {
    color: #333;
    transition: all 0.3s ease;
    min-width: auto !important;
}

.liste-evenements {
    position: relative;
    display: flex;
    width: 80%;
    gap: 3rem;
    margin: 0 auto;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.link2 {
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: #131313;
}

.link2:after {
    content: "";
    border-bottom: solid 1px #12929b;
    transform: scaleX(0);
    transition: transform 250ms ease-in-out;
    display: block;
    transform-origin: 100% 50%;
}

.link2:hover:after, .link2:focus:after {
    color: #12929b !important;
    transform: scaleX(1);
    transform-origin: 0% 50%;
}

.partageres a {
    font-size: 1.2rem;
    color: #131313;
    text-decoration: none;
}

.partageres {
    display: flex;
    align-items: center;
    gap: .7rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 1px solid #babfc3;
    text-transform: uppercase;
    color: #131313;
    padding: 1.6rem 0;
}

.partage > svg {
    margin-left: 0.4rem;
}

.contenu-page {
    max-width: max-content !important;
}

.qrcode {
    align-self: center;
}

.bloc-event {
    margin-top: 2rem;
    background: #e0eefa;
    padding: 20px;
    margin-bottom: 20px;
}

.titre-bloc {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

aside .qrcode img {
    max-width: 100%;
    height: auto;
}

.partage a {
    display: block;
    margin-bottom: 5px;
}

.event-image .image-event {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-image .image-event img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.networks {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 15px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.networks li a svg {
    height: 2.5rem !important;
    vertical-align: -1.5rem;
}

.networks li a svg path {
    fill: #000 !important;
}

.event-description p {
    padding: 2rem 0;
}

#paginationBottom {
    justify-self: center;
}

ul > li {
    list-style: none;
}

.resume-event .line-block {
    display: block;
    margin-bottom: 4px;
}

.resume-event .line-block:last-child { 
    margin-bottom: 0;
}

.evenement-filters nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .evenement-filters nav {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .evenement-filters .btnhead {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}