@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 15px;
    gap: 20px;
    justify-content: space-between;
}

.bouquinerie-title {
    height: auto;
    width: 100%;
    padding: 15px 0;
    margin: 30px auto;
    border-radius: 15px;
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bouquinerie-title h1 {
    text-align: center;
    font-family: 'Cinzel';
    color: #336E8D;
    margin: 0;
    margin: 0 15px;
}

.image-slider {
    position: fixed;
    z-index: -1;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
}

.image-slider img {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-slider img:first-child {
    opacity: 1;
}

.infos-container {
    width: min(400px, 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
    flex: 0 1 auto;
    min-width: 0;
}

.schedules-container {
    background-color: #FFF;
    border-radius: 25px;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    height: fit-content;
}

.schedules-container table {
    width: 100%;
    table-layout: fixed;
}

.schedules-container table tr {
    height: 40px;
}

.schedules-container table td {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.map-container {
    max-width: 400px;
    min-height: 400px;
    width: 100%;
    flex: 1 0 auto;
}

.map-container iframe {
    border-radius: 25px;
}

/* Events */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    background-color: #FFF;
    border-radius: 25px;
    width: min(400px, 100%);
    min-width: 0;
    max-height: 600px;
    padding: 15px;
    box-sizing: border-box;
    flex: 0 1 auto;
}

.events-container .noevent-container {
    margin: auto 0;
}

.events-container .slides {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.events-container .slides .slide {
    display: none;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    min-height: 0;
}

.events-container .slides .slide.active {
    display: flex;
}

.events-container .slides .slide a {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    text-decoration: none;
    color: #000;
    padding: 15px;
    align-items: stretch;
    height: 100%;
    box-sizing: border-box;
    gap: 5px;
    background-color: transparent;
    transition: background-color ease-in 0.1s;
}

.events-container .slides .slide a:hover {
    background-color: var(--hover-background);
    transition: background-color ease-out 0.1s;
}

.events-container .slides .slide a img {
    object-fit: contain;
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 0;
}

/* dots */
.events-container .dots {
    display: flex;
    gap: 8px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.events-container .dots button {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.15);
    padding: 0;
    cursor: pointer;
}

.events-container .dots button.active {
    background: var(--focus);
}

@media screen and (max-width: 850px) {
    .container {
        justify-content: center;
    }
}

@media screen and (max-width: 730px) {
    .bouquinerie-title h1 {
        font-size: 2.2em;
    }
}