.Corps {
    background-image: url(../Image/Fond/Fond-Calendrier.png);
    background-size: cover;
}

/* ========== Structure principale avec vw ========== */
.calendar-section {
    display: flex;
    flex-direction: row;
    gap: 2vw;
    font-family: 'Open Sans', sans-serif;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
}

/* Sidebar avec largeur en vw */
.sidebar {
    width: 25vw;
    height: 100%;
    min-width: 200px;
    max-width: 35vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
}

/* Calendrier avec largeur en vw */
#calendar {
    width: 70vw;
    background-color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    padding: 15px;
}

/* ========== Responsive pour téléphone ========== */
@media (max-width: 768px) {
    .calendar-section {
        flex-direction: column;
    }

    .sidebar,
    #calendar {
        width: 100vw;
        /* pleine largeur */
        max-width: 100vw;
    }
}


/* ========== Bloc Événements (Sidebar) ========== */
.event-box {
    background-color: #eeeeee;
    border-left: 5px solid #0970ee;
    margin-bottom: 20px;
    margin-left: 10px;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    color: #1a4d80;
}

.event-box h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #2a73cc;
}

.event-box p {
    margin: 5px 0;
    color: #333;
    font-size: 0.95em;
}

/* ====== Style des filtres dans la sidebar ====== */
.filter-box {
    padding-top: 10px;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    gap: 10px;
    cursor: pointer;
}

.filter-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color);
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.filter-item input[type="checkbox"]:checked {
    background-color: var(--color);
}

.filter-item input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.filter-item input[type="checkbox"]:checked::after {
    opacity: 1;
}


/* ========== FullCalendar : Boutons et titres ========== */
.fc .fc-button {
    background-color: #2a73cc;
    border: none;
    color: white;
    border-radius: 6px;
    padding: 5px 10px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.fc .fc-button:hover {
    background-color: #1a4d80;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:focus {
    background-color: #1a4d80;
    box-shadow: 0 0 0 2px #b3dafe;
}

.fc-toolbar-title {
    font-family: 'Ysabeau Infant', sans-serif;
    font-size: 1.6em;
    color: #1a4d80;
}

/* ========== FullCalendar : Jours et cellules ========== */
.fc .fc-col-header-cell-cushion {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #2a73cc;
}

.fc .fc-daygrid-day-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #1a4d80;
    font-size: 0.75em;
    padding: 2px;
}

.fc-daygrid-day-frame {
    min-height: 45px;
    height: auto;
    padding: 1px 2px;
}

.fc .fc-daygrid-event {
    font-size: 0.7em;
    padding: 0 2px;
    margin: 1px 0;
    line-height: 1.2em;
}

.fc .fc-scrollgrid-sync-table td {
    padding: 0;
}

/* ========== Responsive : Mobile uniquement ========== */
@media (max-width: 768px) {

    /* Masquer les boutons de vue */
    .fc-header-toolbar .fc-button-group:last-child {
        display: none;
    }

    /* Select menu des vues (mobile) */
    .fc-mobile-view-select {
        display: block;
        margin-left: auto;
        margin-top: 10px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        font-size: 0.9em;
        padding: 6px 10px;
        border-radius: 6px;
        border: 1px solid #2a73cc;
        color: #1a4d80;
        background-color: #eaf3ff;
        order: 4;
        align-self: center;
    }

    /* Réorganisation de la barre d’outils */
    .fc-header-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .fc-header-toolbar .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .fc-header-toolbar .fc-toolbar-chunk:first-child {
        order: 1;
    }

    .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
        order: 2;
    }

    .fc-header-toolbar .fc-toolbar-chunk:last-child {
        order: 3;
        flex-direction: column;
        align-items: center;
    }

    .fc-header-toolbar .fc-button-group .fc-today-button {
        margin-top: 5px;
        width: auto;
    }
}

/* ========== Section Tournois Annexes ========== */
.tournoi-annexe {
    display: flex;
    font-family: 'Open Sans', sans-serif;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    margin-bottom: 25px;
}

.tournoi-annexe h2 {
    font-size: 2em;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    color: #062449;
}

.tournoi-annexe p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    letter-spacing: .1em;
    line-height: 2;
    text-align: center;
}

.btn-tournoi {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background-color: #f0f0f0;
    color: #333333;
    padding: 10px 20px;
    border: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    margin-bottom: 15px;
    text-align: center;
}

.btn-tournoi:hover {
    background-color: #007bff;
    color: #ffffff;
}


a {
    text-decoration: none;
}

/* Le point n'est pas utile */
.fc-daygrid-event-dot {
    display: none;
}