/* ============================================
   CALENDRIER SEMAINE - Style sobre cohérent
   ============================================ */

.fbm-custom-calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.fbm-calendar-header {
    background: #23808D; /* Couleur principale du site */
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.fbm-calendar-nav {
    display: flex;
    gap: 10px;
}

.fbm-calendar-nav button {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.fbm-calendar-nav button:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.fbm-calendar-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

/* ============================================
   VUE SEMAINE
   ============================================ */

.fbm-week-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.fbm-week-day {
    background: white;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: background 0.2s;
}

.fbm-week-day:hover {
    background: #f8f9fa;
}

.fbm-week-day.today {
    background: #f0f9fa; /* Teinte légère du bleu principal */
}

.fbm-week-day-header {
    background: #f8f9fa;
    padding: 15px 10px;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fbm-week-day.today .fbm-week-day-header {
    background: #23808D;
    color: white;
    border-bottom-color: #1a6070;
}

.fbm-week-day-name {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: #495057;
}

.fbm-week-day.today .fbm-week-day-name {
    color: white;
}

.fbm-week-day-date {
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

.fbm-week-day.today .fbm-week-day-date {
    color: white;
}

.fbm-week-day-events {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.fbm-no-events {
    text-align: center;
    color: #adb5bd;
    font-style: italic;
    padding: 20px;
    font-size: 13px;
}

.fbm-week-event {
    background: #23808D; /* Couleur principale */
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid #1a6070;
}

.fbm-week-event:hover {
    background: #2a99a9;
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(35, 128, 141, 0.3);
}

.fbm-week-event-time {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.95;
}

.fbm-week-event-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.fbm-week-event-location {
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fbm-week-event-location .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ============================================
   MODAL DÉTAILS ÉVÉNEMENT
   ============================================ */

.fbm-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.fbm-event-modal.active {
    display: flex;
}

.fbm-event-modal-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fbm-event-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s;
    line-height: 1;
}

.fbm-event-modal-close:hover {
    color: #212529;
}

.fbm-event-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.fbm-event-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #212529;
    margin: 0 0 10px 0;
}

.fbm-event-modal-datetime {
    color: #23808D;
    font-size: 15px;
    font-weight: 500;
}

.fbm-event-modal-detail {
    margin: 15px 0;
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.fbm-event-modal-detail .dashicons {
    color: #23808D;
    margin-top: 2px;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.fbm-event-modal-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 3px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fbm-event-modal-detail > div {
    flex: 1;
}

.fbm-event-modal-detail > div > div:last-child {
    color: #212529;
    font-size: 15px;
}

/* ============================================
   VUE MOBILE
   ============================================ */

@media (max-width: 768px) {
    .fbm-calendar-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .fbm-calendar-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .fbm-calendar-nav button {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .fbm-calendar-title {
        font-size: 18px;
        width: 100%;
    }
    
    .fbm-week-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        background: transparent;
    }
    
    .fbm-week-day {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        min-height: auto;
    }
    
    .fbm-week-day-header {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-radius: 8px 8px 0 0;
    }
    
    .fbm-week-day-name {
        font-size: 15px;
        margin-bottom: 0;
    }
    
    .fbm-week-day-date {
        font-size: 20px;
    }
    
    .fbm-event-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .fbm-event-modal-title {
        font-size: 20px;
    }
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */

.fbm-week-day-events::-webkit-scrollbar {
    width: 6px;
}

.fbm-week-day-events::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.fbm-week-day-events::-webkit-scrollbar-thumb {
    background: rgba(35, 128, 141, 0.3);
    border-radius: 3px;
}

.fbm-week-day-events::-webkit-scrollbar-thumb:hover {
    background: rgba(35, 128, 141, 0.5);
}
/* ============================================
   MODAL - RDV et Équipe
   ============================================ */

.fbm-event-modal-rdv {
    background: #e7f3ff !important;
    border-left: 3px solid #23808D !important;
}

.fbm-event-modal-rdv .fbm-event-modal-label {
    color: #23808D;
}

.fbm-event-modal-rdv strong {
    color: #23808D;
    font-size: 20px;
    font-weight: 700;
}

.fbm-event-modal-team {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.fbm-event-modal-team-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s;
    font-weight: 500;
}

.fbm-event-modal-team-me {
    background: #23808D;
    color: white;
    border-color: #23808D;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(35, 128, 141, 0.3);
}

.fbm-event-modal-team-badge:not(.fbm-event-modal-team-me):hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-color: #adb5bd;
}
