/* Styles pour la fonctionnalité de mise en avant des formations */

/* Mode sélection actif */
.formations-section.selection-mode {
    background-color: rgba(76, 175, 80, 0.05);
    border: 2px dashed #4caf50;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.formations-section.selection-mode::before {
    content: "🎯 Mode sélection actif - Cliquez sur les formations à mettre en avant";
    display: block;
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style pour les formations en mode sélection */
.formation-card.selectable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid transparent;
}

.formation-card.selectable:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #4caf50;
}

/* Style pour les formations mises en avant */
.formation-card.highlighted {
    background-color: rgba(0, 253, 8, 0.199) !important;
    position: relative;
    border: 2px solid #4caf50;
}

/* Style pour l'icône d'étoile */
.formation-star-icon {
    color: #4caf50;
    margin-right: 8px;
    font-size: 0.9rem;
    display: none;
}

.formation-card.highlighted .formation-star-icon {
    display: inline-block;
}

/* Indicateur de sélection */
.formation-selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.formation-card.highlighted .formation-selection-indicator {
    display: flex;
}

/* Instructions de sélection */
.formation-highlight-instructions {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: none;
}

.formation-highlight-instructions p {
    margin: 0 0 15px 0;
    color: #1976d2;
    font-weight: 500;
}

.formation-highlight-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.formation-highlight-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.formation-cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.formation-cancel-btn:hover {
    background: #e0e0e0;
}

.formation-save-btn {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.formation-save-btn:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
    transform: translateY(-1px);
}

/* Bouton de mise en avant */
.formation-highlight-toggle-btn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.formation-highlight-toggle-btn:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Message de confirmation */
.formation-highlight-confirmation {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .formation-highlight-actions {
        flex-direction: column;
    }
    
    .formation-highlight-actions button {
        width: 100%;
    }
    
    .formations-section.selection-mode::before {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
