/* Full calendar custom */

.calendar-view-selector {
    margin: 10px 0 25px 0;
}

.calendar-view-selector span {
    float: right;
    display: inline-block;
    text-transform: uppercase;
    font-size: 13px;
    padding: 5px 12px;
    cursor: pointer;
    color: grey;
    border: 1px solid lightgray;
}

.calendar-view-selector span:focus,
.calendar-view-selector span:hover,
.calendar-view-selector span:active,
.calendar-view-selector span.active {
    background: #1262a3;
    border-color: #1262a3;
    color: white;
}

.grid-agenda-container {
    display: grid;
    grid-template-columns: 1fr 400px;
}

.calendar-custom {
    max-width: 600px;
}

.calendar-custom .fc-widget-header {
    margin-bottom: 20px;
}

.calendar-custom h2,
.calendar-custom .fc-day-header span {
    text-transform: uppercase;
}

.calendar-custom .fc-header-toolbar h2 {
    padding: 5px 20px;
}

.calendar-custom .fc-header-toolbar .fc-right h2 {
    display: none;
}

.calendar-custom .fc-header-toolbar .custom-calendar-month {
    cursor: pointer;
}

.calendar-custom td,
.calendar-custom th,
.calendar-custom tr {
    border-color: transparent!important;
    position: relative;
}

.calendar-custom .fc-event-container {
    position: relative;
    z-index: -3;
}

td.fc-day-top {
    padding: 6px 0 !important;
}

.calendar-custom .fc-day-number {
    display: block;
    text-align: center;
    font-size: 16px;
}

.calendar-custom .fc-day-grid .fc-row {
    z-index: 1;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .calendar-custom .fc-day-grid .fc-row {
        margin-bottom: 5px;
    }
}

td[colspan="2"].fc-event-container {
    padding-right: 15% !important;
}

td[colspan="3"].fc-event-container {
    padding-right: 30% !important;
}

td[colspan="4"].fc-event-container {
    padding-right: 45% !important;
}

td[colspan="5"].fc-event-container {
    padding-right: 60% !important;
}

td[colspan="6"].fc-event-container {
    padding-right: 72% !important;
}

td[colspan="7"].fc-event-container {
    padding-right: 90% !important;
}

.calendar-custom .fc-day-grid-event {
    pointer-events: none;
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
    background: #1d63a2;
    color: #1d63a2;
    border: none;
    margin: 0 auto !important;
    padding: 0 !important;
}

.calendar-custom .fc-day-top {
    cursor: pointer;
    position: relative;
    z-index: 5;
}

.calendar-custom .fc-day-top.active {
    color: white;
}

.calendar-custom.fc-unthemed td.fc-today {
    background: transparent;
}

.calendar-custom .fc-other-month,
.calendar-custom .fc-other-month:before {
    opacity: 0.45;
    pointer-events: none;
}

.calendar-custom .fc-day-top:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: -2;
}

@media (max-width: 700px) {
    .calendar-custom .fc-day-top:before {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 500px) {
    .calendar-custom .fc-day-top:before {
        width: 35px;
        height: 35px;
        border-radius: 0;
    }
}

.calendar-custom .fc-day-top.fc-today:before {
    background-color: rgba(87, 87, 87, 0.08);
}

.calendar-custom .fc-day-top.active:before {
    background-color: #1e62a2;
}


.fc-content-skeleton table tbody tr:not(:first-child) .fc-day-grid-event{
    display: none;
}

.calendar-custom .fc-day-grid-event * {
    display: none;
}

.calendar-custom .fc-button-primary {
    color: #9e9e9e;
    background-color: transparent;
    border-color: #dcdcdc;
}

.calendar-custom .fc-scroller {
    height: auto !important;
    overflow: visible !important;
}

/* Calendar details */

#calendar-details {
    padding-left: 20px;
}

#calendar-details h2 {
    text-align: center;
    font-size: 21px;
    border-bottom: 1px solid lightgrey;
    padding-bottom: 20px;
    color: #1e62a2;
    font-weight: 300;
}

#calendar-details .calendar-details-area {
    max-height: 610px;
    overflow-y: auto;
}

#calendar-details .calendar-details-area .fc-event {
    color: black;
    background: transparent;
    border: none;
    border-bottom: 1px solid lightgrey;
    padding: 12px 10px;
    animation: pop-left 0.6s 1;
}

#calendar-details .calendar-details-area .fc-event:hover {
    background: #f7f7f7;
}

@keyframes pop-left {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

#calendar-details .calendar-details-area .fc-event:last-child {
    border: none;
}


#calendar-details .calendar-details-area .fc-day-grid-event .fc-content {
    white-space: unset;
}

#calendar-details .calendar-details-area .fc-event .fc-time {
    display: block;
    position: relative;
    color: #1d63a2;
    font-weight: normal;
    font-size: 16px;
}

#calendar-details .calendar-details-area .fc-event .fc-time:before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 500;
    content: "\f017";
    margin-right: 5px;
}

#calendar-details .calendar-details-area .fc-event .fc-date {
    display: block;
    position: relative;
    color: #1d63a2;
    font-weight: bold;
    font-size: 22px;
    text-transform: uppercase;
}

#calendar-details .calendar-details-area .fc-event .fc-date:before {
    font-family: "Font Awesome 5 Pro";
    font-weight: 500;
    content: "\f073";
    margin-right: 8px;
}

#calendar-details .calendar-details-area .fc-event .fc-year {
    color: #1d63a2;
    font-weight: 300;
    font-size: 22px;
    display: none;
}
#calendar-details .calendar-details-area .fc-event .fc-title {
    font-size: 18px;
}

.form-export-agenda button {
    cursor: pointer;
    margin-top: 23px;
}

.form-export-agenda > * {
    float: left;
    margin-right: 20px;
    vertical-align: bottom;
}

.form-export-agenda label {
    display: block;
}

@media (max-width: 1200px) {
    .grid-agenda-container {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 1000px) {
    .grid-agenda-container {
        grid-template-columns: 1fr;
    }

    .calendar-custom {
        max-width: 100%;
        margin-bottom: 30px;
    }

    #calendar-details {
        padding-left: 0;
    }
}

/* Liste view mode */
.grid-agenda-container.list-view {
    grid-template-columns: 1fr;
}

.grid-agenda-container.list-view .fc-view-container {
    display: none;
}

.grid-agenda-container.list-view #calendar-details {
    padding-left: 0;
}

.grid-agenda-container.list-view #calendar-details .calendar-details-area .fc-event {
    display: grid;
    grid-template-columns: 230px 1fr;
    column-gap: 30px;
    border: 1px solid lightgrey;
    padding: 0;
    margin-bottom: 10px;
}

.grid-agenda-container.list-view #calendar-details .calendar-details-area .fc-event .fc-content,
.grid-agenda-container.list-view #calendar-details .calendar-details-area .fc-event .event-date {
    padding: 15px;
}

.grid-agenda-container.list-view #calendar-details .calendar-details-area .fc-event .event-date {
    border-right: 1px solid lightgrey;
    text-align: center;
}

.grid-agenda-container.list-view #calendar-details .calendar-details-area .fc-event .fc-year {
    display: block;
}

.grid-agenda-container.list-view #calendar-details h2 {
    margin-bottom: 0;
    border: none;
}

.entry-content .grid-agenda-container tr td {
    padding: 0;
}


.lepuy-articles {
    .lepuy-articles__list {
        display: flex;
        flex-direction: column;
        gap: 24px;
        &.grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
        }
    }
}

.post-card {
    border: 1px solid #dadada;
    .lepuy-article__thumb {
        display: block;
        aspect-ratio: 320/200;
        background-color: #f3f3f3;
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    }

    .lepuy-article__content {
        padding: 20px;
        .lepuy-article__title a {
            font-family: 'Open Sans', sans-serif;
            font-size: 20px;
            font-weight: 500;
            color: black;
            text-decoration: none;
            line-height: 24px;
        }

        .lepuy-article__meta {
            color: #666;
            a {
                color: #666;
                &:hover {
                    text-decoration: underline;
                }
            }
        }
    }
}

.lepuy-pagination {
    ul {
        list-style: none !important;
        padding: 24px 0 0 0 !important;
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        li {
            color: black;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            a {
                color: black;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 2px 6px;
                border: 1px solid #ccc;
                min-width: 36px;
                &:hover {
                    background-color: #f3f3f3;
                }
            }

            .current {
                color: #1d63a2;
                display: flex;
                padding: 2px 6px;
            }
        }
    }
}
