/*
 Theme Name:   Flash Enfant
 Description:  Thème enfant pour ASGAO (Version Calendrier PDF)
 Author:       Votre Nom
 Template:     flash
 Version:      1.1.0
*/

/* --- NETTOYAGE TOTAL DES POINTS --- */
.sp-event-calendar .has-events:after,
.sp-event-calendar td:after,
.sp-event-calendar .sp-event-dot,
#wp-calendar .has-events::after {
    content: none !important;
    display: none !important;
}

/* 2. STRUCTURE DES CELLULES DU CALENDRIER */
#wp-calendar td[class*="league-"] {
    padding: 0 !important;
    /* Crucial pour que la couleur remplisse toute la case */
    border: 1px solid #444 !important;
    /* Bordures sombres type PDF */
    height: 45px;
    transition: opacity 0.3s ease;
}

/* On force le lien à prendre toute la place dans la cellule */
#wp-calendar td[class*="league-"] a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-size: 1.1em;
}

/* 3. COULEURS DES LIGUES (LOGIQUE PDF 2026) */

/* T.I.S (Jaune) */
#wp-calendar td.league-tis {
    background-color: #fff176 !important;
}

#wp-calendar td.league-tis a {
    color: #000 !important;
    font-weight: bold;
}

/* Omniums (Bleu) */
#wp-calendar td.league-omnium {
    background-color: #29b6f6 !important;
}

#wp-calendar td.league-omnium a {
    color: #ffffff !important;
    font-weight: bold;
}

/* Cas particulier : Évènements mixtes (Dégradé) */
#wp-calendar td.league-tis.league-omnium {
    background: linear-gradient(45deg, #fff176 50%, #29b6f6 50%) !important;
}

#wp-calendar td.league-tis.league-omnium a {
    color: #000 !important;
    /* Texte noir pour lisibilité sur le jaune */
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.5);
}

/* 4. MISE EN VALEUR DU JOUR ACTUEL */
#wp-calendar td.today {
    outline: 3px solid #ff0000;
    /* Encadré rouge pour "Aujourd'hui" */
    outline-offset: -3px;
    position: relative;
    z-index: 2;
}

/* Change le curseur pour indiquer qu'il y a quelque chose à lire */
#wp-calendar td[class*="league-"] a {
    cursor: help;
}

/* Un petit effet de zoom au survol pour rendre le calendrier vivant */
#wp-calendar td[class*="league-"]:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}