.planning-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e5e7eb;
    border: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .planning-calendar {
        grid-template-columns: 1fr;
        gap: 8px;
        background-color: transparent;
        border: none;
    }

    .calendar-day {
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 8px;
    }
}

.calendar-day {
    background-color: white;
    min-height: 120px;
    max-height: 200px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.calendar-day.autre-mois {
    background-color: #f9fafb;
    opacity: 0.6;
}

.calendar-day.aujourd-hui {
    background-color: #fef3c7;
}

.jour-numero {
    font-weight: bold;
    color: #374151;
    margin-bottom: 4px;
}

.creneaux-jour {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 140px;
    overflow-y: auto;
}

.creneau {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    border-left: 3px solid;
    margin-bottom: 2px;
    cursor: pointer;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .creneau {
        font-size: 0.8rem;
        padding: 4px 8px;
        margin-bottom: 4px;
        border-left: 4px solid;
    }
}

.creneau:hover {
    opacity: 0.8;
}

.creneau.entrainement {
    background-color: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
}

.creneau.match {
    background-color: #d1fae5;
    border-left-color: #10b981;
    color: #065f46;
}

.creneau.match-joue {
    background-color: #f3e8ff;
    border-left-color: #8b5cf6;
    color: #5b21b6;
}

.creneau-modifie {
    border-left-color: #f97316 !important;
    background-color: #ffedd5 !important;
    position: relative;
}

.badge-modifie {
    display: inline-block;
    font-size: 10px;
    background-color: #f97316;
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 4px;
}

.conflit-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.month-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.month-nav:hover {
    border-color: var(--color-primary-500);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Styles pour la modale - utilise les variables CSS du thème */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .modal-content {
        max-width: 100%;
        margin: 0 16px;
    }
}

/* Header de la modale avec gradient du thème */
.modal-header-gradient {
    background: linear-gradient(to right, var(--color-primary-600), var(--color-primary-700));
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background-color: rgba(255, 255, 255, 0.2);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-600);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
