/* ===== Calendrier Français - WordPress Plugin ===== */

.cal-fr-wrapper {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    color: #333;
}

/* === En-tête === */
.cal-fr-header {
    background: #1a5276;
    color: #fff;
    border-radius: 8px 8px 0 0;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.cal-fr-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.cal-fr-nav-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}

.cal-fr-nav-btn:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
}

.cal-fr-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

/* Options */
.cal-fr-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cal-fr-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #dde;
}

.cal-fr-toggle input {
    cursor: pointer;
    accent-color: #f39c12;
    width: 16px;
    height: 16px;
}

/* === Grille des mois === */
.cal-fr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .cal-fr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .cal-fr-grid {
        grid-template-columns: 1fr;
    }
}

/* === Bloc mois === */
.cal-fr-mois {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cal-fr-mois-titre {
    background: #1a5276;
    color: #fff;
    text-align: center;
    padding: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* === Table === */
.cal-fr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.cal-fr-table thead tr {
    background: #2e86c1;
    color: #fff;
}

.cal-fr-table th {
    padding: 5px 2px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
}

.cal-fr-th-sem {
    background: #1a5276;
    font-size: 10px;
    width: 28px;
}

/* === Cellules === */
.cal-fr-row td {
    border-bottom: 1px solid #eef;
    vertical-align: top;
    padding: 2px 3px;
    transition: background 0.15s;
}

.cal-fr-row td:hover {
    background: #eaf4fb;
}

.cal-fr-semaine {
    background: #d6eaf8;
    color: #1a5276;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 2px !important;
    white-space: nowrap;
}

.cal-fr-jour {
    cursor: default;
}

.cal-fr-num {
    display: block;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.2;
    color: #1a5276;
}

.cal-fr-saint {
    display: block;
    font-size: 9px;
    color: #666;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cal-fr-ferie-label {
    display: block;
    font-size: 8px;
    font-weight: bold;
    color: #c0392b;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dimanche */
.cal-fr-dim, .cal-fr-dim .cal-fr-num {
    background: #fdf5f5;
    color: #c0392b;
}

/* Jour férié */
.cal-fr-ferie {
    background: #fef9e7 !important;
}

.cal-fr-ferie .cal-fr-num {
    color: #e74c3c;
}

/* Aujourd'hui */
.cal-fr-today {
    background: #1a5276 !important;
}

.cal-fr-today .cal-fr-num {
    color: #fff !important;
    font-size: 14px;
}

.cal-fr-today .cal-fr-saint {
    color: #adf !important;
}

.cal-fr-today .cal-fr-ferie-label {
    color: #ffd !important;
}

/* Cellule vide */
.cal-fr-vide {
    background: #f9f9f9;
}

/* === Légende === */
.cal-fr-legende {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f4f6f7;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
}

.leg-ferie { color: #e74c3c; }
.leg-today { color: #1a5276; }
.leg-dim    { color: #c0392b; }

/* Jour sélectionné (clic sur un prénom) */
.cal-fr-jour.cal-fr-selected {
    background: #d4efdf !important;
    outline: 2px solid #27ae60;
}

.cal-fr-jour.cal-fr-selected .cal-fr-num {
    color: #1e8449 !important;
}

/* === Masquage par options === */
.cal-fr-wrapper.hide-semaines .semaine-cell,
.cal-fr-wrapper.hide-semaines .cal-fr-th-sem {
    display: none;
}

.cal-fr-wrapper.hide-saints .saint-cell {
    display: none;
}

.cal-fr-wrapper.hide-feries .ferie-cell {
    display: none;
}
