/**
 * Styles pour le frontend du plugin Calendrier
 * Emplacement: _calendrier/assets/css/public.css
 */

/* Tableaux */
.calendrier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.calendrier-table thead {
    background: #555;
}

.calendrier-table thead th {
    color: white;
    padding: 10px 5px;
    //text-align: left;
    font-weight: 600;
}

.calendrier-table tbody td {
    padding: 12px 10px;
    //border-bottom: 1px solid #e0e0e0;
}

.calendrier-table tbody tr:hover {
    background: #f5f5f5;
}

/* Titre */
.calendrier-title {
    color: #d63638;
    font-size: 24px;
    //font-weight: 400;
    margin-bottom: 5px;
    //padding-bottom: 5px;
}

.calendrier-title2 {
    font-size: 24px;
    //font-weight: 300;
    margin-bottom: 5px;
    //padding-bottom: 5px;
}

/* FullCalendar */
#calendrier-fullcalendar-wrapper {
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendrier-legend {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.legend-item {
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.legend-activite {
    background-color: #ff6b6b;
}

.legend-gardiennage {
    background-color: #51cf66;
}

.legend-pas-gardien {
    background-color: #339af0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .calendrier-table {
        font-size: 12px;
    }
    
    .calendrier-title {
        font-size: 20px;
    }
}

/* Largeurs uniformes pour les colonnes */
.calendrier-table.calendrier-gardiennages .col-date {
    width: 25%;
}

.calendrier-table.calendrier-gardiennages .col-gardien {
    width: 25%;
}

.calendrier-table.calendrier-gardiennages .col-initialement {
    width: 25%;
}

.calendrier-table.calendrier-gardiennages .col-remarque {
    width: 25%;
}

/* Pour forcer le layout fixe (IMPORTANT) */
.calendrier-table.calendrier-gardiennages {
    table-layout: fixed;
    width: 100%;
}




/*------------------------------------------------------------*/
/* Container principal des icônes */
.calendrier-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Groupe des icônes de gauche (iCal + PDF) */
.calendrier-icons-left {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

/* Icône calendrier à droite */
.calendrier-icon-calendar {
    margin-left: auto;
}

/* Item individuel d'icône */
.calendrier-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.calendrier-icon-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.calendrier-icon-item a:hover {
    transform: translateY(-3px);
}

/* Images des icônes */
.calendrier-icon-img {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.calendrier-icon-item a:hover .calendrier-icon-img {
    opacity: 0.8;
}

/* Icône désactivée (PDF non disponible) */
.calendrier-icon-item.calendrier-icon-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendrier-icon-item.calendrier-icon-disabled .calendrier-icon-img {
    filter: grayscale(50%);
}

/* Label sous l'icône */
.calendrier-icon-label {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    max-width: 100px;
}

.calendrier-icon-item a:hover .calendrier-icon-label {
    color: #007bff;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .calendrier-icons {
        justify-content: center;
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .calendrier-icons-left {
        justify-content: center;
        gap: 15px;
    }
    
    .calendrier-icon-calendar {
        margin-left: 0;
    }
    
    .calendrier-icon-img {
        width: 48px;
        height: 48px;
    }
    
    .calendrier-icon-label {
        font-size: 11px;
        max-width: 80px;
    }
}

/* Version compatible avec l'ancien style (tableau) */
.icon-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.icon-calendar-table td {
    padding: 10px;
    text-align: center;
    vertical-align: top;
}

.icon-calendar-left {
    text-align: left;
}

.icon-calendar-right {
    text-align: right;
}

/* Classe pour centrer */
.center {
    text-align: center;
}

/* Style pour le texte sous les icônes */
.texte2 {
    font-size: 12px;
    color: #666;
}
