
* {
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    background: none ;
}

body.planning-page {
    background: #ffffff ;
}

body.planning-page::before {
    display: none ;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("./images/wallpaperPole.png");
    background-size: cover;

    background-repeat: no-repeat;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

/* Accueil */

.home-container {
    max-width: 1000px;
    margin: 50px auto;
}

.home-header {
    margin-bottom: 30px;
    text-align: center;
}

.home-header h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
}

.home-header p {
    color: #526174;
    font-size: 17px;
}

.calendar-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 30px auto;
}

.calendar-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    width: 100%;
}

.calendar-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    box-shadow: 0 2px 12px #0000000d;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    
}

.calendar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px #00000012;
}

.calendar-card-icon {
    font-size: 28px;
}

.calendar-card-name {
    flex: 1;
    font-size: 19px;
    font-weight: bold;
}

.calendar-card-arrow {
    color: #526174;
    font-size: 24px;
}

/* Page du planning */

.planning-page {
    overflow-x: hidden;
    background-color: #ffffff;
}

.planning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.planning-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.planning-heading h1 {
    margin: 0;
    font-size: clamp(22px, 2vw, 34px);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    box-shadow: 0 2px 12px #0000000d;
    transition: transform 0.15s, box-shadow 0.15s;
}

.titre-formation{
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 6px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    background: #003e51;
    color: #a73a64;
    text-decoration: none;
    box-shadow: 0 2px 12px #0000000d;
    transition: transform 0.15s, box-shadow 0.15s;

}
.back-link:hover {
    text-decoration: underline;
}

.texte-planning {
    margin-left: 10px;
    font-size: 18px;
    font-weight: normal;
    color: #333;
}

.planning-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px 0 0;
    margin: 0;
    margin-bottom: -55px;
    margin-top: -15px;
}

.planning-logo img {
    display: block;
    max-width: 220px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

#status {
    font-size: 14px;
    color: #526174;
    text-align: right;
    background: #fff;
    text-decoration: none;
    display: flex;
    gap: 2px;
    padding: 6px;
    border: 1px solid #e1e7ef;
    border-radius: 14px;
    box-shadow: 0 2px 12px #0000000d;
    transition: transform 0.15s, box-shadow 0.15s;
}


#calendar {
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 12px #0000000d;
}

#calendar .fc-infoPlanning-button {
    color: rgb(26, 25, 25) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.5;
    padding: 0 10px;
    margin-left: 8px;
    cursor: default;
    white-space: nowrap;
}

/* Déplacer uniquement le bouton CAVILAM */
#calendar .fc-infoPlanning-button {
    position: relative;
    left: -350px;
}

.fc {
    font-size: 16px;
}

.fc .fc-toolbar-title {
    font-size: clamp(20px, 2vw, 30px);
}

.fc .fc-timegrid-slot {
    height: 1.5em;
}

.fc .fc-event {
    cursor: pointer;
}


/* Force la taille du texte dans les événements */
#calendar .fc-event .event-content,
#calendar .fc-event .event-content * {
    font-size: 11px ;
    line-height: 1 ;
}

/* Évite que le texte déborde */
#calendar .fc-event .event-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
}

#calendar .fc-event .event-title {
    font-weight: bold;
}

#calendar .fc-event .event-description {
    white-space: pre-line;
}

#calendar .fc-event .event-location {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}


@media (max-width: 800px) {
    body {
        padding: 8px;
    }

    .planning-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #status {
        text-align: left;
    }

    #calendar {
        padding: 4px;
    }

    .fc {
        font-size: 13px;
    }

    .fc .fc-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-container {
        margin: 20px auto;
    }

.fc .fc-event {
    overflow: hidden;
}

.fc .fc-event-main {
    white-space: normal;
    overflow-wrap: anywhere;
}

.fc .fc-event-main > div > div + div {
    margin-top: 3px;
}

/* Contenu des événements */
.event-content {
    font-size: clamp(5px, 0.55vw, 9px);
    line-height: 1.0;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.event-title {
    font-weight: bold;
    margin-bottom: 2px;
}

.event-description {
    font-size: 0.50em;
    white-space: pre-line;
}

.event-location {
    font-size: 0.85em;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

/* Empêcher le contenu de déborder de la carte */
.fc-timegrid-event .fc-event-main {
    min-width: 0;
    overflow: hidden;
}




}
