.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin: 20px auto;
}
.calendar:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 12%;
    width: 100%;
    height: 88%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: var(--border-radius);
    opacity: 0.2;
}

.day {
    background-color: rgba(220,160,93,0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px 5px 5px;
    height: 13vh;
    overflow: auto;
    position: relative;
}
.day-mobile {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px 5px 5px;
    min-height: 5vh;
    position: relative;
}

.day-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
}

.event {
    margin-top: 1vh;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-height: 6vh;
    text-align: center;
    background-size: cover; /* L'image de fond couvre toute la div, en conservant les proportions */
    background-position: center; /* Centre l'image de fond dans la div */
    background-repeat: no-repeat;
    color: white;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000,
            -1px  0 0 #000,
            1px  0 0 #000,
            0 -1px 0 #000,
            0  1px 0 #000,
            2px 2px 4px #000000;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weekday {
    background-color: var(--golden);
    border-radius: var(--border-radius);
    text-align: center;
    padding: 5px;
    font-weight: bold;
    color: black;
}

.active_day {
    background-color: var(--field-background) !important;
}

.disabled_day {
    border: 0;
    background-color: transparent;
}

.badge-event{
    background-color: white;
    color: black;
}

.modal-header-event{
    background-size: cover; /* L'image de fond couvre toute la div, en conservant les proportions */
    background-position: center; /* Centre l'image de fond dans la div */
    background-repeat: no-repeat;
    color: white;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000,
            -1px  0 0 #000,
            1px  0 0 #000,
            0 -1px 0 #000,
            0  1px 0 #000,
            2px 2px 4px #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 5px;
    border-radius: var(--border-radius);
}
